When I create a template from a cloud image I run the following
But now I am using ZFS that's not possible mainly the part below
How do I achieve this same outcome but with ZFS?
Code:
qm create 8110 --name Ubuntu20.04 --memory 2048
qm importdisk 8110 focal-server-cloudimg-amd64.img local
cd /var/lib/vz/images/8110
qemu-img convert -O qcow2 vm-8110-disk-0.raw vm-8110-disk-0.qcow2
qm set 8110 --scsihw virtio-scsi-pci --scsi0 local:8110/vm-8110-disk-0.qcow2
qm set 8110 --ide2 local:cloudinit
qm set 8110 --boot c --bootdisk scsi0
qm set 8110 --serial0 socket --vga serial0
rm -rf vm-8110-disk-0.raw
sed -i '/unused0/d' /etc/pve/qemu-server/8110.conf
But now I am using ZFS that's not possible mainly the part below
Code:
cd /var/lib/vz/images/8110
qemu-img convert -O qcow2 vm-8110-disk-0.raw vm-8110-disk-0.qcow2
How do I achieve this same outcome but with ZFS?