Proxmox-CLI
#apt-get update && apt-get install -y fail2ban
#https://drive.google.com/file/usp=sharing <----PDF Learning Proxmox VE ст. 189; Proxmox VE network model ст 133
#http://help.ubuntu.ru/wiki/fail2ban
============================================
------------------------------------------- containers - LXC комады-----------------------------------------------------------
# lxc-ls --help-
Usage: lxc-ls
[-P lxcpath] [--active] [--running] [--frozen] [--stopped] [--nesting] [-g groups] [--filter regex]
[-1] [-P lxcpath] [--active] [--running] [--frozen] [--stopped] [--nesting] [-g groups] [--filter regex]
[-f] [-P lxcpath] [--active] [--running] [--frozen] [--stopped] [--nesting] [-g groups] [--filter regex]
lxc-ls list containers
Options :
-1, --line show one entry per line
-f, --fancy column-based output
-F, --fancy-format column-based output
--active list only active containers
--running list only running containers
--frozen list only frozen containers
--stopped list only stopped containers
--nesting=NUM list nested containers up to NUM (default is 5) levels of nesting
--filter=REGEX filter container names by regular expression
-g --groups comma separated list of groups a container must have to be displayed
Common options :
-o, --logfile=FILE Output log to FILE instead of stderr
-l, --logpriority=LEVEL Set log priority to LEVEL
-q, --quiet Don't produce any output
-P, --lxcpath=PATH Use specified container path
-?, --help Give this help list
--usage Give a short usage message
--version Print the version number
----------------------------------
# lxc-ls -f
#посмотреть контейнеры (активные, не активные: NAME STATE AUTOSTART GROUPS IPV4 IPV6)
# lxc-stop -n <№ контейнера>
# lxc-start -n <№ контейнера>
----------------------------------
# lxc-start --help
Usage: lxc-start --name=NAME -- COMMAND
lxc-start start COMMAND in specified container NAME
Options :
-n, --name=NAME NAME of the container
-d, --daemon Daemonize the container (default)
-F, --foreground Start with the current tty attached to /dev/console
-p, --pidfile=FILE Create a file with the process id
-f, --rcfile=FILE Load configuration file FILE
-c, --console=FILE Use specified FILE for the container console
-L, --console-log=FILE Log container console output to FILE
-C, --close-all-fds If any fds are inherited, close them
If not specified, exit with failure instead
Note: --daemon implies --close-all-fds
-s, --define KEY=VAL Assign VAL to configuration variable KEY
--share-[net|ipc|uts]=NAME Share a namespace with another container or pid
Common options :
-o, --logfile=FILE Output log to FILE instead of stderr
-l, --logpriority=LEVEL Set log priority to LEVEL
-q, --quiet Don't produce any output
-P, --lxcpath=PATH Use specified container path
-?, --help Give this help list
--usage Give a short usage message
--version Print the version number
----------------------------------
http://pve.proxmox.com/wiki/Linux_Container
------------------------------------------- PVE комады-----------------------------------------------------------
#pveam update #Our image repositories contain a list of available images
#pveam available #view the list of available images using
#pct set <ctid> -onboot 1 #start automatically when the host system boots
#pct ....start....stop....status <№СT>
#pct console <№СT> #Start a login session via getty
# pct help
USAGE: pct <COMMAND> [ARGS] [OPTIONS]
pct clone <vmid> <newid> -experimental <boolean> [OPTIONS]
pct create <vmid> <ostemplate> [OPTIONS]
pct destroy <vmid>
pct list
pct migrate <vmid> <target> [OPTIONS]
pct resize <vmid> <disk> <size> [OPTIONS]
pct restore <vmid> <ostemplate> [OPTIONS]
pct template <vmid> -experimental <boolean> [OPTIONS]
pct config <vmid>
pct set <vmid> [OPTIONS]
pct delsnapshot <vmid> <snapname> [OPTIONS]
pct listsnapshot <vmid>
pct rollback <vmid> <snapname>
pct snapshot <vmid> <snapname> [OPTIONS]
pct resume <vmid>
pct shutdown <vmid> [OPTIONS]
pct start <vmid> [OPTIONS]
pct stop <vmid> [OPTIONS]
pct suspend <vmid>
pct console <vmid>
pct cpusets
pct df <vmid>
pct enter <vmid>
pct exec <vmid> [<extra-args>]
pct fsck <vmid> [OPTIONS]
pct mount <vmid>
pct pull <vmid> <path> <destination> [OPTIONS]
pct push <vmid> <file> <destination> [OPTIONS]
pct status <vmid> [OPTIONS]
pct unlock <vmid>
pct unmount <vmid>
pct help [<cmd>] [OPTIONS]
#
------------------------------------------- qm - Qemu/KVM Virtual Machine Manager----------------------------------------
http://onreader.mdl.ru/MasteringProxmox.2ed/content/Ch03.html
Файл vmid.conf хранит информацию о настройке для каждой виртуальной машины и расположен в /etc/pve/nodes/<name>/qemu-server/<vmid>.conf. Структура каталога подразделяет все файлы настройки ВМ на категории на основе узлов. Proxmox имеет выраженную в явном виде структуру каталогов в которой хранятся все файлы настроек и прочие необходимые файлы.
**Все изменения сделанные в этих файлах или любых других файлах внутри pmxcfs смонтированные в каталоге /etc/pve получают репликации автоматически.
The virtual machine configuration file
https://drive.google.com/file/usp=sharing <----PDF Mastering Proxmox > ст. 112