virsh requires arch type

Bug #665180 reported by osallou
6
This bug affects 1 person
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>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@genokvm1:/etc/libvirt$ lsb_release -r
Release: 10.10

vmroot@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@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@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@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>

Revision history for this message
osallou (olivier-sallou) wrote :

Seems a config issue, I do not face the problem on another host (identical version).

Issue can be rejected

Revision history for this message
Mathias Gug (mathiaz) wrote :

Marking bug invalid as suggested by the reporter.

Changed in libvirt (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.