Tạo Cloud Image Ubuntu cho Proxmox Node
Download Current Ubuntu Cloud Image:
wget https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img
Tạo new virtual machine:
8000: là Virtual Machine Id trên proxmox
ubuntu-cloud: là tên của vm
qm create 8000 --memory 2048 --core 2 --name ubuntu-cloud --net0 virtio,bridge=vmbr0
Import disk vào local-lvm storage
qm importdisk 8000 jammy-server-cloudimg-amd64.img local-lvm
Attach the new disk to the vm as a scsi drive on the scsi controller
qm set 8000 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-8000-disk-0
Make the cloud init drive bootable and restrict BIOS to boot from disk only
qm set 8000 --boot c --bootdisk scsi0
Add serial console
qm set 8000 --serial0 socket --vga serial0
Create template.
qm template 8000
Clone template.
qm clone 8000 135 --name yoshi --full