Clone VM

Libvirt VM aus Template klonen

Neues ZFS Dataset anlegen

zfs create tank/vms/test01

VM klonen

virt-clone --original template_ubuntu_2004 --name test01 --file /srv/vms/test01/test01_disk01.qcow2

VM anpassen

w=$(virt-sysprep --list-operations | egrep -v 'user-account|ssh-userdir' | awk '{ printf "%s,", $1}' | sed 's/,$//')
virt-sysprep -d test01 --hostname test01 --enable $w --firstboot-command 'dpkg-reconfigure openssh-server; chage -d 0 jochen'