[Bug 1031063] Re: domain type is always 'kvm', even when kvm is not available

Jamie Strandboge jamie at ubuntu.com
Mon Jul 30 22:03:19 UTC 2012


This may actually be a libvirt bug. Looking at the nova-compute.log, I adjust the uuid and name and have the following xml in /tmp/foo.xml:
<domain type="kvm">
  <uuid>3474184f-57c1-49d1-be61-8fe4ccb34682</uuid>
  <name>foo</name>
  <memory>524288</memory>
  <vcpu>1</vcpu>
  <os>
    <type>hvm</type>
    <boot dev="hd"/>
  </os>
  <features>
    <acpi/>
  </features>
  <clock offset="utc">
    <timer name="pit" tickpolicy="delay"/>
    <timer name="rtc" tickpolicy="catchup"/>
  </clock>
  <devices>
    <disk type="file" device="disk">
      <driver type="qcow2" cache="none"/>
      <source file="/var/lib/nova/instances/instance-00000012/disk"/>
      <target bus="virtio" dev="vda"/>
    </disk>
    <interface type="bridge">
      <mac address="fa:16:3e:71:49:da"/>
      <model type="virtio"/>
      <source bridge="br100"/>
      <filterref filter="nova-instance-instance-00000012-fa163e7149da">
        <parameter name="IP" value="10.0.0.4"/>
        <parameter name="DHCPSERVER" value="10.0.0.3"/>
        <parameter name="PROJNET" value="10.0.0.0"/>
        <parameter name="PROJMASK" value="255.255.255.0"/>
      </filterref>
    </interface>
    <serial type="file">
      <source path="/var/lib/nova/instances/instance-00000012/console.log"/>
    </serial>
    <serial type="pty"/>
    <input type="tablet" bus="usb"/>
    <graphics type="vnc" autoport="yes" keymap="en-us" listen="127.0.0.1"/>
  </devices>
</domain>

Using 'virsh define /tmp/foo.xml' on 12.04 it works. On 12.10 it does not:
$ virsh define /tmp/foo.xml 
error: Failed to define domain from /tmp/foo.xml
error: internal error no supported architecture for os type 'hvm'

If I change this:
<type>hvm</type>

to:
<type arch='x86_64'>hvm</type>

It works:
$ virsh define /tmp/foo.xml 
Domain foo defined from /tmp/foo.xml

It seems libvirt wants the 'arch' defined when specifying 'hvm'.

** Also affects: libvirt (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/1031063

Title:
  domain type is always 'kvm', even when kvm is not available

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1031063/+subscriptions



More information about the Ubuntu-server-bugs mailing list