Proxmox Command Line

Posted on January 10, 2024 • 1 min read • 101 words

Useful Proxmox commands for the command line

Proxmox Command Line
Photo by fullvector  on Freepik 

Open your Proxmox machine of choice and open it’s shell to use the following commands.

Handling virtual maschines (VM)

List virtual maschines

qm list <vmid>

Start / Stop

qm start <vmid>
qm stop <vmid>

Display VM configuration

qm config <vmid>

Handling lokal virtual disks

Resize a virtual disk

You might want to get the VM’s disk name () via qm config <vmid>. (e.g. scsi0).

For an LXC Container it’s often rootfs.

Increase by 5GB:

qm resize <vmid> <hdname> +5G

Increase to 20GB:

qm resize <vmid> <hdname> 20G
or
pct resize <vmid> <hdname> 20G

Remove virtual Disk

qm set <vmid> --delete <hdname>