WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: Flavio <fbcyborg@xxxxxxxxx>
Subject: Re: [Xen-users] Problem creating a domU using virt-install: --connect issue
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1317664509; bh=DHcna11r7+eKZqzAWCDItuqpSQ04WHjLDDrHbJ/hrKs=; 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=H4bHb/imiN2si2k4sQRuHhBSVCFe5JplFYV3LsgXh9+UoTZOS6nJjTPtC0bcNVYFQo9IFhInO3ztRIwBfG5pxEOqo0itSVqEWKRLXQwCTlp1AWdMRLDNz1WJ2n/ijbf7Bndcnkc7f+Nlz5GFYhzcy/hsJmGNb9qqf6oGfvdLvUY=
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=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAP8Jb=qhF48cRsTm6Od6JPte7AX2Og_UZT4CE0bmf1qDDJtyFQ@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <CAP8Jb=qhF48cRsTm6Od6JPte7AX2Og_UZT4CE0bmf1qDDJtyFQ@xxxxxxxxxxxxxx>
Reply-to: Mark Pryor <tlviewer@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx



----- 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