"Cannot connect to the virtual machine." for new Hyper-V Virtual Machine
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?
By default only the Hyper-V Virtual Machine Management service is running:
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.
Solution 1:
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.
Solution 2:
I fixed it by allowing VMMS.EXE
(Located in C:\Windows\System32
) through my firewall (Sophos) and allowing IPV6 traffic.
Solution 3:
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
Solution 4:
Go to Hyper-V setting in your Hyper-V manager. Then turn off NUMA Spanning and restart Hyper-V Virtual Machine Management Service. Before I tried everything. Finally that one works!!!!!