我正在尝试添加Hyper-V主机到Move中迁移虚拟机。
但是添加主机后,虚拟机库存没有加载(显示0个虚拟机)。当我尝试刷新时,我得到以下错误:
未能为“”获取库存。[ApiName="Get VM", HypervisorErr="[Cmd="Get-VM | Select- object -ExpandProperty DVDDrives | Select ControllerType, ControllerNumber, ControllerLocation, Path, SupportPersistentReservations, VMName, VMId | ConvertTo-Json -Compress |文件输出-FilePath C:\Users\xtract\AppData\Local\Temp\executeCmd385362813\ output。/root/workspace/xtract_vm_qcow2_builder_prod/go/src/hypervisor/hyperv/hyperv_agent/utils. json", ErrorMsg="exit status 1", Location="/root/workspace/xtract_vm_qcow2_builder_prod/go/src/hypervisor/hyperv/hyperv_agent/utils. json", ErrorMsg="exit status 1", Location="go:96", Stderr="#< CLIXML < obs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">Get-VM:术语'Get-VM'不能被识别为cmdlet,函数,脚本文件的名称,或_x000D__x000A_可操作程序。检查名称的拼写,或者如果包含路径,验证路径_x000D__x000A_是正确的,然后重试。_x000D__x000A_At line:1 char:1_x000D__x000A_+ Get-VM | Select- object -ExpandProperty DVDDrives | Select ControllerT…_x000D__x000A_ < / S > < S S = "错误 ">+ ~~~~~~_ x000D__x000A_ < / S > < S S =“错误”> + CategoryInfo: ObjectNotFound: Get-VM: String [], CommandNotFoundException_x000D__x000A_ < / S > < S S =“错误”> + FullyQualifiedErrorId: CommandNotFoundException_x000D__x000A_ < / S > < S S =“错误”> _x000D__x000A_ < / S > < / obj > "] HyperV机器上Powershell命令失败。(错误= 0 x8008)”,位置= " /爱马仕/去/ src /程序/ hyperv / hyperv_agent_impl。执行Hyper-V API失败。(错误= 0 x8001)
最佳答案AJISH
\u00a0<\/p>
Thank you.<\/p>","className":"post__content__best_answer"}">