kvm克隆虚拟机方法和步骤

2024-11-05 04:43:06

1、确定好我们要克隆的虚拟机virsh list --all

kvm克隆虚拟机方法和步骤

2、克隆之前需要对该模板机器关机virsh shutdown centos6.5

kvm克隆虚拟机方法和步骤

3、如果没办法关机使用virsh destroycentos6.5

kvm克隆虚拟机方法和步骤

4、使用下面命令进行克隆virt-clone --connect qemu:///system --original centos6.5 --name centos6.5_new --file /home/images/centos6.5_new.imgcentos6.5是模板机名称 后面name和file是克隆出新机器的名称和image位置

kvm克隆虚拟机方法和步骤

5、新克隆出的机器默认是关机的,可以用virsh list --all查看

kvm克隆虚拟机方法和步骤

6、用start命令启动克隆完成的机器

kvm克隆虚拟机方法和步骤

7、同样可以通过图形的控制台查看机器启动情况

kvm克隆虚拟机方法和步骤
猜你喜欢