[Pkg-libvirt-maintainers] Bug#579146: samples

IAN DELANEY johneed at hotmail.com
Mon Apr 26 08:19:16 UTC 2010


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

 		 	   		  
_________________________________________________________________
View photos of singles in your area! Looking for a hot date?
http://clk.atdmt.com/NMN/go/150855801/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20100426/fd5df73e/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tracelog-centos.log
Type: text/x-log
Size: 478516 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20100426/fd5df73e/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tracelog-centos-qemu.log
Type: text/x-log
Size: 478023 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20100426/fd5df73e/attachment-0003.bin>


More information about the Pkg-libvirt-maintainers mailing list