Skip to content
proxmox / qm

proxmox / qm

manage virtual machines (vms)

list vm’s:

qm list

start / stop qm:

qm start <VMID>
qm shutdown <VMID>
qm reboot <VMID>
qm stop <VMID>

display / get config

qm config <id>

modify memory, cpu

set memory in megabytes

qm set <vmid> -cores <num_cores> -memory <memory_size>

resize disk

you might want to run qm config <id> to find the name of the disk controller (scsi0 in this example)

qm resize <vmid> scsi0 +500G

create a clone

  • 9000 = source template
  • 1337 = new id
  • --full true might be required if you want to put it onto another storage
qm clone 9000 1337 --full true --storage storage-name --name vm-name

open vm console / display

serial console

qm terminal <VMID>

This only works if the guest has a serial console configured. Try:

qm set <VMID> --serial0 socket --vga serial0

exit serial console

Ctrl+O

then

q

log in to a VM

Find the IP via guest agent:

qm guest cmd <VMID> network-get-interfaces

Requires QEMU guest agent installed and enabled.

Enable guest agent in Proxmox:

qm set <VMID> --agent enabled=1

inside Debian/Ubuntu VM:

sudo apt install qemu-guest-agent
sudo systemctl enable --now qemu-guest-agent