22.1. General
Regarding the historically non-uniform casing style for options, seethe related section for configuration files.
22.2. Output format options [FORMAT_OPTIONS]
It is possible to specify the output format using the--output-format parameter. The default format text uses ASCII-artto draw nice borders around tables. It additionally transforms somevalues into human-readable text, for example:
Unix epoch is displayed as ISO 8601 date string.
Durations are displayed as week/day/hour/minute/second count, i.e 1d 5h.
Byte sizes value include units (B, KiB, MiB, GiB, TiB, PiB).
Fractions are display as percentage, i.e. 1.0 is displayed as 100%.
You can also completely suppress output using option --quiet.
- --human-readable <boolean> (default = 1)
Call output rendering functions to produce human readable text.
- --noborder <boolean> (default = 0)
Do not draw borders (for text format).
- --noheader <boolean> (default = 0)
Do not show column headers (for text format).
- --output-format <json | json-pretty | text | yaml> (default = text)
Output format.
- --quiet <boolean>
Suppress printing results.
22.3. pvesm - Proxmox VE Storage Manager
pvesm <COMMAND> [ARGS] [OPTIONS]
pvesm add <type> <storage> [OPTIONS]
Create a new storage.
- <type>: <btrfs | cephfs | cifs | dir | esxi | glusterfs | iscsi | iscsidirect | lvm | lvmthin | nfs | pbs | rbd | zfs | zfspool>
Storage type.
- <storage>: <storage ID>
The storage identifier.
- --authsupported <string>
Authsupported.
- --base <string>
Base volume. This volume is automatically activated.
- --blocksize <string>
block size
- --bwlimit [clone=<LIMIT>] [,default=<LIMIT>] [,migration=<LIMIT>] [,move=<LIMIT>] [,restore=<LIMIT>]
Set I/O bandwidth limit for various operations (in KiB/s).
- --comstar_hg <string>
host group for comstar views
- --comstar_tg <string>
target group for comstar views
- --content <string>
Allowed content types.
the value rootdir is used for Containers, and value images for VMs. - --content-dirs <string>
Overrides for default content type directories.
- --create-base-path <boolean> (default = yes)
Create the base directory if it doesn’t exist.
- --create-subdirs <boolean> (default = yes)
Populate the directory with the default structure.
- --data-pool <string>
Data Pool (for erasure coding only)
- --datastore <string>
Proxmox Backup Server datastore name.
- --disable <boolean>
Flag to disable the storage.
- --domain <string>
CIFS domain.
- --encryption-key a file containing an encryption key, or the special value "autogen"
Encryption key. Use autogen to generate one automatically without passphrase.
- --export <string>
NFS export path.
- --fingerprint ([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}
Certificate SHA 256 fingerprint.
- --format <qcow2 | raw | subvol | vmdk>
Default image format.
- --fs-name <string>
The Ceph filesystem name.
- --fuse <boolean>
Mount CephFS through FUSE.
- --is_mountpoint <string> (default = no)
Assume the given path is an externally managed mountpoint and consider the storage offline if it is not mounted. Using a boolean (yes/no) value serves as a shortcut to using the target path in this field.
- --iscsiprovider <string>
iscsi provider
- --keyring file containing the keyring to authenticate in the Ceph cluster
Client keyring contents (for external clusters).
- --krbd <boolean> (default = 0)
Always access rbd through krbd kernel module.
- --lio_tpg <string>
target portal group for Linux LIO targets
- --master-pubkey a file containing a PEM-formatted master public key
Base64-encoded, PEM-formatted public RSA key. Used to encrypt a copy of the encryption-key which will be added to each encrypted backup.
- --max-protected-backups <integer> (-1 - N) (default = Unlimited for users with Datastore.Allocate privilege, 5 for other users)
Maximal number of protected backups per guest. Use -1 for unlimited.
- --maxfiles <integer> (0 - N)
Deprecated: use prune-backups instead. Maximal number of backup files per VM. Use 0 for unlimited.
- --mkdir <boolean> (default = yes)
Create the directory if it doesn’t exist and populate it with default sub-dirs. NOTE: Deprecated, use the create-base-path and create-subdirs options instead.
- --monhost <string>
IP addresses of monitors (for external clusters).
- --mountpoint <string>
mount point
- --namespace <string>
Namespace.
- --nocow <boolean> (default = 0)
Set the NOCOW flag on files. Disables data checksumming and causes data errors to be unrecoverable from while allowing direct I/O. Only use this if data does not need to be any more safe than on a single ext4 formatted disk with no underlying raid system.
- --nodes <string>
List of nodes for which the storage configuration applies.
- --nowritecache <boolean>
disable write caching on the target
- --options <string>
NFS/CIFS mount options (see man nfs or man mount.cifs)
- --password <password>
Password for accessing the share/datastore.
- --path <string>
File system path.
- --pool <string>
Pool.
- --port <integer> (1 - 65535)
Use this port to connect to the storage instead of the default one (for example, with PBS or ESXi). For NFS and CIFS, use the options option to configure the port via the mount options.
- --portal <string>
iSCSI portal (IP or DNS name with optional port).
- --preallocation <falloc | full | metadata | off> (default = metadata)
Preallocation mode for raw and qcow2 images. Using metadata on raw images results in preallocation=off.
- --prune-backups [keep-all=<1|0>] [,keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>]
The retention options with shorter intervals are processed first with --keep-last being the very first one. Each option covers a specific period of time. We say that backups within this period are covered by this option. The next option does not take care of already covered backups and only considers older backups.
- --saferemove <boolean>
Zero-out data when removing LVs.
- --saferemove_throughput <string>
Wipe throughput (cstream -t parameter value).
- --server <string>
Server IP or DNS name.
- --server2 <string>
Backup volfile server IP or DNS name.
Requires option(s): server - --share <string>
CIFS share.
- --shared <boolean>
Indicate that this is a single storage with the same contents on all nodes (or all listed in the nodes option). It will not make the contents of a local storage automatically accessible to other nodes, it just marks an already shared storage as such!
- --skip-cert-verification <boolean> (default = false)
Disable TLS certificate verification, only enable on fully trusted networks!
- --smbversion <2.0 | 2.1 | 3 | 3.0 | 3.11 | default> (default = default)
SMB protocol version. default if not set, negotiates the highest SMB2+ version supported by both the client and server.
- --sparse <boolean>
use sparse volumes
- --subdir <string>
Subdir to mount.
- --tagged_only <boolean>
Only use logical volumes tagged with pve-vm-ID.
- --target <string>
iSCSI target.
- --thinpool <string>
LVM thin pool LV name.
- --transport <rdma | tcp | unix>
Gluster transport: tcp or rdma
- --username <string>
RBD Id.
- --vgname <string>
Volume group name.
- --volume <string>
Glusterfs Volume.
pvesm alloc <storage> <vmid> <filename> <size> [OPTIONS]
Allocate disk images.
- <storage>: <storage ID>
The storage identifier.
- <vmid>: <integer> (100 - 999999999)
Specify owner VM
- <filename>: <string>
The name of the file to create.
- <size>: \d+[MG]?
Size in kilobyte (1024 bytes). Optional suffixes M (megabyte, 1024K) and G (gigabyte, 1024M)
- --format <qcow2 | raw | subvol | vmdk>
Format of the image.
Requires option(s): size
pvesm apiinfo
Returns APIVER and APIAGE.
pvesm cifsscan
An alias for pvesm scan cifs.
pvesm export <volume> <format> <filename> [OPTIONS]
Used internally to export a volume.
- <volume>: <string>
Volume identifier
- <format>: <btrfs | qcow2+size | raw+size | tar+size | vmdk+size | zfs>
Export stream format
- <filename>: <string>
Destination file name
- --base (?^i:[a-z0-9_\-]{1,40})
Snapshot to start an incremental stream from
- --snapshot (?^i:[a-z0-9_\-]{1,40})
Snapshot to export
- --snapshot-list <string>
Ordered list of snapshots to transfer
- --with-snapshots <boolean> (default = 0)
Whether to include intermediate snapshots in the stream
pvesm extractconfig <volume>
Extract configuration from vzdump backup archive.
- <volume>: <string>
Volume identifier
pvesm free <volume> [OPTIONS]
Delete volume
- <volume>: <string>
Volume identifier
- --delay <integer> (1 - 30)
Time to wait for the task to finish. We return null if the task finish within that time.
- --storage <storage ID>
The storage identifier.
pvesm glusterfsscan
An alias for pvesm scan glusterfs.
pvesm help [OPTIONS]
Get help about specified command.
- --extra-args <array>
Shows help for a specific command
- --verbose <boolean>
Verbose output format.
pvesm import <volume> <format> <filename> [OPTIONS]
Used internally to import a volume.
- <volume>: <string>
Volume identifier
- <format>: <btrfs | qcow2+size | raw+size | tar+size | vmdk+size | zfs>
Import stream format
- <filename>: <string>
Source file name. For - stdin is used, the tcp://<IP-or-CIDR> format allows to use a TCP connection, the unix://PATH-TO-SOCKET format a UNIX socket as input.Else, the file is treated as common file.
- --allow-rename <boolean> (default = 0)
Choose a new volume ID if the requested volume ID already exists, instead of throwing an error.
- --base (?^i:[a-z0-9_\-]{1,40})
Base snapshot of an incremental stream
- --delete-snapshot (?^i:[a-z0-9_\-]{1,80})
A snapshot to delete on success
- --snapshot (?^i:[a-z0-9_\-]{1,40})
The current-state snapshot if the stream contains snapshots
- --with-snapshots <boolean> (default = 0)
Whether the stream includes intermediate snapshots
pvesm iscsiscan
An alias for pvesm scan iscsi.
pvesm list <storage> [OPTIONS]
List storage content.
- <storage>: <storage ID>
The storage identifier.
- --content <string>
Only list content of this type.
- --vmid <integer> (100 - 999999999)
Only list images for this VM
pvesm lvmscan
An alias for pvesm scan lvm.
pvesm lvmthinscan
An alias for pvesm scan lvmthin.
pvesm nfsscan
An alias for pvesm scan nfs.
pvesm path <volume>
Get filesystem path for specified volume
- <volume>: <string>
Volume identifier
pvesm prune-backups <storage> [OPTIONS]
Prune backups. Only those using the standard naming scheme are considered.If no keep options are specified, those from the storage configuration areused.
- <storage>: <storage ID>
The storage identifier.
- --dry-run <boolean>
Only show what would be pruned, don’t delete anything.
- --keep-all <boolean>
Keep all backups. Conflicts with the other options when true.
- --keep-daily <N>
Keep backups for the last <N> different days. If there is morethan one backup for a single day, only the latest one is kept.
- --keep-hourly <N>
Keep backups for the last <N> different hours. If there is morethan one backup for a single hour, only the latest one is kept.
- --keep-last <N>
Keep the last <N> backups.
- --keep-monthly <N>
Keep backups for the last <N> different months. If there is morethan one backup for a single month, only the latest one is kept.
- --keep-weekly <N>
Keep backups for the last <N> different weeks. If there is morethan one backup for a single week, only the latest one is kept.
- --keep-yearly <N>
Keep backups for the last <N> different years. If there is morethan one backup for a single year, only the latest one is kept.
- --type <lxc | qemu>
Either qemu or lxc. Only consider backups for guests of this type.
- --vmid <integer> (100 - 999999999)
Only consider backups for this guest.
pvesm remove <storage>
Delete storage configuration.
- <storage>: <storage ID>
The storage identifier.
pvesm scan cifs <server> [OPTIONS]
Scan remote CIFS server.
- <server>: <string>
The server address (name or IP).
- --domain <string>
SMB domain (Workgroup).
- --password <password>
User password.
- --username <string>
User name.
pvesm scan glusterfs <server>
Scan remote GlusterFS server.
- <server>: <string>
The server address (name or IP).
pvesm scan iscsi <portal>
Scan remote iSCSI server.
- <portal>: <string>
The iSCSI portal (IP or DNS name with optional port).
pvesm scan lvm
List local LVM volume groups.
pvesm scan lvmthin <vg>
List local LVM Thin Pools.
- <vg>: [a-zA-Z0-9\.\+\_][a-zA-Z0-9\.\+\_\-]+
no description available
pvesm scan nfs <server>
Scan remote NFS server.
- <server>: <string>
The server address (name or IP).
pvesm scan pbs <server> <username> --password <string> [OPTIONS] [FORMAT_OPTIONS]
Scan remote Proxmox Backup Server.
- <server>: <string>
The server address (name or IP).
- <username>: <string>
User-name or API token-ID.
- --fingerprint ([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}
Certificate SHA 256 fingerprint.
- --password <string>
User password or API token secret.
- --port <integer> (1 - 65535) (default = 8007)
Optional port.
pvesm scan zfs
Scan zfs pool list on local node.
pvesm set <storage> [OPTIONS]
Update storage configuration.
- <storage>: <storage ID>
The storage identifier.
- --blocksize <string>
block size
- --bwlimit [clone=<LIMIT>] [,default=<LIMIT>] [,migration=<LIMIT>] [,move=<LIMIT>] [,restore=<LIMIT>]
Set I/O bandwidth limit for various operations (in KiB/s).
- --comstar_hg <string>
host group for comstar views
- --comstar_tg <string>
target group for comstar views
- --content <string>
Allowed content types.
the value rootdir is used for Containers, and value images for VMs. - --content-dirs <string>
Overrides for default content type directories.
- --create-base-path <boolean> (default = yes)
Create the base directory if it doesn’t exist.
- --create-subdirs <boolean> (default = yes)
Populate the directory with the default structure.
- --data-pool <string>
Data Pool (for erasure coding only)
- --delete <string>
A list of settings you want to delete.
- --digest <string>
Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.
- --disable <boolean>
Flag to disable the storage.
- --domain <string>
CIFS domain.
- --encryption-key a file containing an encryption key, or the special value "autogen"
Encryption key. Use autogen to generate one automatically without passphrase.
- --fingerprint ([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}
Certificate SHA 256 fingerprint.
- --format <qcow2 | raw | subvol | vmdk>
Default image format.
- --fs-name <string>
The Ceph filesystem name.
- --fuse <boolean>
Mount CephFS through FUSE.
- --is_mountpoint <string> (default = no)
Assume the given path is an externally managed mountpoint and consider the storage offline if it is not mounted. Using a boolean (yes/no) value serves as a shortcut to using the target path in this field.
- --keyring file containing the keyring to authenticate in the Ceph cluster
Client keyring contents (for external clusters).
- --krbd <boolean> (default = 0)
Always access rbd through krbd kernel module.
- --lio_tpg <string>
target portal group for Linux LIO targets
- --master-pubkey a file containing a PEM-formatted master public key
Base64-encoded, PEM-formatted public RSA key. Used to encrypt a copy of the encryption-key which will be added to each encrypted backup.
- --max-protected-backups <integer> (-1 - N) (default = Unlimited for users with Datastore.Allocate privilege, 5 for other users)
Maximal number of protected backups per guest. Use -1 for unlimited.
- --maxfiles <integer> (0 - N)
Deprecated: use prune-backups instead. Maximal number of backup files per VM. Use 0 for unlimited.
- --mkdir <boolean> (default = yes)
Create the directory if it doesn’t exist and populate it with default sub-dirs. NOTE: Deprecated, use the create-base-path and create-subdirs options instead.
- --monhost <string>
IP addresses of monitors (for external clusters).
- --mountpoint <string>
mount point
- --namespace <string>
Namespace.
- --nocow <boolean> (default = 0)
Set the NOCOW flag on files. Disables data checksumming and causes data errors to be unrecoverable from while allowing direct I/O. Only use this if data does not need to be any more safe than on a single ext4 formatted disk with no underlying raid system.
- --nodes <string>
List of nodes for which the storage configuration applies.
- --nowritecache <boolean>
disable write caching on the target
- --options <string>
NFS/CIFS mount options (see man nfs or man mount.cifs)
- --password <password>
Password for accessing the share/datastore.
- --pool <string>
Pool.
- --port <integer> (1 - 65535)
Use this port to connect to the storage instead of the default one (for example, with PBS or ESXi). For NFS and CIFS, use the options option to configure the port via the mount options.
- --preallocation <falloc | full | metadata | off> (default = metadata)
Preallocation mode for raw and qcow2 images. Using metadata on raw images results in preallocation=off.
- --prune-backups [keep-all=<1|0>] [,keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>]
The retention options with shorter intervals are processed first with --keep-last being the very first one. Each option covers a specific period of time. We say that backups within this period are covered by this option. The next option does not take care of already covered backups and only considers older backups.
- --saferemove <boolean>
Zero-out data when removing LVs.
- --saferemove_throughput <string>
Wipe throughput (cstream -t parameter value).
- --server <string>
Server IP or DNS name.
- --server2 <string>
Backup volfile server IP or DNS name.
Requires option(s): server - --shared <boolean>
Indicate that this is a single storage with the same contents on all nodes (or all listed in the nodes option). It will not make the contents of a local storage automatically accessible to other nodes, it just marks an already shared storage as such!
- --skip-cert-verification <boolean> (default = false)
Disable TLS certificate verification, only enable on fully trusted networks!
- --smbversion <2.0 | 2.1 | 3 | 3.0 | 3.11 | default> (default = default)
SMB protocol version. default if not set, negotiates the highest SMB2+ version supported by both the client and server.
- --sparse <boolean>
use sparse volumes
- --subdir <string>
Subdir to mount.
- --tagged_only <boolean>
Only use logical volumes tagged with pve-vm-ID.
- --transport <rdma | tcp | unix>
Gluster transport: tcp or rdma
- --username <string>
RBD Id.
pvesm status [OPTIONS]
Get status for all datastores.
- --content <string>
Only list stores which support this content type.
- --enabled <boolean> (default = 0)
Only list stores which are enabled (not disabled in config).
- --format <boolean> (default = 0)
Include information about formats
- --storage <storage ID>
Only list status for specified storage
- --target <string>
If target is different to node, we only lists shared storages which content is accessible on this node and the specified target node.
pvesm zfsscan
An alias for pvesm scan zfs.
22.4. pvesubscription - Proxmox VE Subscription Manager
pvesubscription <COMMAND> [ARGS] [OPTIONS]
pvesubscription delete
Delete subscription key of this node.
pvesubscription get
Read subscription info.
pvesubscription help [OPTIONS]
Get help about specified command.
- --extra-args <array>
Shows help for a specific command
- --verbose <boolean>
Verbose output format.
pvesubscription set <key>
Set subscription key.
- <key>: \s*pve([1248])([cbsp])-[0-9a-f]{10}\s*
Proxmox VE subscription key
pvesubscription set-offline-key <data>
Internal use only! To set an offline key, use the packageproxmox-offline-mirror-helper instead.
- <data>: <string>
A signed subscription info blob
pvesubscription update [OPTIONS]
Update subscription info.
- --force <boolean> (default = 0)
Always connect to server, even if local cache is still valid.
22.5. pveperf - Proxmox VE Benchmark Script
pveperf [PATH]
22.6. pveceph - Manage CEPH Services on Proxmox VE Nodes
pveceph <COMMAND> [ARGS] [OPTIONS]
pveceph createmgr
An alias for pveceph mgr create.
pveceph createmon
An alias for pveceph mon create.
pveceph createosd
An alias for pveceph osd create.
pveceph createpool
An alias for pveceph pool create.
pveceph destroymgr
An alias for pveceph mgr destroy.
pveceph destroymon
An alias for pveceph mon destroy.
pveceph destroyosd
An alias for pveceph osd destroy.
pveceph destroypool
An alias for pveceph pool destroy.
pveceph fs create [OPTIONS]
Create a Ceph filesystem
- --add-storage <boolean> (default = 0)
Configure the created CephFS as storage for this cluster.
- --name (?^:^[^:/\s]+$) (default = cephfs)
The ceph filesystem name.
- --pg_num <integer> (8 - 32768) (default = 128)
Number of placement groups for the backing data pool. The metadata pool will use a quarter of this.
pveceph fs destroy <name> [OPTIONS]
Destroy a Ceph filesystem
- <name>: <string>
The ceph filesystem name.
- --remove-pools <boolean> (default = 0)
Remove data and metadata pools configured for this fs.
- --remove-storages <boolean> (default = 0)
Remove all pveceph-managed storages configured for this fs.
pveceph help [OPTIONS]
Get help about specified command.
- --extra-args <array>
Shows help for a specific command
- --verbose <boolean>
Verbose output format.
pveceph init [OPTIONS]
Create initial ceph default configuration and setup symlinks.
- --cluster-network <string>
Declare a separate cluster network, OSDs will routeheartbeat, object replication and recovery traffic over it
Requires option(s): network - --disable_cephx <boolean> (default = 0)
Disable cephx authentication.
cephx is a security feature protecting against man-in-the-middle attacks. Only consider disabling cephx if your network is private! - --min_size <integer> (1 - 7) (default = 2)
Minimum number of available replicas per object to allow I/O
- --network <string>
Use specific network for all ceph related traffic
- --pg_bits <integer> (6 - 14) (default = 6)
Placement group bits, used to specify the default number of placement groups.
Depreacted. This setting was deprecated in recent Ceph versions.
- --size <integer> (1 - 7) (default = 3)
Targeted number of replicas per object
pveceph install [OPTIONS]
Install ceph related packages.
- --allow-experimental <boolean> (default = 0)
Allow experimental versions. Use with care!
- --repository <enterprise | no-subscription | test> (default = enterprise)
Ceph repository to use.
- --version <quincy | reef | squid> (default = quincy)
Ceph version to install.
pveceph lspools
An alias for pveceph pool ls.
pveceph mds create [OPTIONS]
Create Ceph Metadata Server (MDS)
- --hotstandby <boolean> (default = 0)
Determines whether a ceph-mds daemon should poll and replay the log of an active MDS. Faster switch on MDS failure, but needs more idle resources.
- --name [a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])? (default = nodename)
The ID for the mds, when omitted the same as the nodename
pveceph mds destroy <name>
Destroy Ceph Metadata Server
- <name>: [a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?
The name (ID) of the mds
pveceph mgr create [OPTIONS]
Create Ceph Manager
- --id [a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?
The ID for the manager, when omitted the same as the nodename
pveceph mgr destroy <id>
Destroy Ceph Manager.
- <id>: [a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?
The ID of the manager
pveceph mon create [OPTIONS]
Create Ceph Monitor and Manager
- --mon-address <string>
Overwrites autodetected monitor IP address(es). Must be in the public network(s) of Ceph.
- --monid [a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?
The ID for the monitor, when omitted the same as the nodename
pveceph mon destroy <monid>
Destroy Ceph Monitor and Manager.
- <monid>: [a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?
Monitor ID
pveceph osd create <dev> [OPTIONS]
Create OSD
- <dev>: <string>
Block device name.
- --crush-device-class <string>
Set the device class of the OSD in crush.
- --db_dev <string>
Block device name for block.db.
- --db_dev_size <number> (1 - N) (default = bluestore_block_db_size or 10% of OSD size)
Size in GiB for block.db.
Requires option(s): db_dev - --encrypted <boolean> (default = 0)
Enables encryption of the OSD.
- --osds-per-device <integer> (1 - N)
OSD services per physical device. Only useful for fast NVMe devices" ." to utilize their performance better.
- --wal_dev <string>
Block device name for block.wal.
- --wal_dev_size <number> (0.5 - N) (default = bluestore_block_wal_size or 1% of OSD size)
Size in GiB for block.wal.
Requires option(s): wal_dev
pveceph osd destroy <osdid> [OPTIONS]
Destroy OSD
- <osdid>: <integer>
OSD ID
- --cleanup <boolean> (default = 0)
If set, we remove partition table entries.
pveceph osd details <osdid> [OPTIONS] [FORMAT_OPTIONS]
Get OSD details.
- <osdid>: <string>
ID of the OSD
- --verbose <boolean> (default = 0)
Print verbose information, same as json-pretty output format.
pveceph pool create <name> [OPTIONS]
Create Ceph pool
- <name>: (?^:^[^:/\s]+$)
The name of the pool. It must be unique.
- --add_storages <boolean> (default = 0; for erasure coded pools: 1)
Configure VM and CT storage using the new pool.
- --application <cephfs | rbd | rgw> (default = rbd)
The application of the pool.
- --crush_rule <string>
The rule to use for mapping object placement in the cluster.
- --erasure-coding k=<integer> ,m=<integer> [,device-class=<class>] [,failure-domain=<domain>] [,profile=<profile>]
Create an erasure coded pool for RBD with an accompaning replicated pool for metadata storage. With EC, the common ceph options size, min_size and crush_rule parameters will be applied to the metadata pool.
- --min_size <integer> (1 - 7) (default = 2)
Minimum number of replicas per object
- --pg_autoscale_mode <off | on | warn> (default = warn)
The automatic PG scaling mode of the pool.
- --pg_num <integer> (1 - 32768) (default = 128)
Number of placement groups.
- --pg_num_min <integer> (-N - 32768)
Minimal number of placement groups.
- --size <integer> (1 - 7) (default = 3)
Number of replicas per object
- --target_size ^(\d+(\.\d+)?)([KMGT])?$
The estimated target size of the pool for the PG autoscaler.
- --target_size_ratio <number>
The estimated target ratio of the pool for the PG autoscaler.
pveceph pool destroy <name> [OPTIONS]
Destroy pool
- <name>: <string>
The name of the pool. It must be unique.
- --force <boolean> (default = 0)
If true, destroys pool even if in use
- --remove_ecprofile <boolean> (default = 1)
Remove the erasure code profile. Defaults to true, if applicable.
- --remove_storages <boolean> (default = 0)
Remove all pveceph-managed storages configured for this pool
pveceph pool get <name> [OPTIONS] [FORMAT_OPTIONS]
Show the current pool status.
- <name>: <string>
The name of the pool. It must be unique.
- --verbose <boolean> (default = 0)
If enabled, will display additional data(eg. statistics).
pveceph pool ls [FORMAT_OPTIONS]
List all pools and their settings (which are settable by the POST/PUTendpoints).
pveceph pool set <name> [OPTIONS]
Change POOL settings
- <name>: (?^:^[^:/\s]+$)
The name of the pool. It must be unique.
- --application <cephfs | rbd | rgw>
The application of the pool.
- --crush_rule <string>
The rule to use for mapping object placement in the cluster.
- --min_size <integer> (1 - 7)
Minimum number of replicas per object
- --pg_autoscale_mode <off | on | warn>
The automatic PG scaling mode of the pool.
- --pg_num <integer> (1 - 32768)
Number of placement groups.
- --pg_num_min <integer> (-N - 32768)
Minimal number of placement groups.
- --size <integer> (1 - 7)
Number of replicas per object
- --target_size ^(\d+(\.\d+)?)([KMGT])?$
The estimated target size of the pool for the PG autoscaler.
- --target_size_ratio <number>
The estimated target ratio of the pool for the PG autoscaler.
pveceph purge [OPTIONS]
Destroy ceph related data and configuration files.
- --crash <boolean>
Additionally purge Ceph crash logs, /var/lib/ceph/crash.
- --logs <boolean>
Additionally purge Ceph logs, /var/log/ceph.
pveceph start [OPTIONS]
Start ceph services.
- --service (ceph|mon|mds|osd|mgr)(\.[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?)? (default = ceph.target)
Ceph service name.
pveceph status
Get Ceph Status.
pveceph stop [OPTIONS]
Stop ceph services.
- --service (ceph|mon|mds|osd|mgr)(\.[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?)? (default = ceph.target)
Ceph service name.
22.7. pvenode - Proxmox VE Node Management
pvenode <COMMAND> [ARGS] [OPTIONS]
pvenode acme account deactivate [<name>]
Deactivate existing ACME account at CA.
- <name>: <name> (default = default)
ACME account config file name.
pvenode acme account info [<name>] [FORMAT_OPTIONS]
Return existing ACME account information.
- <name>: <name> (default = default)
ACME account config file name.
pvenode acme account list
ACMEAccount index.
pvenode acme account register [<name>] {<contact>} [OPTIONS]
Register a new ACME account with a compatible CA.
- <name>: <name> (default = default)
ACME account config file name.
- <contact>: <string>
Contact email addresses.
- --directory ^https?://.*
URL of ACME CA directory endpoint.
pvenode acme account update [<name>] [OPTIONS]
Update existing ACME account information with CA. Note: not specifying anynew account information triggers a refresh.
- <name>: <name> (default = default)
ACME account config file name.
- --contact <string>
Contact email addresses.
pvenode acme cert order [OPTIONS]
Order a new certificate from ACME-compatible CA.
- --force <boolean> (default = 0)
Overwrite existing custom certificate.
pvenode acme cert renew [OPTIONS]
Renew existing certificate from CA.
- --force <boolean> (default = 0)
Force renewal even if expiry is more than 30 days away.
pvenode acme cert revoke
Revoke existing certificate from CA.
pvenode acme plugin add <type> <id> [OPTIONS]
Add ACME plugin configuration.
- <type>: <dns | standalone>
ACME challenge type.
- <id>: <string>
ACME Plugin ID name
- --api <1984hosting | acmedns | acmeproxy | active24 | ad | ali | alviy | anx | artfiles | arvan | aurora | autodns | aws | azion | azure | bookmyname | bunny | cf | clouddns | cloudns | cn | conoha | constellix | cpanel | curanet | cyon | da | ddnss | desec | df | dgon | dnsexit | dnshome | dnsimple | dnsservices | doapi | domeneshop | dp | dpi | dreamhost | duckdns | durabledns | dyn | dynu | dynv6 | easydns | edgedns | euserv | exoscale | fornex | freedns | gandi_livedns | gcloud | gcore | gd | geoscaling | googledomains | he | hetzner | hexonet | hostingde | huaweicloud | infoblox | infomaniak | internetbs | inwx | ionos | ionos_cloud | ipv64 | ispconfig | jd | joker | kappernet | kas | kinghost | knot | la | leaseweb | lexicon | limacity | linode | linode_v4 | loopia | lua | maradns | me | miab | misaka | myapi | mydevil | mydnsjp | mythic_beasts | namecheap | namecom | namesilo | nanelo | nederhost | neodigit | netcup | netlify | nic | njalla | nm | nsd | nsone | nsupdate | nw | oci | omglol | one | online | openprovider | openstack | opnsense | ovh | pdns | pleskxml | pointhq | porkbun | rackcorp | rackspace | rage4 | rcode0 | regru | scaleway | schlundtech | selectel | selfhost | servercow | simply | technitium | tele3 | tencent | timeweb | transip | udr | ultra | unoeuro | variomedia | veesp | vercel | vscale | vultr | websupport | west_cn | world4you | yandex360 | yc | zilore | zone | zoneedit | zonomi>
API plugin name
- --data File with one key-value pair per line, will be base64url encode for storage in plugin config.
DNS plugin data. (base64 encoded)
- --disable <boolean>
Flag to disable the config.
- --nodes <string>
List of cluster node names.
- --validation-delay <integer> (0 - 172800) (default = 30)
Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records.
pvenode acme plugin config <id> [FORMAT_OPTIONS]
Get ACME plugin configuration.
- <id>: <string>
Unique identifier for ACME plugin instance.
pvenode acme plugin list [OPTIONS] [FORMAT_OPTIONS]
ACME plugin index.
- --type <dns | standalone>
Only list ACME plugins of a specific type
pvenode acme plugin remove <id>
Delete ACME plugin configuration.
- <id>: <string>
Unique identifier for ACME plugin instance.
pvenode acme plugin set <id> [OPTIONS]
Update ACME plugin configuration.
- <id>: <string>
ACME Plugin ID name
- --api <1984hosting | acmedns | acmeproxy | active24 | ad | ali | alviy | anx | artfiles | arvan | aurora | autodns | aws | azion | azure | bookmyname | bunny | cf | clouddns | cloudns | cn | conoha | constellix | cpanel | curanet | cyon | da | ddnss | desec | df | dgon | dnsexit | dnshome | dnsimple | dnsservices | doapi | domeneshop | dp | dpi | dreamhost | duckdns | durabledns | dyn | dynu | dynv6 | easydns | edgedns | euserv | exoscale | fornex | freedns | gandi_livedns | gcloud | gcore | gd | geoscaling | googledomains | he | hetzner | hexonet | hostingde | huaweicloud | infoblox | infomaniak | internetbs | inwx | ionos | ionos_cloud | ipv64 | ispconfig | jd | joker | kappernet | kas | kinghost | knot | la | leaseweb | lexicon | limacity | linode | linode_v4 | loopia | lua | maradns | me | miab | misaka | myapi | mydevil | mydnsjp | mythic_beasts | namecheap | namecom | namesilo | nanelo | nederhost | neodigit | netcup | netlify | nic | njalla | nm | nsd | nsone | nsupdate | nw | oci | omglol | one | online | openprovider | openstack | opnsense | ovh | pdns | pleskxml | pointhq | porkbun | rackcorp | rackspace | rage4 | rcode0 | regru | scaleway | schlundtech | selectel | selfhost | servercow | simply | technitium | tele3 | tencent | timeweb | transip | udr | ultra | unoeuro | variomedia | veesp | vercel | vscale | vultr | websupport | west_cn | world4you | yandex360 | yc | zilore | zone | zoneedit | zonomi>
API plugin name
- --data File with one key-value pair per line, will be base64url encode for storage in plugin config.
DNS plugin data. (base64 encoded)
- --delete <string>
A list of settings you want to delete.
- --digest <string>
Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.
- --disable <boolean>
Flag to disable the config.
- --nodes <string>
List of cluster node names.
- --validation-delay <integer> (0 - 172800) (default = 30)
Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records.
pvenode cert delete [<restart>]
DELETE custom certificate chain and key.
- <restart>: <boolean> (default = 0)
Restart pveproxy.
pvenode cert info [FORMAT_OPTIONS]
Get information about node’s certificates.
pvenode cert set <certificates> [<key>] [OPTIONS] [FORMAT_OPTIONS]
Upload or update custom certificate chain and key.
- <certificates>: <string>
PEM encoded certificate (chain).
- <key>: <string>
PEM encoded private key.
- --force <boolean> (default = 0)
Overwrite existing custom or ACME certificate files.
- --restart <boolean> (default = 0)
Restart pveproxy.
pvenode config get [OPTIONS]
Get node configuration options.
- --property <acme | acmedomain0 | acmedomain1 | acmedomain2 | acmedomain3 | acmedomain4 | acmedomain5 | ballooning-target | description | startall-onboot-delay | wakeonlan> (default = all)
Return only a specific property from the node configuration.
pvenode config set [OPTIONS]
Set node configuration options.
- --acme [account=<name>] [,domains=<domain[;domain;...]>]
Node specific ACME settings.
- --acmedomain[n] [domain=]<domain> [,alias=<domain>] [,plugin=<name of the plugin configuration>]
ACME domain and validation plugin
- --ballooning-target <integer> (0 - 100) (default = 80)
RAM usage target for ballooning (in percent of total memory)
- --delete <string>
A list of settings you want to delete.
- --description <string>
Description for the Node. Shown in the web-interface node notes panel. This is saved as comment inside the configuration file.
- --digest <string>
Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
- --startall-onboot-delay <integer> (0 - 300) (default = 0)
Initial delay in seconds, before starting all the Virtual Guests with on-boot enabled.
- --wakeonlan [mac=]<MAC address> [,bind-interface=<bind interface>] [,broadcast-address=<IPv4 broadcast address>]
Node specific wake on LAN settings.
pvenode help [OPTIONS]
Get help about specified command.
- --extra-args <array>
Shows help for a specific command
- --verbose <boolean>
Verbose output format.
pvenode migrateall <target> [OPTIONS]
Migrate all VMs and Containers.
- <target>: <string>
Target node.
- --maxworkers <integer> (1 - N)
Maximal number of parallel migration job. If not set, uses’max_workers' from datacenter.cfg. One of both must be set!
- --vms <string>
Only consider Guests with these IDs.
- --with-local-disks <boolean>
Enable live storage migration for local disk
pvenode startall [OPTIONS]
Start all VMs and containers located on this node (by default only thosewith onboot=1).
- --force <boolean> (default = off)
Issue start command even if virtual guest have onboot not set or set to off.
- --vms <string>
Only consider guests from this comma separated list of VMIDs.
pvenode stopall [OPTIONS]
Stop all VMs and Containers.
- --force-stop <boolean> (default = 1)
Force a hard-stop after the timeout.
- --timeout <integer> (0 - 7200) (default = 180)
Timeout for each guest shutdown task. Depending on force-stop, the shutdown gets then simply aborted or a hard-stop is forced.
- --vms <string>
Only consider Guests with these IDs.
pvenode task list [OPTIONS] [FORMAT_OPTIONS]
Read task list for one node (finished tasks).
- --errors <boolean> (default = 0)
Only list tasks with a status of ERROR.
- --limit <integer> (0 - N) (default = 50)
Only list this amount of tasks.
- --since <integer>
Only list tasks since this UNIX epoch.
- --source <active | all | archive> (default = archive)
List archived, active or all tasks.
- --start <integer> (0 - N) (default = 0)
List tasks beginning from this offset.
- --statusfilter <string>
List of Task States that should be returned.
- --typefilter <string>
Only list tasks of this type (e.g., vzstart, vzdump).
- --until <integer>
Only list tasks until this UNIX epoch.
- --userfilter <string>
Only list tasks from this user.
- --vmid <integer> (100 - 999999999)
Only list tasks for this VM.
pvenode task log <upid> [OPTIONS]
Read task log.
- <upid>: <string>
The task’s unique ID.
- --download <boolean>
Whether the tasklog file should be downloaded. This parameter can’t be used in conjunction with other parameters
- --start <integer> (0 - N) (default = 0)
Start at this line when reading the tasklog
pvenode task status <upid> [FORMAT_OPTIONS]
Read task status.
- <upid>: <string>
The task’s unique ID.
pvenode wakeonlan <node>
Try to wake a node via wake on LAN network packet.
- <node>: <string>
target node for wake on LAN packet
22.8. pvesh - Shell interface for the Proxmox VE API
pvesh <COMMAND> [ARGS] [OPTIONS]
pvesh create <api_path> [OPTIONS] [FORMAT_OPTIONS]
Call API POST on <api_path>.
- <api_path>: <string>
API path.
- --noproxy <boolean>
Disable automatic proxying.
pvesh delete <api_path> [OPTIONS] [FORMAT_OPTIONS]
Call API DELETE on <api_path>.
- <api_path>: <string>
API path.
- --noproxy <boolean>
Disable automatic proxying.
pvesh get <api_path> [OPTIONS] [FORMAT_OPTIONS]
Call API GET on <api_path>.
- <api_path>: <string>
API path.
- --noproxy <boolean>
Disable automatic proxying.
pvesh help [OPTIONS]
Get help about specified command.
- --extra-args <array>
Shows help for a specific command
- --verbose <boolean>
Verbose output format.
pvesh ls <api_path> [OPTIONS] [FORMAT_OPTIONS]
List child objects on <api_path>.
- <api_path>: <string>
API path.
- --noproxy <boolean>
Disable automatic proxying.
pvesh set <api_path> [OPTIONS] [FORMAT_OPTIONS]
Call API PUT on <api_path>.
- <api_path>: <string>
API path.
- --noproxy <boolean>
Disable automatic proxying.
pvesh usage <api_path> [OPTIONS]
print API usage information for <api_path>.
- <api_path>: <string>
API path.
- --command <create | delete | get | set>
API command.
- --returns <boolean>
Including schema for returned data.
- --verbose <boolean>
Verbose output format.
22.9. qm - QEMU/KVM Virtual Machine Manager
qm <COMMAND> [ARGS] [OPTIONS]
qm agent
An alias for qm guest cmd.
qm cleanup <vmid> <clean-shutdown> <guest-requested>
Cleans up resources like tap devices, vgpus, etc. Called after a vm shutsdown, crashes, etc.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <clean-shutdown>: <boolean>
Indicates if qemu shutdown cleanly.
- <guest-requested>: <boolean>
Indicates if the shutdown was requested by the guest or via qmp.
qm clone <vmid> <newid> [OPTIONS]
Create a copy of virtual machine/template.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <newid>: <integer> (100 - 999999999)
VMID for the clone.
- --bwlimit <integer> (0 - N) (default = clone limit from datacenter or storage config)
Override I/O bandwidth limit (in KiB/s).
- --description <string>
Description for the new VM.
- --format <qcow2 | raw | vmdk>
Target format for file storage. Only valid for full clone.
- --full <boolean>
Create a full copy of all disks. This is always done when you clone a normal VM. For VM templates, we try to create a linked clone by default.
- --name <string>
Set a name for the new VM.
- --pool <string>
Add the new VM to the specified pool.
- --snapname <string>
The name of the snapshot.
- --storage <storage ID>
Target storage for full clone.
- --target <string>
Target node. Only allowed if the original VM is on shared storage.
qm cloudinit dump <vmid> <type>
Get automatically generated cloudinit config.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <type>: <meta | network | user>
Config type.
qm cloudinit pending <vmid>
Get the cloudinit configuration with both current and pending values.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
qm cloudinit update <vmid>
Regenerate and change cloudinit config drive.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
qm config <vmid> [OPTIONS]
Get the virtual machine configuration with pending configuration changesapplied. Set the current parameter to get the current configurationinstead.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --current <boolean> (default = 0)
Get current values (instead of pending values).
- --snapshot <string>
Fetch config values from given snapshot.
qm create <vmid> [OPTIONS]
Create or restore a virtual machine.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --acpi <boolean> (default = 1)
Enable/disable ACPI.
- --affinity <string>
List of host cores used to execute guest processes, for example: 0,5,8-11
- --agent [enabled=]<1|0> [,freeze-fs-on-backup=<1|0>] [,fstrim_cloned_disks=<1|0>] [,type=<virtio|isa>]
Enable/disable communication with the QEMU Guest Agent and its properties.
- --amd-sev [type=]<sev-type> [,allow-smt=<1|0>] [,kernel-hashes=<1|0>] [,no-debug=<1|0>] [,no-key-sharing=<1|0>]
Secure Encrypted Virtualization (SEV) features by AMD CPUs
- --arch <aarch64 | x86_64>
Virtual processor architecture. Defaults to the host.
- --archive <string>
The backup archive. Either the file system path to a .tar or .vma file (use - to pipe data from stdin) or a proxmox storage backup volume identifier.
- --args <string>
Arbitrary arguments passed to kvm.
- --audio0 device=<ich9-intel-hda|intel-hda|AC97> [,driver=<spice|none>]
Configure a audio device, useful in combination with QXL/Spice.
- --autostart <boolean> (default = 0)
Automatic restart after crash (currently ignored).
- --balloon <integer> (0 - N)
Amount of target RAM for the VM in MiB. Using zero disables the ballon driver.
- --bios <ovmf | seabios> (default = seabios)
Select BIOS implementation.
- --boot [[legacy=]<[acdn]{1,4}>] [,order=<device[;device...]>]
Specify guest boot order. Use the order= sub-property as usage with no key or legacy= is deprecated.
- --bootdisk (ide|sata|scsi|virtio)\d+
Enable booting from specified disk. Deprecated: Use boot: order=foo;bar instead.
- --bwlimit <integer> (0 - N) (default = restore limit from datacenter or storage config)
Override I/O bandwidth limit (in KiB/s).
- --cdrom <volume>
This is an alias for option -ide2
- --cicustom [meta=<volume>] [,network=<volume>] [,user=<volume>] [,vendor=<volume>]
cloud-init: Specify custom files to replace the automatically generated ones at start.
- --cipassword <password>
cloud-init: Password to assign the user. Using this is generally not recommended. Use ssh keys instead. Also note that older cloud-init versions do not support hashed passwords.
- --citype <configdrive2 | nocloud | opennebula>
Specifies the cloud-init configuration format. The default depends on the configured operating system type (ostype. We use the nocloud format for Linux, and configdrive2 for windows.
- --ciupgrade <boolean> (default = 1)
cloud-init: do an automatic package upgrade after the first boot.
- --ciuser <string>
cloud-init: User name to change ssh keys and password for instead of the image’s configured default user.
- --cores <integer> (1 - N) (default = 1)
The number of cores per socket.
- --cpu [[cputype=]<string>] [,flags=<+FLAG[;-FLAG...]>] [,hidden=<1|0>] [,hv-vendor-id=<vendor-id>] [,phys-bits=<8-64|host>] [,reported-model=<enum>]
Emulated CPU type.
- --cpulimit <number> (0 - 128) (default = 0)
Limit of CPU usage.
- --cpuunits <integer> (1 - 262144) (default = cgroup v1: 1024, cgroup v2: 100)
CPU weight for a VM, will be clamped to [1, 10000] in cgroup v2.
- --description <string>
Description for the VM. Shown in the web-interface VM’s summary. This is saved as comment inside the configuration file.
- --efidisk0 [file=]<volume> [,efitype=<2m|4m>] [,format=<enum>] [,import-from=<source volume>] [,pre-enrolled-keys=<1|0>] [,size=<DiskSize>]
Configure a disk for storing EFI vars. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Note that SIZE_IN_GiB is ignored here and that the default EFI vars are copied to the volume instead. Use STORAGE_ID:0 and the import-from parameter to import from an existing volume.
- --force <boolean>
Allow to overwrite existing VM.
Requires option(s): archive - --freeze <boolean>
Freeze CPU at startup (use c monitor command to start execution).
- --hookscript <string>
Script that will be executed during various steps in the vms lifetime.
- --hostpci[n] [[host=]<HOSTPCIID[;HOSTPCIID2...]>] [,device-id=<hex id>] [,legacy-igd=<1|0>] [,mapping=<mapping-id>] [,mdev=<string>] [,pcie=<1|0>] [,rombar=<1|0>] [,romfile=<string>] [,sub-device-id=<hex id>] [,sub-vendor-id=<hex id>] [,vendor-id=<hex id>] [,x-vga=<1|0>]
Map host PCI devices into guest.
- --hotplug <string> (default = network,disk,usb)
Selectively enable hotplug features. This is a comma separated list of hotplug features: network, disk, cpu, memory, usb and cloudinit. Use 0 to disable hotplug completely. Using 1 as value is an alias for the default network,disk,usb. USB hotplugging is possible for guests with machine version >= 7.1 and ostype l26 or windows > 7.
- --hugepages <1024 | 2 | any>
Enable/disable hugepages memory.
- --ide[n] [file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]
Use volume as IDE hard disk or CD-ROM (n is 0 to 3). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the import-from parameter to import from an existing volume.
- --import-working-storage <storage ID>
A file-based storage with images content-type enabled, which is used as an intermediary extraction storage during import. Defaults to the source storage.
- --ipconfig[n] [gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>]
cloud-init: Specify IP addresses and gateways for the corresponding interface.
IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified.
The special string dhcp can be used for IP addresses to use DHCP, in which case no explicitgateway should be provided.For IPv6 the special string auto can be used to use stateless autoconfiguration. This requirescloud-init 19.4 or newer.
If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to usingdhcp on IPv4.
- --ivshmem size=<integer> [,name=<string>]
Inter-VM shared memory. Useful for direct communication between VMs, or to the host.
- --keephugepages <boolean> (default = 0)
Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts.
- --keyboard <da | de | de-ch | en-gb | en-us | es | fi | fr | fr-be | fr-ca | fr-ch | hu | is | it | ja | lt | mk | nl | no | pl | pt | pt-br | sl | sv | tr>
Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS.
- --kvm <boolean> (default = 1)
Enable/disable KVM hardware virtualization.
- --live-restore <boolean>
Start the VM immediately while importing or restoring in the background.
- --localtime <boolean>
Set the real time clock (RTC) to local time. This is enabled by default if the ostype indicates a Microsoft Windows OS.
- --lock <backup | clone | create | migrate | rollback | snapshot | snapshot-delete | suspended | suspending>
Lock/unlock the VM.
- --machine [[type=]<machine type>] [,enable-s3=<1|0>] [,enable-s4=<1|0>] [,viommu=<intel|virtio>]
Specify the QEMU machine.
- --memory [current=]<integer>
Memory properties.
- --migrate_downtime <number> (0 - N) (default = 0.1)
Set maximum tolerated downtime (in seconds) for migrations. Should the migration not be able to converge in the very end, because too much newly dirtied RAM needs to be transferred, the limit will be increased automatically step-by-step until migration can converge.
- --migrate_speed <integer> (0 - N) (default = 0)
Set maximum speed (in MB/s) for migrations. Value 0 is no limit.
- --name <string>
Set a name for the VM. Only used on the configuration web interface.
- --nameserver <string>
cloud-init: Sets DNS server IP address for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.
- --net[n] [model=]<enum> [,bridge=<bridge>] [,firewall=<1|0>] [,link_down=<1|0>] [,macaddr=<XX:XX:XX:XX:XX:XX>] [,mtu=<integer>] [,queues=<integer>] [,rate=<number>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,<model>=<macaddr>]
Specify network devices.
- --numa <boolean> (default = 0)
Enable/disable NUMA.
- --numa[n] cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]
NUMA topology.
- --onboot <boolean> (default = 0)
Specifies whether a VM will be started during system bootup.
- --ostype <l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win11 | win7 | win8 | wvista | wxp>
Specify guest operating system.
- --parallel[n] /dev/parport\d+|/dev/usb/lp\d+
Map host parallel devices (n is 0 to 2).
- --pool <string>
Add the VM to the specified pool.
- --protection <boolean> (default = 0)
Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.
- --reboot <boolean> (default = 1)
Allow reboot. If set to 0 the VM exit on reboot.
- --rng0 [source=]</dev/urandom|/dev/random|/dev/hwrng> [,max_bytes=<integer>] [,period=<integer>]
Configure a VirtIO-based Random Number Generator.
- --sata[n] [file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]
Use volume as SATA hard disk or CD-ROM (n is 0 to 5). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the import-from parameter to import from an existing volume.
- --scsi[n] [file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,product=<product>] [,queues=<integer>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,ro=<1|0>] [,scsiblock=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,vendor=<vendor>] [,werror=<enum>] [,wwn=<wwn>]
Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the import-from parameter to import from an existing volume.
- --scsihw <lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single> (default = lsi)
SCSI controller model
- --searchdomain <string>
cloud-init: Sets DNS search domains for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.
- --serial[n] (/dev/.+|socket)
Create a serial device inside the VM (n is 0 to 3)
- --shares <integer> (0 - 50000) (default = 1000)
Amount of memory shares for auto-ballooning. The larger the number is, the more memory this VM gets. Number is relative to weights of all other running VMs. Using zero disables auto-ballooning. Auto-ballooning is done by pvestatd.
- --smbios1 [base64=<1|0>] [,family=<Base64 encoded string>] [,manufacturer=<Base64 encoded string>] [,product=<Base64 encoded string>] [,serial=<Base64 encoded string>] [,sku=<Base64 encoded string>] [,uuid=<UUID>] [,version=<Base64 encoded string>]
Specify SMBIOS type 1 fields.
- --smp <integer> (1 - N) (default = 1)
The number of CPUs. Please use option -sockets instead.
- --sockets <integer> (1 - N) (default = 1)
The number of CPU sockets.
- --spice_enhancements [foldersharing=<1|0>] [,videostreaming=<off|all|filter>]
Configure additional enhancements for SPICE.
- --sshkeys <filepath>
cloud-init: Setup public SSH keys (one key per line, OpenSSH format).
- --start <boolean> (default = 0)
Start VM after it was created successfully.
- --startdate (now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS) (default = now)
Set the initial date of the real time clock. Valid format for date are:'now' or 2006-06-17T16:01:21 or 2006-06-17.
- --startup `[[order=]\d+] [,up=\d+] [,down=\d+] `
Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the up or down delay in seconds, which specifies a delay to wait before the next VM is started or stopped.
- --storage <storage ID>
Default storage.
- --tablet <boolean> (default = 1)
Enable/disable the USB tablet device.
- --tags <string>
Tags of the VM. This is only meta information.
- --tdf <boolean> (default = 0)
Enable/disable time drift fix.
- --template <boolean> (default = 0)
Enable/disable Template.
- --tpmstate0 [file=]<volume> [,import-from=<source volume>] [,size=<DiskSize>] [,version=<v1.2|v2.0>]
Configure a Disk for storing TPM state. The format is fixed to raw. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Note that SIZE_IN_GiB is ignored here and 4 MiB will be used instead. Use STORAGE_ID:0 and the import-from parameter to import from an existing volume.
- --unique <boolean>
Assign a unique random ethernet address.
Requires option(s): archive - --unused[n] [file=]<volume>
Reference to unused volumes. This is used internally, and should not be modified manually.
- --usb[n] [[host=]<HOSTUSBDEVICE|spice>] [,mapping=<mapping-id>] [,usb3=<1|0>]
Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).
- --vcpus <integer> (1 - N) (default = 0)
Number of hotplugged vcpus.
- --vga [[type=]<enum>] [,clipboard=<vnc>] [,memory=<integer>]
Configure the VGA hardware.
- --virtio[n] [file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,ro=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]
Use volume as VIRTIO hard disk (n is 0 to 15). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the import-from parameter to import from an existing volume.
- --virtiofs[n] [dirid=]<mapping-id> [,cache=<enum>] [,direct-io=<1|0>] [,expose-acl=<1|0>] [,expose-xattr=<1|0>]
Configuration for sharing a directory between host and guest using Virtio-fs.
- --vmgenid <UUID> (default = 1 (autogenerated))
Set VM Generation ID. Use 1 to autogenerate on create or update, pass 0 to disable explicitly.
- --vmstatestorage <storage ID>
Default storage for VM state volumes/files.
- --watchdog [[model=]<i6300esb|ib700>] [,action=<enum>]
Create a virtual hardware watchdog device.
qm delsnapshot <vmid> <snapname> [OPTIONS]
Delete a VM snapshot.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <snapname>: <string>
The name of the snapshot.
- --force <boolean>
For removal from config file, even if removing disk snapshots fails.
qm destroy <vmid> [OPTIONS]
Destroy the VM and all used/owned volumes. Removes any VM specificpermissions and firewall rules
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --destroy-unreferenced-disks <boolean> (default = 0)
If set, destroy additionally all disks not referenced in the config but with a matching VMID from all enabled storages.
- --purge <boolean>
Remove VMID from configurations, like backup & replication jobs and HA.
- --skiplock <boolean>
Ignore locks - only root is allowed to use this option.
qm disk import <vmid> <source> <storage> [OPTIONS]
Import an external disk image as an unused disk in a VM. The image format has to be supported by qemu-img(1).
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <source>: <string>
Path to the disk image to import
- <storage>: <storage ID>
Target storage ID
- --format <qcow2 | raw | vmdk>
Target format
- --target-disk <efidisk0 | ide0 | ide1 | ide2 | ide3 | sata0 | sata1 | sata2 | sata3 | sata4 | sata5 | scsi0 | scsi1 | scsi10 | scsi11 | scsi12 | scsi13 | scsi14 | scsi15 | scsi16 | scsi17 | scsi18 | scsi19 | scsi2 | scsi20 | scsi21 | scsi22 | scsi23 | scsi24 | scsi25 | scsi26 | scsi27 | scsi28 | scsi29 | scsi3 | scsi30 | scsi4 | scsi5 | scsi6 | scsi7 | scsi8 | scsi9 | tpmstate0 | unused0 | unused1 | unused10 | unused100 | unused101 | unused102 | unused103 | unused104 | unused105 | unused106 | unused107 | unused108 | unused109 | unused11 | unused110 | unused111 | unused112 | unused113 | unused114 | unused115 | unused116 | unused117 | unused118 | unused119 | unused12 | unused120 | unused121 | unused122 | unused123 | unused124 | unused125 | unused126 | unused127 | unused128 | unused129 | unused13 | unused130 | unused131 | unused132 | unused133 | unused134 | unused135 | unused136 | unused137 | unused138 | unused139 | unused14 | unused140 | unused141 | unused142 | unused143 | unused144 | unused145 | unused146 | unused147 | unused148 | unused149 | unused15 | unused150 | unused151 | unused152 | unused153 | unused154 | unused155 | unused156 | unused157 | unused158 | unused159 | unused16 | unused160 | unused161 | unused162 | unused163 | unused164 | unused165 | unused166 | unused167 | unused168 | unused169 | unused17 | unused170 | unused171 | unused172 | unused173 | unused174 | unused175 | unused176 | unused177 | unused178 | unused179 | unused18 | unused180 | unused181 | unused182 | unused183 | unused184 | unused185 | unused186 | unused187 | unused188 | unused189 | unused19 | unused190 | unused191 | unused192 | unused193 | unused194 | unused195 | unused196 | unused197 | unused198 | unused199 | unused2 | unused20 | unused200 | unused201 | unused202 | unused203 | unused204 | unused205 | unused206 | unused207 | unused208 | unused209 | unused21 | unused210 | unused211 | unused212 | unused213 | unused214 | unused215 | unused216 | unused217 | unused218 | unused219 | unused22 | unused220 | unused221 | unused222 | unused223 | unused224 | unused225 | unused226 | unused227 | unused228 | unused229 | unused23 | unused230 | unused231 | unused232 | unused233 | unused234 | unused235 | unused236 | unused237 | unused238 | unused239 | unused24 | unused240 | unused241 | unused242 | unused243 | unused244 | unused245 | unused246 | unused247 | unused248 | unused249 | unused25 | unused250 | unused251 | unused252 | unused253 | unused254 | unused255 | unused26 | unused27 | unused28 | unused29 | unused3 | unused30 | unused31 | unused32 | unused33 | unused34 | unused35 | unused36 | unused37 | unused38 | unused39 | unused4 | unused40 | unused41 | unused42 | unused43 | unused44 | unused45 | unused46 | unused47 | unused48 | unused49 | unused5 | unused50 | unused51 | unused52 | unused53 | unused54 | unused55 | unused56 | unused57 | unused58 | unused59 | unused6 | unused60 | unused61 | unused62 | unused63 | unused64 | unused65 | unused66 | unused67 | unused68 | unused69 | unused7 | unused70 | unused71 | unused72 | unused73 | unused74 | unused75 | unused76 | unused77 | unused78 | unused79 | unused8 | unused80 | unused81 | unused82 | unused83 | unused84 | unused85 | unused86 | unused87 | unused88 | unused89 | unused9 | unused90 | unused91 | unused92 | unused93 | unused94 | unused95 | unused96 | unused97 | unused98 | unused99 | virtio0 | virtio1 | virtio10 | virtio11 | virtio12 | virtio13 | virtio14 | virtio15 | virtio2 | virtio3 | virtio4 | virtio5 | virtio6 | virtio7 | virtio8 | virtio9>
The disk name where the volume will be imported to (e.g. scsi1).
qm disk move <vmid> <disk> [<storage>] [OPTIONS]
Move volume to different storage or to a different VM.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <disk>: <efidisk0 | ide0 | ide1 | ide2 | ide3 | sata0 | sata1 | sata2 | sata3 | sata4 | sata5 | scsi0 | scsi1 | scsi10 | scsi11 | scsi12 | scsi13 | scsi14 | scsi15 | scsi16 | scsi17 | scsi18 | scsi19 | scsi2 | scsi20 | scsi21 | scsi22 | scsi23 | scsi24 | scsi25 | scsi26 | scsi27 | scsi28 | scsi29 | scsi3 | scsi30 | scsi4 | scsi5 | scsi6 | scsi7 | scsi8 | scsi9 | tpmstate0 | unused0 | unused1 | unused10 | unused100 | unused101 | unused102 | unused103 | unused104 | unused105 | unused106 | unused107 | unused108 | unused109 | unused11 | unused110 | unused111 | unused112 | unused113 | unused114 | unused115 | unused116 | unused117 | unused118 | unused119 | unused12 | unused120 | unused121 | unused122 | unused123 | unused124 | unused125 | unused126 | unused127 | unused128 | unused129 | unused13 | unused130 | unused131 | unused132 | unused133 | unused134 | unused135 | unused136 | unused137 | unused138 | unused139 | unused14 | unused140 | unused141 | unused142 | unused143 | unused144 | unused145 | unused146 | unused147 | unused148 | unused149 | unused15 | unused150 | unused151 | unused152 | unused153 | unused154 | unused155 | unused156 | unused157 | unused158 | unused159 | unused16 | unused160 | unused161 | unused162 | unused163 | unused164 | unused165 | unused166 | unused167 | unused168 | unused169 | unused17 | unused170 | unused171 | unused172 | unused173 | unused174 | unused175 | unused176 | unused177 | unused178 | unused179 | unused18 | unused180 | unused181 | unused182 | unused183 | unused184 | unused185 | unused186 | unused187 | unused188 | unused189 | unused19 | unused190 | unused191 | unused192 | unused193 | unused194 | unused195 | unused196 | unused197 | unused198 | unused199 | unused2 | unused20 | unused200 | unused201 | unused202 | unused203 | unused204 | unused205 | unused206 | unused207 | unused208 | unused209 | unused21 | unused210 | unused211 | unused212 | unused213 | unused214 | unused215 | unused216 | unused217 | unused218 | unused219 | unused22 | unused220 | unused221 | unused222 | unused223 | unused224 | unused225 | unused226 | unused227 | unused228 | unused229 | unused23 | unused230 | unused231 | unused232 | unused233 | unused234 | unused235 | unused236 | unused237 | unused238 | unused239 | unused24 | unused240 | unused241 | unused242 | unused243 | unused244 | unused245 | unused246 | unused247 | unused248 | unused249 | unused25 | unused250 | unused251 | unused252 | unused253 | unused254 | unused255 | unused26 | unused27 | unused28 | unused29 | unused3 | unused30 | unused31 | unused32 | unused33 | unused34 | unused35 | unused36 | unused37 | unused38 | unused39 | unused4 | unused40 | unused41 | unused42 | unused43 | unused44 | unused45 | unused46 | unused47 | unused48 | unused49 | unused5 | unused50 | unused51 | unused52 | unused53 | unused54 | unused55 | unused56 | unused57 | unused58 | unused59 | unused6 | unused60 | unused61 | unused62 | unused63 | unused64 | unused65 | unused66 | unused67 | unused68 | unused69 | unused7 | unused70 | unused71 | unused72 | unused73 | unused74 | unused75 | unused76 | unused77 | unused78 | unused79 | unused8 | unused80 | unused81 | unused82 | unused83 | unused84 | unused85 | unused86 | unused87 | unused88 | unused89 | unused9 | unused90 | unused91 | unused92 | unused93 | unused94 | unused95 | unused96 | unused97 | unused98 | unused99 | virtio0 | virtio1 | virtio10 | virtio11 | virtio12 | virtio13 | virtio14 | virtio15 | virtio2 | virtio3 | virtio4 | virtio5 | virtio6 | virtio7 | virtio8 | virtio9>
The disk you want to move.
- <storage>: <storage ID>
Target storage.
- --bwlimit <integer> (0 - N) (default = move limit from datacenter or storage config)
Override I/O bandwidth limit (in KiB/s).
- --delete <boolean> (default = 0)
Delete the original disk after successful copy. By default the original disk is kept as unused disk.
- --digest <string>
Prevent changes if current configuration file has different SHA1" ." digest. This can be used to prevent concurrent modifications.
- --format <qcow2 | raw | vmdk>
Target Format.
- --target-digest <string>
Prevent changes if the current config file of the target VM has a" ." different SHA1 digest. This can be used to detect concurrent modifications.
- --target-disk <efidisk0 | ide0 | ide1 | ide2 | ide3 | sata0 | sata1 | sata2 | sata3 | sata4 | sata5 | scsi0 | scsi1 | scsi10 | scsi11 | scsi12 | scsi13 | scsi14 | scsi15 | scsi16 | scsi17 | scsi18 | scsi19 | scsi2 | scsi20 | scsi21 | scsi22 | scsi23 | scsi24 | scsi25 | scsi26 | scsi27 | scsi28 | scsi29 | scsi3 | scsi30 | scsi4 | scsi5 | scsi6 | scsi7 | scsi8 | scsi9 | tpmstate0 | unused0 | unused1 | unused10 | unused100 | unused101 | unused102 | unused103 | unused104 | unused105 | unused106 | unused107 | unused108 | unused109 | unused11 | unused110 | unused111 | unused112 | unused113 | unused114 | unused115 | unused116 | unused117 | unused118 | unused119 | unused12 | unused120 | unused121 | unused122 | unused123 | unused124 | unused125 | unused126 | unused127 | unused128 | unused129 | unused13 | unused130 | unused131 | unused132 | unused133 | unused134 | unused135 | unused136 | unused137 | unused138 | unused139 | unused14 | unused140 | unused141 | unused142 | unused143 | unused144 | unused145 | unused146 | unused147 | unused148 | unused149 | unused15 | unused150 | unused151 | unused152 | unused153 | unused154 | unused155 | unused156 | unused157 | unused158 | unused159 | unused16 | unused160 | unused161 | unused162 | unused163 | unused164 | unused165 | unused166 | unused167 | unused168 | unused169 | unused17 | unused170 | unused171 | unused172 | unused173 | unused174 | unused175 | unused176 | unused177 | unused178 | unused179 | unused18 | unused180 | unused181 | unused182 | unused183 | unused184 | unused185 | unused186 | unused187 | unused188 | unused189 | unused19 | unused190 | unused191 | unused192 | unused193 | unused194 | unused195 | unused196 | unused197 | unused198 | unused199 | unused2 | unused20 | unused200 | unused201 | unused202 | unused203 | unused204 | unused205 | unused206 | unused207 | unused208 | unused209 | unused21 | unused210 | unused211 | unused212 | unused213 | unused214 | unused215 | unused216 | unused217 | unused218 | unused219 | unused22 | unused220 | unused221 | unused222 | unused223 | unused224 | unused225 | unused226 | unused227 | unused228 | unused229 | unused23 | unused230 | unused231 | unused232 | unused233 | unused234 | unused235 | unused236 | unused237 | unused238 | unused239 | unused24 | unused240 | unused241 | unused242 | unused243 | unused244 | unused245 | unused246 | unused247 | unused248 | unused249 | unused25 | unused250 | unused251 | unused252 | unused253 | unused254 | unused255 | unused26 | unused27 | unused28 | unused29 | unused3 | unused30 | unused31 | unused32 | unused33 | unused34 | unused35 | unused36 | unused37 | unused38 | unused39 | unused4 | unused40 | unused41 | unused42 | unused43 | unused44 | unused45 | unused46 | unused47 | unused48 | unused49 | unused5 | unused50 | unused51 | unused52 | unused53 | unused54 | unused55 | unused56 | unused57 | unused58 | unused59 | unused6 | unused60 | unused61 | unused62 | unused63 | unused64 | unused65 | unused66 | unused67 | unused68 | unused69 | unused7 | unused70 | unused71 | unused72 | unused73 | unused74 | unused75 | unused76 | unused77 | unused78 | unused79 | unused8 | unused80 | unused81 | unused82 | unused83 | unused84 | unused85 | unused86 | unused87 | unused88 | unused89 | unused9 | unused90 | unused91 | unused92 | unused93 | unused94 | unused95 | unused96 | unused97 | unused98 | unused99 | virtio0 | virtio1 | virtio10 | virtio11 | virtio12 | virtio13 | virtio14 | virtio15 | virtio2 | virtio3 | virtio4 | virtio5 | virtio6 | virtio7 | virtio8 | virtio9>
The config key the disk will be moved to on the target VM (for example, ide0 or scsi1). Default is the source disk key.
- --target-vmid <integer> (100 - 999999999)
The (unique) ID of the VM.
qm disk rescan [OPTIONS]
Rescan all storages and update disk sizes and unused disk images.
- --dryrun <boolean> (default = 0)
Do not actually write changes out to VM config(s).
- --vmid <integer> (100 - 999999999)
The (unique) ID of the VM.
qm disk resize <vmid> <disk> <size> [OPTIONS]
Extend volume size.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <disk>: <efidisk0 | ide0 | ide1 | ide2 | ide3 | sata0 | sata1 | sata2 | sata3 | sata4 | sata5 | scsi0 | scsi1 | scsi10 | scsi11 | scsi12 | scsi13 | scsi14 | scsi15 | scsi16 | scsi17 | scsi18 | scsi19 | scsi2 | scsi20 | scsi21 | scsi22 | scsi23 | scsi24 | scsi25 | scsi26 | scsi27 | scsi28 | scsi29 | scsi3 | scsi30 | scsi4 | scsi5 | scsi6 | scsi7 | scsi8 | scsi9 | tpmstate0 | virtio0 | virtio1 | virtio10 | virtio11 | virtio12 | virtio13 | virtio14 | virtio15 | virtio2 | virtio3 | virtio4 | virtio5 | virtio6 | virtio7 | virtio8 | virtio9>
The disk you want to resize.
- <size>: \+?\d+(\.\d+)?[KMGT]?
The new size. With the + sign the value is added to the actual size of the volume and without it, the value is taken as an absolute one. Shrinking disk size is not supported.
- --digest <string>
Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
- --skiplock <boolean>
Ignore locks - only root is allowed to use this option.
qm disk unlink <vmid> --idlist <string> [OPTIONS]
Unlink/delete disk images.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --force <boolean>
Force physical removal. Without this, we simple remove the disk from the config file and create an additional configuration entry called unused[n], which contains the volume ID. Unlink of unused[n] always cause physical removal.
- --idlist <string>
A list of disk IDs you want to delete.
qm guest cmd <vmid> <command>
Execute QEMU Guest Agent commands.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <command>: <fsfreeze-freeze | fsfreeze-status | fsfreeze-thaw | fstrim | get-fsinfo | get-host-name | get-memory-block-info | get-memory-blocks | get-osinfo | get-time | get-timezone | get-users | get-vcpus | info | network-get-interfaces | ping | shutdown | suspend-disk | suspend-hybrid | suspend-ram>
The QGA command.
qm guest exec <vmid> [<extra-args>] [OPTIONS]
Executes the given command via the guest agent
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <extra-args>: <array>
Extra arguments as array
- --pass-stdin <boolean> (default = 0)
When set, read STDIN until EOF and forward to guest agent via input-data (usually treated as STDIN to process launched by guest agent). Allows maximal 1 MiB.
- --synchronous <boolean> (default = 1)
If set to off, returns the pid immediately instead of waiting for the command to finish or the timeout.
- --timeout <integer> (0 - N) (default = 30)
The maximum time to wait synchronously for the command to finish. If reached, the pid gets returned. Set to 0 to deactivate
qm guest exec-status <vmid> <pid>
Gets the status of the given pid started by the guest-agent
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <pid>: <integer>
The PID to query
qm guest passwd <vmid> <username> [OPTIONS]
Sets the password for the given user to the given password
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <username>: <string>
The user to set the password for.
- --crypted <boolean> (default = 0)
set to 1 if the password has already been passed through crypt()
qm help [OPTIONS]
Get help about specified command.
- --extra-args <array>
Shows help for a specific command
- --verbose <boolean>
Verbose output format.
qm import <vmid> <source> --storage <string> [OPTIONS]
Import a foreign virtual guest from a supported import source, such as anESXi storage.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <source>: <string>
The import source volume id.
- --acpi <boolean> (default = 1)
Enable/disable ACPI.
- --affinity <string>
List of host cores used to execute guest processes, for example: 0,5,8-11
- --agent [enabled=]<1|0> [,freeze-fs-on-backup=<1|0>] [,fstrim_cloned_disks=<1|0>] [,type=<virtio|isa>]
Enable/disable communication with the QEMU Guest Agent and its properties.
- --amd-sev [type=]<sev-type> [,allow-smt=<1|0>] [,kernel-hashes=<1|0>] [,no-debug=<1|0>] [,no-key-sharing=<1|0>]
Secure Encrypted Virtualization (SEV) features by AMD CPUs
- --arch <aarch64 | x86_64>
Virtual processor architecture. Defaults to the host.
- --args <string>
Arbitrary arguments passed to kvm.
- --audio0 device=<ich9-intel-hda|intel-hda|AC97> [,driver=<spice|none>]
Configure a audio device, useful in combination with QXL/Spice.
- --autostart <boolean> (default = 0)
Automatic restart after crash (currently ignored).
- --balloon <integer> (0 - N)
Amount of target RAM for the VM in MiB. Using zero disables the ballon driver.
- --bios <ovmf | seabios> (default = seabios)
Select BIOS implementation.
- --boot [[legacy=]<[acdn]{1,4}>] [,order=<device[;device...]>]
Specify guest boot order. Use the order= sub-property as usage with no key or legacy= is deprecated.
- --bootdisk (ide|sata|scsi|virtio)\d+
Enable booting from specified disk. Deprecated: Use boot: order=foo;bar instead.
- --cdrom <volume>
This is an alias for option -ide2
- --cicustom [meta=<volume>] [,network=<volume>] [,user=<volume>] [,vendor=<volume>]
cloud-init: Specify custom files to replace the automatically generated ones at start.
- --cipassword <string>
cloud-init: Password to assign the user. Using this is generally not recommended. Use ssh keys instead. Also note that older cloud-init versions do not support hashed passwords.
- --citype <configdrive2 | nocloud | opennebula>
Specifies the cloud-init configuration format. The default depends on the configured operating system type (ostype. We use the nocloud format for Linux, and configdrive2 for windows.
- --ciupgrade <boolean> (default = 1)
cloud-init: do an automatic package upgrade after the first boot.
- --ciuser <string>
cloud-init: User name to change ssh keys and password for instead of the image’s configured default user.
- --cores <integer> (1 - N) (default = 1)
The number of cores per socket.
- --cpu [[cputype=]<string>] [,flags=<+FLAG[;-FLAG...]>] [,hidden=<1|0>] [,hv-vendor-id=<vendor-id>] [,phys-bits=<8-64|host>] [,reported-model=<enum>]
Emulated CPU type.
- --cpulimit <number> (0 - 128) (default = 0)
Limit of CPU usage.
- --cpuunits <integer> (1 - 262144) (default = cgroup v1: 1024, cgroup v2: 100)
CPU weight for a VM, will be clamped to [1, 10000] in cgroup v2.
- --delete <string>
A list of settings you want to delete.
- --description <string>
Description for the VM. Shown in the web-interface VM’s summary. This is saved as comment inside the configuration file.
- --dryrun <boolean> (default = 0)
Show the create command and exit without doing anything.
- --efidisk0 [file=]<volume> [,efitype=<2m|4m>] [,format=<enum>] [,pre-enrolled-keys=<1|0>] [,size=<DiskSize>]
Configure a disk for storing EFI vars.
- --format <qcow2 | raw | vmdk>
Target format
- --freeze <boolean>
Freeze CPU at startup (use c monitor command to start execution).
- --hookscript <string>
Script that will be executed during various steps in the vms lifetime.
- --hostpci[n] [[host=]<HOSTPCIID[;HOSTPCIID2...]>] [,device-id=<hex id>] [,legacy-igd=<1|0>] [,mapping=<mapping-id>] [,mdev=<string>] [,pcie=<1|0>] [,rombar=<1|0>] [,romfile=<string>] [,sub-device-id=<hex id>] [,sub-vendor-id=<hex id>] [,vendor-id=<hex id>] [,x-vga=<1|0>]
Map host PCI devices into guest.
- --hotplug <string> (default = network,disk,usb)
Selectively enable hotplug features. This is a comma separated list of hotplug features: network, disk, cpu, memory, usb and cloudinit. Use 0 to disable hotplug completely. Using 1 as value is an alias for the default network,disk,usb. USB hotplugging is possible for guests with machine version >= 7.1 and ostype l26 or windows > 7.
- --hugepages <1024 | 2 | any>
Enable/disable hugepages memory.
- --ide[n] [file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]
Use volume as IDE hard disk or CD-ROM (n is 0 to 3).
- --ipconfig[n] [gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>]
cloud-init: Specify IP addresses and gateways for the corresponding interface.
IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified.
The special string dhcp can be used for IP addresses to use DHCP, in which case no explicitgateway should be provided.For IPv6 the special string auto can be used to use stateless autoconfiguration. This requirescloud-init 19.4 or newer.
If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to usingdhcp on IPv4.
- --ivshmem size=<integer> [,name=<string>]
Inter-VM shared memory. Useful for direct communication between VMs, or to the host.
- --keephugepages <boolean> (default = 0)
Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts.
- --keyboard <da | de | de-ch | en-gb | en-us | es | fi | fr | fr-be | fr-ca | fr-ch | hu | is | it | ja | lt | mk | nl | no | pl | pt | pt-br | sl | sv | tr>
Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS.
- --kvm <boolean> (default = 1)
Enable/disable KVM hardware virtualization.
- --live-import <boolean> (default = 0)
Immediately start the VM and copy the data in the background.
- --localtime <boolean>
Set the real time clock (RTC) to local time. This is enabled by default if the ostype indicates a Microsoft Windows OS.
- --lock <backup | clone | create | migrate | rollback | snapshot | snapshot-delete | suspended | suspending>
Lock/unlock the VM.
- --machine [[type=]<machine type>] [,enable-s3=<1|0>] [,enable-s4=<1|0>] [,viommu=<intel|virtio>]
Specify the QEMU machine.
- --memory [current=]<integer>
Memory properties.
- --migrate_downtime <number> (0 - N) (default = 0.1)
Set maximum tolerated downtime (in seconds) for migrations. Should the migration not be able to converge in the very end, because too much newly dirtied RAM needs to be transferred, the limit will be increased automatically step-by-step until migration can converge.
- --migrate_speed <integer> (0 - N) (default = 0)
Set maximum speed (in MB/s) for migrations. Value 0 is no limit.
- --name <string>
Set a name for the VM. Only used on the configuration web interface.
- --nameserver <string>
cloud-init: Sets DNS server IP address for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.
- --net[n] [model=]<enum> [,bridge=<bridge>] [,firewall=<1|0>] [,link_down=<1|0>] [,macaddr=<XX:XX:XX:XX:XX:XX>] [,mtu=<integer>] [,queues=<integer>] [,rate=<number>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,<model>=<macaddr>]
Specify network devices.
- --numa <boolean> (default = 0)
Enable/disable NUMA.
- --numa[n] cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]
NUMA topology.
- --onboot <boolean> (default = 0)
Specifies whether a VM will be started during system bootup.
- --ostype <l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win11 | win7 | win8 | wvista | wxp>
Specify guest operating system.
- --parallel[n] /dev/parport\d+|/dev/usb/lp\d+
Map host parallel devices (n is 0 to 2).
- --protection <boolean> (default = 0)
Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.
- --reboot <boolean> (default = 1)
Allow reboot. If set to 0 the VM exit on reboot.
- --rng0 [source=]</dev/urandom|/dev/random|/dev/hwrng> [,max_bytes=<integer>] [,period=<integer>]
Configure a VirtIO-based Random Number Generator.
- --sata[n] [file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]
Use volume as SATA hard disk or CD-ROM (n is 0 to 5).
- --scsi[n] [file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,product=<product>] [,queues=<integer>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,ro=<1|0>] [,scsiblock=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,vendor=<vendor>] [,werror=<enum>] [,wwn=<wwn>]
Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).
- --scsihw <lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single> (default = lsi)
SCSI controller model
- --searchdomain <string>
cloud-init: Sets DNS search domains for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.
- --serial[n] (/dev/.+|socket)
Create a serial device inside the VM (n is 0 to 3)
- --shares <integer> (0 - 50000) (default = 1000)
Amount of memory shares for auto-ballooning. The larger the number is, the more memory this VM gets. Number is relative to weights of all other running VMs. Using zero disables auto-ballooning. Auto-ballooning is done by pvestatd.
- --smbios1 [base64=<1|0>] [,family=<Base64 encoded string>] [,manufacturer=<Base64 encoded string>] [,product=<Base64 encoded string>] [,serial=<Base64 encoded string>] [,sku=<Base64 encoded string>] [,uuid=<UUID>] [,version=<Base64 encoded string>]
Specify SMBIOS type 1 fields.
- --smp <integer> (1 - N) (default = 1)
The number of CPUs. Please use option -sockets instead.
- --sockets <integer> (1 - N) (default = 1)
The number of CPU sockets.
- --spice_enhancements [foldersharing=<1|0>] [,videostreaming=<off|all|filter>]
Configure additional enhancements for SPICE.
- --sshkeys <string>
cloud-init: Setup public SSH keys (one key per line, OpenSSH format).
- --startdate (now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS) (default = now)
Set the initial date of the real time clock. Valid format for date are:'now' or 2006-06-17T16:01:21 or 2006-06-17.
- --startup `[[order=]\d+] [,up=\d+] [,down=\d+] `
Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the up or down delay in seconds, which specifies a delay to wait before the next VM is started or stopped.
- --storage <storage ID>
Default storage.
- --tablet <boolean> (default = 1)
Enable/disable the USB tablet device.
- --tags <string>
Tags of the VM. This is only meta information.
- --tdf <boolean> (default = 0)
Enable/disable time drift fix.
- --template <boolean> (default = 0)
Enable/disable Template.
- --tpmstate0 [file=]<volume> [,size=<DiskSize>] [,version=<v1.2|v2.0>]
Configure a Disk for storing TPM state. The format is fixed to raw.
- --unused[n] [file=]<volume>
Reference to unused volumes. This is used internally, and should not be modified manually.
- --usb[n] [[host=]<HOSTUSBDEVICE|spice>] [,mapping=<mapping-id>] [,usb3=<1|0>]
Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).
- --vcpus <integer> (1 - N) (default = 0)
Number of hotplugged vcpus.
- --vga [[type=]<enum>] [,clipboard=<vnc>] [,memory=<integer>]
Configure the VGA hardware.
- --virtio[n] [file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,ro=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]
Use volume as VIRTIO hard disk (n is 0 to 15).
- --virtiofs[n] [dirid=]<mapping-id> [,cache=<enum>] [,direct-io=<1|0>] [,expose-acl=<1|0>] [,expose-xattr=<1|0>]
Configuration for sharing a directory between host and guest using Virtio-fs.
- --vmgenid <UUID> (default = 1 (autogenerated))
Set VM Generation ID. Use 1 to autogenerate on create or update, pass 0 to disable explicitly.
- --vmstatestorage <storage ID>
Default storage for VM state volumes/files.
- --watchdog [[model=]<i6300esb|ib700>] [,action=<enum>]
Create a virtual hardware watchdog device.
qm importdisk
An alias for qm disk import.
qm importovf <vmid> <manifest> <storage> [OPTIONS]
Create a new VM using parameters read from an OVF manifest
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <manifest>: <string>
path to the ovf file
- <storage>: <storage ID>
Target storage ID
- --dryrun <boolean>
Print a parsed representation of the extracted OVF parameters, but do not create a VM
- --format <qcow2 | raw | vmdk>
Target format
qm list [OPTIONS]
Virtual machine index (per node).
- --full <boolean>
Determine the full status of active VMs.
qm listsnapshot <vmid>
List all snapshots.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
qm migrate <vmid> <target> [OPTIONS]
Migrate virtual machine. Creates a new migration task.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <target>: <string>
Target node.
- --bwlimit <integer> (0 - N) (default = migrate limit from datacenter or storage config)
Override I/O bandwidth limit (in KiB/s).
- --force <boolean>
Allow to migrate VMs which use local devices. Only root may use this option.
- --migration_network <string>
CIDR of the (sub) network that is used for migration.
- --migration_type <insecure | secure>
Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.
- --online <boolean>
Use online/live migration if VM is running. Ignored if VM is stopped.
- --targetstorage <string>
Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value 1 will map each source storage to itself.
- --with-local-disks <boolean>
Enable live storage migration for local disk
qm monitor <vmid>
Enter QEMU Monitor interface.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
qm move-disk
An alias for qm disk move.
qm move_disk
An alias for qm disk move.
qm mtunnel
Used by qmigrate - do not use manually.
qm nbdstop <vmid>
Stop embedded nbd server.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
qm pending <vmid>
Get the virtual machine configuration with both current and pending values.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
qm reboot <vmid> [OPTIONS]
Reboot the VM by shutting it down, and starting it again. Applies pendingchanges.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --timeout <integer> (0 - N)
Wait maximal timeout seconds for the shutdown.
qm remote-migrate <vmid> [<target-vmid>] <target-endpoint> --target-bridge <string> --target-storage <string> [OPTIONS]
Migrate virtual machine to a remote cluster. Creates a new migration task.EXPERIMENTAL feature!
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <target-vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <target-endpoint>: apitoken=<PVEAPIToken=user@realm!token=SECRET> ,host=<ADDRESS> [,fingerprint=<FINGERPRINT>] [,port=<PORT>]
Remote target endpoint
- --bwlimit <integer> (0 - N) (default = migrate limit from datacenter or storage config)
Override I/O bandwidth limit (in KiB/s).
- --delete <boolean> (default = 0)
Delete the original VM and related data after successful migration. By default the original VM is kept on the source cluster in a stopped state.
- --online <boolean>
Use online/live migration if VM is running. Ignored if VM is stopped.
- --target-bridge <string>
Mapping from source to target bridges. Providing only a single bridge ID maps all source bridges to that bridge. Providing the special value 1 will map each source bridge to itself.
- --target-storage <string>
Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value 1 will map each source storage to itself.
qm rescan
An alias for qm disk rescan.
qm reset <vmid> [OPTIONS]
Reset virtual machine.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --skiplock <boolean>
Ignore locks - only root is allowed to use this option.
qm resize
An alias for qm disk resize.
qm resume <vmid> [OPTIONS]
Resume virtual machine.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --nocheck <boolean>
no description available
- --skiplock <boolean>
Ignore locks - only root is allowed to use this option.
qm rollback <vmid> <snapname> [OPTIONS]
Rollback VM state to specified snapshot.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <snapname>: <string>
The name of the snapshot.
- --start <boolean> (default = 0)
Whether the VM should get started after rolling back successfully. (Note: VMs will be automatically started if the snapshot includes RAM.)
qm sendkey <vmid> <key> [OPTIONS]
Send key event to virtual machine.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <key>: <string>
The key (qemu monitor encoding).
- --skiplock <boolean>
Ignore locks - only root is allowed to use this option.
qm set <vmid> [OPTIONS]
Set virtual machine options (synchronous API) - You should consider usingthe POST method instead for any actions involving hotplug or storageallocation.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --acpi <boolean> (default = 1)
Enable/disable ACPI.
- --affinity <string>
List of host cores used to execute guest processes, for example: 0,5,8-11
- --agent [enabled=]<1|0> [,freeze-fs-on-backup=<1|0>] [,fstrim_cloned_disks=<1|0>] [,type=<virtio|isa>]
Enable/disable communication with the QEMU Guest Agent and its properties.
- --amd-sev [type=]<sev-type> [,allow-smt=<1|0>] [,kernel-hashes=<1|0>] [,no-debug=<1|0>] [,no-key-sharing=<1|0>]
Secure Encrypted Virtualization (SEV) features by AMD CPUs
- --arch <aarch64 | x86_64>
Virtual processor architecture. Defaults to the host.
- --args <string>
Arbitrary arguments passed to kvm.
- --audio0 device=<ich9-intel-hda|intel-hda|AC97> [,driver=<spice|none>]
Configure a audio device, useful in combination with QXL/Spice.
- --autostart <boolean> (default = 0)
Automatic restart after crash (currently ignored).
- --balloon <integer> (0 - N)
Amount of target RAM for the VM in MiB. Using zero disables the ballon driver.
- --bios <ovmf | seabios> (default = seabios)
Select BIOS implementation.
- --boot [[legacy=]<[acdn]{1,4}>] [,order=<device[;device...]>]
Specify guest boot order. Use the order= sub-property as usage with no key or legacy= is deprecated.
- --bootdisk (ide|sata|scsi|virtio)\d+
Enable booting from specified disk. Deprecated: Use boot: order=foo;bar instead.
- --cdrom <volume>
This is an alias for option -ide2
- --cicustom [meta=<volume>] [,network=<volume>] [,user=<volume>] [,vendor=<volume>]
cloud-init: Specify custom files to replace the automatically generated ones at start.
- --cipassword <password>
cloud-init: Password to assign the user. Using this is generally not recommended. Use ssh keys instead. Also note that older cloud-init versions do not support hashed passwords.
- --citype <configdrive2 | nocloud | opennebula>
Specifies the cloud-init configuration format. The default depends on the configured operating system type (ostype. We use the nocloud format for Linux, and configdrive2 for windows.
- --ciupgrade <boolean> (default = 1)
cloud-init: do an automatic package upgrade after the first boot.
- --ciuser <string>
cloud-init: User name to change ssh keys and password for instead of the image’s configured default user.
- --cores <integer> (1 - N) (default = 1)
The number of cores per socket.
- --cpu [[cputype=]<string>] [,flags=<+FLAG[;-FLAG...]>] [,hidden=<1|0>] [,hv-vendor-id=<vendor-id>] [,phys-bits=<8-64|host>] [,reported-model=<enum>]
Emulated CPU type.
- --cpulimit <number> (0 - 128) (default = 0)
Limit of CPU usage.
- --cpuunits <integer> (1 - 262144) (default = cgroup v1: 1024, cgroup v2: 100)
CPU weight for a VM, will be clamped to [1, 10000] in cgroup v2.
- --delete <string>
A list of settings you want to delete.
- --description <string>
Description for the VM. Shown in the web-interface VM’s summary. This is saved as comment inside the configuration file.
- --digest <string>
Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
- --efidisk0 [file=]<volume> [,efitype=<2m|4m>] [,format=<enum>] [,import-from=<source volume>] [,pre-enrolled-keys=<1|0>] [,size=<DiskSize>]
Configure a disk for storing EFI vars. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Note that SIZE_IN_GiB is ignored here and that the default EFI vars are copied to the volume instead. Use STORAGE_ID:0 and the import-from parameter to import from an existing volume.
- --force <boolean>
Force physical removal. Without this, we simple remove the disk from the config file and create an additional configuration entry called unused[n], which contains the volume ID. Unlink of unused[n] always cause physical removal.
Requires option(s): delete - --freeze <boolean>
Freeze CPU at startup (use c monitor command to start execution).
- --hookscript <string>
Script that will be executed during various steps in the vms lifetime.
- --hostpci[n] [[host=]<HOSTPCIID[;HOSTPCIID2...]>] [,device-id=<hex id>] [,legacy-igd=<1|0>] [,mapping=<mapping-id>] [,mdev=<string>] [,pcie=<1|0>] [,rombar=<1|0>] [,romfile=<string>] [,sub-device-id=<hex id>] [,sub-vendor-id=<hex id>] [,vendor-id=<hex id>] [,x-vga=<1|0>]
Map host PCI devices into guest.
- --hotplug <string> (default = network,disk,usb)
Selectively enable hotplug features. This is a comma separated list of hotplug features: network, disk, cpu, memory, usb and cloudinit. Use 0 to disable hotplug completely. Using 1 as value is an alias for the default network,disk,usb. USB hotplugging is possible for guests with machine version >= 7.1 and ostype l26 or windows > 7.
- --hugepages <1024 | 2 | any>
Enable/disable hugepages memory.
- --ide[n] [file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]
Use volume as IDE hard disk or CD-ROM (n is 0 to 3). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the import-from parameter to import from an existing volume.
- --ipconfig[n] [gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>]
cloud-init: Specify IP addresses and gateways for the corresponding interface.
IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified.
The special string dhcp can be used for IP addresses to use DHCP, in which case no explicitgateway should be provided.For IPv6 the special string auto can be used to use stateless autoconfiguration. This requirescloud-init 19.4 or newer.
If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to usingdhcp on IPv4.
- --ivshmem size=<integer> [,name=<string>]
Inter-VM shared memory. Useful for direct communication between VMs, or to the host.
- --keephugepages <boolean> (default = 0)
Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts.
- --keyboard <da | de | de-ch | en-gb | en-us | es | fi | fr | fr-be | fr-ca | fr-ch | hu | is | it | ja | lt | mk | nl | no | pl | pt | pt-br | sl | sv | tr>
Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS.
- --kvm <boolean> (default = 1)
Enable/disable KVM hardware virtualization.
- --localtime <boolean>
Set the real time clock (RTC) to local time. This is enabled by default if the ostype indicates a Microsoft Windows OS.
- --lock <backup | clone | create | migrate | rollback | snapshot | snapshot-delete | suspended | suspending>
Lock/unlock the VM.
- --machine [[type=]<machine type>] [,enable-s3=<1|0>] [,enable-s4=<1|0>] [,viommu=<intel|virtio>]
Specify the QEMU machine.
- --memory [current=]<integer>
Memory properties.
- --migrate_downtime <number> (0 - N) (default = 0.1)
Set maximum tolerated downtime (in seconds) for migrations. Should the migration not be able to converge in the very end, because too much newly dirtied RAM needs to be transferred, the limit will be increased automatically step-by-step until migration can converge.
- --migrate_speed <integer> (0 - N) (default = 0)
Set maximum speed (in MB/s) for migrations. Value 0 is no limit.
- --name <string>
Set a name for the VM. Only used on the configuration web interface.
- --nameserver <string>
cloud-init: Sets DNS server IP address for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.
- --net[n] [model=]<enum> [,bridge=<bridge>] [,firewall=<1|0>] [,link_down=<1|0>] [,macaddr=<XX:XX:XX:XX:XX:XX>] [,mtu=<integer>] [,queues=<integer>] [,rate=<number>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,<model>=<macaddr>]
Specify network devices.
- --numa <boolean> (default = 0)
Enable/disable NUMA.
- --numa[n] cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]
NUMA topology.
- --onboot <boolean> (default = 0)
Specifies whether a VM will be started during system bootup.
- --ostype <l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win11 | win7 | win8 | wvista | wxp>
Specify guest operating system.
- --parallel[n] /dev/parport\d+|/dev/usb/lp\d+
Map host parallel devices (n is 0 to 2).
- --protection <boolean> (default = 0)
Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.
- --reboot <boolean> (default = 1)
Allow reboot. If set to 0 the VM exit on reboot.
- --revert <string>
Revert a pending change.
- --rng0 [source=]</dev/urandom|/dev/random|/dev/hwrng> [,max_bytes=<integer>] [,period=<integer>]
Configure a VirtIO-based Random Number Generator.
- --sata[n] [file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]
Use volume as SATA hard disk or CD-ROM (n is 0 to 5). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the import-from parameter to import from an existing volume.
- --scsi[n] [file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,product=<product>] [,queues=<integer>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,ro=<1|0>] [,scsiblock=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,vendor=<vendor>] [,werror=<enum>] [,wwn=<wwn>]
Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the import-from parameter to import from an existing volume.
- --scsihw <lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single> (default = lsi)
SCSI controller model
- --searchdomain <string>
cloud-init: Sets DNS search domains for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.
- --serial[n] (/dev/.+|socket)
Create a serial device inside the VM (n is 0 to 3)
- --shares <integer> (0 - 50000) (default = 1000)
Amount of memory shares for auto-ballooning. The larger the number is, the more memory this VM gets. Number is relative to weights of all other running VMs. Using zero disables auto-ballooning. Auto-ballooning is done by pvestatd.
- --skiplock <boolean>
Ignore locks - only root is allowed to use this option.
- --smbios1 [base64=<1|0>] [,family=<Base64 encoded string>] [,manufacturer=<Base64 encoded string>] [,product=<Base64 encoded string>] [,serial=<Base64 encoded string>] [,sku=<Base64 encoded string>] [,uuid=<UUID>] [,version=<Base64 encoded string>]
Specify SMBIOS type 1 fields.
- --smp <integer> (1 - N) (default = 1)
The number of CPUs. Please use option -sockets instead.
- --sockets <integer> (1 - N) (default = 1)
The number of CPU sockets.
- --spice_enhancements [foldersharing=<1|0>] [,videostreaming=<off|all|filter>]
Configure additional enhancements for SPICE.
- --sshkeys <filepath>
cloud-init: Setup public SSH keys (one key per line, OpenSSH format).
- --startdate (now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS) (default = now)
Set the initial date of the real time clock. Valid format for date are:'now' or 2006-06-17T16:01:21 or 2006-06-17.
- --startup `[[order=]\d+] [,up=\d+] [,down=\d+] `
Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the up or down delay in seconds, which specifies a delay to wait before the next VM is started or stopped.
- --tablet <boolean> (default = 1)
Enable/disable the USB tablet device.
- --tags <string>
Tags of the VM. This is only meta information.
- --tdf <boolean> (default = 0)
Enable/disable time drift fix.
- --template <boolean> (default = 0)
Enable/disable Template.
- --tpmstate0 [file=]<volume> [,import-from=<source volume>] [,size=<DiskSize>] [,version=<v1.2|v2.0>]
Configure a Disk for storing TPM state. The format is fixed to raw. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Note that SIZE_IN_GiB is ignored here and 4 MiB will be used instead. Use STORAGE_ID:0 and the import-from parameter to import from an existing volume.
- --unused[n] [file=]<volume>
Reference to unused volumes. This is used internally, and should not be modified manually.
- --usb[n] [[host=]<HOSTUSBDEVICE|spice>] [,mapping=<mapping-id>] [,usb3=<1|0>]
Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).
- --vcpus <integer> (1 - N) (default = 0)
Number of hotplugged vcpus.
- --vga [[type=]<enum>] [,clipboard=<vnc>] [,memory=<integer>]
Configure the VGA hardware.
- --virtio[n] [file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,ro=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]
Use volume as VIRTIO hard disk (n is 0 to 15). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the import-from parameter to import from an existing volume.
- --virtiofs[n] [dirid=]<mapping-id> [,cache=<enum>] [,direct-io=<1|0>] [,expose-acl=<1|0>] [,expose-xattr=<1|0>]
Configuration for sharing a directory between host and guest using Virtio-fs.
- --vmgenid <UUID> (default = 1 (autogenerated))
Set VM Generation ID. Use 1 to autogenerate on create or update, pass 0 to disable explicitly.
- --vmstatestorage <storage ID>
Default storage for VM state volumes/files.
- --watchdog [[model=]<i6300esb|ib700>] [,action=<enum>]
Create a virtual hardware watchdog device.
qm showcmd <vmid> [OPTIONS]
Show command line which is used to start the VM (debug info).
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --pretty <boolean> (default = 0)
Puts each option on a new line to enhance human readability
- --snapshot <string>
Fetch config values from given snapshot.
qm shutdown <vmid> [OPTIONS]
Shutdown virtual machine. This is similar to pressing the power button on aphysical machine. This will send an ACPI event for the guest OS, whichshould then proceed to a clean shutdown.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --forceStop <boolean> (default = 0)
Make sure the VM stops.
- --keepActive <boolean> (default = 0)
Do not deactivate storage volumes.
- --skiplock <boolean>
Ignore locks - only root is allowed to use this option.
- --timeout <integer> (0 - N)
Wait maximal timeout seconds.
qm snapshot <vmid> <snapname> [OPTIONS]
Snapshot a VM.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <snapname>: <string>
The name of the snapshot.
- --description <string>
A textual description or comment.
- --vmstate <boolean>
Save the vmstate
qm start <vmid> [OPTIONS]
Start virtual machine.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --force-cpu <string>
Override QEMU’s -cpu argument with the given string.
- --machine [[type=]<machine type>] [,enable-s3=<1|0>] [,enable-s4=<1|0>] [,viommu=<intel|virtio>]
Specify the QEMU machine.
- --migratedfrom <string>
The cluster node name.
- --migration_network <string>
CIDR of the (sub) network that is used for migration.
- --migration_type <insecure | secure>
Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.
- --skiplock <boolean>
Ignore locks - only root is allowed to use this option.
- --stateuri <string>
Some command save/restore state from this location.
- --targetstorage <string>
Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value 1 will map each source storage to itself.
- --timeout <integer> (0 - N) (default = max(30, vm memory in GiB))
Wait maximal timeout seconds.
qm status <vmid> [OPTIONS]
Show VM status.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --verbose <boolean>
Verbose output format
qm stop <vmid> [OPTIONS]
Stop virtual machine. The qemu process will exit immediately. This is akinto pulling the power plug of a running computer and may damage the VM data.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --keepActive <boolean> (default = 0)
Do not deactivate storage volumes.
- --migratedfrom <string>
The cluster node name.
- --overrule-shutdown <boolean> (default = 0)
Try to abort active qmshutdown tasks before stopping.
- --skiplock <boolean>
Ignore locks - only root is allowed to use this option.
- --timeout <integer> (0 - N)
Wait maximal timeout seconds.
qm suspend <vmid> [OPTIONS]
Suspend virtual machine.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --skiplock <boolean>
Ignore locks - only root is allowed to use this option.
- --statestorage <storage ID>
The storage for the VM state
Requires option(s): todisk - --todisk <boolean> (default = 0)
If set, suspends the VM to disk. Will be resumed on next VM start.
qm template <vmid> [OPTIONS]
Create a Template.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --disk <efidisk0 | ide0 | ide1 | ide2 | ide3 | sata0 | sata1 | sata2 | sata3 | sata4 | sata5 | scsi0 | scsi1 | scsi10 | scsi11 | scsi12 | scsi13 | scsi14 | scsi15 | scsi16 | scsi17 | scsi18 | scsi19 | scsi2 | scsi20 | scsi21 | scsi22 | scsi23 | scsi24 | scsi25 | scsi26 | scsi27 | scsi28 | scsi29 | scsi3 | scsi30 | scsi4 | scsi5 | scsi6 | scsi7 | scsi8 | scsi9 | tpmstate0 | virtio0 | virtio1 | virtio10 | virtio11 | virtio12 | virtio13 | virtio14 | virtio15 | virtio2 | virtio3 | virtio4 | virtio5 | virtio6 | virtio7 | virtio8 | virtio9>
If you want to convert only 1 disk to base image.
qm terminal <vmid> [OPTIONS]
Open a terminal using a serial device (The VM need to have a serial deviceconfigured, for example serial0: socket)
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --escape <string> (default = ^O)
Escape character.
- --iface <serial0 | serial1 | serial2 | serial3>
Select the serial device. By default we simply use the first suitable device.
qm unlink
An alias for qm disk unlink.
qm unlock <vmid>
Unlock the VM.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
qm vncproxy <vmid>
Proxy VM VNC traffic to stdin/stdout
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
qm wait <vmid> [OPTIONS]
Wait until the VM is stopped.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --timeout <integer> (1 - N)
Timeout in seconds. Default is to wait forever.
22.10. qmrestore - Restore QemuServer vzdump Backups
qmrestore help
qmrestore <archive> <vmid> [OPTIONS]
Restore QemuServer vzdump backups.
- <archive>: <string>
The backup file. You can pass - to read from standard input.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --bwlimit <number> (0 - N)
Override I/O bandwidth limit (in KiB/s).
- --force <boolean>
Allow to overwrite existing VM.
- --live-restore <boolean>
Start the VM immediately from the backup and restore in background. PBS only.
- --pool <string>
Add the VM to the specified pool.
- --storage <storage ID>
Default storage.
- --unique <boolean>
Assign a unique random ethernet address.
22.11. pct - Proxmox Container Toolkit
pct <COMMAND> [ARGS] [OPTIONS]
pct clone <vmid> <newid> [OPTIONS]
Create a container clone/copy
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <newid>: <integer> (100 - 999999999)
VMID for the clone.
- --bwlimit <number> (0 - N) (default = clone limit from datacenter or storage config)
Override I/O bandwidth limit (in KiB/s).
- --description <string>
Description for the new CT.
- --full <boolean>
Create a full copy of all disks. This is always done when you clone a normal CT. For CT templates, we try to create a linked clone by default.
- --hostname <string>
Set a hostname for the new CT.
- --pool <string>
Add the new CT to the specified pool.
- --snapname <string>
The name of the snapshot.
- --storage <storage ID>
Target storage for full clone.
- --target <string>
Target node. Only allowed if the original VM is on shared storage.
pct config <vmid> [OPTIONS]
Get container configuration.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --current <boolean> (default = 0)
Get current values (instead of pending values).
- --snapshot <string>
Fetch config values from given snapshot.
pct console <vmid> [OPTIONS]
Launch a console for the specified container.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --escape \^?[a-z] (default = ^a)
Escape sequence prefix. For example to use <Ctrl+b q> as the escape sequence pass ^b.
pct cpusets
Print the list of assigned CPU sets.
pct create <vmid> <ostemplate> [OPTIONS]
Create or restore a container.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <ostemplate>: <string>
The OS template or backup file.
- --arch <amd64 | arm64 | armhf | i386 | riscv32 | riscv64> (default = amd64)
OS architecture type.
- --bwlimit <number> (0 - N) (default = restore limit from datacenter or storage config)
Override I/O bandwidth limit (in KiB/s).
- --cmode <console | shell | tty> (default = tty)
Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to console it tries to attach to /dev/console instead. If you set cmode to shell, it simply invokes a shell inside the container (no login).
- --console <boolean> (default = 1)
Attach a console device (/dev/console) to the container.
- --cores <integer> (1 - 8192)
The number of cores assigned to the container. A container can use all available cores by default.
- --cpulimit <number> (0 - 8192) (default = 0)
Limit of CPU usage.
If the computer has 2 CPUs, it has a total of 2 CPU time. Value 0 indicates no CPU limit. - --cpuunits <integer> (0 - 500000) (default = cgroup v1: 1024, cgroup v2: 100)
CPU weight for a container, will be clamped to [1, 10000] in cgroup v2.
- --debug <boolean> (default = 0)
Try to be more verbose. For now this only enables debug log-level on start.
- --description <string>
Description for the Container. Shown in the web-interface CT’s summary. This is saved as comment inside the configuration file.
- --dev[n] [[path=]<Path>] [,deny-write=<1|0>] [,gid=<integer>] [,mode=<Octal access mode>] [,uid=<integer>]
Device to pass through to the container
- --features [force_rw_sys=<1|0>] [,fuse=<1|0>] [,keyctl=<1|0>] [,mknod=<1|0>] [,mount=<fstype;fstype;...>] [,nesting=<1|0>]
Allow containers access to advanced features.
- --force <boolean>
Allow to overwrite existing container.
- --hookscript <string>
Script that will be executed during various steps in the containers lifetime.
- --hostname <string>
Set a host name for the container.
- --ignore-unpack-errors <boolean>
Ignore errors when extracting the template.
- --lock <backup | create | destroyed | disk | fstrim | migrate | mounted | rollback | snapshot | snapshot-delete>
Lock/unlock the container.
- --memory <integer> (16 - N) (default = 512)
Amount of RAM for the container in MB.
- --mp[n] [volume=]<volume> ,mp=<Path> [,acl=<1|0>] [,backup=<1|0>] [,mountoptions=<opt[;opt...]>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]
Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.
- --nameserver <string>
Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
- --net[n] name=<string> [,bridge=<bridge>] [,firewall=<1|0>] [,gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,hwaddr=<XX:XX:XX:XX:XX:XX>] [,ip=<(IPv4/CIDR|dhcp|manual)>] [,ip6=<(IPv6/CIDR|auto|dhcp|manual)>] [,link_down=<1|0>] [,mtu=<integer>] [,rate=<mbps>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]
Specifies network interfaces for the container.
- --onboot <boolean> (default = 0)
Specifies whether a container will be started during system bootup.
- --ostype <alpine | archlinux | centos | debian | devuan | fedora | gentoo | nixos | opensuse | ubuntu | unmanaged>
OS type. This is used to setup configuration inside the container, and corresponds to lxc setup scripts in /usr/share/lxc/config/<ostype>.common.conf. Value unmanaged can be used to skip and OS specific setup.
- --password <password>
Sets root password inside container.
- --pool <string>
Add the VM to the specified pool.
- --protection <boolean> (default = 0)
Sets the protection flag of the container. This will prevent the CT or CT’s disk remove/update operation.
- --restore <boolean>
Mark this as restore task.
- --rootfs [volume=]<volume> [,acl=<1|0>] [,mountoptions=<opt[;opt...]>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]
Use volume as container root.
- --searchdomain <string>
Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
- --ssh-public-keys <filepath>
Setup public SSH keys (one key per line, OpenSSH format).
- --start <boolean> (default = 0)
Start the CT after its creation finished successfully.
- --startup `[[order=]\d+] [,up=\d+] [,down=\d+] `
Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the up or down delay in seconds, which specifies a delay to wait before the next VM is started or stopped.
- --storage <storage ID> (default = local)
Default Storage.
- --swap <integer> (0 - N) (default = 512)
Amount of SWAP for the container in MB.
- --tags <string>
Tags of the Container. This is only meta information.
- --template <boolean> (default = 0)
Enable/disable Template.
- --timezone <string>
Time zone to use in the container. If option isn’t set, then nothing will be done. Can be set to host to match the host time zone, or an arbitrary time zone option from /usr/share/zoneinfo/zone.tab
- --tty <integer> (0 - 6) (default = 2)
Specify the number of tty available to the container
- --unique <boolean>
Assign a unique random ethernet address.
Requires option(s): restore - --unprivileged <boolean> (default = 0)
Makes the container run as unprivileged user. (Should not be modified manually.)
- --unused[n] [volume=]<volume>
Reference to unused volumes. This is used internally, and should not be modified manually.
pct delsnapshot <vmid> <snapname> [OPTIONS]
Delete a LXC snapshot.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <snapname>: <string>
The name of the snapshot.
- --force <boolean>
For removal from config file, even if removing disk snapshots fails.
pct destroy <vmid> [OPTIONS]
Destroy the container (also delete all uses files).
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --destroy-unreferenced-disks <boolean>
If set, destroy additionally all disks with the VMID from all enabled storages which are not referenced in the config.
- --force <boolean> (default = 0)
Force destroy, even if running.
- --purge <boolean> (default = 0)
Remove container from all related configurations. For example, backup jobs, replication jobs or HA. Related ACLs and Firewall entries will always be removed.
pct df <vmid>
Get the container’s current disk usage.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
pct enter <vmid> [OPTIONS]
Launch a shell for the specified container.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --keep-env <boolean> (default = 1)
Keep the current environment. This option will disabled by default with PVE 9. If you rely on a preserved environment, please use this option to be future-proof.
pct exec <vmid> [<extra-args>] [OPTIONS]
Launch a command inside the specified container.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <extra-args>: <array>
Extra arguments as array
- --keep-env <boolean> (default = 1)
Keep the current environment. This option will disabled by default with PVE 9. If you rely on a preserved environment, please use this option to be future-proof.
pct fsck <vmid> [OPTIONS]
Run a filesystem check (fsck) on a container volume.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --device <mp0 | mp1 | mp10 | mp100 | mp101 | mp102 | mp103 | mp104 | mp105 | mp106 | mp107 | mp108 | mp109 | mp11 | mp110 | mp111 | mp112 | mp113 | mp114 | mp115 | mp116 | mp117 | mp118 | mp119 | mp12 | mp120 | mp121 | mp122 | mp123 | mp124 | mp125 | mp126 | mp127 | mp128 | mp129 | mp13 | mp130 | mp131 | mp132 | mp133 | mp134 | mp135 | mp136 | mp137 | mp138 | mp139 | mp14 | mp140 | mp141 | mp142 | mp143 | mp144 | mp145 | mp146 | mp147 | mp148 | mp149 | mp15 | mp150 | mp151 | mp152 | mp153 | mp154 | mp155 | mp156 | mp157 | mp158 | mp159 | mp16 | mp160 | mp161 | mp162 | mp163 | mp164 | mp165 | mp166 | mp167 | mp168 | mp169 | mp17 | mp170 | mp171 | mp172 | mp173 | mp174 | mp175 | mp176 | mp177 | mp178 | mp179 | mp18 | mp180 | mp181 | mp182 | mp183 | mp184 | mp185 | mp186 | mp187 | mp188 | mp189 | mp19 | mp190 | mp191 | mp192 | mp193 | mp194 | mp195 | mp196 | mp197 | mp198 | mp199 | mp2 | mp20 | mp200 | mp201 | mp202 | mp203 | mp204 | mp205 | mp206 | mp207 | mp208 | mp209 | mp21 | mp210 | mp211 | mp212 | mp213 | mp214 | mp215 | mp216 | mp217 | mp218 | mp219 | mp22 | mp220 | mp221 | mp222 | mp223 | mp224 | mp225 | mp226 | mp227 | mp228 | mp229 | mp23 | mp230 | mp231 | mp232 | mp233 | mp234 | mp235 | mp236 | mp237 | mp238 | mp239 | mp24 | mp240 | mp241 | mp242 | mp243 | mp244 | mp245 | mp246 | mp247 | mp248 | mp249 | mp25 | mp250 | mp251 | mp252 | mp253 | mp254 | mp255 | mp26 | mp27 | mp28 | mp29 | mp3 | mp30 | mp31 | mp32 | mp33 | mp34 | mp35 | mp36 | mp37 | mp38 | mp39 | mp4 | mp40 | mp41 | mp42 | mp43 | mp44 | mp45 | mp46 | mp47 | mp48 | mp49 | mp5 | mp50 | mp51 | mp52 | mp53 | mp54 | mp55 | mp56 | mp57 | mp58 | mp59 | mp6 | mp60 | mp61 | mp62 | mp63 | mp64 | mp65 | mp66 | mp67 | mp68 | mp69 | mp7 | mp70 | mp71 | mp72 | mp73 | mp74 | mp75 | mp76 | mp77 | mp78 | mp79 | mp8 | mp80 | mp81 | mp82 | mp83 | mp84 | mp85 | mp86 | mp87 | mp88 | mp89 | mp9 | mp90 | mp91 | mp92 | mp93 | mp94 | mp95 | mp96 | mp97 | mp98 | mp99 | rootfs>
A volume on which to run the filesystem check
- --force <boolean> (default = 0)
Force checking, even if the filesystem seems clean
pct fstrim <vmid> [OPTIONS]
Run fstrim on a chosen CT and its mountpoints, except bind or read-onlymountpoints.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --ignore-mountpoints <boolean>
Skip all mountpoints, only do fstrim on the container root.
pct help [OPTIONS]
Get help about specified command.
- --extra-args <array>
Shows help for a specific command
- --verbose <boolean>
Verbose output format.
pct list
LXC container index (per node).
pct listsnapshot <vmid>
List all snapshots.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
pct migrate <vmid> <target> [OPTIONS]
Migrate the container to another node. Creates a new migration task.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <target>: <string>
Target node.
- --bwlimit <number> (0 - N) (default = migrate limit from datacenter or storage config)
Override I/O bandwidth limit (in KiB/s).
- --online <boolean>
Use online/live migration.
- --restart <boolean>
Use restart migration
- --target-storage <string>
Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value 1 will map each source storage to itself.
- --timeout <integer> (default = 180)
Timeout in seconds for shutdown for restart migration
pct mount <vmid>
Mount the container’s filesystem on the host. This will hold a lock on thecontainer and is meant for emergency maintenance only as it will preventfurther operations on the container other than start and stop.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
pct move-volume <vmid> <volume> [<storage>] [<target-vmid>] [<target-volume>] [OPTIONS]
Move a rootfs-/mp-volume to a different storage or to a differentcontainer.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <volume>: <mp0 | mp1 | mp10 | mp100 | mp101 | mp102 | mp103 | mp104 | mp105 | mp106 | mp107 | mp108 | mp109 | mp11 | mp110 | mp111 | mp112 | mp113 | mp114 | mp115 | mp116 | mp117 | mp118 | mp119 | mp12 | mp120 | mp121 | mp122 | mp123 | mp124 | mp125 | mp126 | mp127 | mp128 | mp129 | mp13 | mp130 | mp131 | mp132 | mp133 | mp134 | mp135 | mp136 | mp137 | mp138 | mp139 | mp14 | mp140 | mp141 | mp142 | mp143 | mp144 | mp145 | mp146 | mp147 | mp148 | mp149 | mp15 | mp150 | mp151 | mp152 | mp153 | mp154 | mp155 | mp156 | mp157 | mp158 | mp159 | mp16 | mp160 | mp161 | mp162 | mp163 | mp164 | mp165 | mp166 | mp167 | mp168 | mp169 | mp17 | mp170 | mp171 | mp172 | mp173 | mp174 | mp175 | mp176 | mp177 | mp178 | mp179 | mp18 | mp180 | mp181 | mp182 | mp183 | mp184 | mp185 | mp186 | mp187 | mp188 | mp189 | mp19 | mp190 | mp191 | mp192 | mp193 | mp194 | mp195 | mp196 | mp197 | mp198 | mp199 | mp2 | mp20 | mp200 | mp201 | mp202 | mp203 | mp204 | mp205 | mp206 | mp207 | mp208 | mp209 | mp21 | mp210 | mp211 | mp212 | mp213 | mp214 | mp215 | mp216 | mp217 | mp218 | mp219 | mp22 | mp220 | mp221 | mp222 | mp223 | mp224 | mp225 | mp226 | mp227 | mp228 | mp229 | mp23 | mp230 | mp231 | mp232 | mp233 | mp234 | mp235 | mp236 | mp237 | mp238 | mp239 | mp24 | mp240 | mp241 | mp242 | mp243 | mp244 | mp245 | mp246 | mp247 | mp248 | mp249 | mp25 | mp250 | mp251 | mp252 | mp253 | mp254 | mp255 | mp26 | mp27 | mp28 | mp29 | mp3 | mp30 | mp31 | mp32 | mp33 | mp34 | mp35 | mp36 | mp37 | mp38 | mp39 | mp4 | mp40 | mp41 | mp42 | mp43 | mp44 | mp45 | mp46 | mp47 | mp48 | mp49 | mp5 | mp50 | mp51 | mp52 | mp53 | mp54 | mp55 | mp56 | mp57 | mp58 | mp59 | mp6 | mp60 | mp61 | mp62 | mp63 | mp64 | mp65 | mp66 | mp67 | mp68 | mp69 | mp7 | mp70 | mp71 | mp72 | mp73 | mp74 | mp75 | mp76 | mp77 | mp78 | mp79 | mp8 | mp80 | mp81 | mp82 | mp83 | mp84 | mp85 | mp86 | mp87 | mp88 | mp89 | mp9 | mp90 | mp91 | mp92 | mp93 | mp94 | mp95 | mp96 | mp97 | mp98 | mp99 | rootfs | unused0 | unused1 | unused10 | unused100 | unused101 | unused102 | unused103 | unused104 | unused105 | unused106 | unused107 | unused108 | unused109 | unused11 | unused110 | unused111 | unused112 | unused113 | unused114 | unused115 | unused116 | unused117 | unused118 | unused119 | unused12 | unused120 | unused121 | unused122 | unused123 | unused124 | unused125 | unused126 | unused127 | unused128 | unused129 | unused13 | unused130 | unused131 | unused132 | unused133 | unused134 | unused135 | unused136 | unused137 | unused138 | unused139 | unused14 | unused140 | unused141 | unused142 | unused143 | unused144 | unused145 | unused146 | unused147 | unused148 | unused149 | unused15 | unused150 | unused151 | unused152 | unused153 | unused154 | unused155 | unused156 | unused157 | unused158 | unused159 | unused16 | unused160 | unused161 | unused162 | unused163 | unused164 | unused165 | unused166 | unused167 | unused168 | unused169 | unused17 | unused170 | unused171 | unused172 | unused173 | unused174 | unused175 | unused176 | unused177 | unused178 | unused179 | unused18 | unused180 | unused181 | unused182 | unused183 | unused184 | unused185 | unused186 | unused187 | unused188 | unused189 | unused19 | unused190 | unused191 | unused192 | unused193 | unused194 | unused195 | unused196 | unused197 | unused198 | unused199 | unused2 | unused20 | unused200 | unused201 | unused202 | unused203 | unused204 | unused205 | unused206 | unused207 | unused208 | unused209 | unused21 | unused210 | unused211 | unused212 | unused213 | unused214 | unused215 | unused216 | unused217 | unused218 | unused219 | unused22 | unused220 | unused221 | unused222 | unused223 | unused224 | unused225 | unused226 | unused227 | unused228 | unused229 | unused23 | unused230 | unused231 | unused232 | unused233 | unused234 | unused235 | unused236 | unused237 | unused238 | unused239 | unused24 | unused240 | unused241 | unused242 | unused243 | unused244 | unused245 | unused246 | unused247 | unused248 | unused249 | unused25 | unused250 | unused251 | unused252 | unused253 | unused254 | unused255 | unused26 | unused27 | unused28 | unused29 | unused3 | unused30 | unused31 | unused32 | unused33 | unused34 | unused35 | unused36 | unused37 | unused38 | unused39 | unused4 | unused40 | unused41 | unused42 | unused43 | unused44 | unused45 | unused46 | unused47 | unused48 | unused49 | unused5 | unused50 | unused51 | unused52 | unused53 | unused54 | unused55 | unused56 | unused57 | unused58 | unused59 | unused6 | unused60 | unused61 | unused62 | unused63 | unused64 | unused65 | unused66 | unused67 | unused68 | unused69 | unused7 | unused70 | unused71 | unused72 | unused73 | unused74 | unused75 | unused76 | unused77 | unused78 | unused79 | unused8 | unused80 | unused81 | unused82 | unused83 | unused84 | unused85 | unused86 | unused87 | unused88 | unused89 | unused9 | unused90 | unused91 | unused92 | unused93 | unused94 | unused95 | unused96 | unused97 | unused98 | unused99>
Volume which will be moved.
- <storage>: <storage ID>
Target Storage.
- <target-vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <target-volume>: <mp0 | mp1 | mp10 | mp100 | mp101 | mp102 | mp103 | mp104 | mp105 | mp106 | mp107 | mp108 | mp109 | mp11 | mp110 | mp111 | mp112 | mp113 | mp114 | mp115 | mp116 | mp117 | mp118 | mp119 | mp12 | mp120 | mp121 | mp122 | mp123 | mp124 | mp125 | mp126 | mp127 | mp128 | mp129 | mp13 | mp130 | mp131 | mp132 | mp133 | mp134 | mp135 | mp136 | mp137 | mp138 | mp139 | mp14 | mp140 | mp141 | mp142 | mp143 | mp144 | mp145 | mp146 | mp147 | mp148 | mp149 | mp15 | mp150 | mp151 | mp152 | mp153 | mp154 | mp155 | mp156 | mp157 | mp158 | mp159 | mp16 | mp160 | mp161 | mp162 | mp163 | mp164 | mp165 | mp166 | mp167 | mp168 | mp169 | mp17 | mp170 | mp171 | mp172 | mp173 | mp174 | mp175 | mp176 | mp177 | mp178 | mp179 | mp18 | mp180 | mp181 | mp182 | mp183 | mp184 | mp185 | mp186 | mp187 | mp188 | mp189 | mp19 | mp190 | mp191 | mp192 | mp193 | mp194 | mp195 | mp196 | mp197 | mp198 | mp199 | mp2 | mp20 | mp200 | mp201 | mp202 | mp203 | mp204 | mp205 | mp206 | mp207 | mp208 | mp209 | mp21 | mp210 | mp211 | mp212 | mp213 | mp214 | mp215 | mp216 | mp217 | mp218 | mp219 | mp22 | mp220 | mp221 | mp222 | mp223 | mp224 | mp225 | mp226 | mp227 | mp228 | mp229 | mp23 | mp230 | mp231 | mp232 | mp233 | mp234 | mp235 | mp236 | mp237 | mp238 | mp239 | mp24 | mp240 | mp241 | mp242 | mp243 | mp244 | mp245 | mp246 | mp247 | mp248 | mp249 | mp25 | mp250 | mp251 | mp252 | mp253 | mp254 | mp255 | mp26 | mp27 | mp28 | mp29 | mp3 | mp30 | mp31 | mp32 | mp33 | mp34 | mp35 | mp36 | mp37 | mp38 | mp39 | mp4 | mp40 | mp41 | mp42 | mp43 | mp44 | mp45 | mp46 | mp47 | mp48 | mp49 | mp5 | mp50 | mp51 | mp52 | mp53 | mp54 | mp55 | mp56 | mp57 | mp58 | mp59 | mp6 | mp60 | mp61 | mp62 | mp63 | mp64 | mp65 | mp66 | mp67 | mp68 | mp69 | mp7 | mp70 | mp71 | mp72 | mp73 | mp74 | mp75 | mp76 | mp77 | mp78 | mp79 | mp8 | mp80 | mp81 | mp82 | mp83 | mp84 | mp85 | mp86 | mp87 | mp88 | mp89 | mp9 | mp90 | mp91 | mp92 | mp93 | mp94 | mp95 | mp96 | mp97 | mp98 | mp99 | rootfs | unused0 | unused1 | unused10 | unused100 | unused101 | unused102 | unused103 | unused104 | unused105 | unused106 | unused107 | unused108 | unused109 | unused11 | unused110 | unused111 | unused112 | unused113 | unused114 | unused115 | unused116 | unused117 | unused118 | unused119 | unused12 | unused120 | unused121 | unused122 | unused123 | unused124 | unused125 | unused126 | unused127 | unused128 | unused129 | unused13 | unused130 | unused131 | unused132 | unused133 | unused134 | unused135 | unused136 | unused137 | unused138 | unused139 | unused14 | unused140 | unused141 | unused142 | unused143 | unused144 | unused145 | unused146 | unused147 | unused148 | unused149 | unused15 | unused150 | unused151 | unused152 | unused153 | unused154 | unused155 | unused156 | unused157 | unused158 | unused159 | unused16 | unused160 | unused161 | unused162 | unused163 | unused164 | unused165 | unused166 | unused167 | unused168 | unused169 | unused17 | unused170 | unused171 | unused172 | unused173 | unused174 | unused175 | unused176 | unused177 | unused178 | unused179 | unused18 | unused180 | unused181 | unused182 | unused183 | unused184 | unused185 | unused186 | unused187 | unused188 | unused189 | unused19 | unused190 | unused191 | unused192 | unused193 | unused194 | unused195 | unused196 | unused197 | unused198 | unused199 | unused2 | unused20 | unused200 | unused201 | unused202 | unused203 | unused204 | unused205 | unused206 | unused207 | unused208 | unused209 | unused21 | unused210 | unused211 | unused212 | unused213 | unused214 | unused215 | unused216 | unused217 | unused218 | unused219 | unused22 | unused220 | unused221 | unused222 | unused223 | unused224 | unused225 | unused226 | unused227 | unused228 | unused229 | unused23 | unused230 | unused231 | unused232 | unused233 | unused234 | unused235 | unused236 | unused237 | unused238 | unused239 | unused24 | unused240 | unused241 | unused242 | unused243 | unused244 | unused245 | unused246 | unused247 | unused248 | unused249 | unused25 | unused250 | unused251 | unused252 | unused253 | unused254 | unused255 | unused26 | unused27 | unused28 | unused29 | unused3 | unused30 | unused31 | unused32 | unused33 | unused34 | unused35 | unused36 | unused37 | unused38 | unused39 | unused4 | unused40 | unused41 | unused42 | unused43 | unused44 | unused45 | unused46 | unused47 | unused48 | unused49 | unused5 | unused50 | unused51 | unused52 | unused53 | unused54 | unused55 | unused56 | unused57 | unused58 | unused59 | unused6 | unused60 | unused61 | unused62 | unused63 | unused64 | unused65 | unused66 | unused67 | unused68 | unused69 | unused7 | unused70 | unused71 | unused72 | unused73 | unused74 | unused75 | unused76 | unused77 | unused78 | unused79 | unused8 | unused80 | unused81 | unused82 | unused83 | unused84 | unused85 | unused86 | unused87 | unused88 | unused89 | unused9 | unused90 | unused91 | unused92 | unused93 | unused94 | unused95 | unused96 | unused97 | unused98 | unused99>
The config key the volume will be moved to. Default is the source volume key.
- --bwlimit <number> (0 - N) (default = clone limit from datacenter or storage config)
Override I/O bandwidth limit (in KiB/s).
- --delete <boolean> (default = 0)
Delete the original volume after successful copy. By default the original is kept as an unused volume entry.
- --digest <string>
Prevent changes if current configuration file has different SHA1 " . "digest. This can be used to prevent concurrent modifications.
- --target-digest <string>
Prevent changes if current configuration file of the target " . "container has a different SHA1 digest. This can be used to prevent " . "concurrent modifications.
pct move_volume
An alias for pct move-volume.
pct pending <vmid>
Get container configuration, including pending changes.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
pct pull <vmid> <path> <destination> [OPTIONS]
Copy a file from the container to the local system.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <path>: <string>
Path to a file inside the container to pull.
- <destination>: <string>
Destination
- --group <string>
Owner group name or id.
- --perms <string>
File permissions to use (octal by default, prefix with 0x for hexadecimal).
- --user <string>
Owner user name or id.
pct push <vmid> <file> <destination> [OPTIONS]
Copy a local file to the container.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <file>: <string>
Path to a local file.
- <destination>: <string>
Destination inside the container to write to.
- --group <string>
Owner group name or id. When using a name it must exist inside the container.
- --perms <string>
File permissions to use (octal by default, prefix with 0x for hexadecimal).
- --user <string>
Owner user name or id. When using a name it must exist inside the container.
pct reboot <vmid> [OPTIONS]
Reboot the container by shutting it down, and starting it again. Appliespending changes.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --timeout <integer> (0 - N)
Wait maximal timeout seconds for the shutdown.
pct remote-migrate <vmid> [<target-vmid>] <target-endpoint> --target-bridge <string> --target-storage <string> [OPTIONS]
Migrate container to a remote cluster. Creates a new migration task.EXPERIMENTAL feature!
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <target-vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <target-endpoint>: apitoken=<PVEAPIToken=user@realm!token=SECRET> ,host=<ADDRESS> [,fingerprint=<FINGERPRINT>] [,port=<PORT>]
Remote target endpoint
- --bwlimit <integer> (0 - N) (default = migrate limit from datacenter or storage config)
Override I/O bandwidth limit (in KiB/s).
- --delete <boolean> (default = 0)
Delete the original CT and related data after successful migration. By default the original CT is kept on the source cluster in a stopped state.
- --online <boolean>
Use online/live migration.
- --restart <boolean>
Use restart migration
- --target-bridge <string>
Mapping from source to target bridges. Providing only a single bridge ID maps all source bridges to that bridge. Providing the special value 1 will map each source bridge to itself.
- --target-storage <string>
Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value 1 will map each source storage to itself.
- --timeout <integer> (default = 180)
Timeout in seconds for shutdown for restart migration
pct rescan [OPTIONS]
Rescan all storages and update disk sizes and unused disk images.
- --dryrun <boolean> (default = 0)
Do not actually write changes to the configuration.
- --vmid <integer> (100 - 999999999)
The (unique) ID of the VM.
pct resize <vmid> <disk> <size> [OPTIONS]
Resize a container mount point.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <disk>: <mp0 | mp1 | mp10 | mp100 | mp101 | mp102 | mp103 | mp104 | mp105 | mp106 | mp107 | mp108 | mp109 | mp11 | mp110 | mp111 | mp112 | mp113 | mp114 | mp115 | mp116 | mp117 | mp118 | mp119 | mp12 | mp120 | mp121 | mp122 | mp123 | mp124 | mp125 | mp126 | mp127 | mp128 | mp129 | mp13 | mp130 | mp131 | mp132 | mp133 | mp134 | mp135 | mp136 | mp137 | mp138 | mp139 | mp14 | mp140 | mp141 | mp142 | mp143 | mp144 | mp145 | mp146 | mp147 | mp148 | mp149 | mp15 | mp150 | mp151 | mp152 | mp153 | mp154 | mp155 | mp156 | mp157 | mp158 | mp159 | mp16 | mp160 | mp161 | mp162 | mp163 | mp164 | mp165 | mp166 | mp167 | mp168 | mp169 | mp17 | mp170 | mp171 | mp172 | mp173 | mp174 | mp175 | mp176 | mp177 | mp178 | mp179 | mp18 | mp180 | mp181 | mp182 | mp183 | mp184 | mp185 | mp186 | mp187 | mp188 | mp189 | mp19 | mp190 | mp191 | mp192 | mp193 | mp194 | mp195 | mp196 | mp197 | mp198 | mp199 | mp2 | mp20 | mp200 | mp201 | mp202 | mp203 | mp204 | mp205 | mp206 | mp207 | mp208 | mp209 | mp21 | mp210 | mp211 | mp212 | mp213 | mp214 | mp215 | mp216 | mp217 | mp218 | mp219 | mp22 | mp220 | mp221 | mp222 | mp223 | mp224 | mp225 | mp226 | mp227 | mp228 | mp229 | mp23 | mp230 | mp231 | mp232 | mp233 | mp234 | mp235 | mp236 | mp237 | mp238 | mp239 | mp24 | mp240 | mp241 | mp242 | mp243 | mp244 | mp245 | mp246 | mp247 | mp248 | mp249 | mp25 | mp250 | mp251 | mp252 | mp253 | mp254 | mp255 | mp26 | mp27 | mp28 | mp29 | mp3 | mp30 | mp31 | mp32 | mp33 | mp34 | mp35 | mp36 | mp37 | mp38 | mp39 | mp4 | mp40 | mp41 | mp42 | mp43 | mp44 | mp45 | mp46 | mp47 | mp48 | mp49 | mp5 | mp50 | mp51 | mp52 | mp53 | mp54 | mp55 | mp56 | mp57 | mp58 | mp59 | mp6 | mp60 | mp61 | mp62 | mp63 | mp64 | mp65 | mp66 | mp67 | mp68 | mp69 | mp7 | mp70 | mp71 | mp72 | mp73 | mp74 | mp75 | mp76 | mp77 | mp78 | mp79 | mp8 | mp80 | mp81 | mp82 | mp83 | mp84 | mp85 | mp86 | mp87 | mp88 | mp89 | mp9 | mp90 | mp91 | mp92 | mp93 | mp94 | mp95 | mp96 | mp97 | mp98 | mp99 | rootfs>
The disk you want to resize.
- <size>: \+?\d+(\.\d+)?[KMGT]?
The new size. With the + sign the value is added to the actual size of the volume and without it, the value is taken as an absolute one. Shrinking disk size is not supported.
- --digest <string>
Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
pct restore <vmid> <ostemplate> [OPTIONS]
Create or restore a container.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <ostemplate>: <string>
The OS template or backup file.
- --arch <amd64 | arm64 | armhf | i386 | riscv32 | riscv64> (default = amd64)
OS architecture type.
- --bwlimit <number> (0 - N) (default = restore limit from datacenter or storage config)
Override I/O bandwidth limit (in KiB/s).
- --cmode <console | shell | tty> (default = tty)
Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to console it tries to attach to /dev/console instead. If you set cmode to shell, it simply invokes a shell inside the container (no login).
- --console <boolean> (default = 1)
Attach a console device (/dev/console) to the container.
- --cores <integer> (1 - 8192)
The number of cores assigned to the container. A container can use all available cores by default.
- --cpulimit <number> (0 - 8192) (default = 0)
Limit of CPU usage.
If the computer has 2 CPUs, it has a total of 2 CPU time. Value 0 indicates no CPU limit. - --cpuunits <integer> (0 - 500000) (default = cgroup v1: 1024, cgroup v2: 100)
CPU weight for a container, will be clamped to [1, 10000] in cgroup v2.
- --debug <boolean> (default = 0)
Try to be more verbose. For now this only enables debug log-level on start.
- --description <string>
Description for the Container. Shown in the web-interface CT’s summary. This is saved as comment inside the configuration file.
- --dev[n] [[path=]<Path>] [,deny-write=<1|0>] [,gid=<integer>] [,mode=<Octal access mode>] [,uid=<integer>]
Device to pass through to the container
- --features [force_rw_sys=<1|0>] [,fuse=<1|0>] [,keyctl=<1|0>] [,mknod=<1|0>] [,mount=<fstype;fstype;...>] [,nesting=<1|0>]
Allow containers access to advanced features.
- --force <boolean>
Allow to overwrite existing container.
- --hookscript <string>
Script that will be executed during various steps in the containers lifetime.
- --hostname <string>
Set a host name for the container.
- --ignore-unpack-errors <boolean>
Ignore errors when extracting the template.
- --lock <backup | create | destroyed | disk | fstrim | migrate | mounted | rollback | snapshot | snapshot-delete>
Lock/unlock the container.
- --memory <integer> (16 - N) (default = 512)
Amount of RAM for the container in MB.
- --mp[n] [volume=]<volume> ,mp=<Path> [,acl=<1|0>] [,backup=<1|0>] [,mountoptions=<opt[;opt...]>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]
Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.
- --nameserver <string>
Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
- --net[n] name=<string> [,bridge=<bridge>] [,firewall=<1|0>] [,gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,hwaddr=<XX:XX:XX:XX:XX:XX>] [,ip=<(IPv4/CIDR|dhcp|manual)>] [,ip6=<(IPv6/CIDR|auto|dhcp|manual)>] [,link_down=<1|0>] [,mtu=<integer>] [,rate=<mbps>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]
Specifies network interfaces for the container.
- --onboot <boolean> (default = 0)
Specifies whether a container will be started during system bootup.
- --ostype <alpine | archlinux | centos | debian | devuan | fedora | gentoo | nixos | opensuse | ubuntu | unmanaged>
OS type. This is used to setup configuration inside the container, and corresponds to lxc setup scripts in /usr/share/lxc/config/<ostype>.common.conf. Value unmanaged can be used to skip and OS specific setup.
- --password <password>
Sets root password inside container.
- --pool <string>
Add the VM to the specified pool.
- --protection <boolean> (default = 0)
Sets the protection flag of the container. This will prevent the CT or CT’s disk remove/update operation.
- --rootfs [volume=]<volume> [,acl=<1|0>] [,mountoptions=<opt[;opt...]>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]
Use volume as container root.
- --searchdomain <string>
Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
- --ssh-public-keys <filepath>
Setup public SSH keys (one key per line, OpenSSH format).
- --start <boolean> (default = 0)
Start the CT after its creation finished successfully.
- --startup `[[order=]\d+] [,up=\d+] [,down=\d+] `
Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the up or down delay in seconds, which specifies a delay to wait before the next VM is started or stopped.
- --storage <storage ID> (default = local)
Default Storage.
- --swap <integer> (0 - N) (default = 512)
Amount of SWAP for the container in MB.
- --tags <string>
Tags of the Container. This is only meta information.
- --template <boolean> (default = 0)
Enable/disable Template.
- --timezone <string>
Time zone to use in the container. If option isn’t set, then nothing will be done. Can be set to host to match the host time zone, or an arbitrary time zone option from /usr/share/zoneinfo/zone.tab
- --tty <integer> (0 - 6) (default = 2)
Specify the number of tty available to the container
- --unique <boolean>
Assign a unique random ethernet address.
Requires option(s): restore - --unprivileged <boolean> (default = 0)
Makes the container run as unprivileged user. (Should not be modified manually.)
- --unused[n] [volume=]<volume>
Reference to unused volumes. This is used internally, and should not be modified manually.
pct resume <vmid>
Resume the container.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
pct rollback <vmid> <snapname> [OPTIONS]
Rollback LXC state to specified snapshot.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <snapname>: <string>
The name of the snapshot.
- --start <boolean> (default = 0)
Whether the container should get started after rolling back successfully
pct set <vmid> [OPTIONS]
Set container options.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --arch <amd64 | arm64 | armhf | i386 | riscv32 | riscv64> (default = amd64)
OS architecture type.
- --cmode <console | shell | tty> (default = tty)
Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to console it tries to attach to /dev/console instead. If you set cmode to shell, it simply invokes a shell inside the container (no login).
- --console <boolean> (default = 1)
Attach a console device (/dev/console) to the container.
- --cores <integer> (1 - 8192)
The number of cores assigned to the container. A container can use all available cores by default.
- --cpulimit <number> (0 - 8192) (default = 0)
Limit of CPU usage.
If the computer has 2 CPUs, it has a total of 2 CPU time. Value 0 indicates no CPU limit. - --cpuunits <integer> (0 - 500000) (default = cgroup v1: 1024, cgroup v2: 100)
CPU weight for a container, will be clamped to [1, 10000] in cgroup v2.
- --debug <boolean> (default = 0)
Try to be more verbose. For now this only enables debug log-level on start.
- --delete <string>
A list of settings you want to delete.
- --description <string>
Description for the Container. Shown in the web-interface CT’s summary. This is saved as comment inside the configuration file.
- --dev[n] [[path=]<Path>] [,deny-write=<1|0>] [,gid=<integer>] [,mode=<Octal access mode>] [,uid=<integer>]
Device to pass through to the container
- --digest <string>
Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
- --features [force_rw_sys=<1|0>] [,fuse=<1|0>] [,keyctl=<1|0>] [,mknod=<1|0>] [,mount=<fstype;fstype;...>] [,nesting=<1|0>]
Allow containers access to advanced features.
- --hookscript <string>
Script that will be executed during various steps in the containers lifetime.
- --hostname <string>
Set a host name for the container.
- --lock <backup | create | destroyed | disk | fstrim | migrate | mounted | rollback | snapshot | snapshot-delete>
Lock/unlock the container.
- --memory <integer> (16 - N) (default = 512)
Amount of RAM for the container in MB.
- --mp[n] [volume=]<volume> ,mp=<Path> [,acl=<1|0>] [,backup=<1|0>] [,mountoptions=<opt[;opt...]>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]
Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.
- --nameserver <string>
Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
- --net[n] name=<string> [,bridge=<bridge>] [,firewall=<1|0>] [,gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,hwaddr=<XX:XX:XX:XX:XX:XX>] [,ip=<(IPv4/CIDR|dhcp|manual)>] [,ip6=<(IPv6/CIDR|auto|dhcp|manual)>] [,link_down=<1|0>] [,mtu=<integer>] [,rate=<mbps>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]
Specifies network interfaces for the container.
- --onboot <boolean> (default = 0)
Specifies whether a container will be started during system bootup.
- --ostype <alpine | archlinux | centos | debian | devuan | fedora | gentoo | nixos | opensuse | ubuntu | unmanaged>
OS type. This is used to setup configuration inside the container, and corresponds to lxc setup scripts in /usr/share/lxc/config/<ostype>.common.conf. Value unmanaged can be used to skip and OS specific setup.
- --protection <boolean> (default = 0)
Sets the protection flag of the container. This will prevent the CT or CT’s disk remove/update operation.
- --revert <string>
Revert a pending change.
- --rootfs [volume=]<volume> [,acl=<1|0>] [,mountoptions=<opt[;opt...]>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]
Use volume as container root.
- --searchdomain <string>
Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
- --startup `[[order=]\d+] [,up=\d+] [,down=\d+] `
Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the up or down delay in seconds, which specifies a delay to wait before the next VM is started or stopped.
- --swap <integer> (0 - N) (default = 512)
Amount of SWAP for the container in MB.
- --tags <string>
Tags of the Container. This is only meta information.
- --template <boolean> (default = 0)
Enable/disable Template.
- --timezone <string>
Time zone to use in the container. If option isn’t set, then nothing will be done. Can be set to host to match the host time zone, or an arbitrary time zone option from /usr/share/zoneinfo/zone.tab
- --tty <integer> (0 - 6) (default = 2)
Specify the number of tty available to the container
- --unprivileged <boolean> (default = 0)
Makes the container run as unprivileged user. (Should not be modified manually.)
- --unused[n] [volume=]<volume>
Reference to unused volumes. This is used internally, and should not be modified manually.
pct shutdown <vmid> [OPTIONS]
Shutdown the container. This will trigger a clean shutdown of thecontainer, see lxc-stop(1) for details.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --forceStop <boolean> (default = 0)
Make sure the Container stops.
- --timeout <integer> (0 - N) (default = 60)
Wait maximal timeout seconds.
pct snapshot <vmid> <snapname> [OPTIONS]
Snapshot a container.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <snapname>: <string>
The name of the snapshot.
- --description <string>
A textual description or comment.
pct start <vmid> [OPTIONS]
Start the container.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --debug <boolean> (default = 0)
If set, enables very verbose debug log-level on start.
- --skiplock <boolean>
Ignore locks - only root is allowed to use this option.
pct status <vmid> [OPTIONS]
Show CT status.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --verbose <boolean>
Verbose output format
pct stop <vmid> [OPTIONS]
Stop the container. This will abruptly stop all processes running in thecontainer.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- --overrule-shutdown <boolean> (default = 0)
Try to abort active vzshutdown tasks before stopping.
- --skiplock <boolean>
Ignore locks - only root is allowed to use this option.
pct suspend <vmid>
Suspend the container. This is experimental.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
pct template <vmid>
Create a Template.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
pct unlock <vmid>
Unlock the VM.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
pct unmount <vmid>
Unmount the container’s filesystem.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
22.12. pveam - Proxmox VE Appliance Manager
pveam <COMMAND> [ARGS] [OPTIONS]
pveam available [OPTIONS]
List available templates.
- --section <mail | system | turnkeylinux>
Restrict list to specified section.
pveam download <storage> <template>
Download appliance templates.
- <storage>: <storage ID>
The storage where the template will be stored
- <template>: <string>
The template which will downloaded
pveam help [OPTIONS]
Get help about specified command.
- --extra-args <array>
Shows help for a specific command
- --verbose <boolean>
Verbose output format.
pveam list <storage>
Get list of all templates on storage
- <storage>: <storage ID>
Only list templates on specified storage
pveam remove <template_path>
Remove a template.
- <template_path>: <string>
The template to remove.
pveam update
Update Container Template Database.
22.13. pvecm - Proxmox VE Cluster Manager
pvecm <COMMAND> [ARGS] [OPTIONS]
pvecm add <hostname> [OPTIONS]
Adds the current node to an existing cluster.
- <hostname>: <string>
Hostname (or IP) of an existing cluster member.
- --fingerprint ([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}
Certificate SHA 256 fingerprint.
- --force <boolean>
Do not throw error if node already exists.
- --link[n] [address=]<IP> [,priority=<integer>]
Address and priority information of a single corosync link. (up to 8 links supported; link0..link7)
- --nodeid <integer> (1 - N)
Node id for this node.
- --use_ssh <boolean>
Always use SSH to join, even if peer may do it over API.
- --votes <integer> (0 - N)
Number of votes for this node
pvecm addnode <node> [OPTIONS]
Adds a node to the cluster configuration. This call is for internal use.
- <node>: <string>
The cluster node name.
- --apiversion <integer>
The JOIN_API_VERSION of the new node.
- --force <boolean>
Do not throw error if node already exists.
- --link[n] [address=]<IP> [,priority=<integer>]
Address and priority information of a single corosync link. (up to 8 links supported; link0..link7)
- --new_node_ip <string>
IP Address of node to add. Used as fallback if no links are given.
- --nodeid <integer> (1 - N)
Node id for this node.
- --votes <integer> (0 - N)
Number of votes for this node
pvecm apiver
Return the version of the cluster join API available on this node.
pvecm create <clustername> [OPTIONS]
Generate new cluster configuration. If no links given, default to local IPaddress as link0.
- <clustername>: <string>
The name of the cluster.
- --link[n] [address=]<IP> [,priority=<integer>]
Address and priority information of a single corosync link. (up to 8 links supported; link0..link7)
- --nodeid <integer> (1 - N)
Node id for this node.
- --votes <integer> (1 - N)
Number of votes for this node.
pvecm delnode <node>
Removes a node from the cluster configuration.
- <node>: <string>
The cluster node name.
pvecm expected <expected>
Tells corosync a new value of expected votes.
- <expected>: <integer> (1 - N)
Expected votes
pvecm help [OPTIONS]
Get help about specified command.
- --extra-args <array>
Shows help for a specific command
- --verbose <boolean>
Verbose output format.
pvecm keygen <filename>
Generate new cryptographic key for corosync.
- <filename>: <string>
Output file name
pvecm mtunnel [<extra-args>] [OPTIONS]
Used by VM/CT migration - do not use manually.
- <extra-args>: <array>
Extra arguments as array
- --get_migration_ip <boolean> (default = 0)
return the migration IP, if configured
- --migration_network <string>
the migration network used to detect the local migration IP
- --run-command <boolean>
Run a command with a tcp socket as standard input. The IP address and port are printed via this command’s stdandard output first, each on a separate line.
pvecm nodes
Displays the local view of the cluster nodes.
pvecm qdevice remove
Remove a configured QDevice
pvecm qdevice setup <address> [OPTIONS]
Setup the use of a QDevice
- <address>: <string>
Specifies the network address of an external corosync QDevice
- --force <boolean>
Do not throw error on possible dangerous operations.
- --network <string>
The network which should be used to connect to the external qdevice
pvecm status
Displays the local view of the cluster status.
pvecm updatecerts [OPTIONS]
Update node certificates (and generate all needed files/directories).
- --force <boolean>
Force generation of new SSL certificate.
- --silent <boolean>
Ignore errors (i.e. when cluster has no quorum).
- --unmerge-known-hosts <boolean> (default = 0)
Unmerge legacy SSH known hosts.
22.14. pvesr - Proxmox VE Storage Replication
pvesr <COMMAND> [ARGS] [OPTIONS]
pvesr create-local-job <id> <target> [OPTIONS]
Create a new replication job
- <id>: [1-9][0-9]{2,8}-\d{1,9}
Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. <GUEST>-<JOBNUM>.
- <target>: <string>
Target node.
- --comment <string>
Description.
- --disable <boolean>
Flag to disable/deactivate the entry.
- --rate <number> (1 - N)
Rate limit in mbps (megabytes per second) as floating point number.
- --remove_job <full | local>
Mark the replication job for removal. The job will remove all local replication snapshots. When set to full, it also tries to remove replicated volumes on the target. The job then removes itself from the configuration file.
- --schedule <string> (default = */15)
Storage replication schedule. The format is a subset of systemd calendar events.
- --source <string>
For internal use, to detect if the guest was stolen.
pvesr delete <id> [OPTIONS]
Mark replication job for removal.
- <id>: [1-9][0-9]{2,8}-\d{1,9}
Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. <GUEST>-<JOBNUM>.
- --force <boolean> (default = 0)
Will remove the jobconfig entry, but will not cleanup.
- --keep <boolean> (default = 0)
Keep replicated data at target (do not remove).
pvesr disable <id>
Disable a replication job.
- <id>: [1-9][0-9]{2,8}-\d{1,9}
Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. <GUEST>-<JOBNUM>.
pvesr enable <id>
Enable a replication job.
- <id>: [1-9][0-9]{2,8}-\d{1,9}
Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. <GUEST>-<JOBNUM>.
pvesr finalize-local-job <id> [<extra-args>] [OPTIONS]
Finalize a replication job. This removes all replications snapshots withtimestamps different than <last_sync>.
- <id>: [1-9][0-9]{2,8}-\d{1,9}
Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. <GUEST>-<JOBNUM>.
- <extra-args>: <array>
The list of volume IDs to consider.
- --last_sync <integer> (0 - N)
Time (UNIX epoch) of last successful sync. If not specified, all replication snapshots gets removed.
pvesr help [OPTIONS]
Get help about specified command.
- --extra-args <array>
Shows help for a specific command
- --verbose <boolean>
Verbose output format.
pvesr list
List replication jobs.
pvesr prepare-local-job <id> [<extra-args>] [OPTIONS]
Prepare for starting a replication job. This is called on the target nodebefore replication starts. This call is for internal use, and return a JSONobject on stdout. The method first test if VM <vmid> reside on the localnode. If so, stop immediately. After that the method scans all volume IDsfor snapshots, and removes all replications snapshots with timestampsdifferent than <last_sync>. It also removes any unused volumes. Returns ahash with boolean markers for all volumes with existing replicationsnapshots.
- <id>: [1-9][0-9]{2,8}-\d{1,9}
Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. <GUEST>-<JOBNUM>.
- <extra-args>: <array>
The list of volume IDs to consider.
- --force <boolean> (default = 0)
Allow to remove all existion volumes (empty volume list).
- --last_sync <integer> (0 - N)
Time (UNIX epoch) of last successful sync. If not specified, all replication snapshots get removed.
- --parent_snapname <string>
The name of the snapshot.
- --scan <string>
List of storage IDs to scan for stale volumes.
pvesr read <id>
Read replication job configuration.
- <id>: [1-9][0-9]{2,8}-\d{1,9}
Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. <GUEST>-<JOBNUM>.
pvesr run [OPTIONS]
This method is called by the systemd-timer and executes all (or a specific)sync jobs.
- --id [1-9][0-9]{2,8}-\d{1,9}
Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. <GUEST>-<JOBNUM>.
- --mail <boolean> (default = 0)
Send an email notification in case of a failure.
- --verbose <boolean> (default = 0)
Print more verbose logs to stdout.
pvesr schedule-now <id>
Schedule replication job to start as soon as possible.
- <id>: [1-9][0-9]{2,8}-\d{1,9}
Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. <GUEST>-<JOBNUM>.
pvesr set-state <vmid> <state>
Set the job replication state on migration. This call is for internal use.It will accept the job state as ja JSON obj.
- <vmid>: <integer> (100 - 999999999)
The (unique) ID of the VM.
- <state>: <string>
Job state as JSON decoded string.
pvesr status [OPTIONS]
List status of all replication jobs on this node.
- --guest <integer> (100 - 999999999)
Only list replication jobs for this guest.
pvesr update <id> [OPTIONS]
Update replication job configuration.
- <id>: [1-9][0-9]{2,8}-\d{1,9}
Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. <GUEST>-<JOBNUM>.
- --comment <string>
Description.
- --delete <string>
A list of settings you want to delete.
- --digest <string>
Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.
- --disable <boolean>
Flag to disable/deactivate the entry.
- --rate <number> (1 - N)
Rate limit in mbps (megabytes per second) as floating point number.
- --remove_job <full | local>
Mark the replication job for removal. The job will remove all local replication snapshots. When set to full, it also tries to remove replicated volumes on the target. The job then removes itself from the configuration file.
- --schedule <string> (default = */15)
Storage replication schedule. The format is a subset of systemd calendar events.
- --source <string>
For internal use, to detect if the guest was stolen.
22.15. pveum - Proxmox VE User Manager
pveum <COMMAND> [ARGS] [OPTIONS]
pveum acl delete <path> --roles <string> [OPTIONS]
Update Access Control List (add or remove permissions).
- <path>: <string>
Access control path
- --groups <string>
List of groups.
- --propagate <boolean> (default = 1)
Allow to propagate (inherit) permissions.
- --roles <string>
List of roles.
- --tokens <string>
List of API tokens.
- --users <string>
List of users.
pveum acl list [FORMAT_OPTIONS]
Get Access Control List (ACLs).
pveum acl modify <path> --roles <string> [OPTIONS]
Update Access Control List (add or remove permissions).
- <path>: <string>
Access control path
- --groups <string>
List of groups.
- --propagate <boolean> (default = 1)
Allow to propagate (inherit) permissions.
- --roles <string>
List of roles.
- --tokens <string>
List of API tokens.
- --users <string>
List of users.
pveum acldel
An alias for pveum acl delete.
pveum aclmod
An alias for pveum acl modify.
pveum group add <groupid> [OPTIONS]
Create new group.
- <groupid>: <string>
no description available
- --comment <string>
no description available
pveum group delete <groupid>
Delete group.
- <groupid>: <string>
no description available
pveum group list [FORMAT_OPTIONS]
Group index.
pveum group modify <groupid> [OPTIONS]
Update group data.
- <groupid>: <string>
no description available
- --comment <string>
no description available
pveum groupadd
An alias for pveum group add.
pveum groupdel
An alias for pveum group delete.
pveum groupmod
An alias for pveum group modify.
pveum help [OPTIONS]
Get help about specified command.
- --extra-args <array>
Shows help for a specific command
- --verbose <boolean>
Verbose output format.
pveum passwd <userid> [OPTIONS]
Change user password.
- <userid>: <string>
Full User ID, in the name@realm format.
- --confirmation-password <string>
The current password of the user performing the change.
pveum pool add <poolid> [OPTIONS]
Create new pool.
- <poolid>: <string>
no description available
- --comment <string>
no description available
pveum pool delete <poolid>
Delete pool.
- <poolid>: <string>
no description available
pveum pool list [OPTIONS] [FORMAT_OPTIONS]
List pools or get pool configuration.
- --poolid <string>
no description available
- --type <lxc | qemu | storage>
no description available
Requires option(s): poolid
pveum pool modify <poolid> [OPTIONS]
Update pool.
- <poolid>: <string>
no description available
- --allow-move <boolean> (default = 0)
Allow adding a guest even if already in another pool. The guest will be removed from its current pool and added to this one.
- --comment <string>
no description available
- --delete <boolean> (default = 0)
Remove the passed VMIDs and/or storage IDs instead of adding them.
- --storage <string>
List of storage IDs to add or remove from this pool.
- --vms <string>
List of guest VMIDs to add or remove from this pool.
pveum realm add <realm> --type <string> [OPTIONS]
Add an authentication server.
- <realm>: <string>
Authentication domain ID
- --acr-values ^[^\x00-\x1F\x7F <>#"]*$
Specifies the Authentication Context Class Reference values that theAuthorization Server is being requested to use for the Auth Request.
- --autocreate <boolean> (default = 0)
Automatically create users if they do not exist.
- --base_dn <string>
LDAP base domain name
- --bind_dn <string>
LDAP bind domain name
- --capath <string> (default = /etc/ssl/certs)
Path to the CA certificate store
- --case-sensitive <boolean> (default = 1)
username is case-sensitive
- --cert <string>
Path to the client certificate
- --certkey <string>
Path to the client certificate key
- --check-connection <boolean> (default = 0)
Check bind connection to the server.
- --client-id <string>
OpenID Client ID
- --client-key <string>
OpenID Client Key
- --comment <string>
Description.
- --default <boolean>
Use this as default realm
- --domain \S+
AD domain name
- --filter <string>
LDAP filter for user sync.
- --group_classes <string> (default = groupOfNames, group, univentionGroup, ipausergroup)
The objectclasses for groups.
- --group_dn <string>
LDAP base domain name for group sync. If not set, the base_dn will be used.
- --group_filter <string>
LDAP filter for group sync.
- --group_name_attr <string>
LDAP attribute representing a groups name. If not set or found, the first value of the DN will be used as name.
- --groups-autocreate <boolean> (default = 0)
Automatically create groups if they do not exist.
- --groups-claim (?^:[A-Za-z0-9\.\-_]+)
OpenID claim used to retrieve groups with.
- --groups-overwrite <boolean> (default = 0)
All groups will be overwritten for the user on login.
- --issuer-url <string>
OpenID Issuer Url
- --mode <ldap | ldap+starttls | ldaps> (default = ldap)
LDAP protocol mode.
- --password <string>
LDAP bind password. Will be stored in /etc/pve/priv/realm/<REALM>.pw.
- --port <integer> (1 - 65535)
Server port.
- --prompt (?:none|login|consent|select_account|\S+)
Specifies whether the Authorization Server prompts the End-User for reauthentication and consent.
- --query-userinfo <boolean> (default = 1)
Enables querying the userinfo endpoint for claims values.
- --scopes <string> (default = email profile)
Specifies the scopes (user details) that should be authorized and returned, for example email or profile.
- --secure <boolean>
Use secure LDAPS protocol. DEPRECATED: use mode instead.
- --server1 <string>
Server IP address (or DNS name)
- --server2 <string>
Fallback Server IP address (or DNS name)
- --sslversion <tlsv1 | tlsv1_1 | tlsv1_2 | tlsv1_3>
LDAPS TLS/SSL version. It’s not recommended to use version older than 1.2!
- --sync-defaults-options [enable-new=<1|0>] [,full=<1|0>] [,purge=<1|0>] [,remove-vanished=([acl];[properties];[entry])|none] [,scope=<users|groups|both>]
The default options for behavior of synchronizations.
- --sync_attributes \w+=[^,]+(,\s*\w+=[^,]+)*
Comma separated list of key=value pairs for specifying which LDAP attributes map to which PVE user field. For example, to map the LDAP attribute mail to PVEs email, write email=mail. By default, each PVE user field is represented by an LDAP attribute of the same name.
- --tfa type=<TFATYPE> [,digits=<COUNT>] [,id=<ID>] [,key=<KEY>] [,step=<SECONDS>] [,url=<URL>]
Use Two-factor authentication.
- --type <ad | ldap | openid | pam | pve>
Realm type.
- --user_attr \S{2,}
LDAP user attribute name
- --user_classes <string> (default = inetorgperson, posixaccount, person, user)
The objectclasses for users.
- --username-claim <string>
OpenID claim used to generate the unique username.
- --verify <boolean> (default = 0)
Verify the server’s SSL certificate
pveum realm delete <realm>
Delete an authentication server.
- <realm>: <string>
Authentication domain ID
pveum realm list [FORMAT_OPTIONS]
Authentication domain index.
pveum realm modify <realm> [OPTIONS]
Update authentication server settings.
- <realm>: <string>
Authentication domain ID
- --acr-values ^[^\x00-\x1F\x7F <>#"]*$
Specifies the Authentication Context Class Reference values that theAuthorization Server is being requested to use for the Auth Request.
- --autocreate <boolean> (default = 0)
Automatically create users if they do not exist.
- --base_dn <string>
LDAP base domain name
- --bind_dn <string>
LDAP bind domain name
- --capath <string> (default = /etc/ssl/certs)
Path to the CA certificate store
- --case-sensitive <boolean> (default = 1)
username is case-sensitive
- --cert <string>
Path to the client certificate
- --certkey <string>
Path to the client certificate key
- --check-connection <boolean> (default = 0)
Check bind connection to the server.
- --client-id <string>
OpenID Client ID
- --client-key <string>
OpenID Client Key
- --comment <string>
Description.
- --default <boolean>
Use this as default realm
- --delete <string>
A list of settings you want to delete.
- --digest <string>
Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.
- --domain \S+
AD domain name
- --filter <string>
LDAP filter for user sync.
- --group_classes <string> (default = groupOfNames, group, univentionGroup, ipausergroup)
The objectclasses for groups.
- --group_dn <string>
LDAP base domain name for group sync. If not set, the base_dn will be used.
- --group_filter <string>
LDAP filter for group sync.
- --group_name_attr <string>
LDAP attribute representing a groups name. If not set or found, the first value of the DN will be used as name.
- --groups-autocreate <boolean> (default = 0)
Automatically create groups if they do not exist.
- --groups-claim (?^:[A-Za-z0-9\.\-_]+)
OpenID claim used to retrieve groups with.
- --groups-overwrite <boolean> (default = 0)
All groups will be overwritten for the user on login.
- --issuer-url <string>
OpenID Issuer Url
- --mode <ldap | ldap+starttls | ldaps> (default = ldap)
LDAP protocol mode.
- --password <string>
LDAP bind password. Will be stored in /etc/pve/priv/realm/<REALM>.pw.
- --port <integer> (1 - 65535)
Server port.
- --prompt (?:none|login|consent|select_account|\S+)
Specifies whether the Authorization Server prompts the End-User for reauthentication and consent.
- --query-userinfo <boolean> (default = 1)
Enables querying the userinfo endpoint for claims values.
- --scopes <string> (default = email profile)
Specifies the scopes (user details) that should be authorized and returned, for example email or profile.
- --secure <boolean>
Use secure LDAPS protocol. DEPRECATED: use mode instead.
- --server1 <string>
Server IP address (or DNS name)
- --server2 <string>
Fallback Server IP address (or DNS name)
- --sslversion <tlsv1 | tlsv1_1 | tlsv1_2 | tlsv1_3>
LDAPS TLS/SSL version. It’s not recommended to use version older than 1.2!
- --sync-defaults-options [enable-new=<1|0>] [,full=<1|0>] [,purge=<1|0>] [,remove-vanished=([acl];[properties];[entry])|none] [,scope=<users|groups|both>]
The default options for behavior of synchronizations.
- --sync_attributes \w+=[^,]+(,\s*\w+=[^,]+)*
Comma separated list of key=value pairs for specifying which LDAP attributes map to which PVE user field. For example, to map the LDAP attribute mail to PVEs email, write email=mail. By default, each PVE user field is represented by an LDAP attribute of the same name.
- --tfa type=<TFATYPE> [,digits=<COUNT>] [,id=<ID>] [,key=<KEY>] [,step=<SECONDS>] [,url=<URL>]
Use Two-factor authentication.
- --user_attr \S{2,}
LDAP user attribute name
- --user_classes <string> (default = inetorgperson, posixaccount, person, user)
The objectclasses for users.
- --verify <boolean> (default = 0)
Verify the server’s SSL certificate
pveum realm sync <realm> [OPTIONS]
Syncs users and/or groups from the configured LDAP to user.cfg. NOTE:Synced groups will have the name name-$realm, so make sure those groupsdo not exist to prevent overwriting.
- <realm>: <string>
Authentication domain ID
- --dry-run <boolean> (default = 0)
If set, does not write anything.
- --enable-new <boolean> (default = 1)
Enable newly synced users immediately.
- --full <boolean>
DEPRECATED: use remove-vanished instead. If set, uses the LDAP Directory as source of truth, deleting users or groups not returned from the sync and removing all locally modified properties of synced users. If not set, only syncs information which is present in the synced data, and does not delete or modify anything else.
- --purge <boolean>
DEPRECATED: use remove-vanished instead. Remove ACLs for users or groups which were removed from the config during a sync.
- --remove-vanished ([acl];[properties];[entry])|none (default = none)
A semicolon-separated list of things to remove when they or the user vanishes during a sync. The following values are possible: entry removes the user/group when not returned from the sync. properties removes the set properties on existing user/group that do not appear in the source (even custom ones). acl removes acls when the user/group is not returned from the sync. Instead of a list it also can be none (the default).
- --scope <both | groups | users>
Select what to sync.
pveum role add <roleid> [OPTIONS]
Create new role.
- <roleid>: <string>
no description available
- --privs <string>
no description available
pveum role delete <roleid>
Delete role.
- <roleid>: <string>
no description available
pveum role list [FORMAT_OPTIONS]
Role index.
pveum role modify <roleid> [OPTIONS]
Update an existing role.
- <roleid>: <string>
no description available
- --append <boolean>
no description available
Requires option(s): privs - --privs <string>
no description available
pveum roleadd
An alias for pveum role add.
pveum roledel
An alias for pveum role delete.
pveum rolemod
An alias for pveum role modify.
pveum ticket <username> [OPTIONS]
Create or verify authentication ticket.
- <username>: <string>
User name
- --new-format <boolean> (default = 1)
This parameter is now ignored and assumed to be 1.
- --otp <string>
One-time password for Two-factor authentication.
- --path <string>
Verify ticket, and check if user have access privs on path
Requires option(s): privs - --privs <string>
Verify ticket, and check if user have access privs on path
Requires option(s): path - --realm <string>
You can optionally pass the realm using this parameter. Normally the realm is simply added to the username <username>@<realm>.
- --tfa-challenge <string>
The signed TFA challenge string the user wants to respond to.
pveum user add <userid> [OPTIONS]
Create new user.
- <userid>: <string>
Full User ID, in the name@realm format.
- --comment <string>
no description available
- --email <string>
no description available
- --enable <boolean> (default = 1)
Enable the account (default). You can set this to 0 to disable the account
- --expire <integer> (0 - N)
Account expiration date (seconds since epoch). 0 means no expiration date.
- --firstname <string>
no description available
- --groups <string>
no description available
- --keys [0-9a-zA-Z!=]{0,4096}
Keys for two factor auth (yubico).
- --lastname <string>
no description available
- --password <string>
Initial password.
pveum user delete <userid>
Delete user.
- <userid>: <string>
Full User ID, in the name@realm format.
pveum user list [OPTIONS] [FORMAT_OPTIONS]
User index.
- --enabled <boolean>
Optional filter for enable property.
- --full <boolean> (default = 0)
Include group and token information.
pveum user modify <userid> [OPTIONS]
Update user configuration.
- <userid>: <string>
Full User ID, in the name@realm format.
- --append <boolean>
no description available
Requires option(s): groups - --comment <string>
no description available
- --email <string>
no description available
- --enable <boolean> (default = 1)
Enable the account (default). You can set this to 0 to disable the account
- --expire <integer> (0 - N)
Account expiration date (seconds since epoch). 0 means no expiration date.
- --firstname <string>
no description available
- --groups <string>
no description available
- --keys [0-9a-zA-Z!=]{0,4096}
Keys for two factor auth (yubico).
- --lastname <string>
no description available
pveum user permissions [<userid>] [OPTIONS] [FORMAT_OPTIONS]
Retrieve effective permissions of given user/token.
- <userid>: (?^:^(?^:[^\s:/]+)\@(?^:[A-Za-z][A-Za-z0-9\.\-_]+)(?:!(?^:[A-Za-z][A-Za-z0-9\.\-_]+))?$)
User ID or full API token ID
- --path <string>
Only dump this specific path, not the whole tree.
pveum user tfa delete <userid> [OPTIONS]
Delete TFA entries from a user.
- <userid>: <string>
Full User ID, in the name@realm format.
- --id <string>
The TFA ID, if none provided, all TFA entries will be deleted.
pveum user tfa list [<userid>]
List TFA entries.
- <userid>: <string>
Full User ID, in the name@realm format.
pveum user tfa unlock <userid>
Unlock a user’s TFA authentication.
- <userid>: <string>
Full User ID, in the name@realm format.
pveum user token add <userid> <tokenid> [OPTIONS] [FORMAT_OPTIONS]
Generate a new API token for a specific user. NOTE: returns API tokenvalue, which needs to be stored as it cannot be retrieved afterwards!
- <userid>: <string>
Full User ID, in the name@realm format.
- <tokenid>: (?^:[A-Za-z][A-Za-z0-9\.\-_]+)
User-specific token identifier.
- --comment <string>
no description available
- --expire <integer> (0 - N) (default = same as user)
API token expiration date (seconds since epoch). 0 means no expiration date.
- --privsep <boolean> (default = 1)
Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user.
pveum user token delete <userid> <tokenid> [FORMAT_OPTIONS]
Remove API token for a specific user.
- <userid>: <string>
Full User ID, in the name@realm format.
- <tokenid>: (?^:[A-Za-z][A-Za-z0-9\.\-_]+)
User-specific token identifier.
pveum user token list <userid> [FORMAT_OPTIONS]
Get user API tokens.
- <userid>: <string>
Full User ID, in the name@realm format.
pveum user token modify <userid> <tokenid> [OPTIONS] [FORMAT_OPTIONS]
Update API token for a specific user.
- <userid>: <string>
Full User ID, in the name@realm format.
- <tokenid>: (?^:[A-Za-z][A-Za-z0-9\.\-_]+)
User-specific token identifier.
- --comment <string>
no description available
- --expire <integer> (0 - N) (default = same as user)
API token expiration date (seconds since epoch). 0 means no expiration date.
- --privsep <boolean> (default = 1)
Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user.
pveum user token permissions <userid> <tokenid> [OPTIONS] [FORMAT_OPTIONS]
Retrieve effective permissions of given token.
- <userid>: <string>
Full User ID, in the name@realm format.
- <tokenid>: (?^:[A-Za-z][A-Za-z0-9\.\-_]+)
User-specific token identifier.
- --path <string>
Only dump this specific path, not the whole tree.
pveum user token remove
An alias for pveum user token delete.
pveum useradd
An alias for pveum user add.
pveum userdel
An alias for pveum user delete.
pveum usermod
An alias for pveum user modify.
22.16. vzdump - Backup Utility for VMs and Containers
vzdump help
vzdump {<vmid>} [OPTIONS]
Create backup.
- <vmid>: <string>
The ID of the guest system you want to backup.
- --all <boolean> (default = 0)
Backup all known guest systems on this host.
- --bwlimit <integer> (0 - N) (default = 0)
Limit I/O bandwidth (in KiB/s).
- --compress <0 | 1 | gzip | lzo | zstd> (default = 0)
Compress dump file.
- --dumpdir <string>
Store resulting files to specified directory.
- --exclude <string>
Exclude specified guest systems (assumes --all)
- --exclude-path <array>
Exclude certain files/directories (shell globs). Paths starting with / are anchored to the container’s root, other paths match relative to each subdirectory.
- --fleecing [[enabled=]<1|0>] [,storage=<storage ID>]
Options for backup fleecing (VM only).
- --ionice <integer> (0 - 8) (default = 7)
Set IO priority when using the BFQ scheduler. For snapshot and suspend mode backups of VMs, this only affects the compressor. A value of 8 means the idle priority is used, otherwise the best-effort priority is used with the specified value.
- --job-id \S+
The ID of the backup job. If set, the backup-job metadata field of the backup notification will be set to this value. Only root@pam can set this parameter.
- --lockwait <integer> (0 - N) (default = 180)
Maximal time to wait for the global lock (minutes).
- --mailnotification <always | failure> (default = always)
Deprecated: use notification targets/matchers instead. Specify when to send a notification mail
- --mailto <string>
Deprecated: Use notification targets/matchers instead. Comma-separated list of email addresses or users that should receive email notifications.
- --maxfiles <integer> (1 - N)
Deprecated: use prune-backups instead. Maximal number of backup files per guest system.
- --mode <snapshot | stop | suspend> (default = snapshot)
Backup mode.
- --node <string>
Only run if executed on this node.
- --notes-template <string>
Template string for generating notes for the backup(s). It can contain variables which will be replaced by their values. Currently supported are {\{\cluster}}, {\{\guestname}}, {\{\node}}, and {\{\vmid}}, but more might be added in the future. Needs to be a single line, newline and backslash need to be escaped as \n and \\ respectively.
Requires option(s): storage - --notification-mode <auto | legacy-sendmail | notification-system> (default = auto)
Determine which notification system to use. If set to legacy-sendmail, vzdump will consider the mailto/mailnotification parameters and send emails to the specified address(es) via the sendmail command. If set to notification-system, a notification will be sent via PVE’s notification system, and the mailto and mailnotification will be ignored. If set to auto (default setting), an email will be sent if mailto is set, and the notification system will be used if not.
- --notification-policy <always | failure | never> (default = always)
Deprecated: Do not use
- --notification-target <string>
Deprecated: Do not use
- --pbs-change-detection-mode <data | legacy | metadata>
PBS mode used to detect file changes and switch encoding format for container backups.
- --performance [max-workers=<integer>] [,pbs-entries-max=<integer>]
Other performance-related settings.
- --pigz <integer> (default = 0)
Use pigz instead of gzip when N>0. N=1 uses half of cores, N>1 uses N as thread count.
- --pool <string>
Backup all known guest systems included in the specified pool.
- --protected <boolean>
If true, mark backup(s) as protected.
Requires option(s): storage - --prune-backups [keep-all=<1|0>] [,keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>] (default = keep-all=1)
Use these retention options instead of those from the storage configuration.
- --quiet <boolean> (default = 0)
Be quiet.
- --remove <boolean> (default = 1)
Prune older backups according to prune-backups.
- --script <string>
Use specified hook script.
- --stdexcludes <boolean> (default = 1)
Exclude temporary files and logs.
- --stdout <boolean>
Write tar to stdout, not to a file.
- --stop <boolean> (default = 0)
Stop running backup jobs on this host.
- --stopwait <integer> (0 - N) (default = 10)
Maximal time to wait until a guest system is stopped (minutes).
- --storage <storage ID>
Store resulting file to this storage.
- --tmpdir <string>
Store temporary files to specified directory.
- --zstd <integer> (default = 1)
Zstd threads. N=0 uses half of the available cores, if N is set to a value bigger than 0, N is used as thread count.
22.17. ha-manager - Proxmox VE HA Manager
ha-manager <COMMAND> [ARGS] [OPTIONS]
ha-manager add <sid> [OPTIONS]
Create a new HA resource.
- <sid>: <type>:<name>
HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).
- --comment <string>
Description.
- --group <string>
The HA group identifier.
- --max_relocate <integer> (0 - N) (default = 1)
Maximal number of service relocate tries when a service failes to start.
- --max_restart <integer> (0 - N) (default = 1)
Maximal number of tries to restart the service on a node after its start failed.
- --state <disabled | enabled | ignored | started | stopped> (default = started)
Requested resource state.
- --type <ct | vm>
Resource type.
ha-manager config [OPTIONS]
List HA resources.
- --type <ct | vm>
Only list resources of specific type
ha-manager crm-command migrate <sid> <node>
Request resource migration (online) to another node.
- <sid>: <type>:<name>
HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).
- <node>: <string>
Target node.
ha-manager crm-command node-maintenance disable <node>
Change the node-maintenance request state.
- <node>: <string>
The cluster node name.
ha-manager crm-command node-maintenance enable <node>
Change the node-maintenance request state.
- <node>: <string>
The cluster node name.
ha-manager crm-command relocate <sid> <node>
Request resource relocatzion to another node. This stops the service on theold node, and restarts it on the target node.
- <sid>: <type>:<name>
HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).
- <node>: <string>
Target node.
ha-manager crm-command stop <sid> <timeout>
Request the service to be stopped.
- <sid>: <type>:<name>
HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).
- <timeout>: <integer> (0 - N)
Timeout in seconds. If set to 0 a hard stop will be performed.
ha-manager groupadd <group> --nodes <string> [OPTIONS]
Create a new HA group.
- <group>: <string>
The HA group identifier.
- --comment <string>
Description.
- --nodes <node>[:<pri>]{,<node>[:<pri>]}*
List of cluster node names with optional priority.
- --nofailback <boolean> (default = 0)
The CRM tries to run services on the node with the highest priority. If a node with higher priority comes online, the CRM migrates the service to that node. Enabling nofailback prevents that behavior.
- --restricted <boolean> (default = 0)
Resources bound to restricted groups may only run on nodes defined by the group.
- --type <group>
Group type.
ha-manager groupconfig
Get HA groups.
ha-manager groupremove <group>
Delete ha group configuration.
- <group>: <string>
The HA group identifier.
ha-manager groupset <group> [OPTIONS]
Update ha group configuration.
- <group>: <string>
The HA group identifier.
- --comment <string>
Description.
- --delete <string>
A list of settings you want to delete.
- --digest <string>
Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.
- --nodes <node>[:<pri>]{,<node>[:<pri>]}*
List of cluster node names with optional priority.
- --nofailback <boolean> (default = 0)
The CRM tries to run services on the node with the highest priority. If a node with higher priority comes online, the CRM migrates the service to that node. Enabling nofailback prevents that behavior.
- --restricted <boolean> (default = 0)
Resources bound to restricted groups may only run on nodes defined by the group.
ha-manager help [OPTIONS]
Get help about specified command.
- --extra-args <array>
Shows help for a specific command
- --verbose <boolean>
Verbose output format.
ha-manager migrate
An alias for ha-manager crm-command migrate.
ha-manager relocate
An alias for ha-manager crm-command relocate.
ha-manager remove <sid>
Delete resource configuration.
- <sid>: <type>:<name>
HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).
ha-manager set <sid> [OPTIONS]
Update resource configuration.
- <sid>: <type>:<name>
HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).
- --comment <string>
Description.
- --delete <string>
A list of settings you want to delete.
- --digest <string>
Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.
- --group <string>
The HA group identifier.
- --max_relocate <integer> (0 - N) (default = 1)
Maximal number of service relocate tries when a service failes to start.
- --max_restart <integer> (0 - N) (default = 1)
Maximal number of tries to restart the service on a node after its start failed.
- --state <disabled | enabled | ignored | started | stopped> (default = started)
Requested resource state.
ha-manager status [OPTIONS]
Display HA manger status.
- --verbose <boolean> (default = 0)
Verbose output. Include complete CRM and LRM status (JSON).