Hi,
Try to modify /etc/libvirt/qemu.conf # The user ID for QEMU processes run by the system instance. user = "root" # The group ID for QEMU processes run by the system instance. group = "root" # Whether libvirt should dynamically change file ownership # to match the configured user/group above. Defaults to 1. # Set to 0 to disable file ownership changes. dynamic_ownership = 0 that perhaps works. Romi 发件人: [email protected] [mailto:[email protected]] 代表 Leander Bessa Beernaert 发送时间: 2012年7月4日 星期三 23:49 收件人: Daniel P. Berrange 抄送: [email protected] 主题: Re: [Openstack] [OpenStack][Nova] Live Migration + NFSv4 - Permission issues Can't seem to get around it >.<. Below are the current permissions on the folder in one of the compute nodes. I've already tried chmod o+x /var/lib/nova/instances/ but nothing happend :/ gsd@cloud33:~$ ls -l /var/lib/nova/instances/ total 4 drwxrwxr-x 2 nova nova 4096 Jul 3 13:33 _base gsd@cloud33:~$ ls -l /var/lib/nova/ total 136 drwxr-xr-x 6 nova nova 4096 Jul 3 13:11 CA drwxr-xr-x 2 nova nova 4096 Jun 25 20:11 buckets drwxr-xr-x 2 nova nova 4096 Jun 25 20:11 images drwxr-xr-x 3 nova nova 4096 Jul 4 15:45 instances drwxr-xr-x 2 nova nova 4096 Jun 25 20:11 keys drwxr-xr-x 2 nova nova 4096 Jun 25 20:11 networks -rw------- 1 nova nova 104448 Jul 3 13:13 nova.sqlite drwxr-xr-x 2 nova nova 4096 Jun 25 20:11 tmp On Wed, Jul 4, 2012 at 4:35 PM, Daniel P. Berrange <[email protected]> wrote: On Wed, Jul 04, 2012 at 04:24:42PM +0100, Leander Bessa Beernaert wrote: > Ok. so i have added the option you mentioned, restarted nfs and remounted > on the compute nodes. > > Now i get this error: http://paste.openstack.org/show/19260/ libvirtError: internal error Process exited while reading console log output: chardev: opening backend "file" failed: Permission denied This is an error from QEMU itself. So it shows libvirtd has successfully done its part of the work. Unless you have changed your qemu.conf file, then QEMU will normally run as the 'qemu:qemu' user/group pair. So you should make sure that user account has r-x permission on the directory where the images are stored. QEMU doesn't need write permission on the directory - libvirtd makes sure the files themselves are writable Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
_______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : [email protected] Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp

