Permission denied when launching instance in Openstack
You can download this article in PDF format via the link below to support us.Download the guide in PDF formatClose
While building Openstack Lab, I happened to encounter an error message, just like I saw in the log file.tail -f /var/log/nova/nova-compute.log
[[email protected] ~(keystone)]# tail -f /var/log/nova/nova-compute.log
2016-03-21 22:05:34.283 1228 ERROR oslo_messaging.rpc.dispatcher rv = meth(*args, **kwargs)
2016-03-21 22:05:34.283 1228 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1059, in createWithFlags
2016-03-21 22:05:34.283 1228 ERROR oslo_messaging.rpc.dispatcher if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)
2016-03-21 22:05:34.283 1228 ERROR oslo_messaging.rpc.dispatcher libvirtError: internal error: process exited while connecting to monitor: 2016-03-22T02:05:33.427711Z qemu-kvm: -chardev file,id=charserial0,path=/var/lib/nova/instances/0b79cc65-c530-4e55-99b8-157524033d14/console.log: Could not open '/var/lib/nova/instances/0b79cc65-c530-4e55-99b8-157524033d14/console.log': Permission denied
This error occurred when trying to start an instance created earlier.
nova start 0b79cc65-c530-4e55-99b8-157524033d14
Obviously, I encountered some problems when manually starting the kvm machine, so I used the /etc/libvirt/qemu.conf file
user="qemu" group="qemu" dynamic_ownership =0
To prevent this error, please revert the changes to:
systemctl stop libvirtd
Edit the qemu.conf file:
sudo vim /etc/libvirt/qemu.conf
Set the following
user="nova" group="nova" dynamic_ownership =1
Save the file and restart the libvirt daemon
systemctl restart libvirtd
You should now be able to launch Openstack Instance on the compute node.
You can download this article in PDF format via the link below to support us.Download the guide in PDF formatClose