1.在 Hyper-V Manager 中,从 Actions 菜单选择 Import Virtual Machine。 2.找到要导入的 VM 的位置。 3.如果此 VM 是唯一的,选择 Move or Restore the Virtual Machine。如果已有这个 VM 的一个实例,则选择 Copy the Virtual Machine。 4.单击 Import。 现在你发现该 VM 在 Hyper-V Manager 中显示为脱机...
Move-VM [-ComputerName <String[]>] [-Credential <PSCredential[]>] [-Name] <String> [-DestinationHost] <String> [-DestinationCredential <PSCredential>] [-VirtualMachinePath <String>] [-SnapshotFilePath <String>] [-SmartPagingFilePath <String>] [-Vhds <Hashtable[]>] [-ResourcePoolName <...
PS C:\>Move-VMStorage “新建虚拟机” –VirtualMachinePath D:\新建虚拟机\Config –SnapshotFilePath D:\新建虚拟机\Snapshots –SmartPagingFilePath D:\新建虚拟机\SmartPaging –VHDs @(@{“SourceFilePath” = “C:\新建虚拟机\Disk1.VHDX”; “DestinationFilePath” = “D:\新建虚拟机\Disks\Dis...
方法2. 使用PowerShell实时迁移虚拟机 使用Move-VM命令,您还可以将正在运行的虚拟机移动到目标服务器,并使用它移动虚拟硬盘和其他文件。 下面是一个示例,将名为MyVM的正在运行的虚拟机移动到名为Host1的目标服务器,并将虚拟硬盘和其他文件(如检查点和智能分页文件)移动到目标服务器上的D:\MyVM目录。 PS C:\>...
If you are not happy with the current folder where your virtual machine is stored, you can move it to another folder or disk. You can use either the Hyper-V Manager tool, or PowerShell. To Move a Hyper-V Virtual Machine in Windows 10, Open the Hyper-V Manager from the Start menu....
Move-VM [-ComputerName <String[]>] [-Credential <PSCredential[]>] [-Name] <String> [-DestinationHost] <String> [-DestinationCredential <PSCredential>] [-VirtualMachinePath <String>] [-SnapshotFilePath <String>] [-SmartPagingFilePath <String>] [-Vhds <Hashtable[]>] [-ResourcePoolName <...
Move-VM[-VM] <VirtualMachine> [-DestinationHost] <String> [-DestinationCredential <PSCredential>] [-VirtualMachinePath <String>] [-SnapshotFilePath <String>] [-SmartPagingFilePath <String>] [-Vhds <Hashtable[]>] [-ResourcePoolName <String>] [-RetainVhdCopiesOnSource] [-RemoveSourceUnmanage...
通过Powershell也能进行虚拟机的迁移,使用命令Move-VM。首先我们先查看在Powershell中的迁移虚拟机的命令语法。 命令Move-VM的语法中包括了: -SmartPagingFile: 智能分页处理。 -AnapshotFile :快照文件。 -VirtualMachine: 虚拟机配置文件。 -VHDs :虚拟机的虚拟硬盘。
Move-VM [-ComputerName <String[]>] [-Credential <PSCredential[]>] [-Name] <String> [-DestinationHost] <String> [-DestinationCredential <PSCredential>] [-VirtualMachinePath <String>] [-SnapshotFilePath <String>] [-SmartPagingFilePath <String>] [-Vhds <Hashtable[]>] [-ResourcePoolName <...
Move-VM [-ComputerName <String[]>] [-Credential <PSCredential[]>] [-Name] <String> [-DestinationHost] <String> [-DestinationCredential <PSCredential>] [-VirtualMachinePath <String>] [-SnapshotFilePath <String>] [-SmartPagingFilePath <String>] [-Vhds <Hashtable[]>] [-ResourcePoolName <...