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