Error: internal error no supported architecture for os type 'hvm'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi everyone, I think maybe I found a bug because I updated all the nova packages and I still have the issue, here are the packages I have:
nova-api_
-rw-r--r-- 1 root root 24528 2011-07-01 17:12 nova-common_
-rw-r--r-- 1 root root 9768 2011-07-01 17:12 nova-compute_
-rw-r--r-- 1 root root 1794284 2011-07-01 17:12 nova-doc_
-rw-r--r-- 1 root root 11094 2011-07-01 17:12 nova-network_
-rw-r--r-- 1 root root 9868 2011-07-01 17:12 nova-objectstor
-rw-r--r-- 1 root root 9542 2011-07-01 17:12 nova-scheduler_
The problem is that I can't launch instances, when I try to launch a new instance I get the following error in nova-compute.log:
2011-07-01 18:43:08,309 DEBUG nova.rpc [-] unpacked context: {'timestamp': u'2011-
2011-07-01 18:43:08,360 AUDIT nova.compute.
2011-07-01 18:43:08,460 DEBUG nova.rpc [-] Making asynchronous call on network ... from (pid=1811) multicall /usr/lib/
2011-07-01 18:43:08,460 DEBUG nova.rpc [-] MSG_ID is 69e816d625cb4c0
2011-07-01 18:43:08,951 DEBUG nova.compute.
2011-07-01 18:43:08,967 DEBUG nova.utils [-] Attempting to grab semaphore "ensure_bridge" for method "ensure_bridge"... from (pid=1811) inner /usr/lib/
2011-07-01 18:43:08,967 DEBUG nova.utils [-] Attempting to grab file lock "ensure_bridge" for method "ensure_bridge"... from (pid=1811) inner /usr/lib/
2011-07-01 18:43:08,968 DEBUG nova.utils [-] Running cmd (subprocess): ip link show dev br100 from (pid=1811) execute /usr/lib/
2011-07-01 18:43:09,195 DEBUG nova.virt.
2011-07-01 18:43:09,273 DEBUG nova.virt.
2011-07-01 18:43:09,274 INFO nova [-] called setup_basic_
2011-07-01 18:43:09,276 INFO nova [-] ensuring static filters
2011-07-01 18:43:09,299 DEBUG nova.virt.
2011-07-01 18:43:09,299 DEBUG nova.utils [-] Attempting to grab semaphore "iptables" for method "_do_refresh_
2011-07-01 18:43:09,300 DEBUG nova.utils [-] Attempting to grab file lock "iptables" for method "_do_refresh_
2011-07-01 18:43:09,303 DEBUG nova.utils [-] Attempting to grab semaphore "iptables" for method "apply"... from (pid=1811) inner /usr/lib/
2011-07-01 18:43:09,303 DEBUG nova.utils [-] Attempting to grab file lock "iptables" for method "apply"... from (pid=1811) inner /usr/lib/
2011-07-01 18:43:09,304 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-save -t filter from (pid=1811) execute /usr/lib/
2011-07-01 18:43:09,332 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-restore from (pid=1811) execute /usr/lib/
2011-07-01 18:43:09,361 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-save -t nat from (pid=1811) execute /usr/lib/
2011-07-01 18:43:09,395 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-restore from (pid=1811) execute /usr/lib/
2011-07-01 18:43:09,465 DEBUG nova.utils [-] Attempting to grab semaphore "iptables" for method "apply"... from (pid=1811) inner /usr/lib/
2011-07-01 18:43:09,466 DEBUG nova.utils [-] Attempting to grab file lock "iptables" for method "apply"... from (pid=1811) inner /usr/lib/
2011-07-01 18:43:09,466 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-save -t filter from (pid=1811) execute /usr/lib/
2011-07-01 18:43:09,496 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-restore from (pid=1811) execute /usr/lib/
2011-07-01 18:43:09,532 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-save -t nat from (pid=1811) execute /usr/lib/
2011-07-01 18:43:09,573 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-restore from (pid=1811) execute /usr/lib/
2011-07-01 18:43:09,614 DEBUG nova.utils [-] Running cmd (subprocess): mkdir -p /var/lib/
2011-07-01 18:43:09,631 INFO nova.virt.
2011-07-01 18:43:09,650 DEBUG nova.utils [-] Attempting to grab semaphore "00000002" for method "call_if_
2011-07-01 18:43:09,651 DEBUG nova.utils [-] Running cmd (subprocess): cp /var/lib/
2011-07-01 18:43:09,764 DEBUG nova.utils [-] Attempting to grab semaphore "00000003" for method "call_if_
2011-07-01 18:43:09,767 DEBUG nova.utils [-] Running cmd (subprocess): cp /var/lib/
2011-07-01 18:43:09,857 DEBUG nova.utils [-] Attempting to grab semaphore "356a192b7913b0
2011-07-01 18:43:09,858 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img create -f qcow2 -o cluster_
2011-07-01 18:43:09,997 ERROR nova.exception [-] Uncaught exception
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: domain = self._create_
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: domain = self._conn.
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: if ret is None:raise libvirtError(
(nova.exception): TRACE: libvirtError: internal error no supported architecture for os type 'hvm'
(nova.exception): TRACE:
2011-07-01 18:43:10,027 ERROR nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
2011-07-01 18:43:10,621 INFO nova.compute.
2011-07-01 18:43:10,658 INFO nova.compute.
2011-07-01 18:43:10,658 INFO nova.compute.
I went to /var/lib/
<domain type='kvm'>
<name>
<memory>
<os>
</os>
<features>
<acpi/>
</features>
<vcpu>1</vcpu>
<devices>
<disk type='file'>
<driver type='qcow2'/>
<source file='/
<target dev='vda' bus='virtio'/>
</disk>
<interface type='bridge'>
<source bridge='br100'/>
<mac address=
<!-- <model type='virtio'/> CANT RUN virtio network right now -->
<!-- The order is significant here. File must be defined first -->
<serial type="file">
<source path='/
<target port='1'/>
</serial>
<console type='pty' tty='/dev/pts/2'>
<source path='/dev/pts/2'/>
<target port='0'/>
</console>
<serial type='pty'>
<source path='/dev/pts/2'/>
<target port='0'/>
</serial>
<graphics type='vnc' port='-1' autoport='yes' keymap='en-us' listen='0.0.0.0'/>
</devices>
</domain>
After googling a little I tried this modification:
<type arch="i686"
with this modification I executed: "virsh create libvirt.xml" and the domain was successfully created. I'm not sure if this is a bug or not but I post it anyway :)
Cheers
Diego
This is the error you get with KVM when running on unsupported hardware. You need a VT-enabled processor to use KVM, and make sure that virtualization is enabled in the BIOS. The "kvm-ok" command on Ubuntu can help you in troubleshooting that.