Command Line Tools

From Proxmox VE
Revision as of 15:27, 16 December 2022 by Thomas Lamprecht (talk | contribs) (Removed redirect to Command line tools - PVE 3.x)
Jump to navigation Jump to search

Introduction

This page lists some important Proxmox VE and Debian command line tools.

Virtual Machines (QEMU/KVM) specific

qm

To view a list of KVMs:

qm list
      VMID NAME                 STATUS     MEM(MB)    BOOTDISK(GB) PID
       100 alpha001             running    2048               8.00 5858
       101 WINXP002             running    1024              32.00 6177
       102 Win2K                running    2048              32.00 113893
       105 axe002               running    16384            100.00 279613

To see how much memory your machine 101 has:

qm config 101 | grep ^memory
memory: 2048

see man qm (available online) for further info

Container (LXC)

pct list


Backup

vzdump

vzdump - backup utility for virtual machine - see "man vzdump"

Restore

VM Restore

qmrestore - restore QEMU/KVM vzdump backups - see "man qmrestore"


Container Restore

pct restore

Cluster Management

pvecm status

PVE Cluster Manager - see "man pvecm" for details.

Software version check

pveversion -v

Proxmox VE version info - Print version information for Proxmox VE packages.

LVM

Most of the commands in LVM are very similar to each other. Each valid command is preceded by one of the following:

  • Physical Volume = pv
  • Volume Group = vg
  • Logical Volume = lv


Debian Appliance Builder

dab

See Debian Appliance Builder

Other useful tools

pveperf

Simple host performance test - see "man pveperf".

Note: this command may require root privileges (or sudo) to run, otherwise you get an error after "HD SIZE" value, like: <<sh: /proc/sys/vm/drop_caches: Permission denied unable to open HD at /usr/bin/pveperf line 149.>>

Example output

CPU BOGOMIPS:      26341.80
REGEX/SECOND:      1554770
HD SIZE:           94.49 GB (/dev/mapper/pve-root)
BUFFERED READS:    49.83 MB/sec
AVERAGE SEEK TIME: 14.16 ms
FSYNCS/SECOND:     1060.47
DNS EXT:           314.58 ms
DNS INT:           236.94 ms (mypve.com)

pvesubscription

For managing a node's subscription key - see "man pvesubscription"

Third party CLI Tools