wget https://download.fedoraproject.org/pub/fedora/linux/releases/39/Cloud/x86_64/images/Fedora-Cloud-Base-39-1.5.x86_64.qcow2
root@pve7demo1:~# VMID=3010 OSUSER=fedora ./vm_create.sh
variables used:
STORAGE == blockbridge-nvme
VMID == 3010
DEVICE == scsi0
NAME == vm3010
OSUSER == fedora
CONSOLE == vga
CLOUDINIT == local
==============
+ qm create 3010 --memory 8192 --name vm3010 --socket 1 --onboot no
+ qm importdisk 3010 /mnt/pve/bbnas/template/iso/Fedora-Cloud-Base-39-1.5.x86_64.qcow2 blockbridge-nvme --format raw
+ qm set 3010 --scsihw virtio-scsi-single --scsi0 blockbridge-nvme:vm-3010-disk-0
update VM 3010: -scsi0 blockbridge-nvme:vm-3010-disk-0 -scsihw virtio-scsi-single
+ qm set 3010 -net0 virtio,bridge=vmbr0,firewall=1
update VM 3010: -net0 virtio,bridge=vmbr0,firewall=1
+ qm set 3010 --scsi1 blockbridge-nvme:cloudinit
update VM 3010: -scsi1 blockbridge-nvme:cloudinit
scsi1: successfully created disk 'blockbridge-nvme:vm-3010-cloudinit,media=cdrom'
generating cloud-init ISO
+ qm disk resize 3010 scsi0 8G
+ qm set 3010 --boot c --bootdisk scsi0
update VM 3010: -boot c -bootdisk scsi0
+ qm set 3010 --serial0 socket --vga virtio
update VM 3010: -serial0 socket -vga virtio
+ qm set 3010 -ipconfig0 ip=dhcp
update VM 3010: -ipconfig0 ip=dhcp
+ qm set 3010 --cipassword debian --ciuser fedora
update VM 3010: -cipassword <hidden> -ciuser fedora
+ qm set 3010 -sshkeys /root/.ssh/id_rsa.pub
update VM 3010: -sshkeys ssh-
......
......
root@pve7demo1:~# qm start 3010
generating cloud-init ISO
root@pve7demo1:~# ssh -i .ssh/id_rsa fedora@172.16.150.52
[fedora@vm3010 ~]$
logout
root@pve7demo1:~#