]> git.proxmox.com Git - pve-docs.git/blame - pct.conf.5-opts.adoc
output-format.adoc: fix typo
[pve-docs.git] / pct.conf.5-opts.adoc
CommitLineData
013dc89f 1`arch`: `<amd64 | i386>` ('default =' `amd64`)::
71e16346
DM
2
3OS architecture type.
4
013dc89f 5`cmode`: `<console | shell | tty>` ('default =' `tty`)::
71e16346 6
c2993fe5 7Console 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).
71e16346 8
013dc89f 9`console`: `<boolean>` ('default =' `1`)::
71e16346
DM
10
11Attach a console device (/dev/console) to the container.
12
013dc89f 13`cores`: `<integer> (1 - 128)` ::
de0983cb
DM
14
15The number of cores assigned to the container. A container can use all available cores by default.
16
013dc89f 17`cpulimit`: `<number> (0 - 128)` ('default =' `0`)::
71e16346
DM
18
19Limit of CPU usage.
20+
c2993fe5 21NOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit.
71e16346 22
013dc89f 23`cpuunits`: `<integer> (0 - 500000)` ('default =' `1024`)::
71e16346 24
c2993fe5 25CPU 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.
71e16346
DM
26+
27NOTE: You can disable fair-scheduler configuration by setting this to 0.
28
013dc89f 29`description`: `<string>` ::
71e16346
DM
30
31Container description. Only used on the configuration web interface.
32
013dc89f 33`hostname`: `<string>` ::
71e16346
DM
34
35Set a host name for the container.
36
013dc89f 37`lock`: `<backup | migrate | rollback | snapshot>` ::
71e16346
DM
38
39Lock/unlock the VM.
40
013dc89f 41`memory`: `<integer> (16 - N)` ('default =' `512`)::
71e16346
DM
42
43Amount of RAM for the VM in MB.
44
5d9c884c 45`mp[n]`: `[volume=]<volume> ,mp=<Path> [,acl=<1|0>] [,backup=<1|0>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]` ::
71e16346 46
c2993fe5
DM
47Use volume as container mount point.
48
013dc89f 49`acl`=`<boolean>` ;;
c2993fe5
DM
50
51Explicitly enable or disable ACL support.
52
013dc89f 53`backup`=`<boolean>` ;;
c2993fe5 54
de0983cb 55Whether to include the mount point in backups (only used for volume mount points).
c2993fe5
DM
56
57`mp`=`<Path>` ;;
58
de0983cb 59Path to the mount point as seen from inside the container.
2c0dde61
DM
60+
61NOTE: Must not contain any symlinks for security reasons.
c2993fe5 62
013dc89f 63`quota`=`<boolean>` ;;
c2993fe5
DM
64
65Enable user quotas inside the container (not supported with zfs subvolumes)
66
5d9c884c
DM
67`replicate`=`<boolean>` ('default =' `1`);;
68
69Will include this volume to a storage replica job.
70
013dc89f 71`ro`=`<boolean>` ;;
c2993fe5 72
de0983cb
DM
73Read-only mount point
74
013dc89f 75`shared`=`<boolean>` ('default =' `0`);;
de0983cb
DM
76
77Mark this non-volume mount point as available on all nodes.
78+
79WARNING: This option does not share the mount point automatically, it assumes it is shared already!
c2993fe5
DM
80
81`size`=`<DiskSize>` ;;
82
83Volume size (read only value).
84
85`volume`=`<volume>` ;;
86
87Volume, device or directory to mount into the container.
71e16346 88
013dc89f 89`nameserver`: `<string>` ::
71e16346 90
c2993fe5 91Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
71e16346 92
2489d6df 93`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)>] [,mtu=<integer>] [,rate=<mbps>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]` ::
71e16346
DM
94
95Specifies network interfaces for the container.
96
c2993fe5
DM
97`bridge`=`<bridge>` ;;
98
99Bridge to attach the network device to.
100
013dc89f 101`firewall`=`<boolean>` ;;
c2993fe5
DM
102
103Controls whether this interface's firewall rules should be used.
104
105`gw`=`<GatewayIPv4>` ;;
106
107Default gateway for IPv4 traffic.
108
109`gw6`=`<GatewayIPv6>` ;;
110
111Default gateway for IPv6 traffic.
112
113`hwaddr`=`<XX:XX:XX:XX:XX:XX>` ;;
114
115The interface MAC address. This is dynamically allocated by default, but you can set that statically if needed, for example to always have the same link-local IPv6 address. (lxc.network.hwaddr)
116
2489d6df 117`ip`=`<(IPv4/CIDR|dhcp|manual)>` ;;
c2993fe5
DM
118
119IPv4 address in CIDR format.
120
2489d6df 121`ip6`=`<(IPv6/CIDR|auto|dhcp|manual)>` ;;
c2993fe5
DM
122
123IPv6 address in CIDR format.
124
013dc89f 125`mtu`=`<integer> (64 - N)` ;;
c2993fe5
DM
126
127Maximum transfer unit of the interface. (lxc.network.mtu)
128
129`name`=`<string>` ;;
130
131Name of the network device as seen from inside the container. (lxc.network.name)
132
133`rate`=`<mbps>` ;;
134
135Apply rate limiting to the interface
136
013dc89f 137`tag`=`<integer> (1 - 4094)` ;;
c2993fe5
DM
138
139VLAN tag for this interface.
140
141`trunks`=`<vlanid[;vlanid...]>` ;;
142
143VLAN ids to pass through the interface
144
013dc89f 145`type`=`<veth>` ;;
c2993fe5
DM
146
147Network interface type.
148
013dc89f 149`onboot`: `<boolean>` ('default =' `0`)::
71e16346
DM
150
151Specifies whether a VM will be started during system bootup.
152
013dc89f 153`ostype`: `<alpine | archlinux | centos | debian | fedora | gentoo | opensuse | ubuntu | unmanaged>` ::
71e16346 154
c2993fe5 155OS 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.
71e16346 156
013dc89f 157`protection`: `<boolean>` ('default =' `0`)::
71e16346 158
c2993fe5 159Sets the protection flag of the container. This will prevent the CT or CT's disk remove/update operation.
71e16346 160
5d9c884c 161`rootfs`: `[volume=]<volume> [,acl=<1|0>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]` ::
71e16346
DM
162
163Use volume as container root.
164
013dc89f 165`acl`=`<boolean>` ;;
c2993fe5
DM
166
167Explicitly enable or disable ACL support.
168
013dc89f 169`quota`=`<boolean>` ;;
c2993fe5
DM
170
171Enable user quotas inside the container (not supported with zfs subvolumes)
172
5d9c884c
DM
173`replicate`=`<boolean>` ('default =' `1`);;
174
175Will include this volume to a storage replica job.
176
013dc89f 177`ro`=`<boolean>` ;;
c2993fe5 178
de0983cb
DM
179Read-only mount point
180
013dc89f 181`shared`=`<boolean>` ('default =' `0`);;
de0983cb
DM
182
183Mark this non-volume mount point as available on all nodes.
184+
185WARNING: This option does not share the mount point automatically, it assumes it is shared already!
c2993fe5
DM
186
187`size`=`<DiskSize>` ;;
188
189Volume size (read only value).
190
191`volume`=`<volume>` ;;
192
193Volume, device or directory to mount into the container.
194
013dc89f 195`searchdomain`: `<string>` ::
71e16346 196
c2993fe5 197Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
71e16346
DM
198
199`startup`: `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
200
c2993fe5 201Startup 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.
71e16346 202
013dc89f 203`swap`: `<integer> (0 - N)` ('default =' `512`)::
71e16346
DM
204
205Amount of SWAP for the VM in MB.
206
013dc89f 207`template`: `<boolean>` ('default =' `0`)::
71e16346
DM
208
209Enable/disable Template.
210
013dc89f 211`tty`: `<integer> (0 - 6)` ('default =' `2`)::
71e16346
DM
212
213Specify the number of tty available to the container
214
013dc89f 215`unprivileged`: `<boolean>` ('default =' `0`)::
71e16346 216
c2993fe5 217Makes the container run as unprivileged user. (Should not be modified manually.)
71e16346 218
013dc89f 219`unused[n]`: `<string>` ::
71e16346 220
c2993fe5 221Reference to unused volumes. This is used internally, and should not be modified manually.
71e16346 222