Flavio
2011-Oct-03 15:58 UTC
[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? -- Flavio _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Pryor
2011-Oct-03 17:55 UTC
Re: [Xen-users] Problem creating a domU using virt-install: --connect issue
----- Original Message ----- From: Flavio <fbcyborg@gmail.com> To: xen-users@lists.xensource.com 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@lists.xensource.com http://lists.xensource.com/xen-users
Flavio
2011-Oct-03 18:38 UTC
Re: [Xen-users] Problem creating a domU using virt-install: --connect issue
On 3 October 2011 19:55, Mark Pryor <tlviewer@yahoo.com> wrote:> To see the actual trouble you need to read the OSDistro.py script from package > python-virtinst.noarchThanks a lot for replying Mark. I''ve seen that file. To be honest I don''t know how to patch it now.> > 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.OK.> > The bad news is that without patching OSDistro.py (not recommended) virt-install will fail for C6 installs.Well, I can try with centos-5 but I guess the problem still remain, as regard the error I''ve posted in the first message here.> > 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.Well done.> > 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.I use xl, the new toolstack, now. I''ve never created a domU using xm (or xl in this circumstance), so please, could you help me to do that? So, as far as I understand I can try to setup another domU (choosing another distro), and it should work for sure. Isn''t it? Could you suggest me an howto, or some instruction to setup a Suse (for instance) domU with virt-install? Thank you very much, -- Flavio _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Flavio
2011-Oct-03 19:56 UTC
Re: [Xen-users] Problem creating a domU using virt-install: --connect issue
On 3 October 2011 21:50, Mark Pryor <tlviewer@yahoo.com> wrote:> If virt-install can''t connect to your xen install with or without the --connect flag,The --debug option doesn''t say nothing to me, even with the connect flag. Here''s the output: Mon, 03 Oct 2011 21:53:56 DEBUG Requesting libvirt URI default Mon, 03 Oct 2011 21:53:56 ERROR no connection driver available for No connection for URI (null) Mon, 03 Oct 2011 21:53:56 DEBUG Traceback (most recent call last): File "/usr/bin/virt-install-2.7", line 995, in <module> sys.exit(main()) File "/usr/bin/virt-install-2.7", line 975, in main conn = cli.getConnection(options.connect) File "/usr/lib64/python2.7/site-packages/virtinst/cli.py", line 327, in getConnection conn = open_connection(uri) File "/usr/lib64/python2.7/site-packages/virtinst/cli.py", line 342, in open_connection open_flags) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 102, in openAuth if ret is None:raise libvirtError(''virConnectOpenAuth() failed'') libvirtError: no connection driver available for No connection for URI (null)> then perhaps > /proc/xen is not mounted.I think it is mounted: # ls /proc/xen/ capabilities privcmd xenbus -- Flavio _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Flavio
2011-Oct-04 15:58 UTC
Re: [Xen-users] Problem creating a domU using virt-install: --connect issue
On 4 October 2011 17:47, Scott Meyers <scottmeyers@live.com> wrote:> It seems that libvirt is not compiled properly with xen support. Did you > compile and install Libvirt in a xen environment ( I meant while running > xen Dom0 kernel) or on a non-xen kernel?Yes, you are right. Actually I compiled and installed libvirt running xen dom0 kernel but I can''t add the xen USE flag to that package i.e.: echo "app-emulation/libvirt xen" >> /etc/portage/package.use because for some reason, that use flag has been disabled: [ebuild R ~] app-emulation/libvirt-0.9.3-r1 USE="json libvirtd lxc nls policykit python udev -avahi -caps -debug -iscsi -lvm -macvtap -nfs -numa -openvz -parted -pcap -phyp -qemu -sasl (-selinux) -uml -virt-network -virtualbox (-xen)" As you can see the xen USE flag is between "(" and ")", so the echo command above is not effective.> Also, you are better off using the command "xm create -c GUEST" > > There are many tutorials about how to create a new GUEST on the Internet. > Google :-)Yes, but it''s a shame that most of the times there is something that doesn''t work either becouse of an outdated guide or for some error in the guides themselves. Google is my best friend and I talk with him every day (especially before asking here). ;-) Thanks a lot! -- Flavio _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Flavio
2011-Oct-04 19:25 UTC
Re: [Xen-users] Problem creating a domU using virt-install: --connect issue
I''ve found this bug report: https://bugs.gentoo.org/show_bug.cgi?id=379815 This explains why I can''t compile libvirt with the USE flag xen. A bug is going to be fixed. I have to find an alternative to create domUs. For instance a CentOS domU. Most of the instructions I''ve read didn''t help me. On 4 October 2011 21:03, Scott Meyers <scottmeyers@live.com> wrote:> From my humble experience, never re/compile Kernel-xen or xen or any of its > required applications such as qemu and libvert while running Kernel-xen. > Switch to and load a non-kernel-xen and re/compile kernel-xen xen, libvirt, > etc...OK, I''ve done it, but I think it doesn''t make any difference in my case.> > Make sure you get a clean (error free) compile/installation of kernel-xen, > xen, libvirtd and qemu in a non-xen environment. You should be good to go.I''ve never received any kernel/package compilation error. We, Gentoo users, are used to compile everything on our Linux boxes!> If you don''t want to do any of that manually, go to: > http://www.crc.id.au/xen-on-rhel6-scientific-linux-6-centos-6-howto/Well, this seems to be a tailored made guide for those users that want to fully setup a dom0. I need something for domUs. Thanks, -- Flavio _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Flavio
2011-Oct-04 21:04 UTC
Re: [Xen-users] Problem creating a domU using virt-install: --connect issue
On 4 October 2011 22:46, Scott Meyers <scottmeyers@live.com> wrote:> I thought you were using CentOS powered server.No problem!> Are you trying to create "CentOS" DomU GUEST on top of a Gentoo Dom0?Yes.> I am not familiar with Gentoo. I created CentOS v5.7 and 6.0 on top of a my > CentOS Dom0.I think it should be the same thing apart from the fact that I can''t use virt-install on Gentoo now.> I was also able to install Ubuntu v11.04 DomU GUEST on top of > CentOS Dom0. So, I have 3 DomUs with 3 different OSs running on CentOS Dom0.Instead, I only have a Debian domU and Gentoo domU. I use .img files. How do you think I can setup an Ubuntu or CentOS domU in some alternate way than virt-install? I always used debootstrap for debian and the classic installation mode for Gentoo (manual). -- Flavio _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Flavio
2011-Oct-06 19:57 UTC
Re: [Xen-users] Problem creating a domU using virt-install: --connect issue
On 4 October 2011 23:04, Flavio <fbcyborg@gmail.com> wrote:> Instead, I only have a Debian domU and Gentoo domU. > I use .img files. How do you think I can setup an Ubuntu or CentOS domU in some > alternate way than virt-install?I''ve never used XCP, but I''ve got an idea. I''ve read the following at the XCP site: Improved Linux guest support: Ubuntu templates, Fedora 13/Red Hat Enterprise Linux (RHEL) 6 templates, RHEL / CentOS / Oracle Enterprise Linux versions 5.0 to 5.5 support with a generic "RHEL 5" template. To what template does it refers to? Is this template good for creating a domU, for instance a CentOS domU? In this case it would be useful to install XCP in a virtual environment and get this template. Finally, it could be used on my XEN installation to setup domUs. Did I say something impossible? Thanks, -- Flavio _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Flavio
2011-Oct-07 07:33 UTC
Re: [Xen-users] Problem creating a domU using virt-install: --connect issue
On 7 October 2011 02:11, Scott Meyers <scottmeyers@live.com> wrote:> > I wish I were of more help to you. I have never used Gentoo. I googled and > found few articles on how to create CentoOS DomU on Ubuntu.Please, could you paste their urls here? -- Flavio _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Flavio
2011-Oct-07 15:06 UTC
Re: [Xen-users] Problem creating a domU using virt-install: --connect issue
On 7 October 2011 16:49, Scott Meyers <scottmeyers@live.com> wrote: OK,> http://ubuntuforums.org/showthread.php?t=630886I''ve already seen that. It uses lvm partitions but I am using simple .img files.> http://www.howtoforge.com/create-centos5.2-domu-on-ubuntu-hardy-dom0I''ve seen that too. Anyway it is obsolete. jailtime, i.e. stacklet.com gives img files only paying. Really sad.> http://www.howtoforge.com/perfect_xen_setup_debian_ubuntuThis is good, but it''s too simple! :-) I mean that installing Debian or Gentoo guest, is very simple. Actually I already have them as domU. It is simple because you can use debootstrap. If something analogous would exist for other distribution, it would be all more simple.> http://wiki.kartbuilding.net/index.php/Create_Centos5_DomU_on_Debian_Etch_Dom0Same as the second link. Stacklet.com wants the img files to be paid for download. Anyway, thank you so much for your interest. Regards, -- Flavio _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users