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
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)
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)
Note: When this is done, you will see an additional network adapter on your Host machine (which explains the meaningful naming ;-))
3) Associate the Virtual Network just created on the Guest machine configuration in Hyper-V
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)
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
Now – armed with the IP-address of the Guest machine, you can RDP into the machine from the Host.
10) To present the Host-drives to the Guest, enable this in Terminals
11) Connect to the Guest using Terminals
12) Observe the Host-drives are visible from the Guest
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.