What does "/scripts/kvmtemplate --mode=prepare" do?

Have more questions? Submit a request

Applicable to:

  • SolusVM

Question

What does command query /scripts/kvmtemplate --mode=prepare from Create KVM Template article do?

Answer

The script /scripts/kvmtemplate is a wrapper for the set of tools provided by libguestfs-tools package and option --mode=prepare invokes the following command:

# virt-sysprep -v -a /path/to/VPS/lvm_image

Virt-sysprep resets or unconfigure a virtual machine so that clones can be made from it.
The command runs most of the operations from this list:
https://libguestfs.org/virt-sysprep.1.html#operations

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.