问题现象:VDI桌面从一个POOl迁移到另外一个POOl或从一个托管迁移到另外一个托管出现电源管理异常。
问题缘由:缘由为VDI对应先前所在的托管,每一个托管都有一个ID,须要将VDI的托管ID更新到新托管。
解决方法:
1.使用Get-BrokerMachine -DNSname 计算机名
2.查看新托管链接的uid
Get-BrokerHypervisorConnection
3.修改迁移的虚拟机到新的链接
Get-BrokerMachine -DNSName xxx | Set-BrokerMachine -HypervisorConnectionUid x
4.查看新链接的路径 #PSpath
dir XDHyp:\Connections\
5.更新新的托管链接
Update-HypHypervisorConnection -LiteralPath xxx #上面的pspathide