"Cannot connect to the virtual machine." for new Hyper-V Virtual Machine

5

3

I've added Hyper-V to my Windows 8 Pro install. The CPU is an Intel i7-3770, so I believe it supports virtualization (which I've also enabled in the bios).

When I create a new Virtual machine I am unable to connect to it via the Hyper-V Manager. I can see the VM is running in the small thumbnail, but I can't access it.

Cannot connect to the virtual machine. Try to connect again. It the problem persists, contact your system administrator.
Would you like to try connecting again?

Cannot connect to the virtual machine

By default only the Hyper-V Virtual Machine Management service is running:

Currently Running Hyper-V Services

I've tried manually starting the "Hyper-V Remote Desktop Virtualization Service" as its description of providing a platform for communication between the virtual machine and the operating system running on the physical computer sounded promising.

This resulted in a prompt:

The Hyper-V Remote Desktop Virtualization Service service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.

Daniel Ballinger

Posted 2012-11-20T19:16:34.003

Reputation: 1 534

Answers

2

I found my specific issue. The VPN software that I used was preventing me connecting to the virtual machines. I uninstalled the VPN software and it worked fine.

The VPN software was Astrill, which I use to test CDNs and how websites look when connecting from various places around the world. This may no longer be an issue with the latest version.

I'm now running the VPN from within a virtual machine, which works fine and doesn't interfere with the Windows 8 network stack.

Daniel Ballinger

Posted 2012-11-20T19:16:34.003

Reputation: 1 534

that didnt work with NordVPN – julestruong – 2019-10-29T22:29:25.400

2

I fixed it by allowing VMMS.EXE (Located in C:\Windows\System32) through my firewall (Sophos) and allowing IPV6 traffic.

James Easton

Posted 2012-11-20T19:16:34.003

Reputation: 21

1

I've found out that it was the proxy server that prevented me to connect to Hyper-V virtual machine.

Proxy is actually forced by group policy so this is actually just a workaround for me, but if I set UseProxy setting in registry to 0, I can connect to my virtual machine

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Terminal Services] "AllowExplicitProxyName"=dword:00000001

"ProxyName"="rdgw.somedomain.com"

"UseProxy"=dword:00000000

"AllowExplicitUseProxy"=dword:00000001

"AllowExplicitLogonMethod"=dword:00000001

"LogonMethod"=dword:00000004

Tom

Posted 2012-11-20T19:16:34.003

Reputation: 11

0

I had to enable the traffic for vmms.exe (virtual machine management service) on my firewall (mcafee)

sabe

Posted 2012-11-20T19:16:34.003

Reputation: 1

0

Check your host file to make sure you don't have a manual DNS entry. That fixed my issue.

Ro Jo

Posted 2012-11-20T19:16:34.003

Reputation: 1

3explain how to do that? – Sickest – 2014-05-02T16:43:49.677

open the file C:\Windows\System32\drivers\etc\hosts end check entries like this one : 102.54.94.97 rhino.acme.com – must19 – 2014-06-06T23:00:52.327

-1

I had the same error but in my case eset's firewall was messing things up so if you have a 3rd party firewall try to disable it and see if that works.

shinma

Posted 2012-11-20T19:16:34.003

Reputation: 1