Skip to content

Proxmox Cheat SheetΒΆ

How to create VMs with qm commands with a quickness!

Create a multi-homed VM without a hard drive:

qm create 114 --name my-amazing-vm --memory 4096 --cores 2 --cpu host --net0 virtio,bridge=vmbr1 --net1 virtio,bridge=vmbr1 --net2 virtio,bridge=vmbr1 --net3 virtio,bridge=vmbr1 --net4 virtio,bridge=vmbr1 --net5 virtio,bridge=vmbr1 --net6 virtio,bridge=vmbr1 --net7 virtio,bridge=vmbr1 --scsihw virtio-scsi-pci

Import a QCOW2 disk image to the local filesystem in RAW format:

qm importdisk 114 my-amazing-vm-disk-image.qcow2 local-btrfs --format raw

Specify the controller associted with the disk image previously imported:

qm set 114 --scsi0 local-btrfs:114/vm-114-disk-0.raw

Set boot order to prefer the SCSI controller:

qm set 114 --boot order=scsi0