I'm trying to automate the creation of VMs using cloudimg's and I've got a template and a clone created, but the clone VM won't start it just says "starting serial terminal on interface serial0". This is my script:
Is there something I'm missing?
Code:
wget https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img
zfs create -V 1M nvme-virt/vm-8000-disk-0
qm create 8000 --memory 2048 --balloon 0 --core 2 --bios ovmf --machine q35 --cpu host --numa 1 --sockets 2 --name Ubuntu-Template --net0 virtio,bridge=vmbr0 --serial0 socket --vga serial0 --scsihw virtio-scsi-pci --efidisk0 nvme-virt:vm-8000-disk-0,efitype=4m,pre-enrolled-keys=0,size=1M
qm importdisk 8000 jammy-server-cloudimg-amd64.img nvme-virt
qm set 8000 --scsihw virtio-scsi-pci --scsi0 nvme-virt:vm-8000-disk-1,discard=on,ssd=true,size=16000M
qm set 8000 --ide2 nvme-virt:cloudinit
qm set 8000 --boot c --bootdisk scsi0
qm template 8000
qm clone 8000 8005 --name CI-test --full
qm set 8005 --sshkey ~/.ssh/authorized_keys --ipconfig0 ip=dhcp --ciuser UntouchedWagons --cipassword RipeTallRiverBrighten
Is there something I'm missing?