How to connect to VirtualBox remote desktop client using VNC?

15

2

I am using VirtualBox 4.0 on Ubuntu Narwhal with guest OS Windows XP. I've installed the VB extensions and enabled remote access through port 3389 as suggested on several sites.

I am trying to access this desktop with a Mac OS X 10.5 using Chicken of the VNC. I am not able to connect to the machine using hostipaddress:3389 for my login (and I'm at a loss as to what should go in the password field).

Help?

(P.S. it's not a network connection issue as I can SSH/ftp to this machine okay.)

hatmatrix

Posted 2011-08-14T00:27:03.850

Reputation: 774

Answers

11

VNC doesn't work in this manner because VirtualBox doesn't support RFB; it supports RDP instead. RFB and RDP are entirely different protocols that are not compatible.

  • RFB is VNC's open Remote Frame Buffer protocol -- it uses TCP port 5900 by default, and also serves HTTP over TCP port 5800 to support a convenient client applet written in Java

  • RDP is Microsoft's proprietary Remote Desktop Protocol -- it uses TCP port 3389 by default

You'll either need to use some client software that supports RDP sessions, and/or install a VNC server in Windows XP (and then your Chicken of the VNC client will be able to connect), to get remote access to your virtual Windows XP guest environment.

I highly recommend the famously popular UltraVNC because I've had good experiences with it as a fast and reliable solution in all editions of Windows as far back as Windows XP:

  UltraVNC (free and open source)
  http://www.uvnc.com/

Randolf Richardson

Posted 2011-08-14T00:27:03.850

Reputation: 14 002

@RandolfRichardson there is a plugin for VirtualBox which do VNC. So you're not completely correct. – Nikita Kipriyanov – 2015-12-07T15:12:36.870

on linux mint virtual box installs with something called "VNC Extension Pack" and some people managed to make it work: https://forums.virtualbox.org/viewtopic.php?f=7&t=85886 ... maybe you want to review your WRONG answer ! ... also next answer prove it ! ... and BTW, didn't manage to make STOOBID rdp (mIRCosoft SHlT) to work, but vnc works just fine, from start and with no problem AS IT SUPPOSED TO WORK !!!!!!

– THESorcerer – 2019-01-28T12:28:49.097

1This was very helpful -- thank you. I am not sure that setting up a VNC server in the host OS will allow you to connect to it? I thought the only option was to use VRDP... so for now I've installed Microsoft's RDC on the Mac and am able to connect. Thanks! – hatmatrix – 2011-08-14T03:26:59.103

1You're welcome. For the VNC Server, I was suggesting that you install it in your virtualized Windows XP guest environment -- you don't need to install a VNC server on the host OS (on which you already have Chicken of the VNC installed {I really like that name, Chicken of the VNC, by the way}). – Randolf Richardson – 2011-08-14T03:30:43.227

5

Quoting the Virtual Box manual:

http://www.virtualbox.org/manual/ch09.html#otherextpacks

Starting with VirtualBox 4.2.0 there is another extension pack, VNC, which is open source and replaces the previous integration of the VNC remote access protocol. This is experimental code, and will be initially available in the VirtualBox source code package only. It is to a large portion code contributed by users, and is not supported in any way by Oracle.

The keyboard handling is severely limited, and only the US keyboard layout works. Other keyboard layouts will have at least some keys which produce the wrong results (often quite surprising effects), and for layouts which have significant differences to the US keyboard layout it is most likely unusable.

It is possible to install both the Oracle VM VirtualBox Extension Pack and VNC, but only one VRDE module can be active at any time. The following command switches to the VNC VRDE module in VNC:

VBoxManage setproperty vrdeextpack VNC

Configuring the remote access works very similarly to VRDP (see Section 7.1, “Remote display (VRDP support)”), with some limitations: VNC does not support specifying several port numbers, and the authentication is done differently. VNC can only deal with password authentication, and there is no option to use password hashes. This leaves no other choice than having a clear-text password in the VM configuration, which can be set with the following command:

VBoxManage modifyvm "VM name" --vrdeproperty VNCPassword=secret

The user is responsible for keeping this password secret, and it should be removed when a VM configuration is passed to another person, for whatever purpose. Some VNC servers claim to have "encrypted" passwords in the configuration. This is not true encryption, it is only concealing the passwords, which is exactly as secure as clear-text passwords.

The following command switches back to VRDP (if installed):

VBoxManage setproperty vrdeextpack "Oracle VM VirtualBox Extension Pack"

RobM

Posted 2011-08-14T00:27:03.850

Reputation: 575

3

Your best options are:

  1. Find an RDP viewer for Mac (or wait for VB's included rdesktop-vrdp client to become available for Mac). See this for instructions on how to set up authentication:

  2. Use VNC instead of RDP as VB's virtual remote desktop plugin.

Andy Mason

Posted 2011-08-14T00:27:03.850

Reputation: 31

It's nice that one can use VNC instead of RDP to connect to VB machines. Thanks for this suggestion. But there is a limiting factor in the current implementation (as of VB 4.2.6) as it only supports US keyboard from the VNC client. If you use another keyboard, the key mappings are wrong and there is currently no way to solve that. – Tonin – 2013-02-19T14:32:34.700

2

How about setting a local network using hamachi? I have a windows7 x64 on Athlon x2 3.4Ghz. I installed a virtualbox inside, running w7 x64. They both connect to hamachi network. Thanks to ultravnc, I can control the embedded session. And I can do it also from another pc via wifi connecting the same group. It's working just fine.

You only need to allow ultravnc and hamachi properly in windows firewall and third-party firewall. But it is a bit slow sometimes, surely due to a lack of cpu or latency on my wan. Need to downgrade screen resolution in ultravnc settings.

skyrail

Posted 2011-08-14T00:27:03.850

Reputation: 114