[Pkg-libvirt-maintainers] Bug#661849: Bug#661849: virsh capabilities

Guido Günther agx at sigxcpu.org
Thu Apr 12 18:04:28 UTC 2012


Hi Zak,
On Thu, Apr 12, 2012 at 12:50:05AM +0800, Zak B. Elep wrote:
> Just ran across this while trying out libvirt on Xen for squeeze,
> setting up a new VM via either virtinst or virt-manager fails due to
> missing /usr/lib64/xen (which can be worked around by symlinking to
> /usr/lib64/xen-4.0).

Thanks for your feedback. Is there also a /usr/lib64/xen-default? Having
the version numbers in there is a recipe for disaster. If so I'd cook up
a patch for libvirt. I think virtinst should pick up the path from there
then.
I don't have a xen system here but the search on packages.debian.org
doesn't show a package containing /usr/lib64/xen-4.0/bin/qemu-dm in sid.
Cheers,
 -- Guido

> 
> Anyhow, here's my `virsh --connect xen:/// capabilities' on a 2-core
> squeeze machine:
> 
> <capabilities>
> 
> <host>
> <cpu>
> <arch>x86_64</arch>
> <features>
> <pae/>
> </features>
> </cpu>
> <migration_features>
> <live/>
> <uri_transports>
> <uri_transport>xenmigr</uri_transport>
> </uri_transports>
> </migration_features>
> <topology>
> <cells num='1'>
> <cell id='0'>
> <cpus num='2'>
> <cpu id='0'/>
> <cpu id='1'/>
> </cpus>
> </cell>
> </cells>
> </topology>
> </host>
> 
> <guest>
> <os_type>xen</os_type>
> <arch name='x86_64'>
> <wordsize>64</wordsize>
> <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
> <machine>xenpv</machine>
> <domain type='xen'>
> </domain>
> </arch>
> </guest>
> 
> <guest>
> <os_type>xen</os_type>
> <arch name='i686'>
> <wordsize>32</wordsize>
> <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
> <machine>xenpv</machine>
> <domain type='xen'>
> </domain>
> </arch>
> <features>
> <pae/>
> </features>
> </guest>
> 
> <guest>
> <os_type>hvm</os_type>
> <arch name='i686'>
> <wordsize>32</wordsize>
> <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
> <loader>/usr/lib/xen-default/boot/hvmloader</loader>
> <machine>xenfv</machine>
> <domain type='xen'>
> </domain>
> </arch>
> <features>
> <pae/>
> <nonpae/>
> <acpi default='on' toggle='yes'/>
> <apic default='on' toggle='yes'/>
> </features>
> </guest>
> 
> <guest>
> <os_type>hvm</os_type>
> <arch name='x86_64'>
> <wordsize>64</wordsize>
> <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
> <loader>/usr/lib/xen-default/boot/hvmloader</loader>
> <machine>xenfv</machine>
> <domain type='xen'>
> </domain>
> </arch>
> <features>
> <acpi default='on' toggle='yes'/>
> <apic default='on' toggle='yes'/>
> </features>
> </guest>
> 
> </capabilities>
> 
> Note however, that on a successful virt-install creation, the
> emulator used is on /usr/lib/xen-4.0 . Here's `virsh dumpxml' for a
> debian-unstable VM running on the same squeeze Xen host:
> 
> <domain type='xen' id='5'>
> <name>debian-unstable</name>
> <uuid>5addd29e-e793-50e9-4e9c-15b3af29472a</uuid>
> <memory>1048576</memory>
> <currentMemory>1048576</currentMemory>
> <vcpu>1</vcpu>
> <bootloader></bootloader>
> <os>
> <type>linux</type>
> <kernel>/var/lib/xen/virtinst-vmlinuz.9ajPka</kernel>
> <initrd>/var/lib/xen/virtinst-initrd.gz.rqIu73</initrd>
> <cmdline>method=http://mirror/debian/dists/unstable/main/installer-amd64</cm
> dline>
> </os>
> <clock offset='utc'/>
> <on_poweroff>destroy</on_poweroff>
> <on_reboot>destroy</on_reboot>
> <on_crash>destroy</on_crash>
> <devices>
> <emulator>/usr/lib/xen-4.0/bin/qemu-dm</emulator>
> <disk type='file' device='disk'>
> <driver name='file'/>
> <devices>
> <emulator>/usr/lib/xen-4.0/bin/qemu-dm</emulator>
> <disk type='file' device='disk'>
> <driver name='file'/>
> <source file='/var/lib/libvirt/images/vm-storage/debian-unstable.img'/>
> <target dev='xvda' bus='xen'/>
> </disk>
> <interface type='bridge'>
> <mac address='00:16:36:14:7c:a3'/>
> <source bridge='br0'/>
> <script path='/etc/xen/scripts/vif-bridge'/>
> <target dev='vif5.0'/>
> </interface>
> <console type='pty' tty='/dev/pts/1'>
> <source path='/dev/pts/1'/>
> <target type='xen' port='0'/>
> </console>
> <input type='mouse' bus='xen'/>
> <graphics type='vnc' port='5900' autoport='yes' keymap='en-us'/>
> </devices>
> </domain>
> 
> 
> 
> 
> _______________________________________________
> Pkg-libvirt-maintainers mailing list
> Pkg-libvirt-maintainers at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-libvirt-maintainers
> 





More information about the Pkg-libvirt-maintainers mailing list