Page 1 of 1

Unable to connect to virtual machine via RDP on Debian host, but OK on Windows host

Posted: 12. Nov 2020, 13:29
by Benny_Boy
I'm running a virtual Machine on VirtualBox 6.0.24. The VM is running Ubuntu 20.04. If I run the VM on my Windows 10 host, I can connect to the Ubuntu guest OS via both SSH and RDP.

I then copy the VM to my Debian 10.6.0 host machine and spin it up. Here I can connect to it via SSH, but when trying RDP, I get connection reset by peer. I have tried connecting both locally on the Host and from over my network. Same result.

The Debian extension pack for Virtual box is installed on the Host and matches the virtual box guest addons installed on the Guest, if version matching matters here.

There is nothing the syslog to give any clue to an issue. It's the same VM, unaltered between Host machines. There is no firewall running on the Debian Host. Running to command sudo lsof -i -P -n | grep LISTEN gives the following result. NB: On the host OS the RDP port is set to 33890. This is mapped to 3389 in the VM settings file. This worked OK on the Windows host.

cupsd 796 root 6u IPv6 13466 0t0 TCP [::1]:631 (LISTEN)
cupsd 796 root 7u IPv4 13467 0t0 TCP 127.0.0.1:631 (LISTEN)
sshd 847 root 3u IPv4 20851 0t0 TCP *:22 (LISTEN)
sshd 847 root 4u IPv6 20853 0t0 TCP *:22 (LISTEN)
VBoxHeadl 2296 root 19u IPv6 394646 0t0 TCP *:33890 (LISTEN)
VBoxHeadl 2296 root 22u IPv4 382556 0t0 TCP *:33890 (LISTEN)
VBoxHeadl 2296 root 23u IPv4 382557 0t0 TCP *:222 (LISTEN)

Also the Log file for the VM doesn't show any issues from what I can see. Any suggestions?

Re: Unable to connect to virtual machine via RDP on Debian host, but OK on Windows host

Posted: 12. Nov 2020, 18:57
by fth0
Are you maybe confusing things? If you want to use the VRDP server of VirtualBox, then your RDP connection goes to the host, not the guest ...

Re: Unable to connect to virtual machine via RDP on Debian host, but OK on Windows host

Posted: 13. Nov 2020, 12:15
by Benny_Boy
I don't THINK I am, but happy to be corrected. Let me clarify what I'm trying to do in case that's not clear.

I want to connect to the desktop running on the virtual machine - Ubuntu 20.04. To rule out connectivity issues over my network I'm trying to do this locally. On the Host operating system I'm using Remote Desktop Viewer to connect to the Guest via RDP. The connection string is 127.0.0.1:33890. Host port 33890 is mapped to 3389 on the Guest OS by the VM's setting in the .vbox file.

On my Windows host this works OK, but of my Debian host it doesn't work.

Re: Unable to connect to virtual machine via RDP on Debian host, but OK on Windows host

Posted: 13. Nov 2020, 18:30
by fth0
Please start the VM, try the working SSH and the not working RDP connection, shut down the VM, and post a zipped copy of the VBox.log file.