虚拟机克隆
1.图形界面:Applications (左上角)-----> System Tools ------>Virtual Machine Manager
关闭要克隆的虚拟机,右键点击虚拟机选择Clone
2.字符终端,命令克隆
[root@wenmao~]# virt-clone -o test12 --auto-clone
WARNING 设置图形设备端口为自动端口,以避免相互冲突。
正在分配 'test12-clone.qcow2' | 6.0 GB 00:00:05
成功克隆 'test12-clone'。
-o origin
[root@wenmao~]# virt-clone -o test12 -n test13 --auto-clone
WARNING 设置图形设备端口为自动端口,以避免相互冲突。
正在分配 'test13.qcow2' | 6.0 GB 00:00:06
成功克隆 'test13'。
[root@wenmao~]# virt-clone -o test12 -n test13 -f /var/lib/libvirt/images/test13.img
正在克隆
test12.img | 8.0 GB 01:03
Clone 'test13' created successfully.
这条命令在克隆的同时,可以指定镜像文件的位置和名称。