Virtual Machines

List VMs

qm list

Start a VM

qm start <vmid>

Shutdown a VM (nicely)

qm shutdown <vmid>

Shutdown a VM (with both hands)

qm stop <vmid>

Restart a VM (nicely)

qm reboot <vmid>

Restart a VM (Both Hands)

qm reset

Delete a VM

qm destroy <vmid>

Show a VMs config file

qm config <vmid>

Open a direct terminal

qm terminal <vmid>

LXC Containters

The following are the same as above just swap ‘qm’ for ‘pct’

  • List
  • Start
  • Stop
  • Shutdown
  • Config

Open a root shell

pct enter <ctid>

Run a command on the container (Don’t ask me what they are)

pct exec <ctid> -- command

Other

Show status and usage of all disks

pvesm status

Show versions of all installed packages

pveverion -v

Restart web management service

systemctl restart pvedaemon

Show real time system logs

journalctl -f