Command Line Tools: Difference between revisions
m (Removed redirect to Command line tools - PVE 3.x) Tag: Removed redirect |
mNo edit summary |
||
Line 49: | Line 49: | ||
pct restore | pct restore | ||
= Cluster Management = | |||
<code>pvecm status</code> | <code>pvecm status</code> | ||
Line 55: | Line 55: | ||
PVE Cluster Manager - see "man pvecm" for details. | PVE Cluster Manager - see "man pvecm" for details. | ||
= Software version check = | |||
<code>pveversion -v</code> | <code>pveversion -v</code> | ||
Proxmox VE version info - Print version information for Proxmox VE packages. | Proxmox VE version info - Print version information for Proxmox VE packages. | ||
= Storage = | |||
== LVM == | == LVM == | ||
Line 72: | Line 74: | ||
<!-- TODO ZFS, Ceph (RBD/CephFS), btrfs --> | <!-- TODO ZFS, Ceph (RBD/CephFS), btrfs --> | ||
= Debian Appliance Builder = | |||
== dab == | |||
See [[Debian Appliance Builder]] | See [[Debian Appliance Builder]] | ||
= Other useful tools = | |||
=== pveperf === | === pveperf === | ||
Line 86: | Line 88: | ||
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.>> | 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 === | |||
<pre> | <pre> | ||
CPU BOGOMIPS: 26341.80 | CPU BOGOMIPS: 26341.80 | ||
Line 98: | Line 100: | ||
</pre> | </pre> | ||
== pvesubscription == | |||
For managing a node's subscription key - see "man pvesubscription" | For managing a node's subscription key - see "man pvesubscription" | ||
<!-- TODO extend --> | |||
Revision as of 15:28, 16 December 2022
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.
Storage
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
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"