#579146 libvirt0 0.8.0-1 doesn't allow cdrom install for xen via virt-manager

Package:
libvirt0
Source:
libvirt
Description:
library for interfacing with different virtualization systems
Submitter:
IAN DELANEY
Date:
2010-05-13 00:30:03 UTC
Severity:
important
#579146#5
Date:
2010-04-26 02:10:39 UTC
From:
To:
nvoke virt-manager within xen.  select new vm
2.Choose any system on cdrom dvd.  Enter info.  finish
3.There it is

Actual results:
See https://bugzilla.redhat.com/attachment.cgi?id=408783

Expected results:
Install a new vm

Additional info:


This goes all the way back to libvirt.org.
See http://bugs.gentoo.org/show_bug.cgi?id=305821.

Looking at it again, I should have entered it under libvirt.  It's the same
bug.
Gentoo are sitting on their hands.  Not replying.
Ubuntu has a slight variation on the same package, also can't do an install
from the cdrom

#579146#10
Date:
2010-04-25 20:08:48 UTC
From:
To:
You're again lacking all necessary information. Please read:
	/usr/share/doc/reportbug/HowToReportGoodBugs.txt
Cheers,
 -- Guido

#579146#15
Date:
2010-04-26 05:10:36 UTC
From:
To:
Guido
yes,  I actually missed including the hyperlink.  In fact, I completely slipped up.
Anyway.


Using virt-manager
to install a new xen vm, select the first option, local install media.  This is
the first wizzard screen.

Then move to the second wizzard screen, select the first check box, use CDROM
OR DVD.  (Initially this was my bug, but it resolved, leading to the other
entries.)  This resolved, but it then faulted in a different way -

Progress to the last wizzard screen, under Advanced options, it
fails to offer a selection of paravirt or full virt.
i.e.  There is a drop box or list box for Virt type. The entries paravirt and
full virt are both greyed out.

If the selection is made to finish, it creates the disk image, then presents
the error message failed to install,
in squeze's case:

 error from xen daemon: <Fault 3:

The expected result is to be able to select paravirt or full virt to install and install it.

Generally under xen the full virt option need be made, but both are greyed out.
So this is the essence of the bug.

See Screenshot

See virt-manager log.

See also    http://http://bugs.gentoo.org/show_bug.cgi?id=305821

This is present in all  of squeeze, fedora12 and gentoo. !!!!!

sorry about that Guido.  (no more submissions now)

#579146#20
Date:
2010-04-26 07:35:56 UTC
From:
To:
Are paravirt CDROM installs supported by virt-manager? Where would you
fetch the kernel/initramfs from? If you're using CDROM it will try to
_boot_ from that CDROM which won't work with paravirt.
You reported another bug about HVM installs so IMHO this can't work
until Xen HVM is fixed on Lenny.
Cheers,
 -- Guido

#579146#25
Date:
2010-04-26 08:19:16 UTC
From:
To:
Guido et al.,

In the style of the other one re lvnc console in lenny;
Installing from the cdrom directky through virt-install and removing virt-manager,

We have

.....................................

idella@squeeze:~$ sudo virt-install -c xen -n centos-5.com -w bridge=eth0 -r 300 --os-type=linux --os-variant=generic26 --disk path=/dev/sdb2 --cdrom=/dev/sr1 -v -vnc --arch=x86_64


Starting install...
ERROR    Domain not found: xenUnifiedDomainLookupByName
Domain installation does not appear to have been
 successful.  If it was, you can restart your domain
 by running 'virsh start c'; otherwise, please
 restart your installation.
ERROR    Domain not found: xenUnifiedDomainLookupByName
Traceback (most recent call last):
  File "/usr/bin/virt-install", line 1033, in <module>
    main()
  File "/usr/bin/virt-install", line 915, in main
    start_time, guest.start_install)
  File "/usr/bin/virt-install", line 957, in do_install
    dom = install_func(conscb, progresscb, wait=(not wait))
  File "/usr/lib/pymodules/python2.5/virtinst/Guest.py", line 972, in start_install
    return self._do_install(consolecb, meter, removeOld, wait)
  File "/usr/lib/pymodules/python2.5/virtinst/Guest.py", line 1037, in _do_install
    "install")
  File "/usr/lib/pymodules/python2.5/virtinst/Guest.py", line 1008, in _create_guest
    dom = self.conn.createLinux(start_xml, 0)
  File "/usr/lib/python2.5/site-packages/libvirt.py", line 1190, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: Domain not found: xenUnifiedDomainLookupByName


.....................................................

              so

................................................

idella@squeeze:~$ sudo tail  /var/log/xen/xend.log
Traceback (most recent call last):
  File "/usr/lib/xen-3.4/lib/python/xen/web/SrvBase.py", line 85, in perform
    return op_method(op, req)
  File "/usr/lib/xen-3.4/lib/python/xen/xend/server/SrvDomain.py", line 89, in op_destroy
    return self.xd.domain_destroy(self.dom.domid)
  File "/usr/lib/xen-3.4/lib/python/xen/xend/XendDomain.py", line 1272, in domain_destroy
    dominfo = self.domain_lookup_nr(domid)
  File "/usr/lib/xen-3.4/lib/python/xen/xend/XendDomain.py", line 566, in domain_lookup_nr
    if int(domid) in self.domains:
TypeError: int() argument must be a string or a number, not 'NoneType'

.....................................................


        so, the tools to pin this down.


.........................................................

idella@squeeze:~$ sudo strace -otracelog-centos.log virt-install -c xen -n centos-5.com -w bridge=eth0 -r 300 --os-type=linux --os-variant=generic26 --disk path=/dev/sdb2 --cdrom=/dev/sr1 -v -vnc --arch=x86_64

Starting install...
ERROR    Domain not found: xenUnifiedDomainLookupByName

  File "/usr/lib/pymodules/python2.5/virtinst/Guest.py", line 1008, in _create_guest
    dom = self.conn.createLinux(start_xml, 0)
  File "/usr/lib/python2.5/site-packages/libvirt.py", line 1190, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: Domain not found: xenUnifiedDomainLookupByName

............................................................


              SEE otracelog-centos.log

and, to cross reference with qemu,

................................................

idella@squeeze:~$ sudo strace -otracelog-centos-qemu.log virt-install -c qemu:///system -n centos-5.com -w bridge=eth0 -r 300 --os-type=linux --os-variant=generic26 --disk path=/dev/sdb2 --cdrom=/dev/sr1 -v -vnc --arch=x86_64


Starting install...
ERROR    Domain not found: xenUnifiedDomainLookupByName
Domain installation does not appear to have been
 successful.  If it was, you can restart your domain
 by running 'virsh start c'; otherwise, please
 restart your installation.
ERROR    Domain not found: xenUnifiedDomainLookupByName
Traceback (most recent call last):
  File "/usr/bin/virt-install", line 1033, in <module>
    main()
  File "/usr/bin/virt-install", line 915, in main
    start_time, guest.start_install)
  File "/usr/bin/virt-install", line 957, in do_install
    dom = install_func(conscb, progresscb, wait=(not wait))
  File "/usr/lib/pymodules/python2.5/virtinst/Guest.py", line 972, in start_install
    return self._do_install(consolecb, meter, removeOld, wait)
  File "/usr/lib/pymodules/python2.5/virtinst/Guest.py", line 1037, in _do_install
    "install")
  File "/usr/lib/pymodules/python2.5/virtinst/Guest.py", line 1008, in _create_guest
    dom = self.conn.createLinux(start_xml, 0)
  File "/usr/lib/python2.5/site-packages/libvirt.py", line 1190, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: Domain not found: xenUnifiedDomainLookupByName

..............................................

                See tracelog-centos-qemu.log.   This is unexpected.
Why is a qemu install pulling in  xenUnifiedDomainLookupByName?  I don't know, I hopw someone else does.
It may be correct, but it seems totally out of place.  How would qemu do a hvm install if xen were not installed?
Anyway.

strace logs are no easy reading.  Is there a short route to learning how to read strace??????

Could you please tell me how to utilise dbg   using file command for executable.  I can't figure it out.  I just get no executable file trying to run these libvirt & python scripts through gdb.

I should post all this in gentoo.  It all applies.
  It looks more looks xen-utils, do you think?

#579146#30
Date:
2010-05-13 00:26:04 UTC
From:
To:
Guido,

                          "Are paravirt CDROM installs supported by virt-manager? Where would you
fetch the kernel/initramfs from? If you're using CDROM it will try to
_boot_ from that CDROM which won't work with paravirt."


centos, fedora and suse can do paravirt cdrom installs,  Use debian and it reports installation source unusable.


I worked this to a conclusion, in gentoo where I first found it.  It's virt-manager / virtinst.

Just see https://bugs.gentoo.org/show_bug.cgi?id=305821 and explains  all.  Never mind about hvm in lenny, not part of the bug.

Cheers