qemu error: chardev opening backend file failed

asked 2012-04-13 19:52:45 -0600

sumit-sngpt gravatar image

Instantiation failing with Qemu error "internal error Process exited while reading console log output: chardev: opening backend "file" failed". Does it any permission issue?


2012-04-13 19:39:58 DEBUG nova.utils [req-85fd790e-fdad-4496-9295-cc2037857704 31713aa0b6e3496cb43a48c4f654c03d 89f940ceb1c847dab0134a30b5ff5629] Running cmd (subprocess): qemu-img create -f qcow2 -o cluster_size=2M,backing_file=/home/sumitsen/openstack/nova/instances/_base/b32d67e926138471cb0af63eb128961e27ec17f9 /home/sumitsen/openstack/nova/instances/instance-0000000d/disk from (pid=857) execute /home/sumitsen/openstack/nova/app/nova/utils.py:220 libvir: QEMU error : internal error Process exited while reading console log output: chardev: opening backend "file" failed 2012-04-13 19:39:59 ERROR nova.compute.manager [req-85fd790e-fdad-4496-9295-cc2037857704 31713aa0b6e3496cb43a48c4f654c03d 89f940ceb1c847dab0134a30b5ff5629] [instance: 8f547416-17d0-4482-8b09-b559d41355bf] Instance failed to spawn 2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] Traceback (most recent call last): 2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] File "/home/sumitsen/openstack/nova/app/nova/compute/manager.py", line 594, in _spawn 2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] self._legacy_nw_info(network_info), block_device_info) 2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] File "/home/sumitsen/openstack/nova/app/nova/exception.py", line 113, in wrapped 2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] return f(args, *kw) 2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] File "/home/sumitsen/openstack/nova/app/nova/virt/libvirt/connection.py", line 898, in spawn 2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] self._create_new_domain(xml) 2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] File "/home/sumitsen/openstack/nova/app/nova/virt/libvirt/connection.py", line 1713, in _create_new_domain 2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] domain.createWithFlags(launch_flags) 2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] File "/usr/lib64/python2.6/site-packages/libvirt.py", line 541, in createWithFlags 2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self) 2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] libvirtError: internal error Process exited while reading console log output: chardev: opening backend "file" failed


[sumitsen@sorrygate-dr DevstackPy]$ ll ~/openstack/nova/instances/instance-0000000d/ total 4108 -rw-rw---- 1 root root 0 Apr 13 19:39 console.log -rw-r--r-- 1 root root 8388608 Apr 13 19:39 disk -rw-r--r-- 1 root root 1192 Apr 13 19:39 libvirt.xml

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-06-20 04:12:56 -0600

willierjyt gravatar image

have you ever resolved it ? i encounter the same error .here is my question https://answers.launchpad.net/nova/+question/231056 (https://answers.launchpad.net/nova/+q...) please give me some advice.

please.

edit flag offensive delete link more
0

answered 2012-04-14 01:54:29 -0600

gongysh gravatar image

one of solutions is to see Linux process capabilities part of http://libvirt.org/drvqemu.html and make libvirtd run instance under root user another way out is to see what user your QEMU bin process will run with and then allow this user to have needed pessimisms to this file.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-04-13 19:52:45 -0600

Seen: 96 times

Last updated: Jun 20 '13