Comment 7 for bug 1009974

Revision history for this message
Hokuto Hoshi (hok-kanny) wrote :

Hi,

I had the same problem, and I couldn't solve it by above ways (remove double quote and add live_migration_flag in nova.conf).

VM (on Host1 ) -> Host2
Host1's ip address is 192.168.0.1
Host2's ip address is 192.168.0.2

I set the configuration of VNC in nova.conf as below:
# on Host1
vncserver_proxyclient_address=192.168.0.1
vncserver_listen=192.168.0.1

# on Host2
vncserver_proxyclient_address=192.168.0.2
vncserver_listen=192.168.0.2

I got traffic logs of libvirt between servers and found the xml file and the entry of VNC settings that is transferred before migration.
It is maybe invalid because it still contains the ip address of Host1. I think it should contain the ip address of Host2.

    <graphics type='vnc' port='5900' autoport='yes' listen='192.168.0.1' keymap='ja'>
      <listen type='address' address='192.168.0.1'/>
    </graphics>

So, I changed nova.conf on Host1 and Host2:
# on Host1
vncserver_proxyclient_address=192.168.0.1
vncserver_listen=0.0.0.0

# on Host2
vncserver_proxyclient_address=192.168.0.2
vncserver_listen=0.0.0.0

After change, I restarted nova-compute, relaunched instances and tried live-migration. VNC and live-migration worked fine.