<br><br><div class="gmail_quote">2012/12/6 Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 12/05/2012 12:05 PM, zhijun liu wrote:<br>
> hi,all<br>
><br>
> when I try to migrate `vm0` from (192.168.1.102) to another<br>
> host(192.168.1.200), the name `ubuntu1204` is 192.168.1.200's hostname.<br>
><br>
> command is :<br>
><br>
> `sudo virsh migrate  --live vm0 qemu+tcp://<a href="http://192.168.1.200/system`" target="_blank">192.168.1.200/system`</a><br>
><br>
> the error is : unable to connect to server at 'ubuntu1204:49157':<br>
> Connection refused.<br>
<br>
</div>Indeed, when using native migration, you have to open a rather large<br>
range of ports that qemu might want to use.<br>
<br>
<a href="http://wiki.libvirt.org/page/FAQ#What_setup_is_required_for_QEMU.2FKVM_migration.3F" target="_blank">http://wiki.libvirt.org/page/FAQ#What_setup_is_required_for_QEMU.2FKVM_migration.3F</a><br>
<div class="im"><br>
><br>
> however,when I try to virsh connect  to 192.168.1.200 by tcp is no problem.<br>
<br>
</div><a href="http://libvirt.org/migration.html" target="_blank">http://libvirt.org/migration.html</a> gives more details on how to do live<br>
migration; in particular, you may want to try using --p2p to avoid<br>
having to open any ports for qemu.<br>
<div class="im"><br>
><br>
> I dont know what the port 49157?how to fix it?<br>
<br>
</div>Otherwise, figure out how to add open ports to your firewall; but as I'm<br>
not an Ubuntu user, I can't really say how to do that on your system.<br></blockquote><div><br></div><div>thanks, Blake. when I using --p2p ,the problem still exsit.</div><div>at the same time,another question is why the content of  error  " unable to connect to server at 'ubuntu1204:49157':" displayed hostname 'ubuntu1204' instead of  ip '192.168.1.200'.   beause I try to ping hostname `ubuntu1204` ,show `ping: unknown host ubuntu1204` ,only support ping `ip`.</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
><br>
> version:libvirt:0.9.8<br>
> system:ubuntu1204<br>
><br>
> thanks in advance for any reply.<br>
><br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Eric Blake   eblake redhat com    +1-919-301-3266<br>
Libvirt virtualization library <a href="http://libvirt.org" target="_blank">http://libvirt.org</a><br>
<br>
</font></span></blockquote></div><br>