virsh requires arch type
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
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>
<memory>
<os>
<type>hvm</type>
<boot dev='hd'/>
</os>
<devices>
<emulator>
<disk type='file' device='disk'>
<source file='/
<target dev='hda'/>
</disk>
<interface type='bridge'>
<source bridge='br0'/>
<mac address=
</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@
Release: 10.10
vmroot@
libvirt-bin:
Installed: 0.8.3-1ubuntu14
Candidate: 0.8.3-1ubuntu14
Version table:
*** 0.8.3-1ubuntu14 0
500 http://
100 /var/lib/
vmroot@
qemu-kvm:
Installed: 0.12.5+
Candidate: 0.12.5+
Version table:
*** 0.12.5+
500 http://
100 /var/lib/
vmroot@
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@
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>
<cpu>
<
<
<
<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_
<live/>
<
<
</migration
<secmodel>
<
<doi>0</doi>
</secmodel>
</host>
<guest>
<os_
<arch name='i686'>
<
<
<
<machine canonical=
<
<
<
<domain type='qemu'>
</domain>
</arch>
<features>
<
<pae/>
<nonpae/>
<acpi default='on' toggle='yes'/>
<apic default='on' toggle='no'/>
</features>
</guest>
<guest>
<os_
<arch name='x86_64'>
<
<
<
<machine canonical=
<
<
<
<domain type='qemu'>
</domain>
</arch>
<features>
<
<acpi default='on' toggle='yes'/>
<apic default='on' toggle='no'/>
</features>
</guest>
</capabilities>
Seems a config issue, I do not face the problem on another host (identical version).
Issue can be rejected