*pct* ` [ARGS] [OPTIONS]` *pct clone* ` ` `[OPTIONS]` Create a container clone/copy ``: ` (1 - N)` :: The (unique) ID of the VM. ``: ` (1 - N)` :: VMID for the clone. `--bwlimit` ` (0 - N)` ('default =' `clone limit from datacenter or storage config`):: Override I/O bandwidth limit (in KiB/s). `--description` `` :: Description for the new CT. `--full` `` :: 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` `` :: Set a hostname for the new CT. `--pool` `` :: Add the new CT to the specified pool. `--snapname` `` :: The name of the snapshot. `--storage` `` :: Target storage for full clone. `--target` `` :: Target node. Only allowed if the original VM is on shared storage. *pct config* `` `[OPTIONS]` Get container configuration. ``: ` (1 - N)` :: The (unique) ID of the VM. `--snapshot` `` :: Fetch config values from given snapshot. *pct console* `` `[OPTIONS]` Launch a console for the specified container. ``: ` (1 - N)` :: 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. *pct create* ` ` `[OPTIONS]` Create or restore a container. ``: ` (1 - N)` :: The (unique) ID of the VM. ``: `` :: The OS template or backup file. `--arch` `` ('default =' `amd64`):: OS architecture type. `--bwlimit` ` (0 - N)` ('default =' `restore limit from datacenter or storage config`):: 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). `--console` `` ('default =' `1`):: Attach a console device (/dev/console) to the container. `--cores` ` (1 - 128)` :: The number of cores assigned to the container. A container can use all available cores by default. `--cpulimit` ` (0 - 128)` ('default =' `0`):: Limit of CPU usage. + NOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit. `--cpuunits` ` (0 - 500000)` ('default =' `1024`):: CPU weight for a VM. Argument is used in the kernel fair scheduler. The larger the number is, the more CPU time this VM gets. Number is relative to the weights of all the other running VMs. + NOTE: You can disable fair-scheduler configuration by setting this to 0. `--description` `` :: 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. `--ignore-unpack-errors` `` :: Ignore errors when extracting the template. `--lock` `` :: Lock/unlock the VM. `--memory` ` (16 - N)` ('default =' `512`):: Amount of RAM for the VM in MB. `--mp[n]` `[volume=] ,mp= [,acl=<1|0>] [,backup=<1|0>] [,mountoptions=] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=]` :: Use volume as container mount point. `--nameserver` `` :: 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= [,bridge=] [,firewall=<1|0>] [,gw=] [,gw6=] [,hwaddr=] [,ip=<(IPv4/CIDR|dhcp|manual)>] [,ip6=<(IPv6/CIDR|auto|dhcp|manual)>] [,mtu=] [,rate=] [,tag=] [,trunks=] [,type=]` :: Specifies network interfaces for the container. `--onboot` `` ('default =' `0`):: Specifies whether a VM will be started during system bootup. `--ostype` `` :: 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` `` :: Sets root password inside container. `--pool` `` :: Add the VM to the specified pool. `--protection` `` ('default =' `0`):: Sets the protection flag of the container. This will prevent the CT or CT's disk remove/update operation. `--restore` `` :: Mark this as restore task. `--rootfs` `[volume=] [,acl=<1|0>] [,mountoptions=] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=]` :: Use volume as container root. `--searchdomain` `` :: 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` `` :: 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. `--storage` `` ('default =' `local`):: Default Storage. `--swap` ` (0 - N)` ('default =' `512`):: Amount of SWAP for the VM in MB. `--template` `` ('default =' `0`):: Enable/disable Template. `--tty` ` (0 - 6)` ('default =' `2`):: Specify the number of tty available to the container `--unique` `` :: Assign a unique random ethernet address. + NOTE: Requires option(s): `restore` `--unprivileged` `` ('default =' `0`):: Makes the container run as unprivileged user. (Should not be modified manually.) `--unused[n]` `` :: Reference to unused volumes. This is used internally, and should not be modified manually. *pct delsnapshot* ` ` `[OPTIONS]` Delete a LXC snapshot. ``: ` (1 - N)` :: The (unique) ID of the VM. ``: `` :: The name of the snapshot. `--force` `` :: For removal from config file, even if removing disk snapshots fails. *pct destroy* `` Destroy the container (also delete all uses files). ``: ` (1 - N)` :: The (unique) ID of the VM. *pct df* `` Get the container's current disk usage. ``: ` (1 - N)` :: The (unique) ID of the VM. *pct enter* `` Launch a shell for the specified container. ``: ` (1 - N)` :: The (unique) ID of the VM. *pct exec* ` []` Launch a command inside the specified container. ``: ` (1 - N)` :: The (unique) ID of the VM. ``: `` :: Extra arguments as array *pct fsck* `` `[OPTIONS]` Run a filesystem check (fsck) on a container volume. ``: ` (1 - N)` :: The (unique) ID of the VM. `--device` `` :: A volume on which to run the filesystem check `--force` `` ('default =' `0`):: Force checking, even if the filesystem seems clean *pct fstrim* `` Run fstrim on a chosen CT and its mountpoints. ``: ` (1 - N)` :: The (unique) ID of the VM. *pct help* `[OPTIONS]` Get help about specified command. `--extra-args` `` :: Shows help for a specific command `--verbose` `` :: Verbose output format. *pct list* LXC container index (per node). *pct listsnapshot* `` List all snapshots. ``: ` (1 - N)` :: The (unique) ID of the VM. *pct migrate* ` ` `[OPTIONS]` Migrate the container to another node. Creates a new migration task. ``: ` (1 - N)` :: The (unique) ID of the VM. ``: `` :: Target node. `--bwlimit` ` (0 - N)` ('default =' `migrate limit from datacenter or storage config`):: Override I/O bandwidth limit (in KiB/s). `--force` `` :: Force migration despite local bind / device mounts. NOTE: deprecated, use 'shared' property of mount point instead. `--online` `` :: Use online/live migration. `--restart` `` :: Use restart migration `--timeout` `` ('default =' `180`):: Timeout in seconds for shutdown for restart migration *pct mount* `` Mount the container's filesystem on the host. This will hold a lock on the container and is meant for emergency maintenance only as it will prevent further operations on the container other than start and stop. ``: ` (1 - N)` :: 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. `--bwlimit` ` (0 - N)` ('default =' `clone limit from datacenter or storage config`):: Override I/O bandwidth limit (in KiB/s). `--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. ``: ` (1 - N)` :: The (unique) ID of the VM. ``: `` :: Path to a file inside the container to pull. ``: `` :: Destination `--group` `` :: Owner group name or id. `--perms` `` :: File permissions to use (octal by default, prefix with '0x' for hexadecimal). `--user` `` :: Owner user name or id. *pct push* ` ` `[OPTIONS]` Copy a local file to the container. ``: ` (1 - N)` :: The (unique) ID of the VM. ``: `` :: Path to a local file. ``: `` :: Destination inside the container to write to. `--group` `` :: Owner group name or id. When using a name it must exist inside the container. `--perms` `` :: File permissions to use (octal by default, prefix with '0x' for hexadecimal). `--user` `` :: 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. ``: ` (1 - N)` :: The (unique) ID of the VM. ``: `` :: The disk you want to resize. ``: `\+?\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` `` :: Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. *pct restore* ` ` `[OPTIONS]` Create or restore a container. ``: ` (1 - N)` :: The (unique) ID of the VM. ``: `` :: The OS template or backup file. `--arch` `` ('default =' `amd64`):: OS architecture type. `--bwlimit` ` (0 - N)` ('default =' `restore limit from datacenter or storage config`):: 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). `--console` `` ('default =' `1`):: Attach a console device (/dev/console) to the container. `--cores` ` (1 - 128)` :: The number of cores assigned to the container. A container can use all available cores by default. `--cpulimit` ` (0 - 128)` ('default =' `0`):: Limit of CPU usage. + NOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit. `--cpuunits` ` (0 - 500000)` ('default =' `1024`):: CPU weight for a VM. Argument is used in the kernel fair scheduler. The larger the number is, the more CPU time this VM gets. Number is relative to the weights of all the other running VMs. + NOTE: You can disable fair-scheduler configuration by setting this to 0. `--description` `` :: 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. `--ignore-unpack-errors` `` :: Ignore errors when extracting the template. `--lock` `` :: Lock/unlock the VM. `--memory` ` (16 - N)` ('default =' `512`):: Amount of RAM for the VM in MB. `--mp[n]` `[volume=] ,mp= [,acl=<1|0>] [,backup=<1|0>] [,mountoptions=] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=]` :: Use volume as container mount point. `--nameserver` `` :: 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= [,bridge=] [,firewall=<1|0>] [,gw=] [,gw6=] [,hwaddr=] [,ip=<(IPv4/CIDR|dhcp|manual)>] [,ip6=<(IPv6/CIDR|auto|dhcp|manual)>] [,mtu=] [,rate=] [,tag=] [,trunks=] [,type=]` :: Specifies network interfaces for the container. `--onboot` `` ('default =' `0`):: Specifies whether a VM will be started during system bootup. `--ostype` `` :: 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` `` :: Sets root password inside container. `--pool` `` :: Add the VM to the specified pool. `--protection` `` ('default =' `0`):: Sets the protection flag of the container. This will prevent the CT or CT's disk remove/update operation. `--rootfs` `[volume=] [,acl=<1|0>] [,mountoptions=] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=]` :: Use volume as container root. `--searchdomain` `` :: 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` `` :: 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. `--storage` `` ('default =' `local`):: Default Storage. `--swap` ` (0 - N)` ('default =' `512`):: Amount of SWAP for the VM in MB. `--template` `` ('default =' `0`):: Enable/disable Template. `--tty` ` (0 - 6)` ('default =' `2`):: Specify the number of tty available to the container `--unique` `` :: Assign a unique random ethernet address. + NOTE: Requires option(s): `restore` `--unprivileged` `` ('default =' `0`):: Makes the container run as unprivileged user. (Should not be modified manually.) `--unused[n]` `` :: Reference to unused volumes. This is used internally, and should not be modified manually. *pct resume* `` Resume the container. ``: ` (1 - N)` :: The (unique) ID of the VM. *pct rollback* ` ` Rollback LXC state to specified snapshot. ``: ` (1 - N)` :: The (unique) ID of the VM. ``: `` :: The name of the snapshot. *pct set* `` `[OPTIONS]` Set container options. ``: ` (1 - N)` :: The (unique) ID of the VM. `--arch` `` ('default =' `amd64`):: OS architecture type. `--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). `--console` `` ('default =' `1`):: Attach a console device (/dev/console) to the container. `--cores` ` (1 - 128)` :: The number of cores assigned to the container. A container can use all available cores by default. `--cpulimit` ` (0 - 128)` ('default =' `0`):: Limit of CPU usage. + NOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit. `--cpuunits` ` (0 - 500000)` ('default =' `1024`):: CPU weight for a VM. Argument is used in the kernel fair scheduler. The larger the number is, the more CPU time this VM gets. Number is relative to the weights of all the other running VMs. + NOTE: You can disable fair-scheduler configuration by setting this to 0. `--delete` `` :: A list of settings you want to delete. `--description` `` :: Container description. Only used on the configuration web interface. `--digest` `` :: 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/unlock the VM. `--memory` ` (16 - N)` ('default =' `512`):: Amount of RAM for the VM in MB. `--mp[n]` `[volume=] ,mp= [,acl=<1|0>] [,backup=<1|0>] [,mountoptions=] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=]` :: Use volume as container mount point. `--nameserver` `` :: 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= [,bridge=] [,firewall=<1|0>] [,gw=] [,gw6=] [,hwaddr=] [,ip=<(IPv4/CIDR|dhcp|manual)>] [,ip6=<(IPv6/CIDR|auto|dhcp|manual)>] [,mtu=] [,rate=] [,tag=] [,trunks=] [,type=]` :: Specifies network interfaces for the container. `--onboot` `` ('default =' `0`):: Specifies whether a VM will be started during system bootup. `--ostype` `` :: 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. `--protection` `` ('default =' `0`):: Sets the protection flag of the container. This will prevent the CT or CT's disk remove/update operation. `--rootfs` `[volume=] [,acl=<1|0>] [,mountoptions=] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=]` :: Use volume as container root. `--searchdomain` `` :: 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` ` (0 - N)` ('default =' `512`):: Amount of SWAP for the VM in MB. `--template` `` ('default =' `0`):: Enable/disable Template. `--tty` ` (0 - 6)` ('default =' `2`):: Specify the number of tty available to the container `--unprivileged` `` ('default =' `0`):: Makes the container run as unprivileged user. (Should not be modified manually.) `--unused[n]` `` :: Reference to unused volumes. This is used internally, and should not be modified manually. *pct shutdown* `` `[OPTIONS]` Shutdown the container. This will trigger a clean shutdown of the container, see lxc-stop(1) for details. ``: ` (1 - N)` :: The (unique) ID of the VM. `--forceStop` `` ('default =' `0`):: Make sure the Container stops. `--timeout` ` (0 - N)` ('default =' `60`):: Wait maximal timeout seconds. *pct snapshot* ` ` `[OPTIONS]` Snapshot a container. ``: ` (1 - N)` :: The (unique) ID of the VM. ``: `` :: The name of the snapshot. `--description` `` :: A textual description or comment. *pct start* `` `[OPTIONS]` Start the container. ``: ` (1 - N)` :: The (unique) ID of the VM. `--skiplock` `` :: Ignore locks - only root is allowed to use this option. *pct status* `` `[OPTIONS]` Show CT status. ``: ` (1 - N)` :: The (unique) ID of the VM. `--verbose` `` :: Verbose output format *pct stop* `` `[OPTIONS]` Stop the container. This will abruptly stop all processes running in the container. ``: ` (1 - N)` :: The (unique) ID of the VM. `--skiplock` `` :: Ignore locks - only root is allowed to use this option. *pct suspend* `` Suspend the container. ``: ` (1 - N)` :: The (unique) ID of the VM. *pct template* `` Create a Template. ``: ` (1 - N)` :: The (unique) ID of the VM. *pct unlock* `` Unlock the VM. ``: ` (1 - N)` :: The (unique) ID of the VM. *pct unmount* `` Unmount the container's filesystem. ``: ` (1 - N)` :: The (unique) ID of the VM.