<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Yong,<div>as you may understand, the chmod 777 is not the best thing to do.</div><div>it looks like the files belong to the user root, while it's the user nova which runs the cloud.</div><div><br></div><div>The first thing to do is to give the rights to the user nova of the directory (755) to nova:nova.</div><div>Thanks!</div><div><br></div><div><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Helvetica; "><b style="color: rgb(19, 112, 138); ">Nuage & Co - Razique Mahroua</b></span><span class="Apple-style-span" style="color: rgb(19, 112, 138); font-family: Helvetica; "><b> </b></span><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-weight: normal; font-style: normal; "><font class="Apple-style-span" color="#13708a"><a href="mailto:razique.mahroua@gmail.com">razique.mahroua@gmail.com</a></font></div></span><br class="Apple-interchange-newline"><span></span><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-weight: normal; font-style: normal; "></span><span style="color: rgb(0, 0, 0); font-weight: normal; "></span></span><span><img height="125" width="125" id="84c5f013-abd3-4098-bf17-d3a0c0510fd8" apple-width="yes" apple-height="yes" src="cid:00E07450-433E-43E6-9005-48B8FD5C669F@la.fabrique"></span>
</span></span></span></div>
<br><div><div>Le 29 mars 2012 à 09:50, Yong Sheng Gong a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>I have to run chmod 777 /var/lib/nova/instances/instance-00000007 to start the vm on kvm. Appreciate any help from stackers. <br><br><ul><li>HostA ( 192.168.1.90): redhat 6.1 nfs4</li></ul>/etc/exports:<br><div style="margin-left: 40px;">/var/lib/nova/instances 192.168.1.0/24(rw,sync,fsid=0,no_root_squash)<br></div><br>/etc/idmapd:<br><div style="margin-left: 40px;">[General]<br>Domain = openstack<br></div><br>#service nfs restart<br>#service rpcidmapd restart<br><br><ul><li>HostB ( 192.168.1.94): ubuntu 11.10</li></ul>#sudo bash<br><br>/etc/idmapd:<br><div style="margin-left: 40px;">[General]<br><br>Verbosity = 0<br>Pipefs-Directory = /var/lib/nfs/rpc_pipefs<br>Domain = openstack<br></div>/etc/fstab:<br><div style="margin-left: 40px;">192.168.1.90:/ /var/lib/nova/instances nfs4 defaults 0 0<br></div><br>#mount -a -v<br>root@openubuntu:/var/lib/nova/instances/instance-00000007# ll<br>total 14168<br>drwxr-xr-x 2 root   root       4096 2012-03-29 14:23 ./<br>drwxr-xr-x 9 nobody nogroup    4096 2012-03-29 14:21 ../<br>-rw-rw---- 1 root   root          0 2012-03-29 14:17 console.log<br>-rw-r--r-- 1 root   root    6291968 2012-03-29 14:18 disk<br>-rw-r--r-- 1 root   root    4404752 2012-03-29 14:18 kernel<br>-rw-r--r-- 1 root   root       1619 2012-03-29 14:17 libvirt.xml<br>-rw-r--r-- 1 root   root    5882349 2012-03-29 14:18 ramdisk<br>root@openubuntu:/var/lib/nova/instances/instance-00000007# virsh start instance-00000007<br>error: Failed to start domain instance-00000007<br>error: internal error Process exited while reading console log output: chardev: opening backend "file" failed<br><br>root@openubuntu:/var/lib/nova/instances/instance-00000007# chmod 777 console.log<br>root@openubuntu:/var/lib/nova/instances/instance-00000007# virsh start instance-00000007<br>error: Failed to start domain instance-00000007<br>error: internal error Process exited while reading console log output: char device redirected to /dev/pts/3<br>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<br><br>root@openubuntu:/var/lib/nova/instances/instance-00000007# chmod 777 *<br>root@openubuntu:/var/lib/nova/instances/instance-00000007# virsh start instance-00000007<br>Domain instance-00000007 started<br><br><br>Thanks<br>Yong Sheng Gong<br></div><div><br></div></font>
<br>

_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></blockquote></div><br></div></body></html>