]> git.proxmox.com Git - pve-docs.git/blame - pct.1-synopsis.adoc
Change iscsiscan invocation in pve-storage-iscsi
[pve-docs.git] / pct.1-synopsis.adoc
CommitLineData
1f554f76
DM
1*pct* `<COMMAND> [ARGS] [OPTIONS]`
2
27a7acb2 3*pct clone* `<vmid> <newid>` `[OPTIONS]`
9b3e4991
DM
4
5Create a container clone/copy
6
013dc89f 7`<vmid>`: `<integer> (1 - N)` ::
9b3e4991
DM
8
9The (unique) ID of the VM.
10
013dc89f 11`<newid>`: `<integer> (1 - N)` ::
9b3e4991
DM
12
13VMID for the clone.
14
2489d6df 15`--description` `<string>` ::
9b3e4991
DM
16
17Description for the new CT.
18
27a7acb2 19`--full` `<boolean>` ::
9b3e4991 20
27a7acb2 21Create 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.
9b3e4991 22
2489d6df 23`--hostname` `<string>` ::
9b3e4991
DM
24
25Set a hostname for the new CT.
26
2489d6df 27`--pool` `<string>` ::
9b3e4991
DM
28
29Add the new CT to the specified pool.
30
2489d6df 31`--snapname` `<string>` ::
9b3e4991
DM
32
33The name of the snapshot.
34
2489d6df 35`--storage` `<string>` ::
9b3e4991
DM
36
37Target storage for full clone.
27a7acb2
DM
38
39`--target` `<string>` ::
40
41Target node. Only allowed if the original VM is on shared storage.
9b3e4991 42
1f554f76
DM
43*pct config* `<vmid>`
44
45Get container configuration.
46
013dc89f 47`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
48
49The (unique) ID of the VM.
50
4d47f125 51*pct console* `<vmid>` `[OPTIONS]`
1f554f76
DM
52
53Launch a console for the specified container.
54
013dc89f 55`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
56
57The (unique) ID of the VM.
58
4d47f125
TL
59`--escape` `\^?[a-z]` ('default =' `^a`)::
60
61Escape sequence prefix. For example to use <Ctrl+b q> as the escape sequence pass '^b'.
62
de0983cb
DM
63*pct cpusets*
64
65Print the list of assigned CPU sets.
66
1f554f76
DM
67*pct create* `<vmid> <ostemplate>` `[OPTIONS]`
68
69Create or restore a container.
70
013dc89f 71`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
72
73The (unique) ID of the VM.
74
013dc89f 75`<ostemplate>`: `<string>` ::
1f554f76
DM
76
77The OS template or backup file.
78
4d47f125 79`--arch` `<amd64 | arm64 | armhf | i386>` ('default =' `amd64`)::
1f554f76
DM
80
81OS architecture type.
82
27a7acb2
DM
83`--bwlimit` `<number> (0 - N)` ::
84
85Override i/o bandwidth limit (in KiB/s).
86
2489d6df 87`--cmode` `<console | shell | tty>` ('default =' `tty`)::
1f554f76 88
c2993fe5 89Console 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).
1f554f76 90
2489d6df 91`--console` `<boolean>` ('default =' `1`)::
1f554f76
DM
92
93Attach a console device (/dev/console) to the container.
94
2489d6df 95`--cores` `<integer> (1 - 128)` ::
de0983cb
DM
96
97The number of cores assigned to the container. A container can use all available cores by default.
98
2489d6df 99`--cpulimit` `<number> (0 - 128)` ('default =' `0`)::
1f554f76 100
9b3e4991
DM
101Limit of CPU usage.
102+
c2993fe5 103NOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit.
1f554f76 104
2489d6df 105`--cpuunits` `<integer> (0 - 500000)` ('default =' `1024`)::
1f554f76 106
c2993fe5 107CPU 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.
9b3e4991 108+
1f554f76
DM
109NOTE: You can disable fair-scheduler configuration by setting this to 0.
110
2489d6df 111`--description` `<string>` ::
1f554f76
DM
112
113Container description. Only used on the configuration web interface.
114
e2d681b3 115`--features` `[fuse=<1|0>] [,keyctl=<1|0>] [,mount=<fstype;fstype;...>] [,nesting=<1|0>]` ::
4d47f125
TL
116
117Allow containers access to advanced features.
118
2489d6df 119`--force` `<boolean>` ::
1f554f76
DM
120
121Allow to overwrite existing container.
122
2489d6df 123`--hostname` `<string>` ::
1f554f76
DM
124
125Set a host name for the container.
126
2489d6df 127`--ignore-unpack-errors` `<boolean>` ::
1f554f76
DM
128
129Ignore errors when extracting the template.
130
4d47f125 131`--lock` `<backup | disk | migrate | mounted | rollback | snapshot | snapshot-delete>` ::
1f554f76
DM
132
133Lock/unlock the VM.
134
2489d6df 135`--memory` `<integer> (16 - N)` ('default =' `512`)::
1f554f76
DM
136
137Amount of RAM for the VM in MB.
138
2489d6df 139`--mp[n]` `[volume=]<volume> ,mp=<Path> [,acl=<1|0>] [,backup=<1|0>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]` ::
1f554f76 140
c2993fe5 141Use volume as container mount point.
1f554f76 142
2489d6df 143`--nameserver` `<string>` ::
1f554f76 144
c2993fe5 145Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
1f554f76 146
2489d6df 147`--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>]` ::
1f554f76
DM
148
149Specifies network interfaces for the container.
150
2489d6df 151`--onboot` `<boolean>` ('default =' `0`)::
1f554f76
DM
152
153Specifies whether a VM will be started during system bootup.
154
2489d6df 155`--ostype` `<alpine | archlinux | centos | debian | fedora | gentoo | opensuse | ubuntu | unmanaged>` ::
1f554f76 156
c2993fe5 157OS 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.
1f554f76 158
5da3d723 159`--password` `<password>` ::
1f554f76
DM
160
161Sets root password inside container.
162
2489d6df 163`--pool` `<string>` ::
1f554f76
DM
164
165Add the VM to the specified pool.
166
2489d6df 167`--protection` `<boolean>` ('default =' `0`)::
1f554f76 168
c2993fe5 169Sets the protection flag of the container. This will prevent the CT or CT's disk remove/update operation.
1f554f76 170
2489d6df 171`--restore` `<boolean>` ::
1f554f76
DM
172
173Mark this as restore task.
174
2489d6df 175`--rootfs` `[volume=]<volume> [,acl=<1|0>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]` ::
1f554f76
DM
176
177Use volume as container root.
178
2489d6df 179`--searchdomain` `<string>` ::
1f554f76 180
c2993fe5 181Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
9b3e4991 182
2489d6df 183`--ssh-public-keys` `<filepath>` ::
9b3e4991
DM
184
185Setup public SSH keys (one key per line, OpenSSH format).
1f554f76 186
5da3d723
TL
187`--start` `<boolean>` ('default =' `0`)::
188
189Start the CT after its creation finished successfully.
190
2489d6df 191`--startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
1f554f76 192
c2993fe5 193Startup 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.
1f554f76 194
2489d6df 195`--storage` `<string>` ('default =' `local`)::
1f554f76
DM
196
197Default Storage.
198
2489d6df 199`--swap` `<integer> (0 - N)` ('default =' `512`)::
1f554f76
DM
200
201Amount of SWAP for the VM in MB.
202
2489d6df 203`--template` `<boolean>` ('default =' `0`)::
1f554f76
DM
204
205Enable/disable Template.
206
2489d6df 207`--tty` `<integer> (0 - 6)` ('default =' `2`)::
1f554f76
DM
208
209Specify the number of tty available to the container
210
2489d6df 211`--unprivileged` `<boolean>` ('default =' `0`)::
1f554f76 212
c2993fe5 213Makes the container run as unprivileged user. (Should not be modified manually.)
1f554f76 214
2489d6df 215`--unused[n]` `<string>` ::
1f554f76 216
c2993fe5 217Reference to unused volumes. This is used internally, and should not be modified manually.
1f554f76 218
1f554f76
DM
219*pct delsnapshot* `<vmid> <snapname>` `[OPTIONS]`
220
221Delete a LXC snapshot.
222
013dc89f 223`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
224
225The (unique) ID of the VM.
226
013dc89f 227`<snapname>`: `<string>` ::
1f554f76
DM
228
229The name of the snapshot.
230
2489d6df 231`--force` `<boolean>` ::
1f554f76
DM
232
233For removal from config file, even if removing disk snapshots fails.
234
1f554f76
DM
235*pct destroy* `<vmid>`
236
237Destroy the container (also delete all uses files).
238
013dc89f 239`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
240
241The (unique) ID of the VM.
242
2c0dde61
DM
243*pct df* `<vmid>`
244
245Get the container's current disk usage.
246
013dc89f 247`<vmid>`: `<integer> (1 - N)` ::
2c0dde61
DM
248
249The (unique) ID of the VM.
250
1f554f76
DM
251*pct enter* `<vmid>`
252
253Launch a shell for the specified container.
254
013dc89f 255`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
256
257The (unique) ID of the VM.
258
1f554f76
DM
259*pct exec* `<vmid> [<extra-args>]`
260
261Launch a command inside the specified container.
262
013dc89f 263`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
264
265The (unique) ID of the VM.
266
013dc89f 267`<extra-args>`: `<array>` ::
1f554f76
DM
268
269Extra arguments as array
270
1f554f76
DM
271*pct fsck* `<vmid>` `[OPTIONS]`
272
273Run a filesystem check (fsck) on a container volume.
274
013dc89f 275`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
276
277The (unique) ID of the VM.
278
4d47f125 279`--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>` ::
1f554f76
DM
280
281A volume on which to run the filesystem check
282
2489d6df 283`--force` `<boolean>` ('default =' `0`)::
1f554f76
DM
284
285Force checking, even if the filesystem seems clean
286
35a75dd3 287*pct help* `[OPTIONS]`
1f554f76
DM
288
289Get help about specified command.
290
35a75dd3 291`--extra-args` `<array>` ::
1f554f76 292
35a75dd3 293Shows help for a specific command
1f554f76 294
2489d6df 295`--verbose` `<boolean>` ::
1f554f76
DM
296
297Verbose output format.
298
1f554f76
DM
299*pct list*
300
301LXC container index (per node).
302
1f554f76
DM
303*pct listsnapshot* `<vmid>`
304
305List all snapshots.
306
013dc89f 307`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
308
309The (unique) ID of the VM.
310
1f554f76
DM
311*pct migrate* `<vmid> <target>` `[OPTIONS]`
312
313Migrate the container to another node. Creates a new migration task.
314
013dc89f 315`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
316
317The (unique) ID of the VM.
318
013dc89f 319`<target>`: `<string>` ::
1f554f76
DM
320
321Target node.
322
2489d6df 323`--force` `<boolean>` ::
9b3e4991 324
de0983cb 325Force migration despite local bind / device mounts. NOTE: deprecated, use 'shared' property of mount point instead.
9b3e4991 326
2489d6df 327`--online` `<boolean>` ::
1f554f76
DM
328
329Use online/live migration.
330
2489d6df 331`--restart` `<boolean>` ::
6875b729
DM
332
333Use restart migration
334
2489d6df 335`--timeout` `<integer>` ('default =' `180`)::
6875b729
DM
336
337Timeout in seconds for shutdown for restart migration
338
9b3e4991
DM
339*pct mount* `<vmid>`
340
341Mount the container's filesystem on the host. This will hold a lock on the
342container and is meant for emergency maintenance only as it will prevent
343further operations on the container other than start and stop.
344
013dc89f 345`<vmid>`: `<integer> (1 - N)` ::
9b3e4991
DM
346
347The (unique) ID of the VM.
348
27a7acb2
DM
349*pct move_volume* `<vmid> <volume> <storage>` `[OPTIONS]`
350
351Move a rootfs-/mp-volume to a different storage
352
353`<vmid>`: `<integer> (1 - N)` ::
354
355The (unique) ID of the VM.
356
4d47f125 357`<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>` ::
27a7acb2
DM
358
359Volume which will be moved.
360
361`<storage>`: `<string>` ::
362
363Target Storage.
364
365`--delete` `<boolean>` ('default =' `0`)::
366
367Delete the original volume after successful copy. By default the original is kept as an unused volume entry.
368
369`--digest` `<string>` ::
370
371Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
372
9b3e4991
DM
373*pct pull* `<vmid> <path> <destination>` `[OPTIONS]`
374
375Copy a file from the container to the local system.
376
013dc89f 377`<vmid>`: `<integer> (1 - N)` ::
9b3e4991
DM
378
379The (unique) ID of the VM.
380
013dc89f 381`<path>`: `<string>` ::
9b3e4991
DM
382
383Path to a file inside the container to pull.
384
013dc89f 385`<destination>`: `<string>` ::
9b3e4991
DM
386
387Destination
388
2489d6df 389`--group` `<string>` ::
9b3e4991
DM
390
391Owner group name or id.
392
2489d6df 393`--perms` `<string>` ::
9b3e4991 394
c2993fe5 395File permissions to use (octal by default, prefix with '0x' for hexadecimal).
9b3e4991 396
2489d6df 397`--user` `<string>` ::
9b3e4991
DM
398
399Owner user name or id.
400
9b3e4991
DM
401*pct push* `<vmid> <file> <destination>` `[OPTIONS]`
402
403Copy a local file to the container.
404
013dc89f 405`<vmid>`: `<integer> (1 - N)` ::
9b3e4991
DM
406
407The (unique) ID of the VM.
408
013dc89f 409`<file>`: `<string>` ::
9b3e4991
DM
410
411Path to a local file.
412
013dc89f 413`<destination>`: `<string>` ::
9b3e4991
DM
414
415Destination inside the container to write to.
416
2489d6df 417`--group` `<string>` ::
9b3e4991 418
c2993fe5 419Owner group name or id. When using a name it must exist inside the container.
9b3e4991 420
2489d6df 421`--perms` `<string>` ::
9b3e4991 422
c2993fe5 423File permissions to use (octal by default, prefix with '0x' for hexadecimal).
9b3e4991 424
2489d6df 425`--user` `<string>` ::
9b3e4991 426
c2993fe5 427Owner user name or id. When using a name it must exist inside the container.
9b3e4991 428
e2d681b3
TL
429*pct rescan* `[OPTIONS]`
430
431Rescan all storages and update disk sizes and unused disk images.
432
433`--dryrun` `<boolean>` ('default =' `0`)::
434
435Do not actually write changes out to conifg.
436
437`--vmid` `<integer> (1 - N)` ::
438
439The (unique) ID of the VM.
440
1f554f76
DM
441*pct resize* `<vmid> <disk> <size>` `[OPTIONS]`
442
de0983cb 443Resize a container mount point.
1f554f76 444
013dc89f 445`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
446
447The (unique) ID of the VM.
448
4d47f125 449`<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>` ::
1f554f76
DM
450
451The disk you want to resize.
452
013dc89f 453`<size>`: `\+?\d+(\.\d+)?[KMGT]?` ::
1f554f76 454
c2993fe5 455The 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.
1f554f76 456
2489d6df 457`--digest` `<string>` ::
1f554f76 458
c2993fe5 459Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
1f554f76 460
1f554f76
DM
461*pct restore* `<vmid> <ostemplate>` `[OPTIONS]`
462
463Create or restore a container.
464
013dc89f 465`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
466
467The (unique) ID of the VM.
468
013dc89f 469`<ostemplate>`: `<string>` ::
1f554f76
DM
470
471The OS template or backup file.
472
4d47f125 473`--arch` `<amd64 | arm64 | armhf | i386>` ('default =' `amd64`)::
1f554f76
DM
474
475OS architecture type.
476
27a7acb2
DM
477`--bwlimit` `<number> (0 - N)` ::
478
479Override i/o bandwidth limit (in KiB/s).
480
2489d6df 481`--cmode` `<console | shell | tty>` ('default =' `tty`)::
1f554f76 482
c2993fe5 483Console 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).
1f554f76 484
2489d6df 485`--console` `<boolean>` ('default =' `1`)::
1f554f76
DM
486
487Attach a console device (/dev/console) to the container.
488
2489d6df 489`--cores` `<integer> (1 - 128)` ::
de0983cb
DM
490
491The number of cores assigned to the container. A container can use all available cores by default.
492
2489d6df 493`--cpulimit` `<number> (0 - 128)` ('default =' `0`)::
1f554f76 494
9b3e4991
DM
495Limit of CPU usage.
496+
c2993fe5 497NOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit.
1f554f76 498
2489d6df 499`--cpuunits` `<integer> (0 - 500000)` ('default =' `1024`)::
1f554f76 500
c2993fe5 501CPU 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.
9b3e4991 502+
1f554f76
DM
503NOTE: You can disable fair-scheduler configuration by setting this to 0.
504
2489d6df 505`--description` `<string>` ::
1f554f76
DM
506
507Container description. Only used on the configuration web interface.
508
e2d681b3 509`--features` `[fuse=<1|0>] [,keyctl=<1|0>] [,mount=<fstype;fstype;...>] [,nesting=<1|0>]` ::
4d47f125
TL
510
511Allow containers access to advanced features.
512
2489d6df 513`--force` `<boolean>` ::
1f554f76
DM
514
515Allow to overwrite existing container.
516
2489d6df 517`--hostname` `<string>` ::
1f554f76
DM
518
519Set a host name for the container.
520
2489d6df 521`--ignore-unpack-errors` `<boolean>` ::
1f554f76
DM
522
523Ignore errors when extracting the template.
524
4d47f125 525`--lock` `<backup | disk | migrate | mounted | rollback | snapshot | snapshot-delete>` ::
1f554f76
DM
526
527Lock/unlock the VM.
528
2489d6df 529`--memory` `<integer> (16 - N)` ('default =' `512`)::
1f554f76
DM
530
531Amount of RAM for the VM in MB.
532
2489d6df 533`--mp[n]` `[volume=]<volume> ,mp=<Path> [,acl=<1|0>] [,backup=<1|0>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]` ::
1f554f76 534
c2993fe5 535Use volume as container mount point.
1f554f76 536
2489d6df 537`--nameserver` `<string>` ::
1f554f76 538
c2993fe5 539Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
1f554f76 540
2489d6df 541`--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>]` ::
1f554f76
DM
542
543Specifies network interfaces for the container.
544
2489d6df 545`--onboot` `<boolean>` ('default =' `0`)::
1f554f76
DM
546
547Specifies whether a VM will be started during system bootup.
548
2489d6df 549`--ostype` `<alpine | archlinux | centos | debian | fedora | gentoo | opensuse | ubuntu | unmanaged>` ::
1f554f76 550
c2993fe5 551OS 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.
1f554f76 552
5da3d723 553`--password` `<password>` ::
1f554f76
DM
554
555Sets root password inside container.
556
2489d6df 557`--pool` `<string>` ::
1f554f76
DM
558
559Add the VM to the specified pool.
560
2489d6df 561`--protection` `<boolean>` ('default =' `0`)::
1f554f76 562
c2993fe5 563Sets the protection flag of the container. This will prevent the CT or CT's disk remove/update operation.
1f554f76 564
2489d6df 565`--rootfs` `[volume=]<volume> [,acl=<1|0>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]` ::
1f554f76
DM
566
567Use volume as container root.
568
2489d6df 569`--searchdomain` `<string>` ::
1f554f76 570
c2993fe5 571Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
9b3e4991 572
2489d6df 573`--ssh-public-keys` `<filepath>` ::
9b3e4991
DM
574
575Setup public SSH keys (one key per line, OpenSSH format).
1f554f76 576
5da3d723
TL
577`--start` `<boolean>` ('default =' `0`)::
578
579Start the CT after its creation finished successfully.
580
2489d6df 581`--startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
1f554f76 582
c2993fe5 583Startup 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.
1f554f76 584
2489d6df 585`--storage` `<string>` ('default =' `local`)::
1f554f76
DM
586
587Default Storage.
588
2489d6df 589`--swap` `<integer> (0 - N)` ('default =' `512`)::
1f554f76
DM
590
591Amount of SWAP for the VM in MB.
592
2489d6df 593`--template` `<boolean>` ('default =' `0`)::
1f554f76
DM
594
595Enable/disable Template.
596
2489d6df 597`--tty` `<integer> (0 - 6)` ('default =' `2`)::
1f554f76
DM
598
599Specify the number of tty available to the container
600
2489d6df 601`--unprivileged` `<boolean>` ('default =' `0`)::
1f554f76 602
c2993fe5 603Makes the container run as unprivileged user. (Should not be modified manually.)
1f554f76 604
2489d6df 605`--unused[n]` `<string>` ::
1f554f76 606
c2993fe5 607Reference to unused volumes. This is used internally, and should not be modified manually.
1f554f76 608
1f554f76
DM
609*pct resume* `<vmid>`
610
611Resume the container.
612
013dc89f 613`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
614
615The (unique) ID of the VM.
616
1f554f76
DM
617*pct rollback* `<vmid> <snapname>`
618
619Rollback LXC state to specified snapshot.
620
013dc89f 621`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
622
623The (unique) ID of the VM.
624
013dc89f 625`<snapname>`: `<string>` ::
1f554f76
DM
626
627The name of the snapshot.
628
1f554f76
DM
629*pct set* `<vmid>` `[OPTIONS]`
630
631Set container options.
632
013dc89f 633`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
634
635The (unique) ID of the VM.
636
4d47f125 637`--arch` `<amd64 | arm64 | armhf | i386>` ('default =' `amd64`)::
1f554f76
DM
638
639OS architecture type.
640
2489d6df 641`--cmode` `<console | shell | tty>` ('default =' `tty`)::
1f554f76 642
c2993fe5 643Console 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).
1f554f76 644
2489d6df 645`--console` `<boolean>` ('default =' `1`)::
1f554f76
DM
646
647Attach a console device (/dev/console) to the container.
648
2489d6df 649`--cores` `<integer> (1 - 128)` ::
de0983cb
DM
650
651The number of cores assigned to the container. A container can use all available cores by default.
652
2489d6df 653`--cpulimit` `<number> (0 - 128)` ('default =' `0`)::
1f554f76 654
9b3e4991
DM
655Limit of CPU usage.
656+
c2993fe5 657NOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit.
1f554f76 658
2489d6df 659`--cpuunits` `<integer> (0 - 500000)` ('default =' `1024`)::
1f554f76 660
c2993fe5 661CPU 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.
9b3e4991 662+
1f554f76
DM
663NOTE: You can disable fair-scheduler configuration by setting this to 0.
664
2489d6df 665`--delete` `<string>` ::
1f554f76
DM
666
667A list of settings you want to delete.
668
2489d6df 669`--description` `<string>` ::
1f554f76
DM
670
671Container description. Only used on the configuration web interface.
672
2489d6df 673`--digest` `<string>` ::
1f554f76 674
c2993fe5 675Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
1f554f76 676
e2d681b3 677`--features` `[fuse=<1|0>] [,keyctl=<1|0>] [,mount=<fstype;fstype;...>] [,nesting=<1|0>]` ::
4d47f125
TL
678
679Allow containers access to advanced features.
680
2489d6df 681`--hostname` `<string>` ::
1f554f76
DM
682
683Set a host name for the container.
684
4d47f125 685`--lock` `<backup | disk | migrate | mounted | rollback | snapshot | snapshot-delete>` ::
1f554f76
DM
686
687Lock/unlock the VM.
688
2489d6df 689`--memory` `<integer> (16 - N)` ('default =' `512`)::
1f554f76
DM
690
691Amount of RAM for the VM in MB.
692
2489d6df 693`--mp[n]` `[volume=]<volume> ,mp=<Path> [,acl=<1|0>] [,backup=<1|0>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]` ::
1f554f76 694
c2993fe5 695Use volume as container mount point.
1f554f76 696
2489d6df 697`--nameserver` `<string>` ::
1f554f76 698
c2993fe5 699Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
1f554f76 700
2489d6df 701`--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>]` ::
1f554f76
DM
702
703Specifies network interfaces for the container.
704
2489d6df 705`--onboot` `<boolean>` ('default =' `0`)::
1f554f76
DM
706
707Specifies whether a VM will be started during system bootup.
708
2489d6df 709`--ostype` `<alpine | archlinux | centos | debian | fedora | gentoo | opensuse | ubuntu | unmanaged>` ::
1f554f76 710
c2993fe5 711OS 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.
1f554f76 712
2489d6df 713`--protection` `<boolean>` ('default =' `0`)::
1f554f76 714
c2993fe5 715Sets the protection flag of the container. This will prevent the CT or CT's disk remove/update operation.
1f554f76 716
2489d6df 717`--rootfs` `[volume=]<volume> [,acl=<1|0>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]` ::
1f554f76
DM
718
719Use volume as container root.
720
2489d6df 721`--searchdomain` `<string>` ::
1f554f76 722
c2993fe5 723Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
1f554f76 724
2489d6df 725`--startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
1f554f76 726
c2993fe5 727Startup 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.
1f554f76 728
2489d6df 729`--swap` `<integer> (0 - N)` ('default =' `512`)::
1f554f76
DM
730
731Amount of SWAP for the VM in MB.
732
2489d6df 733`--template` `<boolean>` ('default =' `0`)::
1f554f76
DM
734
735Enable/disable Template.
736
2489d6df 737`--tty` `<integer> (0 - 6)` ('default =' `2`)::
1f554f76
DM
738
739Specify the number of tty available to the container
740
2489d6df 741`--unprivileged` `<boolean>` ('default =' `0`)::
1f554f76 742
c2993fe5 743Makes the container run as unprivileged user. (Should not be modified manually.)
1f554f76 744
2489d6df 745`--unused[n]` `<string>` ::
1f554f76 746
c2993fe5 747Reference to unused volumes. This is used internally, and should not be modified manually.
1f554f76 748
1f554f76
DM
749*pct shutdown* `<vmid>` `[OPTIONS]`
750
9b3e4991
DM
751Shutdown the container. This will trigger a clean shutdown of the
752container, see lxc-stop(1) for details.
1f554f76 753
013dc89f 754`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
755
756The (unique) ID of the VM.
757
2489d6df 758`--forceStop` `<boolean>` ('default =' `0`)::
1f554f76
DM
759
760Make sure the Container stops.
761
2489d6df 762`--timeout` `<integer> (0 - N)` ('default =' `60`)::
1f554f76
DM
763
764Wait maximal timeout seconds.
765
1f554f76
DM
766*pct snapshot* `<vmid> <snapname>` `[OPTIONS]`
767
768Snapshot a container.
769
013dc89f 770`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
771
772The (unique) ID of the VM.
773
013dc89f 774`<snapname>`: `<string>` ::
1f554f76
DM
775
776The name of the snapshot.
777
2489d6df 778`--description` `<string>` ::
1f554f76
DM
779
780A textual description or comment.
781
9b3e4991 782*pct start* `<vmid>` `[OPTIONS]`
1f554f76
DM
783
784Start the container.
785
013dc89f 786`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
787
788The (unique) ID of the VM.
789
2489d6df 790`--skiplock` `<boolean>` ::
9b3e4991
DM
791
792Ignore locks - only root is allowed to use this option.
793
2c0dde61
DM
794*pct status* `<vmid>` `[OPTIONS]`
795
796Show CT status.
797
013dc89f 798`<vmid>`: `<integer> (1 - N)` ::
2c0dde61
DM
799
800The (unique) ID of the VM.
801
2489d6df 802`--verbose` `<boolean>` ::
2c0dde61
DM
803
804Verbose output format
805
9b3e4991 806*pct stop* `<vmid>` `[OPTIONS]`
1f554f76 807
9b3e4991
DM
808Stop the container. This will abruptly stop all processes running in the
809container.
1f554f76 810
013dc89f 811`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
812
813The (unique) ID of the VM.
814
2489d6df 815`--skiplock` `<boolean>` ::
9b3e4991
DM
816
817Ignore locks - only root is allowed to use this option.
818
1f554f76
DM
819*pct suspend* `<vmid>`
820
821Suspend the container.
822
013dc89f 823`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
824
825The (unique) ID of the VM.
826
27a7acb2 827*pct template* `<vmid>`
1f554f76
DM
828
829Create a Template.
830
013dc89f 831`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
832
833The (unique) ID of the VM.
834
1f554f76
DM
835*pct unlock* `<vmid>`
836
837Unlock the VM.
838
013dc89f 839`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
840
841The (unique) ID of the VM.
842
9b3e4991
DM
843*pct unmount* `<vmid>`
844
845Unmount the container's filesystem.
846
013dc89f 847`<vmid>`: `<integer> (1 - N)` ::
9b3e4991
DM
848
849The (unique) ID of the VM.
850
851