Hello ,all<br>first ,let me introduce my develop environment:<br>I have a computer with following lshw information <br><br><span style="background-color:rgb(204,204,204)"> *-cpu<br>      description: CPU<br>      product: AMD FX(tm)-6100 Six-Core Processor<br>

      vendor: Hynix Semiconductor (Hyundai Electronics)<br>      physical id: 4<br>      bus info: cpu@0<br>      version: AMD FX(tm)-6100 Six-Core Processor<br>      slot: Socket M2<br>      size: 1400MHz<br>      capacity: 1400MHz<br>

      width: 64 bits<br>      clock: 200MHz<br> *-memory<br>      description: System Memory<br>      physical id: 29<br>      slot: System board or motherboard<br>      size: 16GiB</span><br>Then ,I installed ubuntu1204 LTS . <br>

Then,I started 3 VMs with virt-manager as my OpenStack testing cluster.I named the 3VMs as<b> os0</b> <b>,os1</b> and<b> os2</b>.<br>I installed<b> cloud controller on os0</b> ,and <b>nova-compute on both os1 and os2</b>.<br>

<br>I set up all the live-migration preparations instructed <br>here:<br><a href="http://docs.openstack.org/trunk/openstack-compute/admin/content/configuring-live-migrations.html" target="_blank">http://docs.openstack.org/trunk/openstack-compute/admin/content/configuring-live-migrations.html</a> <br>

<div><br>and here:<br><a href="https://help.ubuntu.com/community/SettingUpNFSHowTo" target="_blank">https://help.ubuntu.com/community/SettingUpNFSHowTo</a> <br><br>BTW:I found some error in the document ,<br><br>Update the libvirt configurations. Modify /etc/libvirt/libvirt.conf:<br>

<br>before : #listen_tls = 0<br>after : listen_tls = 0<br><br>before : #listen_tcp = 1<br>after : listen_tcp = 1<br><br>add: auth_tcp = "none"</div><div><br></div><div>here ,we should update the configuration file 
/etc/libvirt/<b>libvirtd</b>.conf ,not 
/etc/libvirt/libvirt.conf </div><div><br></div><div>After all are set ,I just use the command "<b>nova live-migration vm1 os2</b>",here the vm1 is an instance running currently on <b>os1</b> and I wanted it to be migrated to<b> os2</b><br>

<br>the command returned without any error or infor.I guess it indicated the migration is done correctly .But I check the vm1 with "nova show vm1",it is still running on <b>os1</b>!</div><div>I checked the nova-compte.log file on both os1 and os2,and found the following live_migration related<b> </b>entries  :</div>

<div><br><br><div><font style="background-color:rgb(204,204,204)">2012-05-28 10:26:39 DEBUG nova.rpc.amqp [-] received {u'_context_roles': [u'admin'], u'_msg_id': u'89dfda33bb7b4dd29d93867aaf1460ec', u'_context_read_deleted':</font></div>

<div><font style="background-color:rgb(204,204,204)">u'no', u'_context_request_id': u'req-f1415f26-f19e-4499-aa24-22e47b586378', u'args': {u'instance_id': 15, u'block_migration': False, u'disk': None}, u'_context_</font></div>

<div><font style="background-color:rgb(204,204,204)">auth_token': '<SANITIZED>', u'_context_is_admin': True, u'_context_project_id': u'7fa3accbd2b543a2a59c5249b8d07281', u'_context_timestamp': u'2012-05-28T02:26:3</font></div>

<div><font style="background-color:rgb(204,204,204)">9.026426', u'_context_user_id': u'297ad61b9a67448186c08729ab0f1971', u'method': <b>u'pre_live_migration</b>', u'_context_remote_address': u'192.168.0.221'} from (pid=7</font></div>

<div><font style="background-color:rgb(204,204,204)">290) _safe_log /usr/lib/python2.7/dist-packages/nova/rpc/common.py:160</font></div><div><font style="background-color:rgb(204,204,204)"><br></font></div><div><font style="background-color:rgb(204,204,204)"><br>

</font></div><div><font style="background-color:rgb(204,204,204)">2012-05-28 11:22:09 DEBUG nova.service [-] <b>live_migration_retry_count </b>: 30 from (pid=16393) wait /usr/lib/python2.7/dist-packages/nova/service.py:411</font></div>

<div><font style="background-color:rgb(204,204,204)"><br></font></div><div><font style="background-color:rgb(204,204,204)">2012-05-28 11:22:09 DEBUG nova.service [-] <b>live_migration_uri </b>: qemu+tcp://%s/system from (pid=16393) wait /usr/lib/python2.7/dist-packages/nova/service.py:411</font></div>

<div><font style="background-color:rgb(204,204,204)"><br></font></div><div><font style="background-color:rgb(204,204,204)">2012-05-28 11:22:09 DEBUG nova.service [-] <b>live_migration_bandwidth </b>: 0 from (pid=16393) wait /usr/lib/python2.7/dist-packages/nova/service.py:411</font></div>

<div><br></div><div><br></div>I didn't see any error  in these log files.</div><div><br></div><div>Then I checked the<b> /var/log/libvirt/libvirtd.log</b> on both os1 and os2.and found the following.</div><div><br></div>

<div><div><span style="background-color:rgb(204,204,204)">2012-05-28 02:56:14.310+0000: 9481: error : virExecWithHook:328 : Cannot find 'pm-is-supported' in path: No such file or directory</span></div><div><span style="background-color:rgb(204,204,204)">2012-05-28 02:56:14.310+0000: 9481: warning : qemuCapsInit:856 : Failed to get host power management capabilities</span></div>

<div><span style="background-color:rgb(204,204,204)">2012-05-28 02:56:14.514+0000: 9480: error : virExecWithHook:328 : Cannot find 'pm-is-supported' in path: No such file or directory</span></div><div><span style="background-color:rgb(204,204,204)">2012-05-28 02:56:14.515+0000: 9480: warning : qemuCapsInit:856 : Failed to get host power management capabilities</span></div>

<div><span style="background-color:rgb(204,204,204)">2012-05-28 02:56:14.719+0000: 9482: error : virExecWithHook:328 : Cannot find 'pm-is-supported' in path: No such file or directory</span></div><div><span style="background-color:rgb(204,204,204)">2012-05-28 02:56:14.719+0000: 9482: warning : qemuCapsInit:856 : Failed to get host power management capabilities</span></div>

<div><span style="background-color:rgb(204,204,204)">2012-05-28 02:56:14.943+0000: 9484: error : virExecWithHook:328 : Cannot find 'pm-is-supported' in path: No such file or directory</span></div><div><span style="background-color:rgb(204,204,204)">2012-05-28 02:56:14.944+0000: 9484: warning : qemuCapsInit:856 : Failed to get host power management capabilities</span></div>

<div><span style="background-color:rgb(204,204,204)">2012-05-28 02:56:15.155+0000: 9481: error : virExecWithHook:328 : Cannot find 'pm-is-supported' in path: No such file or directory</span></div><div><span style="background-color:rgb(204,204,204)">2012-05-28 02:56:15.155+0000: 9481: warning : qemuCapsInit:856 : Failed to get host power management capabilities</span></div>

<div><span style="background-color:rgb(204,204,204)">2012-05-28 02:58:55.330+0000: 13514: info : libvirt version: 0.9.8</span></div><div><span style="background-color:rgb(204,204,204)">2012-05-28 02:58:55.330+0000: 13514: error : qemuMonitorIORead:513 : Unable to read from monitor: Connection reset by peer</span></div>

<div><span style="background-color:rgb(204,204,204)">2012-05-28 03:02:15.618+0000: 13518: error : qemuMonitorOpenUnix:295 : failed to connect to monitor socket: No such process</span></div><div><span style="background-color:rgb(204,204,204)">2012-05-28 03:02:15.618+0000: 13518: error : qemuProcessWaitForMonitor:1301 : internal error process exited while connecting to monitor: char device re</span></div>

<div><span style="background-color:rgb(204,204,204)">to /dev/pts/3</span></div><div><span style="background-color:rgb(204,204,204)"><font color="#ff6666">inet_listen_opts: bind(ipv4,192.168.0.205,5900): Cannot assign requested address</font></span></div>

<div><span style="background-color:rgb(204,204,204)"><font color="#ff6666">inet_listen_opts: FAILED</font></span></div></div><div><br></div><div>Please note the above ,the last two lines I marked as red ,I googled the error ,and do found something maybe related  here :</div>

<div><a href="https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=703851" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=703851</a>
</div><div><br></div><div>I know the <span style="background-color:rgb(204,204,204);color:rgb(255,102,102)">inet_listen_opts: bind error </span>maybe related to my VNC settings in<b> /etc/nova/nova.conf</b>,So I just commented all the vnc related lines in /etc/nova/nova.conf</div>

<div>Then I run the </div><div> "<b>nova live-migration vm1 os2</b>" again ,and "tail -f /var/log/nova/nova-compute.log" to both os1 and os2.I found the the folloing:</div><div><br></div><div><div><span style="background-color:rgb(204,204,204)">2012-05-28 03:21:02.700+0000: 8872: error : virNetSocketReadWire:996 : End of file while reading data: Input/output error</span></div>

<div><span style="background-color:rgb(204,204,204)">2012-05-28 03:21:02.700+0000: 8872: error : virNetSocketReadWire:996 : End of file while reading data: Input/output error</span></div><div><span style="background-color:rgb(204,204,204)">2012-05-28 03:23:06.551+0000: 8879: error : virNetDevGetIndex:656 : Unable to get index for interface vnet0: No such device</span></div>

<div><span style="background-color:rgb(204,204,204)">2012-05-28 03:24:36.992+0000: 8875: error : virNetClientProgramDispatchError:174 : Unable to read from monitor: Connection reset by peer</span></div></div><div><span style="background-color:rgb(204,204,204)"><br>

</span></div>note that the previous inet_listen_opts:bind error is not showing this time ,but I got something new as above.<div><br></div><div><br></div><div>Well ,these are all problems I met.And here is my question :</div>

<div>1.Are these libvirt related  problems showing only because I am testing them on a "virtual "environment? I mean ,maybe I should buy some more physical computer?</div><div>2.If not ,what should I do with this ? Did anyone else get the same problem as I did?.</div>

<div>Please help me ,thank you very much in advance!</div><div><br></div><div><br></div><div><br></div><div>Eric Luo</div><div>2012-05-28</div><div><br></div><div><br></div>