proxmox / qm
proxmox / qm
manage virtual machines (vms)
list vm’s:
qm liststart / 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 +500Gcreate a clone
9000= source template1337= new id--full truemight be required if you want to put it onto another storage
qm clone 9000 1337 --full true --storage storage-name --name vm-nameopen 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 serial0exit serial console
Ctrl+Othen
qlog in to a VM
Find the IP via guest agent:
qm guest cmd <VMID> network-get-interfacesRequires QEMU guest agent installed and enabled.
Enable guest agent in Proxmox:
qm set <VMID> --agent enabled=1inside Debian/Ubuntu VM:
sudo apt install qemu-guest-agent
sudo systemctl enable --now qemu-guest-agent