我正在尝试添加Hyper-V主机到Move中迁移虚拟机。
但是添加主机后,虚拟机库存没有加载(显示0个虚拟机)。当我尝试刷新时,我得到以下错误:
无法为源头获取库存。[apiname =“get vm”,hypervisorerr =“[cmd =”get-vm |SELECT-Object -Bexpanderty DVDDRIVES |选择Controllertype,Controllernumber,ControllerLocation,Path,SupportPersistentReservations,VMName,VMID |ConvertTo-Json -Compress |Out-file -filepath c:\ xtract \ appdata \ local \ temp \ executecmd385362813 \ out.json“,errormsg =”退出状态1“,location =”/ root / workspace / xtract_vm_qcow2_builder_prod / go / src / hypervisor / hyperv/ hyperv_agent/utils.go:96“,stderr =”#Get-VM : The term 'Get-VM' is not recognized as the name of a cmdlet, function, script file, or _x000D__x000A_operable program. Check the spelling of the name, or if a path was included, verify that the path _x000D__x000A_is correct and try again._x000D__x000A_At line:1 char:1_x000D__x000A_+ Get-VM | Select-Object -ExpandProperty DVDDrives | Select ControllerT ..._x000D__x000A_+ ~~~~~~_x000D__x000A_ + CategoryInfo : ObjectNotFound: (Get-VM:String) [], CommandNotFoundException_x000D__x000A_ + FullyQualifiedErrorId : CommandNotFoundException_x000D__x000A_ _x000D__x000A_"] Powershell command failed on HyperV machine. (error=0x8008)", Location="/hermes/go/src/hypervisor/hyperv/hyperv_agent_impl.go:1309"] Failed to execute Hyper-V API. (error=0x8001)
最佳答案AJISH
\u00a0<\/p>
Thank you.<\/p>","className":"post__content__best_answer"}">