Establishing a Remote Desktop Connection to a Virtual Machine through the Windows Server 2008 Hyper-V Host Computer
Posted by Yury Averkiev, Last modified by Yury Averkiev on 09 June 2009 12:00 AM

In many cases, Virtual Machines running on a Windows Server 2008 with Hyper-V are not accessible via direct a direct RDP connection from other computers. This can be the case if:

  1. The Virtual Machines’ firewall blocks the RDP port (3389)
  2. The Virtual Machine IP address is on a subnet to which there is no routing from the client computer
  3. The Virtual Machine uses a virtual network adapter configured as Internal or Private

The VNC Manager allows an administrator to establish a Remote Desctop connection to a Virtual Machine through the Hyper-V Server host computer. This technique is similar to the SSH port-forwarding feature. So instead of establishing a direct RDP connection to a VM, you connect to the Hyper-V Server host computer. Then the Hyper-V host computer will redirect the connection to the VM.

NOTE: The Hyper-V Host computer’s firewall must have port 2179 open. Hyper-V server uses this port by default to access RDP connections to Virtual Machines.

Connecting to a Hyper-V Virtual Machine

To establish a Remote Desktop connection to a VM through the Hyper-V Host open the context menu in VNC Manager on a registered computer (the computer must have Hyper-V installed) and select the "Connect/Disconnect -> Connect to Hyper-V Virtual Machine…" command (Ctrl+Y shortcut).

The "Connect to Hyper-V Virtual Machine" window will show a list of the Virtual Machines available on the target Hyper-V server. VMs that are up and running have a blue monitor icon and their State is "Running".

NOTE: A Remote Desktop connection can only be established to VMs that are in the "Running" state.

The cool thing about this window is that it shows the real-time status of the Virtual Machines. So if a new VM is created while the window is open, the new VM will appear in the list immediately. If a VM is deleted, its entry will be removed from the list.

APPLIES TO: SmartCode VNC Manager (Enterprise Edition) v5.0 or newer