Link to home
Create AccountLog in
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )Flag for United States of America

asked on

Remote Desktop to Hyper-V VM

I've recently turned up a Windows 2008 R2 machine to serve as a Hyper-V host. My intent is to use this for testing/development (I'm a software developer) and to install several virtual machines, each with a unique environment (i.e Win7 with version xxx of program ABC, another with Win7 with version xyz of program ABC, etc).

I've got the Hyper-V running. I can use RD to remote into the machine, and can manage the server and such. I've also installed a Windows 7 VM on the Hyper-V.

My question is - from my development machine (on the same network as the 2008 Server machine), how do I remote into that Win7 VM? I can remote into the 2008 server, and then go into HyperV manager and open it from there, and I see the Win7 remote desktop. My goal is to open a RD on my development machine, not the 2008 machine.

I've looked through several tutorials, but can't seem to get things right.
Avatar of Svet Paperov
Svet Paperov
Flag of Canada image

On a Windows Servere 2008 R2 you need to add Hyper-V Manager role in order to manage virtual machines remotely.

On a Windows 7 SP1 you need to install RSAT for Windows 7 SP1 http://www.microsoft.com/en-us/download/details.aspx?id=7887

General info: http://technet.microsoft.com/en-us/library/ee256062(v=WS.10).aspx
SOLUTION
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of Scott McDaniel (EE MVE )

ASKER

You want to RDP into the Win7 VM, not manage Hyper-V, right?
Yes, that is exactly correct. I can ping my workstation from the HyperV box, and ping the HyperV box from my workstation.

I have enabled Remote Desktop in the Win7 VM.

I was able to remote into the Win7 VM from an RDP session on my workstation by entering the IP address of the Win7VM. For example, my dev box is 192.169.1.10. The Win7 VM is 192.168.1.25, so if I enter that in the RDP session I connect to the VM.

I don't know if that is the correct way to manage this or not. It seems if I do this, I can ONLY have a singe VM running across that physical NIC (the one installed in the 2008 R2 box). I tried to install another VM and set it to a different IP address (192.168.1.40), and bind that to the same NIC, but it did not work as I expected. Instead, I was able to run the VM on 192.168.1.40, but could no longer access the VM on 192.168.1.25 (which makes sense, since I had to bind the virtual NIC to that new address, and both VMs use the same virtual NIC).

VM network card connection  to external  and enable RDP in Virtual machine. then   you can access the Virtual machine  rdp from your external network. You can change this setting in the hyper-v manager
Thanks for your help. I did see those links already, and I had already enabled RDP, and had set the NIC to External.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Was able to figure this out with the help from the Experts here. Many thanks!