VRDE RDP Confusion - host or guest

Discussions related to using VirtualBox on Linux hosts.
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: VRDE RDP Confusion - host or guest

Post by fth0 »

VBox_log_09292021.log wrote:
00:00:00.051733 VirtualBox VM 6.1.26 r145957 linux.amd64 (Jul 28 2021 16:47:54) release log
00:00:00.056650 Installed Extension Packs:
00:00:00.056678   Oracle VM VirtualBox Extension Pack (Version: 6.1.26 r145957; VRDE Module: VBoxVRDP)
SkylarB wrote:VirtualBox-6.1-6.1.26_145957_el8-1.x86_64
Extension Pack 6.1.18-142142
The VBox_log_09292021.log file disagrees with you, and if you were right, problems were to be expected. The VirtualBox Extension Pack (EP) version must always match the VirtualBox version, and VRDP is part of the EP. Why do you think you have EP 6.1.18 installed?

Other than that, the VBox_log_09292021.log file doesn't show any VRDP connection attempts, just the running VRDP server on port 5000.
SkylarB
Posts: 14
Joined: 14. Sep 2021, 19:23

Re: VRDE RDP Confusion - host or guest

Post by SkylarB »

My mistake, the extension pack matches the VirtualBox version (6.1.26-145957). I was looking at an earlier USB storage device.
The file Oracle_VM_VirtualBox_Extension_Pack-6.1.26-145957.vbox-extpack is on the VBox host and when I launched it it said it was already installed.
I apologize for the misinformation.

I don't have a lot of knowledge on the the VRDP issue you mentioned but I will see what I can find out.
SkylarB
Posts: 14
Joined: 14. Sep 2021, 19:23

Re: VRDE RDP Confusion - host or guest

Post by SkylarB »

There are times when “I can’t see the forest for the trees…”

I had to add the service ms-wbt to the host VirtualBox firewall. That allowed me to connect by RDP on the standard RDP port 3389. Once I added the tcp/5000 to the firewall and modified the VBox to use port 5000 I could also connect using RDP from the Windows client to the virtual machine running on the VirtualBox host using port 5000.
CentOS 8 host running VirtualBox

sudo firewall-cmd --add-service=ms-wbt
sudo firewall-cmd --add-port=5000/tcp
vboxmanage startvm Kali --type headless
vboxmanage controlvm Kali vrdeport 5000

Windows client
mstsc /v:192.168.1.112:5000
successful RDP connection to virtual machine

Thanks for your time and patience
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: VRDE RDP Confusion - host or guest

Post by fth0 »

Thanks for reporting back, and you're welcome. :)
SkylarB
Posts: 14
Joined: 14. Sep 2021, 19:23

Re: VRDE RDP Confusion - host or guest

Post by SkylarB »

Still trying to figure on why I can't RDP to a headless VM.
Vbox.log has and entry under a VRDP that says:

VRDP: Failed to query a property: 9, rc = VERR_NOT SUPPORTED

Does that mean?
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: VRDE RDP Confusion - host or guest

Post by fth0 »

SkylarB wrote:There are times when “I can’t see the forest for the trees…”
[...]
successful RDP connection to virtual machine
SkylarB wrote:Still trying to figure on why I can't RDP to a headless VM.
Again in the forest? ;)
SkylarB wrote:VRDP: Failed to query a property: 9, rc = VERR_NOT SUPPORTED
This is a red herring. I also get this log message in all of my working VRDP uses.
SkylarB
Posts: 14
Joined: 14. Sep 2021, 19:23

Re: VRDE RDP Confusion - host or guest

Post by SkylarB »

Yes, I am in the forest again. Upgraded the Virtual Machine Box to 6.1.40 and updated packages on the CentOS 8.
Running packet captures from the host to the client and client to the host.
nmap says port 5000 is filtered on the CentOS host running Virtual Machine Box 6.1.40, also see retransmissions when trying RDP, but not when using SSH.
Looking thru the 'iptables' on the CentOS host and and the Windows Defender Firewall on the client.
Hoping I find something in the packet capture that will enlighten me.
I'll let you know what I find.
:)
SkylarB
Posts: 14
Joined: 14. Sep 2021, 19:23

Re: VRDE RDP Confusion - host or guest

Post by SkylarB »

OK, don’t laugh too hard.
The post on “Oct 4, 2021 23:20” is still the solution, but to have the solution remain static in the system on reboot I had to run the command:
sudo firewall-cmd –runtime-to-permanent
Hope this info helps another newbie someday.
:oops: :roll:
Post Reply