I have to run chmod 777 /var/lib/nova/instances/instance-00000007 to start the vm on kvm. Appreciate any help from stackers.
/etc/idmapd:
#service nfs restart
#service rpcidmapd restart
/etc/idmapd:
#mount -a -v
root@openubuntu:/var/lib/nova/instances/instance-00000007# ll
total 14168
drwxr-xr-x 2 root root 4096 2012-03-29 14:23 ./
drwxr-xr-x 9 nobody nogroup 4096 2012-03-29 14:21 ../
-rw-rw---- 1 root root 0 2012-03-29 14:17 console.log
-rw-r--r-- 1 root root 6291968 2012-03-29 14:18 disk
-rw-r--r-- 1 root root 4404752 2012-03-29 14:18 kernel
-rw-r--r-- 1 root root 1619 2012-03-29 14:17 libvirt.xml
-rw-r--r-- 1 root root 5882349 2012-03-29 14:18 ramdisk
root@openubuntu:/var/lib/nova/instances/instance-00000007# virsh start instance-00000007
error: Failed to start domain instance-00000007
error: internal error Process exited while reading console log output: chardev: opening backend "file" failed
root@openubuntu:/var/lib/nova/instances/instance-00000007# chmod 777 console.log
root@openubuntu:/var/lib/nova/instances/instance-00000007# virsh start instance-00000007
error: Failed to start domain instance-00000007
error: internal error Process exited while reading console log output: char device redirected to /dev/pts/3
kvm: -drive file=/var/lib/nova/instances/instance-00000007/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none: could not open disk image /var/lib/nova/instances/instance-00000007/disk: Permission denied
root@openubuntu:/var/lib/nova/instances/instance-00000007# chmod 777 *
root@openubuntu:/var/lib/nova/instances/instance-00000007# virsh start instance-00000007
Domain instance-00000007 started
Thanks
Yong Sheng Gong
- HostA ( 192.168.1.90): redhat 6.1 nfs4
/var/lib/nova/instances 192.168.1.0/24(rw,sync,fsid=0,no_root_squash)
/etc/idmapd:
[General]
Domain = openstack
Domain = openstack
#service nfs restart
#service rpcidmapd restart
- HostB ( 192.168.1.94): ubuntu 11.10
/etc/idmapd:
[General]
Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = openstack
/etc/fstab:Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = openstack
192.168.1.90:/ /var/lib/nova/instances nfs4 defaults 0 0
#mount -a -v
root@openubuntu:/var/lib/nova/instances/instance-00000007# ll
total 14168
drwxr-xr-x 2 root root 4096 2012-03-29 14:23 ./
drwxr-xr-x 9 nobody nogroup 4096 2012-03-29 14:21 ../
-rw-rw---- 1 root root 0 2012-03-29 14:17 console.log
-rw-r--r-- 1 root root 6291968 2012-03-29 14:18 disk
-rw-r--r-- 1 root root 4404752 2012-03-29 14:18 kernel
-rw-r--r-- 1 root root 1619 2012-03-29 14:17 libvirt.xml
-rw-r--r-- 1 root root 5882349 2012-03-29 14:18 ramdisk
root@openubuntu:/var/lib/nova/instances/instance-00000007# virsh start instance-00000007
error: Failed to start domain instance-00000007
error: internal error Process exited while reading console log output: chardev: opening backend "file" failed
root@openubuntu:/var/lib/nova/instances/instance-00000007# chmod 777 console.log
root@openubuntu:/var/lib/nova/instances/instance-00000007# virsh start instance-00000007
error: Failed to start domain instance-00000007
error: internal error Process exited while reading console log output: char device redirected to /dev/pts/3
kvm: -drive file=/var/lib/nova/instances/instance-00000007/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none: could not open disk image /var/lib/nova/instances/instance-00000007/disk: Permission denied
root@openubuntu:/var/lib/nova/instances/instance-00000007# chmod 777 *
root@openubuntu:/var/lib/nova/instances/instance-00000007# virsh start instance-00000007
Domain instance-00000007 started
Thanks
Yong Sheng Gong
_______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp