[one-users] kvm instance doesn't start because machine type isn't set

Shankhadeep Shome shank15217 at gmail.com
Sun Oct 28 20:50:32 PDT 2012


The XML file created by opennebula seems to fail on ubuntu 12.04

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
        <name>one-1</name>
        <vcpu>2</vcpu>
        <cputune>
                <shares>2048</shares>
        </cputune>
        <memory>2097152</memory>
        <os>
                <type arch='x86_64'>hvm</type>
                <boot dev='hd'/>
        </os>
        <devices>
                <emulator>/usr/bin/kvm</emulator>
                <disk type='file' device='disk'>
                        <source file='/var/lib/one//datastores/0/1/disk.0'/>
                        <target dev='vda'/>
                        <driver name='qemu' type='qcow2' cache='default'/>
                </disk>
                <interface type='bridge'>
                        <source bridge='br0'/>
                        <mac address='02:00:0a:01:0b:56'/>
                        <model type='virtio'/>
                </interface>
                <graphics type='vnc' listen='0.0.0.0' port='5901'/>
                <input type='tablet' bus='usb'/>
        </devices>
        <features>
                <acpi/>
        </features>

</domain>


i have to add

<os>
           <type arch='x86_64' *machine='pc'*>hvm</type>
           <boot dev='hd'/>
</os>

to make it boot properly. This wasn't an issue before and I am not sure
what changed but it seems to me the machine type should be specified for
correctness. KVM already sets pc to the latest version by default
migrations may fail if the machine types weren't specified anyways.

Shank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121028/af21b709/attachment.htm>


More information about the Users mailing list