unattended_installations:proxmox
Diferencias
Muestra las diferencias entre dos versiones de la página.
Próxima revisión | Revisión previa | ||
unattended_installations:proxmox [2015/02/25 23:29] – creado jdzant | unattended_installations:proxmox [2022/11/02 17:58] (actual) – editor externo 127.0.0.1 | ||
---|---|---|---|
Línea 1: | Línea 1: | ||
- | Introduction | + | Introduction |
- | This page lists the important Proxmox VE and Debian command line tools. All CLI tools have also manual pages. | + | |
- | KVM specific | + | This page lists the important Proxmox VE and Debian command line tools. All CLI tools have also manual pages. |
- | qm | + | KVM specific |
- | qm - qemu/kvm manager - see Manual: qm and Qm manual | + | qm |
- | OpenVZ specific | + | |
- | vzps | + | qm - qemu/kvm manager - see Manual: qm and Qm manual |
- | This utility program can be run on the Node just as the standard Linux ps. For information on the ps utility please consult the corresponding man page, vzps provides certain additional functionality related to monitoring separate Containers running on the Node. | + | OpenVZ specific |
- | The vzps utility has the following functionality added: | + | vzps |
- | • The -E CT_ID command line switch can be used to show only the processes running inside the Container with the specified ID. | + | |
- | pvectl | + | This utility program can be run on the Node just as the standard Linux ps. For information on the ps utility please consult the corresponding man page, vzps provides certain additional functionality related to monitoring separate Containers running on the Node. |
- | pvectl - vzctl wrapper to manage OpenVZ containers - see Pvectl manual | + | |
- | vzctl | + | The vzps utility has the following functionality added: |
- | vzctl - utility to control an OpenVZ container - see Vzctl manual | + | |
- | vztop | + | |
- | This utility program can be run on the Node just as the standard Linux top . For information on the top utility please consult the corresponding man page, vztop provides certain additional functionality related to monitoring separate Containers running on the Node. | + | |
- | The vztop utility has the following functionality added: | + | pvectl |
- | • The -E CT_ID command line switch can be used to show only the processes running inside the Container with the ID specified. If -1 is specified as CT_ID, the processes of all running Containers are displayed. | + | |
- | • The e interactive command (the key pressed while top is running) can be used to show/hide the CTID column, which displays the Container where a particular process is running (0 stands for the Hardware Node itself). | + | pvectl - vzctl wrapper to manage OpenVZ containers - see Pvectl manual |
- | • The E interactive command can be used to select another Container the processes of which are to be shown. If -1 is specified, the processes of all running Containers are displayed. | + | vzctl |
- | vztop - display top CPU processes | + | |
+ | vzctl - utility to control an OpenVZ container - see Vzctl manual | ||
+ | vztop | ||
+ | |||
+ | This utility program can be run on the Node just as the standard Linux top . For information on the top utility please consult the corresponding man page, vztop provides certain additional functionality related to monitoring separate Containers running on the Node. | ||
+ | |||
+ | The vztop utility has the following functionality added: | ||
+ | |||
+ | | ||
+ | The e interactive command (the key pressed while top is running) can be used to show/hide the CTID column, which displays the Container where a particular process is running (0 stands for the Hardware Node itself). | ||
+ | The E interactive command can be used to select another Container the processes of which are to be shown. If -1 is specified, the processes of all running Containers are displayed. | ||
+ | |||
+ | vztop - display top CPU processes | ||
| | ||
197 processes: 196 sleeping, 1 running, 0 zombie, 0 stopped | 197 processes: 196 sleeping, 1 running, 0 zombie, 0 stopped | ||
Línea 51: | Línea 64: | ||
.. | .. | ||
.. | .. | ||
- | user_beancounters | + | |
- | cat / | + | user_beancounters |
+ | |||
+ | cat / | ||
Version: 2.5 | Version: 2.5 | ||
Línea 105: | Línea 121: | ||
numiptent | numiptent | ||
- | vzlist | + | vzlist |
- | example: | + | |
+ | | ||
vzlist | vzlist | ||
CTID NPROC STATUS | CTID NPROC STATUS | ||
Línea 112: | Línea 130: | ||
| | ||
| | ||
- | From PVE 3.0 onwards, the display will be: | + | |
+ | From PVE 3.0 onwards, the display will be: | ||
vzlist | vzlist | ||
CTID NPROC STATUS | CTID NPROC STATUS | ||
Línea 118: | Línea 138: | ||
| | ||
| | ||
- | • The fields for (-o option) selective display are: ctid, nproc, status, ip, hostname. | + | |
- | • All are case sensitive and are used with the options -H (no header) and -o [field1, field2, ...] | + | |
- | • The binary is at: / | + | All are case sensitive and are used with the options -H (no header) and -o [field1, field2, ...] |
- | • by default, vzlist lists only RUNNING CTs, stopped ones won't appear in its output (qm list for VMs, instead, lists also stopped ones) | + | The binary is at: / |
- | USAGE | + | by default, vzlist lists only RUNNING CTs, stopped ones won't appear in its output (qm list for VMs, instead, lists also stopped ones) |
+ | |||
+ | USAGE | ||
Usage: vzlist [-a | -S] [-n] [-H] [-o field[, | Usage: vzlist [-a | -S] [-n] [-H] [-o field[, | ||
[-h pattern] [-N pattern] [-d pattern] [CTID [CTID ...]] | [-h pattern] [-N pattern] [-d pattern] [CTID [CTID ...]] | ||
Línea 142: | Línea 165: | ||
-d, --description filter CTs by description pattern | -d, --description filter CTs by description pattern | ||
-L, --list | -L, --list | ||
- | Backup | ||
- | vzdump | ||
- | vzdump - backup utility for virtual machine - see Vzdump manual | ||
- | vzrestore | ||
- | vzrestore - restore OpenVZ vzdump backups - see Vzrestore manual | ||
- | qmrestore | ||
- | qmrestore - restore KVM vzdump backups - see Qmrestore manual | ||
- | Cluster management | ||
- | pveca | ||
- | PVE Cluster Administration Toolkit | ||
- | USAGE | ||
- | • pveca -l # show cluster status | ||
- | • pveca -c # create new cluster with localhost as master | ||
- | • pveca -s [-h IP] # sync cluster configuration from master (or IP) | ||
- | • pveca -d ID # delete a node | ||
- | • pveca -a [-h IP] # add new node to cluster | ||
- | • pveca -m # force local node to become master | ||
- | • pveca -i # print node info (CID NAME IP ROLE) | ||
- | Software version check | ||
- | pveversion | ||
- | Proxmox VE version info - Print version information for Proxmox VE packages. | ||
- | USAGE | ||
- | pveversion [--verbose] | ||
- | • without any argument shows the version of pve-manager, | ||
- | pve-manager/ | ||
- | or | ||
- | pve-manager/ | ||
- | • with -v argument it shows a list of programs versions related to pve, like: | ||
- | pve-manager: | ||
- | running kernel: 2.6.18-2-pve | ||
- | proxmox-ve-2.6.18: | ||
- | pve-kernel-2.6.18-2-pve: | ||
- | pve-kernel-2.6.18-1-pve: | ||
- | qemu-server: | ||
- | pve-firmware: | ||
- | libpve-storage-perl: | ||
- | vncterm: 0.9-2 | ||
- | vzctl: 3.0.23-1pve8 | ||
- | vzdump: 1.2-5 | ||
- | vzprocps: 2.0.11-1dso2 | ||
- | vzquota: 3.0.11-1 | ||
- | pve-qemu-kvm-2.6.18: | ||
- | or | ||
- | pve-manager: | ||
- | running kernel: 2.6.32-20-pve | ||
- | proxmox-ve-2.6.32: | ||
- | pve-kernel-2.6.32-20-pve: | ||
- | lvm2: 2.02.95-pve3 | ||
- | clvm: 2.02.95-pve3 | ||
- | corosync-pve: | ||
- | openais-pve: | ||
- | libqb0: 0.11.1-2 | ||
- | redhat-cluster-pve: | ||
- | resource-agents-pve: | ||
- | fence-agents-pve: | ||
- | pve-cluster: | ||
- | qemu-server: | ||
- | pve-firmware: | ||
- | libpve-common-perl: | ||
- | libpve-access-control: | ||
- | libpve-storage-perl: | ||
- | vncterm: 1.1-4 | ||
- | vzctl: 4.0-1pve3 | ||
- | vzprocps: 2.0.11-2 | ||
- | vzquota: 3.1-2 | ||
- | pve-qemu-kvm: | ||
- | ksm-control-daemon: | ||
- | aptitude | ||
- | Standard Debian package update tool | ||
- | 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 | ||
- | USAGE | ||
- | Physical Volume Volume Group Logical Volume | ||
- | LVM PV VG LV | ||
- | s No Yes Yes Yes | ||
- | display No Yes Yes Yes | ||
- | create No Yes Yes Yes | ||
- | rename No No Yes Yes | ||
- | change Yes Yes Yes Yes | ||
- | move No Yes Yes No | ||
- | extend No No Yes Yes | ||
- | reduce No No Yes Yes | ||
- | resize No Yes No Yes | ||
- | split No No Yes No | ||
- | merge No No Yes No | ||
- | convert No No Yes Yes | ||
- | import No No Yes No | ||
- | export No No Yes No | ||
- | importclone No No Yes No | ||
- | cfgbackup No No Yes No | ||
- | cfgrestore No No Yes No | ||
- | ck No Yes Yes No | ||
- | scan diskscan Yes Yes Yes | ||
- | mknodes No No Yes No | ||
- | remove No Yes Yes Yes | ||
- | dump Yes No No No | ||
- | iSCSI | + | Backup |
- | DRBD | + | vzdump |
- | See DRBD | + | |
- | Debian Appliance Builder | + | vzdump - backup utility for virtual machine - see Vzdump manual |
- | dab | + | vzrestore |
- | See Debian Appliance Builder | + | |
- | Other useful tools | + | vzrestore - restore OpenVZ vzdump backups - see Vzrestore manual |
- | pveperf | + | qmrestore |
- | Simple host performance test. | + | |
- | (from man page) | + | qmrestore - restore KVM vzdump backups - see Qmrestore manual |
- | USAGE | + | Cluster management |
- | pveperf [PATH] | + | pveca |
- | DESCRIPTION | + | |
- | Tries to gather some CPU/Hardisk performance data on the hardisk mounted at PATH (/ is used as default) | + | PVE Cluster Administration Toolkit |
- | It dumps on the terminal: | + | USAGE |
- | • CPU BOGOMIPS: bogomips sum of all CPUs | + | |
- | • REGEX/ | + | pveca -l # show cluster status |
- | • HD SIZE: harddisk size | + | pveca -c # create new cluster with localhost as master |
- | • BUFFERED READS: simple HD read test. Modern HDs should reach at least 40 MB/sec | + | pveca -s [-h IP] # sync cluster configuration from master (or IP) |
- | • AVERAGE SEEK TIME: tests average seek time. Fast SCSI HDs reach values < 8 milliseconds. Common IDE/SATA disks get values from 15 to 20 ms. | + | pveca -d ID # delete a node |
- | • FSYNCS/ | + | pveca -a [-h IP] # add new node to cluster |
- | • DNS EXT: average time to resolve an external DNS name | + | pveca -m # force local node to become master |
- | • DNS INT: average time to resolve a local DNS name | + | pveca -i # print node info (CID NAME IP ROLE) |
- | Note: this command may require root privileges (or sudo) to run, otherwise you get an error after "HD SIZE" value, like: <<sh: / | + | |
- | Example output | + | Software version check |
+ | pveversion | ||
+ | |||
+ | Proxmox VE version info - Print version information for Proxmox VE packages. | ||
+ | USAGE | ||
+ | |||
+ | pveversion [--verbose] | ||
+ | |||
+ | without any argument shows the version of pve-manager, | ||
+ | |||
+ | pve-manager/ | ||
+ | |||
+ | or | ||
+ | |||
+ | pve-manager/ | ||
+ | |||
+ | with -v argument it shows a list of programs versions related to pve, like: | ||
+ | |||
+ | pve-manager: | ||
+ | running kernel: 2.6.18-2-pve | ||
+ | proxmox-ve-2.6.18: | ||
+ | pve-kernel-2.6.18-2-pve: | ||
+ | pve-kernel-2.6.18-1-pve: | ||
+ | qemu-server: | ||
+ | pve-firmware: | ||
+ | libpve-storage-perl: | ||
+ | vncterm: 0.9-2 | ||
+ | vzctl: 3.0.23-1pve8 | ||
+ | vzdump: 1.2-5 | ||
+ | vzprocps: 2.0.11-1dso2 | ||
+ | vzquota: 3.0.11-1 | ||
+ | pve-qemu-kvm-2.6.18: | ||
+ | |||
+ | or | ||
+ | |||
+ | pve-manager: | ||
+ | running kernel: 2.6.32-20-pve | ||
+ | proxmox-ve-2.6.32: | ||
+ | pve-kernel-2.6.32-20-pve: | ||
+ | lvm2: 2.02.95-pve3 | ||
+ | clvm: 2.02.95-pve3 | ||
+ | corosync-pve: | ||
+ | openais-pve: | ||
+ | libqb0: 0.11.1-2 | ||
+ | redhat-cluster-pve: | ||
+ | resource-agents-pve: | ||
+ | fence-agents-pve: | ||
+ | pve-cluster: | ||
+ | qemu-server: | ||
+ | pve-firmware: | ||
+ | libpve-common-perl: | ||
+ | libpve-access-control: | ||
+ | libpve-storage-perl: | ||
+ | vncterm: 1.1-4 | ||
+ | vzctl: 4.0-1pve3 | ||
+ | vzprocps: 2.0.11-2 | ||
+ | vzquota: 3.1-2 | ||
+ | pve-qemu-kvm: | ||
+ | ksm-control-daemon: | ||
+ | |||
+ | aptitude | ||
+ | |||
+ | Standard Debian package update tool | ||
+ | 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 | ||
+ | |||
+ | USAGE | ||
+ | |||
+ | Physical Volume Volume Group Logical Volume | ||
+ | LVM PV VG LV | ||
+ | s No Yes | ||
+ | |||
+ | Yes | ||
+ | Yes | ||
+ | display No Yes Yes Yes | ||
+ | create No Yes Yes Yes | ||
+ | rename No No Yes Yes | ||
+ | change Yes Yes Yes Yes | ||
+ | move No Yes Yes No | ||
+ | extend No No Yes Yes | ||
+ | reduce No No Yes Yes | ||
+ | resize No Yes No Yes | ||
+ | split No No Yes No | ||
+ | merge No No Yes No | ||
+ | convert No No Yes Yes | ||
+ | import No No Yes No | ||
+ | export No No Yes No | ||
+ | importclone No No Yes No | ||
+ | cfgbackup No No Yes No | ||
+ | cfgrestore No No Yes No | ||
+ | ck No Yes Yes No | ||
+ | scan diskscan Yes Yes Yes | ||
+ | mknodes No No Yes No | ||
+ | remove No Yes Yes Yes | ||
+ | dump Yes No No No | ||
+ | |||
+ | |||
+ | iSCSI | ||
+ | DRBD | ||
+ | |||
+ | See DRBD | ||
+ | Debian Appliance Builder | ||
+ | dab | ||
+ | |||
+ | See Debian Appliance Builder | ||
+ | Other useful tools | ||
+ | pveperf | ||
+ | |||
+ | Simple host performance test. | ||
+ | |||
+ | (from man page) | ||
+ | USAGE | ||
+ | |||
+ | | ||
+ | |||
+ | DESCRIPTION | ||
+ | |||
+ | | ||
+ | |||
+ | It dumps on the terminal: | ||
+ | |||
+ | | ||
+ | REGEX/ | ||
+ | HD SIZE: harddisk size | ||
+ | BUFFERED READS: simple HD read test. Modern HDs should reach at least 40 MB/sec | ||
+ | AVERAGE SEEK TIME: tests average seek time. Fast SCSI HDs reach values < 8 milliseconds. Common IDE/SATA disks get values from 15 to 20 ms. | ||
+ | FSYNCS/ | ||
+ | DNS EXT: average time to resolve an external DNS name | ||
+ | DNS INT: average time to resolve a local DNS name | ||
+ | |||
+ | Note: this command may require root privileges (or sudo) to run, otherwise you get an error after "HD SIZE" value, like: <<sh: / | ||
+ | Example output | ||
CPU BOGOMIPS: | CPU BOGOMIPS: | ||
REGEX/ | REGEX/ | ||
Línea 275: | Línea 336: | ||
DNS EXT: | DNS EXT: | ||
DNS INT: | DNS INT: | ||
- | pvesubscription | + | |
- | For managing a node's subscription key | + | pvesubscription |
- | Usage | + | |
- | To set the key use: | + | For managing a node's subscription key |
- | • pvesubscription set <key> | + | Usage |
- | The following updates the subscription status | + | |
- | • pvesubscription update -force | + | To set the key use: |
- | To print subscription status use | + | |
- | • pvesubscription get | + | |
+ | |||
+ | The following updates the subscription status | ||
+ | |||
+ | | ||
+ | |||
+ | To print subscription status use | ||
+ | |||
+ | | ||
USAGE: pvesubscription < | USAGE: pvesubscription < | ||
| |
unattended_installations/proxmox.1424906963.txt.gz · Última modificación: 2022/11/02 17:58 (editor externo)