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.

pct.1-synopsis.adoc 30KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919
  1. *pct* `<COMMAND> [ARGS] [OPTIONS]`
  2. *pct clone* `<vmid> <newid>` `[OPTIONS]`
  3. Create a container clone/copy
  4. `<vmid>`: `<integer> (1 - N)` ::
  5. The (unique) ID of the VM.
  6. `<newid>`: `<integer> (1 - N)` ::
  7. VMID for the clone.
  8. `--bwlimit` `<number> (0 - N)` ('default =' `clone limit from datacenter or storage config`)::
  9. Override I/O bandwidth limit (in KiB/s).
  10. `--description` `<string>` ::
  11. Description for the new CT.
  12. `--full` `<boolean>` ::
  13. Create a full copy of all disks. This is always done when you clone a normal CT. For CT templates, we try to create a linked clone by default.
  14. `--hostname` `<string>` ::
  15. Set a hostname for the new CT.
  16. `--pool` `<string>` ::
  17. Add the new CT to the specified pool.
  18. `--snapname` `<string>` ::
  19. The name of the snapshot.
  20. `--storage` `<string>` ::
  21. Target storage for full clone.
  22. `--target` `<string>` ::
  23. Target node. Only allowed if the original VM is on shared storage.
  24. *pct config* `<vmid>` `[OPTIONS]`
  25. Get container configuration.
  26. `<vmid>`: `<integer> (1 - N)` ::
  27. The (unique) ID of the VM.
  28. `--current` `<boolean>` ('default =' `0`)::
  29. Get current values (instead of pending values).
  30. `--snapshot` `<string>` ::
  31. Fetch config values from given snapshot.
  32. *pct console* `<vmid>` `[OPTIONS]`
  33. Launch a console for the specified container.
  34. `<vmid>`: `<integer> (1 - N)` ::
  35. The (unique) ID of the VM.
  36. `--escape` `\^?[a-z]` ('default =' `^a`)::
  37. Escape sequence prefix. For example to use <Ctrl+b q> as the escape sequence pass '^b'.
  38. *pct cpusets*
  39. Print the list of assigned CPU sets.
  40. *pct create* `<vmid> <ostemplate>` `[OPTIONS]`
  41. Create or restore a container.
  42. `<vmid>`: `<integer> (1 - N)` ::
  43. The (unique) ID of the VM.
  44. `<ostemplate>`: `<string>` ::
  45. The OS template or backup file.
  46. `--arch` `<amd64 | arm64 | armhf | i386>` ('default =' `amd64`)::
  47. OS architecture type.
  48. `--bwlimit` `<number> (0 - N)` ('default =' `restore limit from datacenter or storage config`)::
  49. Override I/O bandwidth limit (in KiB/s).
  50. `--cmode` `<console | shell | tty>` ('default =' `tty`)::
  51. 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).
  52. `--console` `<boolean>` ('default =' `1`)::
  53. Attach a console device (/dev/console) to the container.
  54. `--cores` `<integer> (1 - 128)` ::
  55. The number of cores assigned to the container. A container can use all available cores by default.
  56. `--cpulimit` `<number> (0 - 128)` ('default =' `0`)::
  57. Limit of CPU usage.
  58. +
  59. NOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit.
  60. `--cpuunits` `<integer> (0 - 500000)` ('default =' `1024`)::
  61. 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.
  62. +
  63. NOTE: You can disable fair-scheduler configuration by setting this to 0.
  64. `--description` `<string>` ::
  65. Container description. Only used on the configuration web interface.
  66. `--features` `[fuse=<1|0>] [,keyctl=<1|0>] [,mount=<fstype;fstype;...>] [,nesting=<1|0>]` ::
  67. Allow containers access to advanced features.
  68. `--force` `<boolean>` ::
  69. Allow to overwrite existing container.
  70. `--hookscript` `<string>` ::
  71. Script that will be exectued during various steps in the containers lifetime.
  72. `--hostname` `<string>` ::
  73. Set a host name for the container.
  74. `--ignore-unpack-errors` `<boolean>` ::
  75. Ignore errors when extracting the template.
  76. `--lock` `<backup | create | destroyed | disk | fstrim | migrate | mounted | rollback | snapshot | snapshot-delete>` ::
  77. Lock/unlock the VM.
  78. `--memory` `<integer> (16 - N)` ('default =' `512`)::
  79. Amount of RAM for the VM in MB.
  80. `--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>]` ::
  81. Use volume as container mount point.
  82. `--nameserver` `<string>` ::
  83. Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
  84. `--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>]` ::
  85. Specifies network interfaces for the container.
  86. `--onboot` `<boolean>` ('default =' `0`)::
  87. Specifies whether a VM will be started during system bootup.
  88. `--ostype` `<alpine | archlinux | centos | debian | fedora | gentoo | opensuse | ubuntu | unmanaged>` ::
  89. 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.
  90. `--password` `<password>` ::
  91. Sets root password inside container.
  92. `--pool` `<string>` ::
  93. Add the VM to the specified pool.
  94. `--protection` `<boolean>` ('default =' `0`)::
  95. Sets the protection flag of the container. This will prevent the CT or CT's disk remove/update operation.
  96. `--restore` `<boolean>` ::
  97. Mark this as restore task.
  98. `--rootfs` `[volume=]<volume> [,acl=<1|0>] [,mountoptions=<opt[;opt...]>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]` ::
  99. Use volume as container root.
  100. `--searchdomain` `<string>` ::
  101. Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
  102. `--ssh-public-keys` `<filepath>` ::
  103. Setup public SSH keys (one key per line, OpenSSH format).
  104. `--start` `<boolean>` ('default =' `0`)::
  105. Start the CT after its creation finished successfully.
  106. `--startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
  107. 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.
  108. `--storage` `<string>` ('default =' `local`)::
  109. Default Storage.
  110. `--swap` `<integer> (0 - N)` ('default =' `512`)::
  111. Amount of SWAP for the VM in MB.
  112. `--template` `<boolean>` ('default =' `0`)::
  113. Enable/disable Template.
  114. `--tty` `<integer> (0 - 6)` ('default =' `2`)::
  115. Specify the number of tty available to the container
  116. `--unique` `<boolean>` ::
  117. Assign a unique random ethernet address.
  118. +
  119. NOTE: Requires option(s): `restore`
  120. `--unprivileged` `<boolean>` ('default =' `0`)::
  121. Makes the container run as unprivileged user. (Should not be modified manually.)
  122. `--unused[n]` `<string>` ::
  123. Reference to unused volumes. This is used internally, and should not be modified manually.
  124. *pct delsnapshot* `<vmid> <snapname>` `[OPTIONS]`
  125. Delete a LXC snapshot.
  126. `<vmid>`: `<integer> (1 - N)` ::
  127. The (unique) ID of the VM.
  128. `<snapname>`: `<string>` ::
  129. The name of the snapshot.
  130. `--force` `<boolean>` ::
  131. For removal from config file, even if removing disk snapshots fails.
  132. *pct destroy* `<vmid>` `[OPTIONS]`
  133. Destroy the container (also delete all uses files).
  134. `<vmid>`: `<integer> (1 - N)` ::
  135. The (unique) ID of the VM.
  136. `--purge` `<boolean>` ::
  137. Remove vmid from backup cron jobs.
  138. *pct df* `<vmid>`
  139. Get the container's current disk usage.
  140. `<vmid>`: `<integer> (1 - N)` ::
  141. The (unique) ID of the VM.
  142. *pct enter* `<vmid>`
  143. Launch a shell for the specified container.
  144. `<vmid>`: `<integer> (1 - N)` ::
  145. The (unique) ID of the VM.
  146. *pct exec* `<vmid> [<extra-args>]`
  147. Launch a command inside the specified container.
  148. `<vmid>`: `<integer> (1 - N)` ::
  149. The (unique) ID of the VM.
  150. `<extra-args>`: `<array>` ::
  151. Extra arguments as array
  152. *pct fsck* `<vmid>` `[OPTIONS]`
  153. Run a filesystem check (fsck) on a container volume.
  154. `<vmid>`: `<integer> (1 - N)` ::
  155. The (unique) ID of the VM.
  156. `--device` `<mp0 | mp1 | mp10 | mp100 | mp101 | mp102 | mp103 | mp104 | mp105 | mp106 | mp107 | mp108 | mp109 | mp11 | mp110 | mp111 | mp112 | mp113 | mp114 | mp115 | mp116 | mp117 | mp118 | mp119 | mp12 | mp120 | mp121 | mp122 | mp123 | mp124 | mp125 | mp126 | mp127 | mp128 | mp129 | mp13 | mp130 | mp131 | mp132 | mp133 | mp134 | mp135 | mp136 | mp137 | mp138 | mp139 | mp14 | mp140 | mp141 | mp142 | mp143 | mp144 | mp145 | mp146 | mp147 | mp148 | mp149 | mp15 | mp150 | mp151 | mp152 | mp153 | mp154 | mp155 | mp156 | mp157 | mp158 | mp159 | mp16 | mp160 | mp161 | mp162 | mp163 | mp164 | mp165 | mp166 | mp167 | mp168 | mp169 | mp17 | mp170 | mp171 | mp172 | mp173 | mp174 | mp175 | mp176 | mp177 | mp178 | mp179 | mp18 | mp180 | mp181 | mp182 | mp183 | mp184 | mp185 | mp186 | mp187 | mp188 | mp189 | mp19 | mp190 | mp191 | mp192 | mp193 | mp194 | mp195 | mp196 | mp197 | mp198 | mp199 | mp2 | mp20 | mp200 | mp201 | mp202 | mp203 | mp204 | mp205 | mp206 | mp207 | mp208 | mp209 | mp21 | mp210 | mp211 | mp212 | mp213 | mp214 | mp215 | mp216 | mp217 | mp218 | mp219 | mp22 | mp220 | mp221 | mp222 | mp223 | mp224 | mp225 | mp226 | mp227 | mp228 | mp229 | mp23 | mp230 | mp231 | mp232 | mp233 | mp234 | mp235 | mp236 | mp237 | mp238 | mp239 | mp24 | mp240 | mp241 | mp242 | mp243 | mp244 | mp245 | mp246 | mp247 | mp248 | mp249 | mp25 | mp250 | mp251 | mp252 | mp253 | mp254 | mp255 | mp26 | mp27 | mp28 | mp29 | mp3 | mp30 | mp31 | mp32 | mp33 | mp34 | mp35 | mp36 | mp37 | mp38 | mp39 | mp4 | mp40 | mp41 | mp42 | mp43 | mp44 | mp45 | mp46 | mp47 | mp48 | mp49 | mp5 | mp50 | mp51 | mp52 | mp53 | mp54 | mp55 | mp56 | mp57 | mp58 | mp59 | mp6 | mp60 | mp61 | mp62 | mp63 | mp64 | mp65 | mp66 | mp67 | mp68 | mp69 | mp7 | mp70 | mp71 | mp72 | mp73 | mp74 | mp75 | mp76 | mp77 | mp78 | mp79 | mp8 | mp80 | mp81 | mp82 | mp83 | mp84 | mp85 | mp86 | mp87 | mp88 | mp89 | mp9 | mp90 | mp91 | mp92 | mp93 | mp94 | mp95 | mp96 | mp97 | mp98 | mp99 | rootfs>` ::
  157. A volume on which to run the filesystem check
  158. `--force` `<boolean>` ('default =' `0`)::
  159. Force checking, even if the filesystem seems clean
  160. *pct fstrim* `<vmid>`
  161. Run fstrim on a chosen CT and its mountpoints.
  162. `<vmid>`: `<integer> (1 - N)` ::
  163. The (unique) ID of the VM.
  164. *pct help* `[OPTIONS]`
  165. Get help about specified command.
  166. `--extra-args` `<array>` ::
  167. Shows help for a specific command
  168. `--verbose` `<boolean>` ::
  169. Verbose output format.
  170. *pct list*
  171. LXC container index (per node).
  172. *pct listsnapshot* `<vmid>`
  173. List all snapshots.
  174. `<vmid>`: `<integer> (1 - N)` ::
  175. The (unique) ID of the VM.
  176. *pct migrate* `<vmid> <target>` `[OPTIONS]`
  177. Migrate the container to another node. Creates a new migration task.
  178. `<vmid>`: `<integer> (1 - N)` ::
  179. The (unique) ID of the VM.
  180. `<target>`: `<string>` ::
  181. Target node.
  182. `--bwlimit` `<number> (0 - N)` ('default =' `migrate limit from datacenter or storage config`)::
  183. Override I/O bandwidth limit (in KiB/s).
  184. `--force` `<boolean>` ::
  185. Force migration despite local bind / device mounts. NOTE: deprecated, use 'shared' property of mount point instead.
  186. `--online` `<boolean>` ::
  187. Use online/live migration.
  188. `--restart` `<boolean>` ::
  189. Use restart migration
  190. `--timeout` `<integer>` ('default =' `180`)::
  191. Timeout in seconds for shutdown for restart migration
  192. *pct mount* `<vmid>`
  193. Mount the container's filesystem on the host. This will hold a lock on the
  194. container and is meant for emergency maintenance only as it will prevent
  195. further operations on the container other than start and stop.
  196. `<vmid>`: `<integer> (1 - N)` ::
  197. The (unique) ID of the VM.
  198. *pct move_volume* `<vmid> <volume> <storage>` `[OPTIONS]`
  199. Move a rootfs-/mp-volume to a different storage
  200. `<vmid>`: `<integer> (1 - N)` ::
  201. The (unique) ID of the VM.
  202. `<volume>`: `<mp0 | mp1 | mp10 | mp100 | mp101 | mp102 | mp103 | mp104 | mp105 | mp106 | mp107 | mp108 | mp109 | mp11 | mp110 | mp111 | mp112 | mp113 | mp114 | mp115 | mp116 | mp117 | mp118 | mp119 | mp12 | mp120 | mp121 | mp122 | mp123 | mp124 | mp125 | mp126 | mp127 | mp128 | mp129 | mp13 | mp130 | mp131 | mp132 | mp133 | mp134 | mp135 | mp136 | mp137 | mp138 | mp139 | mp14 | mp140 | mp141 | mp142 | mp143 | mp144 | mp145 | mp146 | mp147 | mp148 | mp149 | mp15 | mp150 | mp151 | mp152 | mp153 | mp154 | mp155 | mp156 | mp157 | mp158 | mp159 | mp16 | mp160 | mp161 | mp162 | mp163 | mp164 | mp165 | mp166 | mp167 | mp168 | mp169 | mp17 | mp170 | mp171 | mp172 | mp173 | mp174 | mp175 | mp176 | mp177 | mp178 | mp179 | mp18 | mp180 | mp181 | mp182 | mp183 | mp184 | mp185 | mp186 | mp187 | mp188 | mp189 | mp19 | mp190 | mp191 | mp192 | mp193 | mp194 | mp195 | mp196 | mp197 | mp198 | mp199 | mp2 | mp20 | mp200 | mp201 | mp202 | mp203 | mp204 | mp205 | mp206 | mp207 | mp208 | mp209 | mp21 | mp210 | mp211 | mp212 | mp213 | mp214 | mp215 | mp216 | mp217 | mp218 | mp219 | mp22 | mp220 | mp221 | mp222 | mp223 | mp224 | mp225 | mp226 | mp227 | mp228 | mp229 | mp23 | mp230 | mp231 | mp232 | mp233 | mp234 | mp235 | mp236 | mp237 | mp238 | mp239 | mp24 | mp240 | mp241 | mp242 | mp243 | mp244 | mp245 | mp246 | mp247 | mp248 | mp249 | mp25 | mp250 | mp251 | mp252 | mp253 | mp254 | mp255 | mp26 | mp27 | mp28 | mp29 | mp3 | mp30 | mp31 | mp32 | mp33 | mp34 | mp35 | mp36 | mp37 | mp38 | mp39 | mp4 | mp40 | mp41 | mp42 | mp43 | mp44 | mp45 | mp46 | mp47 | mp48 | mp49 | mp5 | mp50 | mp51 | mp52 | mp53 | mp54 | mp55 | mp56 | mp57 | mp58 | mp59 | mp6 | mp60 | mp61 | mp62 | mp63 | mp64 | mp65 | mp66 | mp67 | mp68 | mp69 | mp7 | mp70 | mp71 | mp72 | mp73 | mp74 | mp75 | mp76 | mp77 | mp78 | mp79 | mp8 | mp80 | mp81 | mp82 | mp83 | mp84 | mp85 | mp86 | mp87 | mp88 | mp89 | mp9 | mp90 | mp91 | mp92 | mp93 | mp94 | mp95 | mp96 | mp97 | mp98 | mp99 | rootfs>` ::
  203. Volume which will be moved.
  204. `<storage>`: `<string>` ::
  205. Target Storage.
  206. `--bwlimit` `<number> (0 - N)` ('default =' `clone limit from datacenter or storage config`)::
  207. Override I/O bandwidth limit (in KiB/s).
  208. `--delete` `<boolean>` ('default =' `0`)::
  209. Delete the original volume after successful copy. By default the original is kept as an unused volume entry.
  210. `--digest` `<string>` ::
  211. Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
  212. *pct pending* `<vmid>`
  213. Get container configuration, including pending changes.
  214. `<vmid>`: `<integer> (1 - N)` ::
  215. The (unique) ID of the VM.
  216. *pct pull* `<vmid> <path> <destination>` `[OPTIONS]`
  217. Copy a file from the container to the local system.
  218. `<vmid>`: `<integer> (1 - N)` ::
  219. The (unique) ID of the VM.
  220. `<path>`: `<string>` ::
  221. Path to a file inside the container to pull.
  222. `<destination>`: `<string>` ::
  223. Destination
  224. `--group` `<string>` ::
  225. Owner group name or id.
  226. `--perms` `<string>` ::
  227. File permissions to use (octal by default, prefix with '0x' for hexadecimal).
  228. `--user` `<string>` ::
  229. Owner user name or id.
  230. *pct push* `<vmid> <file> <destination>` `[OPTIONS]`
  231. Copy a local file to the container.
  232. `<vmid>`: `<integer> (1 - N)` ::
  233. The (unique) ID of the VM.
  234. `<file>`: `<string>` ::
  235. Path to a local file.
  236. `<destination>`: `<string>` ::
  237. Destination inside the container to write to.
  238. `--group` `<string>` ::
  239. Owner group name or id. When using a name it must exist inside the container.
  240. `--perms` `<string>` ::
  241. File permissions to use (octal by default, prefix with '0x' for hexadecimal).
  242. `--user` `<string>` ::
  243. Owner user name or id. When using a name it must exist inside the container.
  244. *pct rescan* `[OPTIONS]`
  245. Rescan all storages and update disk sizes and unused disk images.
  246. `--dryrun` `<boolean>` ('default =' `0`)::
  247. Do not actually write changes out to conifg.
  248. `--vmid` `<integer> (1 - N)` ::
  249. The (unique) ID of the VM.
  250. *pct resize* `<vmid> <disk> <size>` `[OPTIONS]`
  251. Resize a container mount point.
  252. `<vmid>`: `<integer> (1 - N)` ::
  253. The (unique) ID of the VM.
  254. `<disk>`: `<mp0 | mp1 | mp10 | mp100 | mp101 | mp102 | mp103 | mp104 | mp105 | mp106 | mp107 | mp108 | mp109 | mp11 | mp110 | mp111 | mp112 | mp113 | mp114 | mp115 | mp116 | mp117 | mp118 | mp119 | mp12 | mp120 | mp121 | mp122 | mp123 | mp124 | mp125 | mp126 | mp127 | mp128 | mp129 | mp13 | mp130 | mp131 | mp132 | mp133 | mp134 | mp135 | mp136 | mp137 | mp138 | mp139 | mp14 | mp140 | mp141 | mp142 | mp143 | mp144 | mp145 | mp146 | mp147 | mp148 | mp149 | mp15 | mp150 | mp151 | mp152 | mp153 | mp154 | mp155 | mp156 | mp157 | mp158 | mp159 | mp16 | mp160 | mp161 | mp162 | mp163 | mp164 | mp165 | mp166 | mp167 | mp168 | mp169 | mp17 | mp170 | mp171 | mp172 | mp173 | mp174 | mp175 | mp176 | mp177 | mp178 | mp179 | mp18 | mp180 | mp181 | mp182 | mp183 | mp184 | mp185 | mp186 | mp187 | mp188 | mp189 | mp19 | mp190 | mp191 | mp192 | mp193 | mp194 | mp195 | mp196 | mp197 | mp198 | mp199 | mp2 | mp20 | mp200 | mp201 | mp202 | mp203 | mp204 | mp205 | mp206 | mp207 | mp208 | mp209 | mp21 | mp210 | mp211 | mp212 | mp213 | mp214 | mp215 | mp216 | mp217 | mp218 | mp219 | mp22 | mp220 | mp221 | mp222 | mp223 | mp224 | mp225 | mp226 | mp227 | mp228 | mp229 | mp23 | mp230 | mp231 | mp232 | mp233 | mp234 | mp235 | mp236 | mp237 | mp238 | mp239 | mp24 | mp240 | mp241 | mp242 | mp243 | mp244 | mp245 | mp246 | mp247 | mp248 | mp249 | mp25 | mp250 | mp251 | mp252 | mp253 | mp254 | mp255 | mp26 | mp27 | mp28 | mp29 | mp3 | mp30 | mp31 | mp32 | mp33 | mp34 | mp35 | mp36 | mp37 | mp38 | mp39 | mp4 | mp40 | mp41 | mp42 | mp43 | mp44 | mp45 | mp46 | mp47 | mp48 | mp49 | mp5 | mp50 | mp51 | mp52 | mp53 | mp54 | mp55 | mp56 | mp57 | mp58 | mp59 | mp6 | mp60 | mp61 | mp62 | mp63 | mp64 | mp65 | mp66 | mp67 | mp68 | mp69 | mp7 | mp70 | mp71 | mp72 | mp73 | mp74 | mp75 | mp76 | mp77 | mp78 | mp79 | mp8 | mp80 | mp81 | mp82 | mp83 | mp84 | mp85 | mp86 | mp87 | mp88 | mp89 | mp9 | mp90 | mp91 | mp92 | mp93 | mp94 | mp95 | mp96 | mp97 | mp98 | mp99 | rootfs>` ::
  255. The disk you want to resize.
  256. `<size>`: `\+?\d+(\.\d+)?[KMGT]?` ::
  257. The new size. With the '+' sign the value is added to the actual size of the volume and without it, the value is taken as an absolute one. Shrinking disk size is not supported.
  258. `--digest` `<string>` ::
  259. Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
  260. *pct restore* `<vmid> <ostemplate>` `[OPTIONS]`
  261. Create or restore a container.
  262. `<vmid>`: `<integer> (1 - N)` ::
  263. The (unique) ID of the VM.
  264. `<ostemplate>`: `<string>` ::
  265. The OS template or backup file.
  266. `--arch` `<amd64 | arm64 | armhf | i386>` ('default =' `amd64`)::
  267. OS architecture type.
  268. `--bwlimit` `<number> (0 - N)` ('default =' `restore limit from datacenter or storage config`)::
  269. Override I/O bandwidth limit (in KiB/s).
  270. `--cmode` `<console | shell | tty>` ('default =' `tty`)::
  271. 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).
  272. `--console` `<boolean>` ('default =' `1`)::
  273. Attach a console device (/dev/console) to the container.
  274. `--cores` `<integer> (1 - 128)` ::
  275. The number of cores assigned to the container. A container can use all available cores by default.
  276. `--cpulimit` `<number> (0 - 128)` ('default =' `0`)::
  277. Limit of CPU usage.
  278. +
  279. NOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit.
  280. `--cpuunits` `<integer> (0 - 500000)` ('default =' `1024`)::
  281. 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.
  282. +
  283. NOTE: You can disable fair-scheduler configuration by setting this to 0.
  284. `--description` `<string>` ::
  285. Container description. Only used on the configuration web interface.
  286. `--features` `[fuse=<1|0>] [,keyctl=<1|0>] [,mount=<fstype;fstype;...>] [,nesting=<1|0>]` ::
  287. Allow containers access to advanced features.
  288. `--force` `<boolean>` ::
  289. Allow to overwrite existing container.
  290. `--hookscript` `<string>` ::
  291. Script that will be exectued during various steps in the containers lifetime.
  292. `--hostname` `<string>` ::
  293. Set a host name for the container.
  294. `--ignore-unpack-errors` `<boolean>` ::
  295. Ignore errors when extracting the template.
  296. `--lock` `<backup | create | destroyed | disk | fstrim | migrate | mounted | rollback | snapshot | snapshot-delete>` ::
  297. Lock/unlock the VM.
  298. `--memory` `<integer> (16 - N)` ('default =' `512`)::
  299. Amount of RAM for the VM in MB.
  300. `--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>]` ::
  301. Use volume as container mount point.
  302. `--nameserver` `<string>` ::
  303. Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
  304. `--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>]` ::
  305. Specifies network interfaces for the container.
  306. `--onboot` `<boolean>` ('default =' `0`)::
  307. Specifies whether a VM will be started during system bootup.
  308. `--ostype` `<alpine | archlinux | centos | debian | fedora | gentoo | opensuse | ubuntu | unmanaged>` ::
  309. 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.
  310. `--password` `<password>` ::
  311. Sets root password inside container.
  312. `--pool` `<string>` ::
  313. Add the VM to the specified pool.
  314. `--protection` `<boolean>` ('default =' `0`)::
  315. Sets the protection flag of the container. This will prevent the CT or CT's disk remove/update operation.
  316. `--rootfs` `[volume=]<volume> [,acl=<1|0>] [,mountoptions=<opt[;opt...]>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]` ::
  317. Use volume as container root.
  318. `--searchdomain` `<string>` ::
  319. Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
  320. `--ssh-public-keys` `<filepath>` ::
  321. Setup public SSH keys (one key per line, OpenSSH format).
  322. `--start` `<boolean>` ('default =' `0`)::
  323. Start the CT after its creation finished successfully.
  324. `--startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
  325. 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.
  326. `--storage` `<string>` ('default =' `local`)::
  327. Default Storage.
  328. `--swap` `<integer> (0 - N)` ('default =' `512`)::
  329. Amount of SWAP for the VM in MB.
  330. `--template` `<boolean>` ('default =' `0`)::
  331. Enable/disable Template.
  332. `--tty` `<integer> (0 - 6)` ('default =' `2`)::
  333. Specify the number of tty available to the container
  334. `--unique` `<boolean>` ::
  335. Assign a unique random ethernet address.
  336. +
  337. NOTE: Requires option(s): `restore`
  338. `--unprivileged` `<boolean>` ('default =' `0`)::
  339. Makes the container run as unprivileged user. (Should not be modified manually.)
  340. `--unused[n]` `<string>` ::
  341. Reference to unused volumes. This is used internally, and should not be modified manually.
  342. *pct resume* `<vmid>`
  343. Resume the container.
  344. `<vmid>`: `<integer> (1 - N)` ::
  345. The (unique) ID of the VM.
  346. *pct rollback* `<vmid> <snapname>`
  347. Rollback LXC state to specified snapshot.
  348. `<vmid>`: `<integer> (1 - N)` ::
  349. The (unique) ID of the VM.
  350. `<snapname>`: `<string>` ::
  351. The name of the snapshot.
  352. *pct set* `<vmid>` `[OPTIONS]`
  353. Set container options.
  354. `<vmid>`: `<integer> (1 - N)` ::
  355. The (unique) ID of the VM.
  356. `--arch` `<amd64 | arm64 | armhf | i386>` ('default =' `amd64`)::
  357. OS architecture type.
  358. `--cmode` `<console | shell | tty>` ('default =' `tty`)::
  359. 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).
  360. `--console` `<boolean>` ('default =' `1`)::
  361. Attach a console device (/dev/console) to the container.
  362. `--cores` `<integer> (1 - 128)` ::
  363. The number of cores assigned to the container. A container can use all available cores by default.
  364. `--cpulimit` `<number> (0 - 128)` ('default =' `0`)::
  365. Limit of CPU usage.
  366. +
  367. NOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit.
  368. `--cpuunits` `<integer> (0 - 500000)` ('default =' `1024`)::
  369. 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.
  370. +
  371. NOTE: You can disable fair-scheduler configuration by setting this to 0.
  372. `--delete` `<string>` ::
  373. A list of settings you want to delete.
  374. `--description` `<string>` ::
  375. Container description. Only used on the configuration web interface.
  376. `--digest` `<string>` ::
  377. Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
  378. `--features` `[fuse=<1|0>] [,keyctl=<1|0>] [,mount=<fstype;fstype;...>] [,nesting=<1|0>]` ::
  379. Allow containers access to advanced features.
  380. `--hookscript` `<string>` ::
  381. Script that will be exectued during various steps in the containers lifetime.
  382. `--hostname` `<string>` ::
  383. Set a host name for the container.
  384. `--lock` `<backup | create | destroyed | disk | fstrim | migrate | mounted | rollback | snapshot | snapshot-delete>` ::
  385. Lock/unlock the VM.
  386. `--memory` `<integer> (16 - N)` ('default =' `512`)::
  387. Amount of RAM for the VM in MB.
  388. `--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>]` ::
  389. Use volume as container mount point.
  390. `--nameserver` `<string>` ::
  391. Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
  392. `--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>]` ::
  393. Specifies network interfaces for the container.
  394. `--onboot` `<boolean>` ('default =' `0`)::
  395. Specifies whether a VM will be started during system bootup.
  396. `--ostype` `<alpine | archlinux | centos | debian | fedora | gentoo | opensuse | ubuntu | unmanaged>` ::
  397. 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.
  398. `--protection` `<boolean>` ('default =' `0`)::
  399. Sets the protection flag of the container. This will prevent the CT or CT's disk remove/update operation.
  400. `--revert` `<string>` ::
  401. Revert a pending change.
  402. `--rootfs` `[volume=]<volume> [,acl=<1|0>] [,mountoptions=<opt[;opt...]>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]` ::
  403. Use volume as container root.
  404. `--searchdomain` `<string>` ::
  405. Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
  406. `--startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
  407. 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.
  408. `--swap` `<integer> (0 - N)` ('default =' `512`)::
  409. Amount of SWAP for the VM in MB.
  410. `--template` `<boolean>` ('default =' `0`)::
  411. Enable/disable Template.
  412. `--tty` `<integer> (0 - 6)` ('default =' `2`)::
  413. Specify the number of tty available to the container
  414. `--unprivileged` `<boolean>` ('default =' `0`)::
  415. Makes the container run as unprivileged user. (Should not be modified manually.)
  416. `--unused[n]` `<string>` ::
  417. Reference to unused volumes. This is used internally, and should not be modified manually.
  418. *pct shutdown* `<vmid>` `[OPTIONS]`
  419. Shutdown the container. This will trigger a clean shutdown of the
  420. container, see lxc-stop(1) for details.
  421. `<vmid>`: `<integer> (1 - N)` ::
  422. The (unique) ID of the VM.
  423. `--forceStop` `<boolean>` ('default =' `0`)::
  424. Make sure the Container stops.
  425. `--timeout` `<integer> (0 - N)` ('default =' `60`)::
  426. Wait maximal timeout seconds.
  427. *pct snapshot* `<vmid> <snapname>` `[OPTIONS]`
  428. Snapshot a container.
  429. `<vmid>`: `<integer> (1 - N)` ::
  430. The (unique) ID of the VM.
  431. `<snapname>`: `<string>` ::
  432. The name of the snapshot.
  433. `--description` `<string>` ::
  434. A textual description or comment.
  435. *pct start* `<vmid>` `[OPTIONS]`
  436. Start the container.
  437. `<vmid>`: `<integer> (1 - N)` ::
  438. The (unique) ID of the VM.
  439. `--skiplock` `<boolean>` ::
  440. Ignore locks - only root is allowed to use this option.
  441. *pct status* `<vmid>` `[OPTIONS]`
  442. Show CT status.
  443. `<vmid>`: `<integer> (1 - N)` ::
  444. The (unique) ID of the VM.
  445. `--verbose` `<boolean>` ::
  446. Verbose output format
  447. *pct stop* `<vmid>` `[OPTIONS]`
  448. Stop the container. This will abruptly stop all processes running in the
  449. container.
  450. `<vmid>`: `<integer> (1 - N)` ::
  451. The (unique) ID of the VM.
  452. `--skiplock` `<boolean>` ::
  453. Ignore locks - only root is allowed to use this option.
  454. *pct suspend* `<vmid>`
  455. Suspend the container.
  456. `<vmid>`: `<integer> (1 - N)` ::
  457. The (unique) ID of the VM.
  458. *pct template* `<vmid>`
  459. Create a Template.
  460. `<vmid>`: `<integer> (1 - N)` ::
  461. The (unique) ID of the VM.
  462. *pct unlock* `<vmid>`
  463. Unlock the VM.
  464. `<vmid>`: `<integer> (1 - N)` ::
  465. The (unique) ID of the VM.
  466. *pct unmount* `<vmid>`
  467. Unmount the container's filesystem.
  468. `<vmid>`: `<integer> (1 - N)` ::
  469. The (unique) ID of the VM.