Command Line Tools: Difference between revisions
(Thomas Lamprecht moved page Command line tools to Command line tools - PVE 3.x) Tag: New redirect |
m (Removed redirect to Command line tools - PVE 3.x) Tag: Removed redirect |
||
Line 1: | Line 1: | ||
= 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 | |||
<pre> | |||
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 | |||
</pre> | |||
To see how much memory your machine 101 has: | |||
qm config 101 | grep ^memory | |||
<pre> | |||
memory: 2048 | |||
</pre> | |||
see <code>man qm</code> ([https://pve.proxmox.com/pve-docs/qm.1.html available online]) for further info | |||
= Container (LXC) = | |||
<code>pct list</code> | |||
<!-- TODO --> | |||
= Backup = | |||
== vzdump == | |||
vzdump - backup utility for virtual machine - see "man vzdump" | |||
== Restore == | |||
== VM Restore == | |||
<code>qmrestore</code> - restore QEMU/KVM vzdump backups - see "man qmrestore" | |||
<!-- TODO: pbs, qm create <vmid> --archive, ...? --> | |||
== Container Restore == | |||
pct restore | |||
== Cluster Management == | |||
<code>pvecm status</code> | |||
PVE Cluster Manager - see "man pvecm" for details. | |||
== Software version check == | |||
<code>pveversion -v</code> | |||
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 | |||
<!-- TODO ZFS, Ceph (RBD/CephFS), btrfs --> | |||
== 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 ==== | |||
<pre> | |||
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) | |||
</pre> | |||
=== pvesubscription === | |||
For managing a node's subscription key - see "man pvesubscription" | |||
=== Third party CLI Tools === | |||
* [https://raymii.org/s/software/ProxBash.html ProxBash] | |||
[[Category:Proxmox VE 3.x]] |
Revision as of 15:27, 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.
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"