TASK ERROR: command '/bin/nc -l -p 5901.... When i try to connect via console

ehabh

Active Member
Dec 20, 2012
17
0
41
TASK ERROR: command '/bin/nc -l -p 5901 -w 10 -c '/usr/sbin/qm vncproxy 100 2>/dev/null'' failed: exit code 11
I get this error SOMETIMES when I try to connect to the console of a windows 7 VM connected in NAT mode. In this time I can not even log into the vm by things like teamviewer until I reboot the VM.

My networking is as follows.

auto eth0
iface eth0 inet manual
broadcast xxx.xxx.117.191
network xxx.xxx.117.128

auto vmbr0
iface vmbr0 inet static
address xxx.xxx.117.162
netmask 255.255.255.192
gateway xxx.xxx.117.129
bridge_ports eth0
bridge_stp


Please any help needed :)
 
I am having the same issue. I had WinXP working for about a month no problem. Then all of a sudden i loose network connection when connecting with teamviewer. I then installl win7 yesterday. Installed teamviewer, and as soon as I connect remotely with teamviewer, it kills the network connection in the VM.

Only changes i made was last week i updated my proxmox to the latest version.
 
Hi,

I don't know very well what's your problem but I can give you some things to check.

Well, VNC console for VM's seems to not be very reliable, why do not use RDP for KVM's or SSH for CT's ? You need to have a firewall rules which allow 59xx ports (where 5900 is the first VNC console, 5901 the second, ......) and you need to have Java from SUN (sometimes its necessary to "reload" the console).

I'm not sure but I think there are some problems with network controllers like 'e1000' or 'rtl8139'. I recommand you to use the Virtio controller with the Fedoraproject ISO.

Another point is to use your proxmox host as a router with some NAT rules you can allow RDP/SSH to forward to the VM.

Example;

I have VM 100 192.168.0.1/24 with proxmox host as gateway (192.168.0.254/24) I have put a rule in iptables on proxmox to say... If anything come from Internet on 10022 port it forward to the VM 100.

This allow me to manage my VM's as I want and do not use VNC console..

I hope it could help you.
Regards