Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the cloning method of KVM virtual machine?

Shulou Source: shulou.com Published: 2022-06-01 08:43:03 09月29日 Update

KVM virtual machine cloning method is how, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

KVM virtual machine cloning (there are three VM virtual machine cloning methods) (1) Manual cloning * * We use test01 and cloned test02 to demonstrate * * test01-- > test02 step 1: enter the xml master configuration text of the test01 virtual machine Copy the xml file under the component directory: cp test01.xml test02.xml step 2: copy the disk file under the raw disk file directory of the test01 virtual machine: cp centos.raw test02.raw step 3: modify the configuration file and re-produce a virtual machine (definition) Vim test02.xml modifies the name Delete uuid, delete mac definition virtual machine complete manual cloning virsh define test02.xml (2) Link cloning step 1: let's turn off test01 and test02 above step 2: link the qcow2 disk format to test01's raw disk file Change the name to test02.qcow2 qemu-img create-f qcow2-b centos.raw test02.qcow2 View qemu-img info test02.qcow2 step 3: modify the disk file of test01 (change back to default) test02 (disk change to link file qcow2) step 4: redefine test01 test02 (3) complete cloning-step 1: virt-clone-- auto-clone-o test02-n test03 will it be helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: File disk method link name manual directory help configuration clear one-step content this article novice more format knowledge industry information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL macOS Linux Microsoft Redmi