Proxmox Virtual Environment (PVE) – Useful Commands

Proxmox Virtual Environment (PVE) – Useful Commands Summary

1. Cluster and Node Status

  • Check Cluster Status:

    pvecm status
    • Shows connected nodes and their IDs.

  • Check Node Resources:

    pveperf
    • Displays CPU, disk, seek time, file sync time, DNS, etc.


2. Virtual Machines (QEMU) Management

  • List VMs:

    qm list
  • Start a VM:

    qm start <vmid>
  • Stop a VM:

    qm stop <vmid>
  • Reboot a VM:

    qm reboot <vmid>
  • Clone a VM:

    qm clone <source_vmid> <new_vmid>
  • View VM Configuration:

    qm config <vmid>
  • Restore VM from Backup:

    qmrestore <backup_file_path> <vmid>

3. Container (LXC) Management

  • List Containers:

  • Enter Container Shell:


4. Backup and Restore

  • Backup a VM:

    • Creates a backup file under /var/lib/vz/dump/

  • View Backup Logs:


5. Disk and Storage Management

  • List Block Devices:

  • Check Disk Usage (Human-readable):

  • Check Memory Usage:

  • Check Storage Status:

  • Add New Storage:

    • Refer to storage tutorial for detailed syntax.


6. Network and Logs

  • Check IP Address:

  • View System Logs:


7. System Updates

  • Update Package List:

  • Upgrade Packages:


Tips

  • The Web UI uses the same backend commands.

  • Learning CLI gives you more control and access to advanced features.

  • Practice basic commands before moving to advanced operations.

Last updated

Was this helpful?