VNC connects then times out

Discussions related to using VirtualBox on Linux hosts.
Post Reply
jdh239
Posts: 5
Joined: 17. Jan 2014, 03:06

VNC connects then times out

Post by jdh239 »

This used to work, but VNC started failing for me today when connecting to headless guests. What started it was my interface renaming itself on a reboot. I was able to get everything up and running again fine, except for the VNC connections. A network trace shows the client connecting to the server (syn, synack, ack), but then the server does nothing. After 20-30 seconds the client times out and I can't connect to the VM guest. I know something on the server must be broken, but don't know where to look. Ideas?

HOST: Ubuntu 16.04
FIREWALL (Disabled)

Code: Select all

#/home/vbox/VirtualBox VMs/ocfs1# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Code: Select all

#/home/vbox/VirtualBox VMs/ocfs1# netstat -ant | grep 4010
tcp        0      0 0.0.0.0:4010            0.0.0.0:*               LISTEN
tcp6       0      0 :::4010                 :::*                    LISTEN
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VNC connects then times out

Post by Perryg »

Post the guests log file ( as an attachment ). Right click on the guest in the Main Manager then click show log. Save and post as an attachment. Compress if it is too large to post.
jdh239
Posts: 5
Joined: 17. Jan 2014, 03:06

Re: VNC connects then times out

Post by jdh239 »

Thx for the help. I checked ip_forward this morning and it is setup up correctly too. See attached log.
Attachments
guest.log
(64.24 KiB) Downloaded 7 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VNC connects then times out

Post by Perryg »

You mention VNC but the extension pack installed is vRDP. How exactly are you trying to connect and to what? VNC and vRDP are not compatible so be explicit.
jdh239
Posts: 5
Joined: 17. Jan 2014, 03:06

Re: VNC connects then times out

Post by jdh239 »

VNC Viewer.
I forgot about trying RDP. Is there a VNC-specifc ext pack? I thought there was only one ext pack.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VNC connects then times out

Post by Perryg »

Yes there is a VNC extension pack, but it is available through your distro and only supported by them.
jdh239
Posts: 5
Joined: 17. Jan 2014, 03:06

Re: VNC connects then times out

Post by jdh239 »

OK, thx for the info. I will see if I can find the ext pack and give it a shot.
Post Reply