<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 14 (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:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 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;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@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'>Is libvirt service running ? plz check the status of libvirt service.<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 style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D'>Best Regards,<o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D'>Qiu Zhigang<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-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> openstack-bounces+qiuzhigang=fronware.com@lists.launchpad.net [mailto:openstack-bounces+qiuzhigang=fronware.com@lists.launchpad.net] <b>On Behalf Of </b></span><span style='font-size:10.0pt;font-family:SimSun'>ÍõÅô</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><br><b>Sent:</b> Thursday, August 09, 2012 2:55 PM<br><b>To:</b> openstack@lists.launchpad.net<br><b>Subject:</b> [Openstack] Live Migration with libvirtError<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:0cm;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#333333'>HI everyone,<br>when I test live migration use NFS ,that's my sitting according to<br><a href="http://docs.openstack.org/essex/openstack-compute/admin/content/configuring-live-migrations.html"><span style='color:#0033AA;text-decoration:none'>http://docs.openstack.org/essex/openstack-compute/admin/content/configuring-live-migrations.html</span></a><o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:0cm;line-height:13.5pt;background:white;max-width:45em'><span lang=EN-US style='font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#333333'>1.add this line /var/lib/nova/instances *(rw,sync,fsid=0,no_root_squash) in /etc/exports<br>2.mount -t nfs 172.18.32.7:/var/lib/nova/instances /var/lib/nova/instances at compute<br>and change some setting in libvirt.conf and libvird-bin.conf add a option -l<br>3.restart service<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:0cm;line-height:13.5pt;background:white;max-width:45em'><span lang=EN-US style='font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#333333'>then I create instance in compute node ,find error<br>that's my nova-compute.log as follow:<br>2012-08-09 13:13:03 ERROR nova.manager [-] Error during ComputeManager.update_available_resource: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory<br>2012-08-09 13:13:03 TRACE nova.manager Traceback (most recent call last):<br>2012-08-09 13:13:03 TRACE nova.manager File "/usr/lib/python2.7/dist-packages/nova/manager.py", line 155, in periodic_tasks<br>2012-08-09 13:13:03 TRACE nova.manager task(self, context)<br>2012-08-09 13:13:03 TRACE nova.manager File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2409, in update_available_resource<br>2012-08-09 13:13:03 TRACE nova.manager self.driver.update_available_resource(context, self.host)<br>2012-08-09 13:13:03 TRACE nova.manager File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 1936, in update_available_resource<br>2012-08-09 13:13:03 TRACE nova.manager 'vcpus_used': self.get_vcpu_used(),<br>2012-08-09 13:13:03 TRACE nova.manager File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 1742, in get_vcpu_used<br>2012-08-09 13:13:03 TRACE nova.manager for dom_id in self._conn.listDomainsID():<br>2012-08-09 13:13:03 TRACE nova.manager File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 298, in _get_connection<br>2012-08-09 13:13:03 TRACE nova.manager self.read_only)<br>2012-08-09 13:13:03 TRACE nova.manager File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 341, in _connect<br>2012-08-09 13:13:03 TRACE nova.manager return libvirt.openAuth(uri, auth, 0)<br>2012-08-09 13:13:03 TRACE nova.manager File "/usr/lib/python2.7/dist-packages/libvirt.py", line 102, in openAuth<br>2012-08-09 13:13:03 TRACE nova.manager if ret is None:raise libvirtError('virConnectOpenAuth() failed')<br>2012-08-09 13:13:03 TRACE nova.manager libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory<br>2012-08-09 13:13:03 TRACE nova.manager<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:0cm;line-height:13.5pt;background:white;max-width:45em'><span lang=EN-US style='font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#333333'>what's /var/run/libvirt/libvirt-sock'?<br>why this error?<o:p></o:p></span></p></div></div></body></html>