libvirtError: internal error cannot determine default video type

Bug #749973 reported by guanxiaohua2k6
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Chuck Short

Bug Description

I've tried lxc using the latest version. But the following error occured.

2011-04-04 14:49:37,294 DEBUG nova.utils [-] Running cmd (subprocess): sudo umount /dev/nbd12 from (pid=4511) execute /usr/lib/pymodules/python2.6/nova/utils.py:150
2011-04-04 14:49:39,557 DEBUG nova.utils [-] Running cmd (subprocess): rmdir /tmp/tmpYcjnnJ from (pid=4511) execute /usr/lib/pymodules/python2.6/nova/utils.py:150
2011-04-04 14:49:39,645 DEBUG nova.utils [-] Running cmd (subprocess): sudo qemu-nbd -d /dev/nbd12 from (pid=4511) execute /usr/lib/pymodules/python2.6/nova/utils.py:150
2011-04-04 14:49:39,704 DEBUG nova.utils [-] Running cmd (subprocess): sudo qemu-nbd -c /dev/nbd12 /var/lib/nova/instances/instance-00000003/disk from (pid=4511) execute /usr/lib/pymodules/python2.6/nova/utils.py:150
2011-04-04 14:49:39,766 DEBUG nova.utils [-] Running cmd (subprocess): sudo mount /dev/nbd12 /var/lib/nova/instances/instance-00000003//rootfs from (pid=4511) execute /usr/lib/pymodules/python2.6/nova/utils.py:150
2011-04-04 14:49:40,007 ERROR nova.exception [-] Uncaught exception
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/exception.py", line 120, in _wrap
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 569, in spawn
(nova.exception): TRACE: self._conn.createXML(xml, 0)
(nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/libvirt.py", line 1358, in createXML
(nova.exception): TRACE: if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
(nova.exception): TRACE: libvirtError: internal error cannot determine default video type
(nova.exception): TRACE:
2011-04-04 14:49:40,032 ERROR nova.compute.manager [AG3PDCOKNXK2ZD2U4954 anne IRT] Instance '3' failed to spawn. Is virtualization enabled in the BIOS?
(nova.compute.manager): TRACE: Traceback (most recent call last):
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/compute/manager.py", line 234, in run_instance
(nova.compute.manager): TRACE: self.driver.spawn(instance_ref)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/exception.py", line 126, in _wrap
(nova.compute.manager): TRACE: raise Error(str(e))
(nova.compute.manager): TRACE: Error: internal error cannot determine default video type
(nova.compute.manager): TRACE:
2011-04-04 14:49:41,131 INFO nova.compute.manager [-] Found instance 'instance-00000003' in DB but no VM. State=8, so setting state to shutoff.
2011-04-04 14:49:41,132 INFO nova.compute.manager [-] DB/VM state mismatch. Changing state from '8' to '5'

The version I used is 2011.2~bzr932-0ubuntu0ppa1~maverick1.

Related branches

Revision history for this message
Thierry Carrez (ttx) wrote :

Yes, I hit that one as well, on Natty.

Changed in nova:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Please try adding:

lxc.cgroup.devices.allow = b 43:* rwm

to the container's config file, and let us know if that works.

Revision history for this message
guanxiaohua2k6 (guanxiaohua2k6) wrote :

I've tried, but it failed again. Maybe I made a mistake on the place of config file. Could you tell me where is the config file? and after make a change, does it need to restart some service?

Thanks.

Revision history for this message
Chuck Short (zulcss) wrote :

This is due to the fact that lxc is trying to use vnc by default which is not supported by LXC, ill have a fix shortly.

chuck

Changed in nova:
assignee: nobody → Chuck Short (zulcss)
Thierry Carrez (ttx)
Changed in nova:
status: Confirmed → In Progress
Thierry Carrez (ttx)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → 2011.2
status: Fix Committed → Fix Released
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.