[Users] stuck trying to get to VM via VNC

gregrwm openvz at greatlakedata.com
Thu Aug 15 05:59:57 MSK 2019


hi,
i want to install windows 10 in a vm via vnc but i'm not succeeding to
contact the VM via vnc, even tho i have no trouble with vnc contact to
vncserver in a container.

i connect to the openvz host with tunnels for VNC:
ssh -L5938:192.168.1.188:5918 -L5931:192.168.1.186:5916 <host>

the container at 192.168.1.188:5918 is already running and i can now
connect to it on port 5938.  next i create a VM with a VNC console:
>prlctl create gwi -owin --uuid 10000000-0000-0000-0000-000000000186 --no-hdd
Creating the virtual machine...Generate the VM configuration for win.
Remove the hdd0 device.
The VM has been successfully created.
>prlctl   set  gwi --device-add hdd --device /dev/centos_p/186
Creating hdd0 (+) scsi:0 real='/dev/centos_p/186' subtype=virtio-scsi
Created hdd0 (+) scsi:0 real='/dev/centos_p/186' subtype=virtio-scsi
The VM has been successfully configured.
>prlctl   set  gwi --device-add cdrom --image /home/gr/win.iso
Creating cdrom1 (+) ide:1
image='/home/greg/Win10_1903_V1_English_x64.iso?t=04122fc7-2fc4-4028-97ff-e78104befc08&e=1565185911&h=7a7d424edea66a8202420304128526b4'
Created cdrom1 (+) ide:1
image='/home/greg/Win10_1903_V1_English_x64.iso?t=04122fc7-2fc4-4028-97ff-e78104befc08&e=1565185911&h=7a7d424edea66a8202420304128526b4'
>prlctl   set  gwi --vnc-mode manual --vnc-port 5916 --vnc-passwd -
Please, enter VNC console password:
Configure VNC: Remote display: mode=manual port=5916
The VM has been successfully configured.
>prlctl   set  gwi --ipadd 192.168.1.186 --vnc-address 192.168.1.186
Configure net0 (+) dev='vme001c42783cb9' network='Bridged'
mac=001C42783CB9 card=virtio ips='192.168.1.186/255.255.255.0 '
Configure VNC: Remote display: address=192.168.1.186
Configured net0 (+) dev='vme001c42783cb9' network='Bridged'
mac=001C42783CB9 card=virtio ips='192.168.1.186/255.255.255.0 '
The VM has been successfully configured.
>prlctl start gwi
Starting the VM...
The VM has been successfully started.

i would expect to now be able to connect to the VM VNC console at port
5931 just like i already connected thru the other tunnel, but it
behaves as if there's nothing answering on that port.  any ideas?

(vzkernel 3.10.0-957.12.2.vz7.86.2, prlctl-7.0.173.2-1.vz7.x86_64)


More information about the Users mailing list