How can I convert qcow2 to a template.

SmithCruise

New Member
Oct 14, 2019
12
0
1
35
I've downloaded the centos cloud image(Already included cloud-init tool) from the official site. I want to convert qcow2 to a template, what should I do, either I don't know how to import qcow2 to create a VM.
 
HI,

you must create a VM.
then you can use this command to import the disk to the VM
Code:
qm importdisk <vmid> <path to qcow2 file> <storage>