如何通过 Windows 10 笔记本电脑独立连接到 Hyper-V 2016?
背景:我将其设置为家庭实验室。我遵循 了 一些 指南,但我还没有找到似乎适用于 Hyper-V 2016 免费版的指南/Youtube 教程。这是 Hyper-V 独立版的“hello world”,我可以找不到适用于 2016 年的指南。(Hyper-V 2012 + Windows 8 似乎有一些自动化脚本可以解决问题,但不适用于 Hyper-V 2016。)
语境
- 服务器:Hyper-V server 2016(免费,独立),fqdn:server.local,
- 客户端:Windows 10 专业版
- 补充说明
- 客户端的 etc/hosts 文件包含服务器的 fqdn 条目
- 客户端或服务器都不在工作组或域上
- 我的目标:使用客户端的 Hyper-V 管理器远程管理服务器
错误
An error occurred while attempting to connect to server "server.local". Check that the
Virtual Machine Management service is running and that you are authorized to
connect to the server.
Hyper-V encountered an error trying to access an object on computer 'server.local' because
the object was not found. The object might have been deleted. Verify that the Virtual
Machine Management service on the computer is running.
我在服务器上做了什么
# sconfig.cmd: Enable "Configure Remote Management"
# sconfig.cmd: Add Local Administrator
# sconfig.cmd: Enabled Remote Desktop
Enable-PSRemoting
Enable-WSManCredSSP -Role server
sc start vmms # Is this the "missing object"?
netsh advfirewall set currentprofile state off # Let's try disabling firewall
我在客户端做了什么
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "server.local"
Enable-WSManCredSSP -Role client -DelegateComputer "server.local"
# Changed group policy: "Computer Configuration > Administrative Templates > System > Credentials Delegation > Allow delegating fresh credentials with NTLM-only server authentication" by doing: "Click Enable and add wsman/fqdn-of-hyper-v-host."
# Disabled firewall
# dcomcnfg > COM SECURITY > Access Permissions > Edit Limits > Anonymous Login > ALLOW Remote Access
cmdkey /add:YOURSERVERNAME /user:USERNAMEONTHESERVER /pass:THEPASSWORDOFTHATUSER
我是如何触发错误的
在客户端:
- 启动“连接到服务器”
- 尝试一个:“将'另一台计算机:'设置为'192.168.10.2'”
- 尝试二:“将‘另一台计算机:’设置为‘server.local’”
- 点击“确定”
- (错误:“尝试连接到服务器'server.local'时发生错误......)