[Bug 665180] [NEW] virsh requires arch type
osallou
665180 at bugs.launchpad.net
Fri Oct 22 16:57:20 BST 2010
Public bug reported:
Binary package hint: libvirt-bin
I used virsh to deploy a new VM.
It appears that xml deployment file require the arch type to be set . If not set, the VM cannot be deployed.
Identical deployment file on a CentOS with older virsh version (qemu 0.12, libvirt 0.6) successfuly deployed the same VM with same deployment file.
Original deployment file:
<domain type='kvm'>
<name>one-14</name>
<memory>1048576</memory>
<os>
<type>hvm</type>
<boot dev='hd'/>
</os>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='file' device='disk'>
<source file='/tmp/disk.0'/>
<target dev='hda'/>
</disk>
<interface type='bridge'>
<source bridge='br0'/>
<mac address='00:03:00:00:00:05'/>
</interface>
</devices>
<features>
<acpi/>
</features>
</domain>
This config raise the error:
internal error no supported architecture for os type 'hvm'
Changing:
<os>
<type>hvm</type>
To:
<os>
<type arch='x86_64' >hvm</type>
fix the issue.
It seems that virsh does not detect the default config to use as before.
I join below system and package configuration:
vmroot at genokvm1:/etc/libvirt$ lsb_release -r
Release: 10.10
vmroot at genokvm1:/etc/libvirt$ apt-cache policy libvirt-bin
libvirt-bin:
Installed: 0.8.3-1ubuntu14
Candidate: 0.8.3-1ubuntu14
Version table:
*** 0.8.3-1ubuntu14 0
500 http://us.archive.ubuntu.com/ubuntu/ maverick/main amd64 Packages
100 /var/lib/dpkg/status
vmroot at genokvm1:/etc/libvirt$ apt-cache policy qemu-kvm
qemu-kvm:
Installed: 0.12.5+noroms-0ubuntu7
Candidate: 0.12.5+noroms-0ubuntu7
Version table:
*** 0.12.5+noroms-0ubuntu7 0
500 http://us.archive.ubuntu.com/ubuntu/ maverick/main amd64 Packages
100 /var/lib/dpkg/status
vmroot at genokvm1:/etc/libvirt$ virsh version
Compiled against library: libvir 0.8.3
Using library: libvir 0.8.3
Using API: QEMU 0.8.3
Running hypervisor: QEMU 0.12.5
vmroot at genokvm1:/etc/libvirt$ kvm -cpu '?'
x86 qemu64
x86 phenom
x86 core2duo
x86 kvm64
x86 qemu32
x86 coreduo
x86 486
x86 pentium
x86 pentium2
x86 pentium3
x86 athlon
x86 n270
<capabilities>
<host>
<uuid>44454c4c-4600-1035-8048-c6c04f57344a</uuid>
<cpu>
<arch>x86_64</arch>
<model>Nehalem</model>
<vendor>Intel</vendor>
<topology sockets='2' cores='4' threads='2'/>
<feature name='rdtscp'/>
<feature name='pdpe1gb'/>
<feature name='dca'/>
<feature name='xtpr'/>
<feature name='tm2'/>
<feature name='est'/>
<feature name='vmx'/>
<feature name='ds_cpl'/>
<feature name='monitor'/>
<feature name='pbe'/>
<feature name='tm'/>
<feature name='ht'/>
<feature name='ss'/>
<feature name='acpi'/>
<feature name='ds'/>
<feature name='vme'/>
</cpu>
<migration_features>
<live/>
<uri_transports>
<uri_transport>tcp</uri_transport>
</uri_transports>
</migration_features>
<secmodel>
<model>apparmor</model>
<doi>0</doi>
</secmodel>
</host>
<guest>
<os_type>hvm</os_type>
<arch name='i686'>
<wordsize>32</wordsize>
<emulator>/usr/bin/qemu</emulator>
<machine>pc-0.12</machine>
<machine canonical='pc-0.12'>pc</machine>
<machine>pc-0.11</machine>
<machine>pc-0.10</machine>
<machine>isapc</machine>
<domain type='qemu'>
</domain>
</arch>
<features>
<cpuselection/>
<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.12</machine>
<machine canonical='pc-0.12'>pc</machine>
<machine>pc-0.11</machine>
<machine>pc-0.10</machine>
<machine>isapc</machine>
<domain type='qemu'>
</domain>
</arch>
<features>
<cpuselection/>
<acpi default='on' toggle='yes'/>
<apic default='on' toggle='no'/>
</features>
</guest>
</capabilities>
** Affects: libvirt (Ubuntu)
Importance: Undecided
Status: New
--
virsh requires arch type
https://bugs.launchpad.net/bugs/665180
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in ubuntu.
More information about the Ubuntu-server-bugs
mailing list