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