Wednesday, December 28, 2016

cloning a qemu VM and removing old details present in clone



Cloning the vm:

First clone the VM using virt-manager UI. (launch # sudo virt-manager, the click on the VM to clone, and right click and select clone).

Assign a new name while cloning.

Ensure the new VM is shutdown and then run virt-sysprep as follows

Then, use virt-sysprep as follows:

virt-sysprep -d <new name of clone> --hostname <new hostname> --root-password password:<new root password>

Here,
-d => decontextualize

Look at man virt-sysprep for more options available.

No comments:

Post a Comment