Uncategorized

Creating Proxmox Cloud-Init VM Ubuntu 22.04

All in one step
wget https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img \
  && qm create 9022 --memory 2048 --net0 virtio,bridge=vmbr0,tag=8 --agent enabled=1 --cores 2 --ostype l26 --name ubuntu22-template \
  && qm importdisk 9022 jammy-server-cloudimg-amd64.img local-lvm \
  && qm set 9022 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-9022-disk-0 \
  && qm resize 9022 scsi0 16G \
  && qm set 9022 --scsi0 local-lvm:vm-9022-disk-0,mbps_rd=200,mbps_wr=200,iops_rd=400,iops_wr=400 \
  && qm set 9022 --scsi2 local-lvm:cloudinit \
  && qm set 9022 --boot c --bootdisk scsi0 \
  && qm set 9022 --serial0 socket --vga serial0 \
  && echo Finished
Continue reading →
Posted by admin

Creating Proxmox Cloud-Init VM Ubuntu 20.04

All in one step
wget https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img \
  && qm create 9020 --memory 2048 --net0 virtio,bridge=vmbr0,tag=18 --agent enabled=1 --cores 2 --ostype l26 --name ubuntu20-template \
  && qm importdisk 9020 focal-server-cloudimg-amd64.img local-lvm \
  && qm set 9020 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-9020-disk-0 \
  && qm resize 9020 scsi0 +8G \
  && qm set 9020 --scsi0 local-lvm:base-9120-disk-0,mbps_rd=100,mbps_wr=100,iops_rd=100,iops_wr=100 \
  && qm set 9020 --scsi2 local-lvm:cloudinit \
  && qm set 9020 --boot c --bootdisk scsi0 \
  && qm set 9020 --serial0 socket --vga serial0 \
  && echo Finished
Continue reading →
Posted by admin, 0 comments