PDA

View Full Version : XEN - cannot connect remotely to VM via Virt Machine Mgr



LarryResch
29-Jul-2015, 20:28
I have moved from KVM on my server (SLES 11 SP3) to running XEN as the hypervisor and have migrated one of my VMs to running on XEN. If I am sitting at the server, I can use the Virtual Machine Manager to connect to the VM graphical console (i.e., see the VM desktop) with no problems. However, if I am at a remote workstation (SLED 11 SP3) and running Virtual Machine Manager, I can connect to the VM (I see the virtual hardware details screen), but the graphical console comes back with the error "viewer connection to hypervisor host got refused or disconnected". I did not have this issue with KVM... The connection between the server and my workstation in the Virtual Machine Manager is "xen+tcp".

Any ideas?

TIA
-L

jmozdzen
30-Jul-2015, 12:25
Hi Larry,

> If I am sitting at the server, I can use the Virtual Machine Manager to connect to the VM graphical console [...]
> if I am at a remote workstation [...] the graphical console comes back with the error "viewer connection to hypervisor host got refused or disconnected"

please have a look at "/etc/xen/xend-config.sxp", parameter "vnc-listen". It is probably set to "(vnc-listen '127.0.0.1')", hence you can only connect via VNC from the local machine.

If you change that to "(vnc-listen '0.0.0.0')", you'll be able to connect from any IP address.

Regards,
Jens

LarryResch
03-Aug-2015, 17:53
Hi Larry,

> If I am sitting at the server, I can use the Virtual Machine Manager to connect to the VM graphical console [...]
> if I am at a remote workstation [...] the graphical console comes back with the error "viewer connection to hypervisor host got refused or disconnected"

please have a look at "/etc/xen/xend-config.sxp", parameter "vnc-listen". It is probably set to "(vnc-listen '127.0.0.1')", hence you can only connect via VNC from the local machine.

If you change that to "(vnc-listen '0.0.0.0')", you'll be able to connect from any IP address.

Regards,
Jens

The vnc-listen was set to '0.0.0.0' and I could connect. My problem is when I try to use the graphical interface - I get the viewer connection problem and cannot see the VM's desktop.

-L

jmozdzen
04-Aug-2015, 10:13
Hi Larry,


The vnc-listen was set to '0.0.0.0' and I could connect. My problem is when I try to use the graphical interface - I get the viewer connection problem and cannot see the VM's desktop.

-L

it seems I mis-understood you - *what* graphical interface are you referring to?

Regards,
Jens

jmozdzen
04-Aug-2015, 10:18
Hi Larry,

AFAIR, virt-manager uses VNC to display the VM console. Could you please try to connect to the VM with i.e. vncviewer from the client machine? This should validate the remote VNC access is actually operational.

Regards,
Jens

LarryResch
04-Aug-2015, 19:00
[SOLVED]
Yes, virt-manager uses VNC - I just got it working.

For the VM, the "Display VNC" hardware showed an address of 127.0.0.1 even though the vnc-listen '0.0.0.0' was set on the server. You cannot edit the VM address so I deleted and recreated the "Display VNC" with an IP address of 0.0.0.0 and now it works.

Thanks for all the help
-L