X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=pct.adoc;h=b3659c4fcdd8b6f97d690fc21be302a18279f164;hp=b5d7c67832f6b36630d8b2a746682d2463920f64;hb=139a90198b15dde320ba74b18d3868044a49b348;hpb=86773805d3e46a1a5441d6bc207f1e2085d4a306 diff --git a/pct.adoc b/pct.adoc index b5d7c67..b3659c4 100644 --- a/pct.adoc +++ b/pct.adoc @@ -2,7 +2,6 @@ ifdef::manvolnum[] pct(1) ====== -include::attributes.txt[] :pve-toplevel: NAME @@ -23,7 +22,6 @@ endif::manvolnum[] ifndef::manvolnum[] Proxmox Container Toolkit ========================= -include::attributes.txt[] :pve-toplevel: endif::manvolnum[] ifdef::wiki[] @@ -347,7 +345,7 @@ ACLs allow you to set more detailed file ownership than the traditional user/ group/others model. -[[pct_setting]] +[[pct_settings]] Container Settings ------------------ @@ -355,6 +353,8 @@ Container Settings CPU ~~~ +[thumbnail="gui-create-ct-cpu.png"] + You can restrict the number of visible CPUs inside the container using the `cores` option. This is implemented using the Linux 'cpuset' cgroup (**c**ontrol *group*). A special task inside `pvestatd` tries @@ -398,6 +398,8 @@ prioritize some containers. Memory ~~~~~~ +[thumbnail="gui-create-ct-memory.png"] + Container memory is controlled using the cgroup memory controller. [horizontal] @@ -415,6 +417,8 @@ swap`). Mount Points ~~~~~~~~~~~~ +[thumbnail="gui-create-ct-root-disk.png"] + The root mount point is configured with the `rootfs` property, and you can configure up to 10 additional mount points. The corresponding options are called `mp0` to `mp9`, and they can contain the following setting: @@ -494,6 +498,8 @@ NOTE: The contents of device mount points are not backed up when using `vzdump`. Network ~~~~~~~ +[thumbnail="gui-create-ct-network.png"] + You can configure up to 10 network interfaces for a single container. The corresponding options are called `net0` to `net9`, and they can contain the following setting: @@ -501,6 +507,39 @@ they can contain the following setting: include::pct-network-opts.adoc[] +[[pct_startup_and_shutdown]] +Automatic Start and Shutdown of Containers +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +After creating your containers, you probably want them to start automatically +when the host system boots. For this you need to select the option 'Start at +boot' from the 'Options' Tab of your container in the web interface, or set it with +the following command: + + pct set -onboot 1 + +If you want to fine tune the boot order of your containers, you can use the following +parameters : + +* *Start/Shutdown order*: Defines the start order priority. E.g. set it to 1 if +you want the CT to be the first to be started. (We use the reverse startup +order for shutdown, so a container with a start order of 1 would be the last to +be shut down) +* *Startup delay*: Defines the interval between this container start and subsequent +containers starts . E.g. set it to 240 if you want to wait 240 seconds before starting +other containers. +* *Shutdown timeout*: Defines the duration in seconds {pve} should wait +for the container to be offline after issuing a shutdown command. +By default this value is set to 60, which means that {pve} will issue a +shutdown request, wait 60s for the machine to be offline, and if after 60s +the machine is still online will notify that the shutdown action failed. + +Please note that containers without a Start/Shutdown order parameter will always +start after those where the parameter is set, and this parameter only +makes sense between the machines running locally on a host, and not +cluster-wide. + + Backup and Restore ------------------