<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>

<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=ZH-CN link=blue vlink=purple>

<div class=WordSection1>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Try to modify /etc/libvirt/qemu.conf<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'># The user ID for QEMU processes run by the system instance.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>user = "root"<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'># The group ID for QEMU processes run by the system instance.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>group = "root"<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'># Whether libvirt should dynamically change file ownership<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'># to match the configured user/group above. Defaults to 1.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'># Set to 0 to disable file ownership changes.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>dynamic_ownership = 0<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>that perhaps works.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Romi<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:SimSun'>发件人<span
lang=EN-US>:</span></span></b><span lang=EN-US style='font-size:10.0pt;
font-family:SimSun'>
openstack-bounces+romizhang1968=163.com@lists.launchpad.net [mailto:openstack-bounces+romizhang1968=163.com@lists.launchpad.net]
</span><b><span style='font-size:10.0pt;font-family:SimSun'>代表 </span></b><span
lang=EN-US style='font-size:10.0pt;font-family:SimSun'>Leander Bessa Beernaert<br>
</span><b><span style='font-size:10.0pt;font-family:SimSun'>发送时间<span
lang=EN-US>:</span></span></b><span lang=EN-US style='font-size:10.0pt;
font-family:SimSun'> 2012</span><span style='font-size:10.0pt;font-family:SimSun'>年<span
lang=EN-US>7</span>月<span lang=EN-US>4</span>日 星期三<span
lang=EN-US> 23:49<br>
</span><b>收件人<span lang=EN-US>:</span></b><span
lang=EN-US> Daniel P. Berrange<br>
</span><b>抄送<span lang=EN-US>:</span></b><span lang=EN-US>
openstack@lists.launchpad.net<br>
</span><b>主题<span lang=EN-US>:</span></b><span lang=EN-US> Re:
[Openstack] [OpenStack][Nova] Live Migration + NFSv4 - Permission issues<o:p></o:p></span></span></p>

</div>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Can't seem to get around it >.<.
Below are the current permissions on the folder in one of the compute nodes.<o:p></o:p></span></p>

<div>

<p class=MsoNormal><span lang=EN-US>I've already tried chmod o+x
/var/lib/nova/instances/ but nothing happend :/<o:p></o:p></span></p>

<div>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

</div>

<div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-right:0cm'>

<p class=MsoNormal><span lang=EN-US>gsd@cloud33:~$ ls -l
/var/lib/nova/instances/<br>
total 4<br>
drwxrwxr-x 2 nova nova 4096 Jul  3 13:33 _base<br>
gsd@cloud33:~$ ls -l /var/lib/nova/          <br>
total 136<br>
drwxr-xr-x 6 nova nova   4096 Jul  3 13:11 CA<br>
drwxr-xr-x 2 nova nova   4096 Jun 25 20:11 buckets<br>
drwxr-xr-x 2 nova nova   4096 Jun 25 20:11 images<br>
drwxr-xr-x 3 nova nova   4096 Jul  4 15:45 instances<br>
drwxr-xr-x 2 nova nova   4096 Jun 25 20:11 keys<br>
drwxr-xr-x 2 nova nova   4096 Jun 25 20:11 networks<br>
-rw------- 1 nova nova 104448 Jul  3 13:13 nova.sqlite<br>
drwxr-xr-x 2 nova nova   4096 Jun 25 20:11 tmp<o:p></o:p></span></p>

</blockquote>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<div>

<p class=MsoNormal><span lang=EN-US>On Wed, Jul 4, 2012 at 4:35 PM, Daniel P.
Berrange <<a href="mailto:berrange@redhat.com" target="_blank">berrange@redhat.com</a>>
wrote:<o:p></o:p></span></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US>On Wed, Jul
04, 2012 at 04:24:42PM +0100, Leander Bessa Beernaert wrote:<br>
> Ok. so i have added the option you mentioned, restarted nfs and remounted<br>
> on the compute nodes.<br>
><br>
> Now i get this error: <a href="http://paste.openstack.org/show/19260/"
target="_blank">http://paste.openstack.org/show/19260/</a><o:p></o:p></span></p>

</div>

<p class=MsoNormal><span lang=EN-US>  libvirtError: internal error Process
exited while reading console log output: chardev: opening backend
"file" failed: Permission denied<br>
<br>
<br>
This is an error from QEMU itself. So it shows libvirtd has successfully<br>
done its part of the work. Unless you have changed your qemu.conf file,<br>
then QEMU will normally run as the 'qemu:qemu' user/group pair. So you<br>
should make sure that user account has r-x permission on the directory<br>
where the images are stored. QEMU doesn't need write permission on<br>
the directory - libvirtd makes sure the files themselves are writable<br>
<br>
Regards,<o:p></o:p></span></p>

<div>

<div>

<p class=MsoNormal><span lang=EN-US>Daniel<br>
--<br>
|: <a href="http://berrange.com" target="_blank">http://berrange.com</a>  
   -o-    <a href="http://www.flickr.com/photos/dberrange/"
target="_blank">http://www.flickr.com/photos/dberrange/</a> :|<br>
|: <a href="http://libvirt.org" target="_blank">http://libvirt.org</a>  
           -o-          
  <a href="http://virt-manager.org" target="_blank">http://virt-manager.org</a>
:|<br>
|: <a href="http://autobuild.org" target="_blank">http://autobuild.org</a>
      -o-         <a
href="http://search.cpan.org/~danberr/" target="_blank">http://search.cpan.org/~danberr/</a>
:|<br>
|: <a href="http://entangle-photo.org" target="_blank">http://entangle-photo.org</a>
      -o-       <a
href="http://live.gnome.org/gtk-vnc" target="_blank">http://live.gnome.org/gtk-vnc</a>
:|<o:p></o:p></span></p>

</div>

</div>

</div>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

</div>

</div>

</div>

</body>

</html>