I’ve got an RDP session to my house from work, and something happened (OK, I probably did it…) to my single VM on the host. I’m still getting used to Hyper-V, so I’m honestly not too surprised that I’d goof this up remotely… good thing it’s my own computer :wink:

I had tried to change the network adapter to use the bridged connection on the host - something I’ve done a number of times, just not remotely. Now the host won’t let me connect to the management console, and I can’t use PowerShell to get the status of the VM (The destination host is not available)

I can ping the host itself just fine, and DNS resolution finds it as well.

Is there a way to issue a shutdown command to the VM in question or to force the network adapter on the VM (though the name of the VM escapes me at the moment, so if there’s a way to get that, probably a good idea…

I already tried running a shutdown /i from my DC to see if I could get the host to restart, but I can’t get an uptime return on the Hyper-V server, so I’m not sure if it rebooted or not (or if that would even help… the VM in question is not set to auto start however)

RDP to the server doesn’t work either, so I’m guessing I’m just boned until I get home later. The server is running bare metal Hyper-V 2012 R2.

Help a guy out? No rush since it’s at home…

8 Spice ups

Are you RDP’ing directly to the host or to something else?

Are the Hyper-V services running on the host?

Sorry, guess that should be clarified. I have two ESXi servers at home that run my normal network, so they’re unaffected. The RDP session that I’m using to connect home is running on one of those hosts, Hyper-V is just my lab server for the time being.

Not too clear on which cmdlet will let me see the status of the Hyper-V host. Keep in mind that I’m not connected to the host via RDP currently. RDP sessions won’t connect.

Edit - figured out the remote command to check uptime, and the host itself did reboot, but still having the same problem. d’oh.

Edit Edit - Well, now that’s funny. I initiated a restart via powershell to the Hyper-V host instead of my DC and just like the DC, it rebooted again just fine, but now I’m connecting to the host and can see the status of my VM. Go figure.

Use PSExec and run the command “netsh firewall set opmode disable” against the Hyper-V box to shutdown the firewall.

I suspect that when you changed the networking it reset the firewall.

Once that’s done you should have management and RDP back.

7 Spice ups

… and all is well. Network adapter is bridged properly in Hyper-V, and my guest VM is getting to the LAN. RDP / Hyper-V Manager is connecting just fine.

2 Spice ups

Good to hear, I’ve hit that before - why RDP Is blocked by default is beyond me!

3 Spice ups

Because it’s a known security risk. All MS-RDP servers use the same certificate, which was cracked several years ago.

4 Spice ups

This I never knew. Thank you for that bit of info.

1 Spice up