You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

259 lines
8.2KB

  1. `arch`: `<amd64 | arm64 | armhf | i386>` ('default =' `amd64`)::
  2. OS architecture type.
  3. `cmode`: `<console | shell | tty>` ('default =' `tty`)::
  4. 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).
  5. `console`: `<boolean>` ('default =' `1`)::
  6. Attach a console device (/dev/console) to the container.
  7. `cores`: `<integer> (1 - 128)` ::
  8. The number of cores assigned to the container. A container can use all available cores by default.
  9. `cpulimit`: `<number> (0 - 128)` ('default =' `0`)::
  10. Limit of CPU usage.
  11. +
  12. NOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit.
  13. `cpuunits`: `<integer> (0 - 500000)` ('default =' `1024`)::
  14. 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.
  15. +
  16. NOTE: You can disable fair-scheduler configuration by setting this to 0.
  17. `description`: `<string>` ::
  18. Container description. Only used on the configuration web interface.
  19. `features`: `[fuse=<1|0>] [,keyctl=<1|0>] [,mount=<fstype;fstype;...>] [,nesting=<1|0>]` ::
  20. Allow containers access to advanced features.
  21. `fuse`=`<boolean>` ('default =' `0`);;
  22. Allow using 'fuse' file systems in a container. Note that interactions between fuse and the freezer cgroup can potentially cause I/O deadlocks.
  23. `keyctl`=`<boolean>` ('default =' `0`);;
  24. For unprivileged containers only: Allow the use of the keyctl() system call. This is required to use docker inside a container. By default unprivileged containers will see this system call as non-existent. This is mostly a workaround for systemd-networkd, as it will treat it as a fatal error when some keyctl() operations are denied by the kernel due to lacking permissions. Essentially, you can choose between running systemd-networkd or docker.
  25. `mount`=`<fstype;fstype;...>` ;;
  26. Allow mounting file systems of specific types. This should be a list of file system types as used with the mount command. Note that this can have negative effects on the container's security. With access to a loop device, mounting a file can circumvent the mknod permission of the devices cgroup, mounting an NFS file system can block the host's I/O completely and prevent it from rebooting, etc.
  27. `nesting`=`<boolean>` ('default =' `0`);;
  28. Allow nesting. Best used with unprivileged containers with additional id mapping. Note that this will expose procfs and sysfs contents of the host to the guest.
  29. `hookscript`: `<string>` ::
  30. Script that will be exectued during various steps in the containers lifetime.
  31. `hostname`: `<string>` ::
  32. Set a host name for the container.
  33. `lock`: `<backup | create | destroyed | disk | fstrim | migrate | mounted | rollback | snapshot | snapshot-delete>` ::
  34. Lock/unlock the VM.
  35. `memory`: `<integer> (16 - N)` ('default =' `512`)::
  36. Amount of RAM for the VM in MB.
  37. `mp[n]`: `[volume=]<volume> ,mp=<Path> [,acl=<1|0>] [,backup=<1|0>] [,mountoptions=<opt[;opt...]>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]` ::
  38. Use volume as container mount point.
  39. `acl`=`<boolean>` ;;
  40. Explicitly enable or disable ACL support.
  41. `backup`=`<boolean>` ;;
  42. Whether to include the mount point in backups (only used for volume mount points).
  43. `mountoptions`=`<opt[;opt...]>` ;;
  44. Extra mount options for rootfs/mps.
  45. `mp`=`<Path>` ;;
  46. Path to the mount point as seen from inside the container.
  47. +
  48. NOTE: Must not contain any symlinks for security reasons.
  49. `quota`=`<boolean>` ;;
  50. Enable user quotas inside the container (not supported with zfs subvolumes)
  51. `replicate`=`<boolean>` ('default =' `1`);;
  52. Will include this volume to a storage replica job.
  53. `ro`=`<boolean>` ;;
  54. Read-only mount point
  55. `shared`=`<boolean>` ('default =' `0`);;
  56. Mark this non-volume mount point as available on all nodes.
  57. +
  58. WARNING: This option does not share the mount point automatically, it assumes it is shared already!
  59. `size`=`<DiskSize>` ;;
  60. Volume size (read only value).
  61. `volume`=`<volume>` ;;
  62. Volume, device or directory to mount into the container.
  63. `nameserver`: `<string>` ::
  64. Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
  65. `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>]` ::
  66. Specifies network interfaces for the container.
  67. `bridge`=`<bridge>` ;;
  68. Bridge to attach the network device to.
  69. `firewall`=`<boolean>` ;;
  70. Controls whether this interface's firewall rules should be used.
  71. `gw`=`<GatewayIPv4>` ;;
  72. Default gateway for IPv4 traffic.
  73. `gw6`=`<GatewayIPv6>` ;;
  74. Default gateway for IPv6 traffic.
  75. `hwaddr`=`<XX:XX:XX:XX:XX:XX>` ;;
  76. A common MAC address with the I/G (Individual/Group) bit not set.
  77. `ip`=`<(IPv4/CIDR|dhcp|manual)>` ;;
  78. IPv4 address in CIDR format.
  79. `ip6`=`<(IPv6/CIDR|auto|dhcp|manual)>` ;;
  80. IPv6 address in CIDR format.
  81. `mtu`=`<integer> (64 - N)` ;;
  82. Maximum transfer unit of the interface. (lxc.network.mtu)
  83. `name`=`<string>` ;;
  84. Name of the network device as seen from inside the container. (lxc.network.name)
  85. `rate`=`<mbps>` ;;
  86. Apply rate limiting to the interface
  87. `tag`=`<integer> (1 - 4094)` ;;
  88. VLAN tag for this interface.
  89. `trunks`=`<vlanid[;vlanid...]>` ;;
  90. VLAN ids to pass through the interface
  91. `type`=`<veth>` ;;
  92. Network interface type.
  93. `onboot`: `<boolean>` ('default =' `0`)::
  94. Specifies whether a VM will be started during system bootup.
  95. `ostype`: `<alpine | archlinux | centos | debian | fedora | gentoo | opensuse | ubuntu | unmanaged>` ::
  96. 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.
  97. `protection`: `<boolean>` ('default =' `0`)::
  98. Sets the protection flag of the container. This will prevent the CT or CT's disk remove/update operation.
  99. `rootfs`: `[volume=]<volume> [,acl=<1|0>] [,mountoptions=<opt[;opt...]>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]` ::
  100. Use volume as container root.
  101. `acl`=`<boolean>` ;;
  102. Explicitly enable or disable ACL support.
  103. `mountoptions`=`<opt[;opt...]>` ;;
  104. Extra mount options for rootfs/mps.
  105. `quota`=`<boolean>` ;;
  106. Enable user quotas inside the container (not supported with zfs subvolumes)
  107. `replicate`=`<boolean>` ('default =' `1`);;
  108. Will include this volume to a storage replica job.
  109. `ro`=`<boolean>` ;;
  110. Read-only mount point
  111. `shared`=`<boolean>` ('default =' `0`);;
  112. Mark this non-volume mount point as available on all nodes.
  113. +
  114. WARNING: This option does not share the mount point automatically, it assumes it is shared already!
  115. `size`=`<DiskSize>` ;;
  116. Volume size (read only value).
  117. `volume`=`<volume>` ;;
  118. Volume, device or directory to mount into the container.
  119. `searchdomain`: `<string>` ::
  120. Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
  121. `startup`: `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
  122. 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.
  123. `swap`: `<integer> (0 - N)` ('default =' `512`)::
  124. Amount of SWAP for the VM in MB.
  125. `tags`: `<string>` ::
  126. Tags of the Container. This is only meta information.
  127. `template`: `<boolean>` ('default =' `0`)::
  128. Enable/disable Template.
  129. `tty`: `<integer> (0 - 6)` ('default =' `2`)::
  130. Specify the number of tty available to the container
  131. `unprivileged`: `<boolean>` ('default =' `0`)::
  132. Makes the container run as unprivileged user. (Should not be modified manually.)
  133. `unused[n]`: `<string>` ::
  134. Reference to unused volumes. This is used internally, and should not be modified manually.