[Pkg-libvirt-maintainers] Bug#623956: Bug#623956: Invokes wrong qemu command for foreign architecture
Ben Hutchings
ben at decadent.org.uk
Mon Apr 25 13:15:48 UTC 2011
On Mon, 2011-04-25 at 10:15 +0200, Guido Günther wrote:
> On Sun, Apr 24, 2011 at 08:20:01PM +0100, Ben Hutchings wrote:
> > Package: libvirt-bin
> > Version: 0.9.0-1
> > Severity: important
> >
> > libvirt invokes 'kvm' even for virtualisation type 'qemu'. In
> > virt-manager, creating an emulated ARM system fails with the error
> > messages:
>
> This could very well be an issue in virt-manager itself. Could you
> attache the output of "virt-manager --no-fork --debug" while creating
> the new vm?
Yes, it looks like you are right:
2011-04-25 14:12:56,291 (virt-manager:175): Application startup
2011-04-25 14:12:56,292 (virt-manager:363): Launched as: /usr/share/virt-manager/virt-manager.py --no-fork --debug
2011-04-25 14:12:56,292 (virt-manager:364): GTK version: (2, 24, 4)
2011-04-25 14:12:56,406 (config:34): Error importing spice: No module named SpiceClientGtk
2011-04-25 14:12:56,545 (engine:338): About to connect to uris ['qemu:///system']
2011-04-25 14:12:56,622 (engine:464): window counter incremented to 1
2011-04-25 14:12:56,666 (connection:905): Scheduling background open thread for qemu:///system
2011-04-25 14:12:56,671 (connection:1065): Background thread is running
2011-04-25 14:12:56,678 (connection:1093): Background open thread complete, scheduling notify
2011-04-25 14:12:56,739 (connection:1098): Notifying open result
2011-04-25 14:12:57,186 (connection:1105): qemu:///system capabilities:
<capabilities>
<host>
<uuid>fea9f481-4930-11cb-976f-d941abfd1664</uuid>
<cpu>
<arch>x86_64</arch>
<model>n270</model>
<vendor>Intel</vendor>
<topology sockets='1' cores='2' threads='1'/>
<feature name='lahf_lm'/>
<feature name='lm'/>
<feature name='xtpr'/>
<feature name='cx16'/>
<feature name='tm2'/>
<feature name='est'/>
<feature name='vmx'/>
<feature name='ds_cpl'/>
<feature name='pbe'/>
<feature name='tm'/>
<feature name='ht'/>
<feature name='ss'/>
<feature name='acpi'/>
<feature name='ds'/>
<feature name='pse36'/>
</cpu>
<migration_features>
<live/>
<uri_transports>
<uri_transport>tcp</uri_transport>
</uri_transports>
</migration_features>
</host>
<guest>
<os_type>hvm</os_type>
<arch name='i686'>
<wordsize>32</wordsize>
<emulator>/usr/bin/qemu</emulator>
<machine>pc-0.14</machine>
<machine canonical='pc-0.14'>pc</machine>
<machine>pc-0.13</machine>
<machine>pc-0.12</machine>
<machine>pc-0.11</machine>
<machine>pc-0.10</machine>
<machine>isapc</machine>
<domain type='qemu'>
</domain>
<domain type='kvm'>
<emulator>/usr/bin/kvm</emulator>
<machine>pc-0.14</machine>
<machine canonical='pc-0.14'>pc</machine>
<machine>pc-0.13</machine>
<machine>pc-0.12</machine>
<machine>pc-0.11</machine>
<machine>pc-0.10</machine>
<machine>isapc</machine>
</domain>
</arch>
<features>
<cpuselection/>
<deviceboot/>
<pae/>
<nonpae/>
<acpi default='on' toggle='yes'/>
<apic default='on' toggle='no'/>
</features>
</guest>
<guest>
<os_type>hvm</os_type>
<arch name='x86_64'>
<wordsize>64</wordsize>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<machine>pc-0.14</machine>
<machine canonical='pc-0.14'>pc</machine>
<machine>pc-0.13</machine>
<machine>pc-0.12</machine>
<machine>pc-0.11</machine>
<machine>pc-0.10</machine>
<machine>isapc</machine>
<domain type='qemu'>
</domain>
<domain type='kvm'>
<emulator>/usr/bin/kvm</emulator>
<machine>pc-0.14</machine>
<machine canonical='pc-0.14'>pc</machine>
<machine>pc-0.13</machine>
<machine>pc-0.12</machine>
<machine>pc-0.11</machine>
<machine>pc-0.10</machine>
<machine>isapc</machine>
</domain>
</arch>
<features>
<cpuselection/>
<deviceboot/>
<acpi default='on' toggle='yes'/>
<apic default='on' toggle='no'/>
</features>
</guest>
<guest>
<os_type>hvm</os_type>
<arch name='arm'>
<wordsize>32</wordsize>
<emulator>/usr/bin/qemu-system-arm</emulator>
<machine>integratorcp</machine>
<machine>syborg</machine>
<machine>musicpal</machine>
<machine>mainstone</machine>
<machine>n800</machine>
<machine>n810</machine>
<machine>cheetah</machine>
<machine>sx1</machine>
<machine>sx1-v1</machine>
<machine>tosa</machine>
<machine>akita</machine>
<machine>spitz</machine>
<machine>borzoi</machine>
<machine>terrier</machine>
<machine>connex</machine>
<machine>verdex</machine>
<machine>lm3s811evb</machine>
<machine>lm3s6965evb</machine>
<machine>realview-eb</machine>
<machine>realview-eb-mpcore</machine>
<machine>realview-pb-a8</machine>
<machine>realview-pbx-a9</machine>
<machine>versatilepb</machine>
<machine>versatileab</machine>
<domain type='qemu'>
</domain>
</arch>
<features>
<deviceboot/>
</features>
</guest>
<guest>
<os_type>hvm</os_type>
<arch name='mips'>
<wordsize>32</wordsize>
<emulator>/usr/bin/qemu-system-mips</emulator>
<machine>malta</machine>
<machine>mipssim</machine>
<machine>magnum</machine>
<machine>pica61</machine>
<machine>mips</machine>
<domain type='qemu'>
</domain>
</arch>
<features>
<deviceboot/>
</features>
</guest>
<guest>
<os_type>hvm</os_type>
<arch name='mipsel'>
<wordsize>32</wordsize>
<emulator>/usr/bin/qemu-system-mipsel</emulator>
<machine>malta</machine>
<machine>mipssim</machine>
<machine>magnum</machine>
<machine>pica61</machine>
<machine>mips</machine>
<domain type='qemu'>
</domain>
</arch>
<features>
<deviceboot/>
</features>
</guest>
<guest>
<os_type>hvm</os_type>
<arch name='sparc'>
<wordsize>32</wordsize>
<emulator>/usr/bin/qemu-system-sparc</emulator>
<machine>SS-5</machine>
<machine>leon3_generic</machine>
<machine>SS-10</machine>
<machine>SS-600MP</machine>
<machine>SS-20</machine>
<machine>Voyager</machine>
<machine>LX</machine>
<machine>SS-4</machine>
<machine>SPARCClassic</machine>
<machine>SPARCbook</machine>
<machine>SS-1000</machine>
<machine>SS-2000</machine>
<machine>SS-2</machine>
<domain type='qemu'>
</domain>
</arch>
</guest>
<guest>
<os_type>hvm</os_type>
<arch name='ppc'>
<wordsize>32</wordsize>
<emulator>/usr/bin/qemu-system-ppc</emulator>
<machine>g3beige</machine>
<machine>virtex-ml507</machine>
<machine>mpc8544ds</machine>
<machine canonical='bamboo-0.13'>bamboo</machine>
<machine>bamboo-0.13</machine>
<machine>bamboo-0.12</machine>
<machine>ref405ep</machine>
<machine>taihu</machine>
<machine>mac99</machine>
<machine>prep</machine>
<domain type='qemu'>
</domain>
</arch>
<features>
<deviceboot/>
</features>
</guest>
</capabilities>
2011-04-25 14:12:57,223 (connection:1278): Connection doesn't seem to support interface APIs. Skipping all interface polling.
2011-04-25 14:12:57,368 (connection:545): Connection managed save support: True
2011-04-25 14:12:57,472 (connection:207): Using HAL for netdev enumeration
2011-04-25 14:12:57,474 (connection:244): Using libvirt API for mediadev enumeration
2011-04-25 14:13:00,635 (create:743): Guest type set to os_type=hvm, arch=x86_64, dom_type=kvm
2011-04-25 14:13:12,493 (config:661): get_default_directory(media): returning /home/ben/tmp
2011-04-25 14:13:19,543 (config:669): set_default_directory(media): saving /home/ben/tmp
2011-04-25 14:13:28,253 (DistroInstaller:125): DistroInstaller location is a local file/path: /home/ben/tmp/debian-6.0.1a-armel-netinst.iso
2011-04-25 14:13:46,770 (create:743): Guest type set to os_type=hvm, arch=x86_64, dom_type=qemu
2011-04-25 14:13:48,586 (create:743): Guest type set to os_type=hvm, arch=arm, dom_type=qemu
2011-04-25 14:14:06,126 (create:1551): Creating a VM sid-arm
Type: qemu,hvm
UUID: e43e5fef-d3b9-0347-3b17-e73020fcc281
Install Source: /home/ben/tmp/debian-6.0.1a-armel-netinst.iso
OS: linux:debiansqueeze
Kernel args: None
Memory: 512
Max Memory: 512
# VCPUs: 1
Filesize: 1.0
2011-04-25 14:14:08,483 (engine:464): window counter incremented to 2
2011-04-25 14:14:12,861 (engine:468): window counter decremented to 1
2011-04-25 14:14:12,878 (create:1637): Starting background install process
2011-04-25 14:14:13,035 (Guest:1221): Generated install XML:
<domain type='qemu'>
<name>sid-arm</name>
<currentMemory>524288</currentMemory>
<memory>524288</memory>
<uuid>e43e5fef-d3b9-0347-3b17-e73020fcc281</uuid>
<os>
<type arch='arm'>hvm</type>
<boot dev='cdrom'/>
<boot dev='hd'/>
</os>
<features>
<acpi/><apic/><pae/>
</features>
<clock offset="utc"/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
<vcpu>1</vcpu>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/var/lib/libvirt/images/sid-arm.img'/>
<target dev='hda' bus='ide'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu'/>
<source file='/home/ben/tmp/debian-6.0.1a-armel-netinst.iso'/>
<target dev='hdc' bus='ide'/>
<readonly/>
</disk>
<interface type='network'>
<source network='default'/>
<mac address='52:54:00:d0:60:73'/>
</interface>
<input type='tablet' bus='usb'/>
<graphics type='vnc' port='-1'/>
<console type='pty'/>
<sound model='ich6'/>
<video>
<model type='cirrus'/>
</video>
</devices>
</domain>
2011-04-25 14:14:13,035 (Guest:1222): Generated boot XML:
<domain type='qemu'>
<name>sid-arm</name>
<currentMemory>524288</currentMemory>
<memory>524288</memory>
<uuid>e43e5fef-d3b9-0347-3b17-e73020fcc281</uuid>
<os>
<type arch='arm'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/><apic/><pae/>
</features>
<clock offset="utc"/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<vcpu>1</vcpu>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/var/lib/libvirt/images/sid-arm.img'/>
<target dev='hda' bus='ide'/>
</disk>
<disk type='block' device='cdrom'>
<target dev='hdc' bus='ide'/>
<readonly/>
</disk>
<interface type='network'>
<source network='default'/>
<mac address='52:54:00:d0:60:73'/>
</interface>
<input type='tablet' bus='usb'/>
<graphics type='vnc' port='-1'/>
<console type='pty'/>
<sound model='ich6'/>
<video>
<model type='cirrus'/>
</video>
</devices>
</domain>
2011-04-25 14:14:13,583 (error:66): dialog message: Unable to complete install: 'internal error Process exited while reading console log output: Supported machines are:
pc Standard PC (alias of pc-0.14)
pc-0.14 Standard PC (default)
pc-0.13 Standard PC
pc-0.12 Standard PC
pc-0.11 Standard PC, qemu 0.11
pc-0.10 Standard PC, qemu 0.10
isapc ISA-only PC
' : Unable to complete install: 'internal error Process exited while reading console log output: Supported machines are:
pc Standard PC (alias of pc-0.14)
pc-0.14 Standard PC (default)
pc-0.13 Standard PC
pc-0.12 Standard PC
pc-0.11 Standard PC, qemu 0.11
pc-0.10 Standard PC, qemu 0.10
isapc ISA-only PC
'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/create.py", line 1643, in do_install
guest.start_install(False, meter=meter)
File "/usr/lib/pymodules/python2.6/virtinst/Guest.py", line 1186, in start_install
start_xml, final_xml, is_initial)
File "/usr/lib/pymodules/python2.6/virtinst/Guest.py", line 1245, in _create_guest
dom = self.conn.createLinux(start_xml or final_xml, 0)
File "/usr/lib/python2.6/dist-packages/libvirt.py", line 1446, in createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: internal error Process exited while reading console log output: Supported machines are:
pc Standard PC (alias of pc-0.14)
pc-0.14 Standard PC (default)
pc-0.13 Standard PC
pc-0.12 Standard PC
pc-0.11 Standard PC, qemu 0.11
pc-0.10 Standard PC, qemu 0.10
isapc ISA-only PC
2011-04-25 14:14:21,493 (engine:468): window counter decremented to 0
2011-04-25 14:14:21,496 (engine:477): Exiting app normally.
--
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20110425/6f417c3e/attachment.pgp>
More information about the Pkg-libvirt-maintainers
mailing list