[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Problem creating a domU using virt-install: --connect issue


  • To: Flavio <fbcyborg@xxxxxxxxx>
  • From: Mark Pryor <tlviewer@xxxxxxxxx>
  • Date: Mon, 3 Oct 2011 10:55:09 -0700 (PDT)
  • Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 03 Oct 2011 10:56:37 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=iqYkOramMUyMrXqp0PlB6tSkmdxcaZ9GPr+GdOd670mHPCcZtBsWeMd8U2lt6VxXwR5O/6/R49ELxLAMDiRBQGL2+3sxRR5l4/MBnYMhSdZKPm9tRTn+tVh9v+5sweijzL+BTM6sMU6OXaUtkm6TL0BNLpAgNzPH/Cj9tBYEME0=;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>




----- Original Message -----
From: Flavio <fbcyborg@xxxxxxxxx>
To: xen-users@xxxxxxxxxxxxxxxxxxx
Cc: 
Sent: Monday, October 3, 2011 8:58 AM
Subject: [Xen-users] Problem creating a domU using virt-install: --connect issue

Hello,
I am trying to use virt-install to setup a CentOS domU but I am
blocket due to the following error:
ERROR    no connection driver available for No connection for URI (null)

This is the command I am typing:
virt-install -n centos-6.0 -r 1024 -f
/mnt/data/xen/vmstore/centos-6.0/centos-6.0.img --vnc --location
http://mi.mirror.garr.it/mirrors/CentOS/6/os/x86_64/

As far as we may read from the virt-install man page the --connect
option should be passed to virt-install,
but if I do that (i.e. adding the "--connect xen" to the end of the
command line) I get the following:
ERROR    no connection driver available for No connection for URI xen:///

I don't understand what to do.
As we may see in the following video, the --connect parameter seems to
be not necessary:
http://www.youtube.com/watch?v=e-3Iuq5UQbg

My OS is Gentoo Linux 10.0 x86_64
Kernel: gentoo-sources-3.0.4
xen: 4.1.1-r2
xen-tools: 4.1.1-r5
libvirt: 0.9.3-r1
virt-manager: 0.9.0-r1
virtinst: 0.600.0


Can somebody help me please?

-----------------------------

To see the actual trouble you need to read the OSDistro.py script from package
python-virtinst.noarch

This script is called by virt-install to build the final URL for the xen image 
folder. The path for centos is hardcoded (./image/xen)

Our friends in the Centos project didn't create this subfolder, so no netboot 
vmlinuz/initrd.img are provided for virt-install.

The bad news is that without patching OSDistro.py (not recommended) 
virt-install will fail for C6 installs.

I have requested via ML that the Centos project add this subfolder 
(./images/xen) and populate it with the vmlinuz/initrd.img from the isolinux 
folder.

Your workaround (for now) is to drop using virt-install and use `xm create domU 
kernel=xx ramdisk=yy`, where xx and yy are sourced as above.

-- 
Mark

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.