X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=pct.1-synopsis.adoc;h=a620ff6dffbb914936fffe7bac51b8e719725da6;hp=3ecb377f878c53425ab7540660a66ce380680bb8;hb=b08dc187a5592cd4d11075f4435cdb0860fc1d61;hpb=35a75dd36c05f79e9dda81147867878a55d839c1 diff --git a/pct.1-synopsis.adoc b/pct.1-synopsis.adoc index 3ecb377..a620ff6 100644 --- a/pct.1-synopsis.adoc +++ b/pct.1-synopsis.adoc @@ -1,6 +1,6 @@ *pct* ` [ARGS] [OPTIONS]` -*pct clone* ` --experimental ` `[OPTIONS]` +*pct clone* ` ` `[OPTIONS]` Create a container clone/copy @@ -16,13 +16,9 @@ VMID for the clone. Description for the new CT. -`--experimental` `` ('default =' `0`):: +`--full` `` :: -The clone feature is experimental, set this flag if you know what you are doing. - -`--full` `` ('default =' `0`):: - -Create a full copy of all disk. This is always done when you clone a normal CT. For CT templates, we try to create a linked clone by default. +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` `` :: @@ -39,10 +35,12 @@ The name of the snapshot. `--storage` `` :: Target storage for full clone. -+ -NOTE: Requires option(s): `full` -*pct config* `` +`--target` `` :: + +Target node. Only allowed if the original VM is on shared storage. + +*pct config* `` `[OPTIONS]` Get container configuration. @@ -50,7 +48,11 @@ Get container configuration. The (unique) ID of the VM. -*pct console* `` +`--snapshot` `` :: + +Fetch config values from given snapshot. + +*pct console* `` `[OPTIONS]` Launch a console for the specified container. @@ -58,6 +60,10 @@ Launch a console for the specified container. The (unique) ID of the VM. +`--escape` `\^?[a-z]` ('default =' `^a`):: + +Escape sequence prefix. For example to use as the escape sequence pass '^b'. + *pct cpusets* Print the list of assigned CPU sets. @@ -74,10 +80,14 @@ The (unique) ID of the VM. The OS template or backup file. -`--arch` `` ('default =' `amd64`):: +`--arch` `` ('default =' `amd64`):: OS architecture type. +`--bwlimit` ` (0 - N)` :: + +Override i/o bandwidth limit (in KiB/s). + `--cmode` `` ('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). @@ -106,10 +116,18 @@ NOTE: You can disable fair-scheduler configuration by setting this to 0. Container description. Only used on the configuration web interface. +`--features` `[fuse=<1|0>] [,keyctl=<1|0>] [,mount=] [,nesting=<1|0>]` :: + +Allow containers access to advanced features. + `--force` `` :: Allow to overwrite existing container. +`--hookscript` `` :: + +Script that will be exectued during various steps in the containers lifetime. + `--hostname` `` :: Set a host name for the container. @@ -118,7 +136,7 @@ Set a host name for the container. Ignore errors when extracting the template. -`--lock` `` :: +`--lock` `` :: Lock/unlock the VM. @@ -146,7 +164,7 @@ Specifies whether a VM will be started during system bootup. OS type. This is used to setup configuration inside the container, and corresponds to lxc setup scripts in /usr/share/lxc/config/.common.conf. Value 'unmanaged' can be used to skip and OS specific setup. -`--password` :: +`--password` `` :: Sets root password inside container. @@ -174,6 +192,10 @@ Sets DNS search domains for a container. Create will automatically use the setti Setup public SSH keys (one key per line, OpenSSH format). +`--start` `` ('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. @@ -262,7 +284,7 @@ Run a filesystem check (fsck) on a container volume. The (unique) ID of the VM. -`--device` `` :: +`--device` `` :: A volume on which to run the filesystem check @@ -332,6 +354,30 @@ further operations on the container other than start and stop. The (unique) ID of the VM. +*pct move_volume* ` ` `[OPTIONS]` + +Move a rootfs-/mp-volume to a different storage + +``: ` (1 - N)` :: + +The (unique) ID of the VM. + +``: `` :: + +Volume which will be moved. + +``: `` :: + +Target Storage. + +`--delete` `` ('default =' `0`):: + +Delete the original volume after successful copy. By default the original is kept as an unused volume entry. + +`--digest` `` :: + +Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. + *pct pull* ` ` `[OPTIONS]` Copy a file from the container to the local system. @@ -388,6 +434,18 @@ File permissions to use (octal by default, prefix with '0x' for hexadecimal). Owner user name or id. When using a name it must exist inside the container. +*pct rescan* `[OPTIONS]` + +Rescan all storages and update disk sizes and unused disk images. + +`--dryrun` `` ('default =' `0`):: + +Do not actually write changes out to conifg. + +`--vmid` ` (1 - N)` :: + +The (unique) ID of the VM. + *pct resize* ` ` `[OPTIONS]` Resize a container mount point. @@ -396,7 +454,7 @@ Resize a container mount point. The (unique) ID of the VM. -``: `` :: +``: `` :: The disk you want to resize. @@ -420,10 +478,14 @@ The (unique) ID of the VM. The OS template or backup file. -`--arch` `` ('default =' `amd64`):: +`--arch` `` ('default =' `amd64`):: OS architecture type. +`--bwlimit` ` (0 - N)` :: + +Override i/o bandwidth limit (in KiB/s). + `--cmode` `` ('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). @@ -452,10 +514,18 @@ NOTE: You can disable fair-scheduler configuration by setting this to 0. Container description. Only used on the configuration web interface. +`--features` `[fuse=<1|0>] [,keyctl=<1|0>] [,mount=] [,nesting=<1|0>]` :: + +Allow containers access to advanced features. + `--force` `` :: Allow to overwrite existing container. +`--hookscript` `` :: + +Script that will be exectued during various steps in the containers lifetime. + `--hostname` `` :: Set a host name for the container. @@ -464,7 +534,7 @@ Set a host name for the container. Ignore errors when extracting the template. -`--lock` `` :: +`--lock` `` :: Lock/unlock the VM. @@ -492,7 +562,7 @@ Specifies whether a VM will be started during system bootup. OS type. This is used to setup configuration inside the container, and corresponds to lxc setup scripts in /usr/share/lxc/config/.common.conf. Value 'unmanaged' can be used to skip and OS specific setup. -`--password` :: +`--password` `` :: Sets root password inside container. @@ -516,6 +586,10 @@ Sets DNS search domains for a container. Create will automatically use the setti Setup public SSH keys (one key per line, OpenSSH format). +`--start` `` ('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. @@ -572,7 +646,7 @@ Set container options. The (unique) ID of the VM. -`--arch` `` ('default =' `amd64`):: +`--arch` `` ('default =' `amd64`):: OS architecture type. @@ -612,11 +686,19 @@ Container description. Only used on the configuration web interface. Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. +`--features` `[fuse=<1|0>] [,keyctl=<1|0>] [,mount=] [,nesting=<1|0>]` :: + +Allow containers access to advanced features. + +`--hookscript` `` :: + +Script that will be exectued during various steps in the containers lifetime. + `--hostname` `` :: Set a host name for the container. -`--lock` `` :: +`--lock` `` :: Lock/unlock the VM. @@ -758,7 +840,7 @@ Suspend the container. The (unique) ID of the VM. -*pct template* ` --experimental ` `[OPTIONS]` +*pct template* `` Create a Template. @@ -766,10 +848,6 @@ Create a Template. The (unique) ID of the VM. -`--experimental` `` ('default =' `0`):: - -The template feature is experimental, set this flag if you know what you are doing. - *pct unlock* `` Unlock the VM.