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