1 `arch`: `(amd64 | i386)` (default=`amd64`)::
5 `cmode`: `(console | shell | tty)` (default=`tty`)::
7 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).
9 `console`: `boolean` (default=`1`)::
11 Attach a console device (/dev/console) to the container.
13 `cpulimit`: `number (0 - 128)` (default=`0`)::
17 NOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit.
19 `cpuunits`: `integer (0 - 500000)` (default=`1024`)::
21 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.
23 NOTE: You can disable fair-scheduler configuration by setting this to 0.
25 `description`: `string` ::
27 Container description. Only used on the configuration web interface.
29 `hostname`: `string` ::
31 Set a host name for the container.
33 `lock`: `(backup | migrate | rollback | snapshot)` ::
37 `memory`: `integer (16 - N)` (default=`512`)::
39 Amount of RAM for the VM in MB.
41 `mp[n]`: `[volume=]<volume> ,mp=<Path> [,acl=<1|0>] [,backup=<1|0>] [,quota=<1|0>] [,ro=<1|0>] [,size=<DiskSize>]` ::
43 Use volume as container mount point.
47 Explicitly enable or disable ACL support.
51 Whether to include the mountpoint in backups (only used for volume mountpoints).
55 Path to the mountpoint as seen from inside the container.
57 NOTE: Must not contain any symlinks for security reasons.
61 Enable user quotas inside the container (not supported with zfs subvolumes)
67 `size`=`<DiskSize>` ;;
69 Volume size (read only value).
71 `volume`=`<volume>` ;;
73 Volume, device or directory to mount into the container.
75 `nameserver`: `string` ::
77 Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
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>]` ::
81 Specifies network interfaces for the container.
83 `bridge`=`<bridge>` ;;
85 Bridge to attach the network device to.
87 `firewall`=`boolean` ;;
89 Controls whether this interface's firewall rules should be used.
91 `gw`=`<GatewayIPv4>` ;;
93 Default gateway for IPv4 traffic.
95 `gw6`=`<GatewayIPv6>` ;;
97 Default gateway for IPv6 traffic.
99 `hwaddr`=`<XX:XX:XX:XX:XX:XX>` ;;
101 The 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)
103 `ip`=`<IPv4Format/CIDR>` ;;
105 IPv4 address in CIDR format.
107 `ip6`=`<IPv6Format/CIDR>` ;;
109 IPv6 address in CIDR format.
111 `mtu`=`integer (64 - N)` ;;
113 Maximum transfer unit of the interface. (lxc.network.mtu)
117 Name of the network device as seen from inside the container. (lxc.network.name)
121 Apply rate limiting to the interface
123 `tag`=`integer (1 - 4094)` ;;
125 VLAN tag for this interface.
127 `trunks`=`<vlanid[;vlanid...]>` ;;
129 VLAN ids to pass through the interface
133 Network interface type.
135 `onboot`: `boolean` (default=`0`)::
137 Specifies whether a VM will be started during system bootup.
139 `ostype`: `(alpine | archlinux | centos | debian | fedora | gentoo | opensuse | ubuntu | unmanaged)` ::
141 OS 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.
143 `protection`: `boolean` (default=`0`)::
145 Sets the protection flag of the container. This will prevent the CT or CT's disk remove/update operation.
147 `rootfs`: `[volume=]<volume> [,acl=<1|0>] [,quota=<1|0>] [,ro=<1|0>] [,size=<DiskSize>]` ::
149 Use volume as container root.
153 Explicitly enable or disable ACL support.
157 Enable user quotas inside the container (not supported with zfs subvolumes)
163 `size`=`<DiskSize>` ;;
165 Volume size (read only value).
167 `volume`=`<volume>` ;;
169 Volume, device or directory to mount into the container.
171 `searchdomain`: `string` ::
173 Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
175 `startup`: `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
177 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.
179 `swap`: `integer (0 - N)` (default=`512`)::
181 Amount of SWAP for the VM in MB.
183 `template`: `boolean` (default=`0`)::
185 Enable/disable Template.
187 `tty`: `integer (0 - 6)` (default=`2`)::
189 Specify the number of tty available to the container
191 `unprivileged`: `boolean` (default=`0`)::
193 Makes the container run as unprivileged user. (Should not be modified manually.)
195 `unused[n]`: `string` ::
197 Reference to unused volumes. This is used internally, and should not be modified manually.