04 May, 2011

Hyper-V: How to enable remote access to guest environment

Setting up a multi machine development environment on a Windows 2008 server; I’ve run into some challenges surrounding networking and access to the Guest environment from the Host (my own machine).

Now – I have found a workable solution that allows for the following which pretty much covers my needs at this point in time:
1) Access from Host –> Guest
2) Internet access from Guest
3) Drive sharing: Host drives are visible to Guest
4) Remote Desktop (RDP) access: Host –> Guest

Overall View

How to do this?
To my surprise, Hyper-V works very differently when it comes to networking compared to the (other) Virtual PC product from Microsoft that I’m used to. Having read a great deal on blogs and the internet today has educated my in this direction. Anyway – here is how.

Required software (host):
1) Windows Server 2008 (x64 in my case)
2) Terminals (terminals.codeplex.com) (native RDP client will do as well)

Recipe:
1) Enable Virtual Networking on Hyper-V (host). Make sure this is Internal Networking
2) Call the Virtual Network something meaningful (e.g. Virtual Internal Network)

Hyper-V Manager    Virtual Network

Note: When this is done, you will see an additional network adapter on your Host machine (which explains the meaningful naming ;-))

image

 

3) Associate the Virtual Network just created on the Guest machine configuration in Hyper-V

 image   image

How we are done with Hyper-V for now. Next is the configuration of the physical network cards on the Host machine.

4) Share your active physical networking card (NIC) on your Host using ICS (Internet Connection Sharing)

image

5) Start the Hyper-V machine (Guest)
6) Once it is up and running – rightclick and ‘Connect’ from within the Hyper-V Manager
7) Login to the Guest
8) Open a Cmd-prompt and observe the allocated IP-address of the Guest

image

Now – armed with the IP-address of the Guest machine, you can RDP into the machine from the Host.

9) Open Terminals and enter the IP-address
image

10) To present the Host-drives to the Guest, enable this in Terminals

image

11) Connect to the Guest using Terminals

image

12) Observe the Host-drives are visible from the Guest

image

 

The Guest-machine will now present itself as any other networked machine visible from your Host-machine. You are by this maneuver able to transfer files from Host –> Guest as well as using the Guest a webserver/test-machine from the Host.

 

Technorati Tags: ,

No comments:

iPhone/XCode - not all cases are equal!

This bit me! Having made some changes to an iPhone application (Obj-C); everything worked fine in the simulator. But, when deploying the s...