]> git.proxmox.com Git - pve-docs.git/blame - qm.1-synopsis.adoc
add missing build dependencies
[pve-docs.git] / qm.1-synopsis.adoc
CommitLineData
1f554f76
DM
1*qm* `<COMMAND> [ARGS] [OPTIONS]`
2
32d876b5
DM
3*qm agent* `<vmid> <command>`
4
5Execute Qemu Guest Agent commands.
6
7`<vmid>`: `<integer> (1 - N)` ::
8
9The (unique) ID of the VM.
10
11`<command>`: `<fsfreeze-freeze | fsfreeze-status | fsfreeze-thaw | fstrim | get-fsinfo | get-memory-block-info | get-memory-blocks | get-time | get-vcpus | info | network-get-interfaces | ping | shutdown | suspend-disk | suspend-hybrid | suspend-ram>` ::
12
13The QGA command.
14
15
16
1f554f76
DM
17*qm clone* `<vmid> <newid>` `[OPTIONS]`
18
19Create a copy of virtual machine/template.
20
013dc89f 21`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
22
23The (unique) ID of the VM.
24
013dc89f 25`<newid>`: `<integer> (1 - N)` ::
1f554f76
DM
26
27VMID for the clone.
28
013dc89f 29`-description` `<string>` ::
1f554f76
DM
30
31Description for the new VM.
32
013dc89f 33`-format` `<qcow2 | raw | vmdk>` ::
1f554f76
DM
34
35Target format for file storage.
36+
37NOTE: Requires option(s): `full`
38
013dc89f 39`-full` `<boolean>` ('default =' `0`)::
1f554f76 40
c2993fe5 41Create a full copy of all disk. This is always done when you clone a normal VM. For VM templates, we try to create a linked clone by default.
1f554f76 42
013dc89f 43`-name` `<string>` ::
1f554f76
DM
44
45Set a name for the new VM.
46
013dc89f 47`-pool` `<string>` ::
1f554f76
DM
48
49Add the new VM to the specified pool.
50
013dc89f 51`-snapname` `<string>` ::
1f554f76
DM
52
53The name of the snapshot.
54
013dc89f 55`-storage` `<string>` ::
1f554f76
DM
56
57Target storage for full clone.
58+
59NOTE: Requires option(s): `full`
60
013dc89f 61`-target` `<string>` ::
1f554f76
DM
62
63Target node. Only allowed if the original VM is on shared storage.
64
65
66
67*qm config* `<vmid>` `[OPTIONS]`
68
69Get current virtual machine configuration. This does not include pending
70configuration changes (see 'pending' API).
71
013dc89f 72`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
73
74The (unique) ID of the VM.
75
013dc89f 76`-current` `<boolean>` ('default =' `0`)::
1f554f76
DM
77
78Get current values (instead of pending values).
79
80
81
82*qm create* `<vmid>` `[OPTIONS]`
83
84Create or restore a virtual machine.
85
013dc89f 86`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
87
88The (unique) ID of the VM.
89
013dc89f 90`-acpi` `<boolean>` ('default =' `1`)::
1f554f76
DM
91
92Enable/disable ACPI.
93
013dc89f 94`-agent` `<boolean>` ('default =' `0`)::
1f554f76
DM
95
96Enable/disable Qemu GuestAgent.
97
013dc89f 98`-archive` `<string>` ::
1f554f76
DM
99
100The backup file.
101
013dc89f 102`-args` `<string>` ::
1f554f76 103
c2993fe5 104Arbitrary arguments passed to kvm.
1f554f76 105
013dc89f 106`-autostart` `<boolean>` ('default =' `0`)::
1f554f76
DM
107
108Automatic restart after crash (currently ignored).
109
013dc89f 110`-balloon` `<integer> (0 - N)` ::
1f554f76 111
c2993fe5 112Amount of target RAM for the VM in MB. Using zero disables the ballon driver.
1f554f76 113
013dc89f 114`-bios` `<ovmf | seabios>` ('default =' `seabios`)::
1f554f76
DM
115
116Select BIOS implementation.
117
013dc89f 118`-boot` `[acdn]{1,4}` ('default =' `cdn`)::
1f554f76
DM
119
120Boot on floppy (a), hard disk (c), CD-ROM (d), or network (n).
121
122`-bootdisk` `(ide|sata|scsi|virtio)\d+` ::
123
124Enable booting from specified disk.
125
013dc89f 126`-cdrom` `<volume>` ::
1f554f76
DM
127
128This is an alias for option -ide2
129
013dc89f 130`-cores` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
131
132The number of cores per socket.
133
013dc89f 134`-cpu` `[cputype=]<enum> [,hidden=<1|0>]` ::
1f554f76
DM
135
136Emulated CPU type.
137
013dc89f 138`-cpulimit` `<number> (0 - 128)` ('default =' `0`)::
1f554f76 139
9b3e4991 140Limit of CPU usage.
1f554f76 141
013dc89f 142`-cpuunits` `<integer> (0 - 500000)` ('default =' `1024`)::
1f554f76 143
c2993fe5 144CPU weight for a VM.
1f554f76 145
013dc89f 146`-description` `<string>` ::
1f554f76 147
c2993fe5 148Description for the VM. Only used on the configuration web interface. This is saved as comment inside the configuration file.
1f554f76 149
013dc89f 150`-efidisk0` `[file=]<volume> [,format=<enum>] [,size=<DiskSize>]` ::
2c0dde61
DM
151
152Configure a Disk for storing EFI vars
153
013dc89f 154`-force` `<boolean>` ::
1f554f76
DM
155
156Allow to overwrite existing VM.
157+
158NOTE: Requires option(s): `archive`
159
013dc89f 160`-freeze` `<boolean>` ::
1f554f76
DM
161
162Freeze CPU at startup (use 'c' monitor command to start execution).
163
9b3e4991 164`-hostpci[n]` `[host=]<HOSTPCIID[;HOSTPCIID2...]> [,pcie=<1|0>] [,rombar=<1|0>] [,x-vga=<1|0>]` ::
1f554f76 165
c2993fe5 166Map host PCI devices into guest.
1f554f76 167
013dc89f 168`-hotplug` `<string>` ('default =' `network,disk,usb`)::
1f554f76 169
c2993fe5 170Selectively enable hotplug features. This is a comma separated list of hotplug features: 'network', 'disk', 'cpu', 'memory' and 'usb'. Use '0' to disable hotplug completely. Value '1' is an alias for the default 'network,disk,usb'.
1f554f76 171
013dc89f 172`-hugepages` `<1024 | 2 | any>` ::
2c0dde61
DM
173
174Enable/disable hugepages memory.
175
013dc89f 176`-ide[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_length=<seconds>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_length=<seconds>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
1f554f76
DM
177
178Use volume as IDE hard disk or CD-ROM (n is 0 to 3).
179
013dc89f 180`-keyboard` `<da | de | de-ch | en-gb | en-us | es | fi | fr | fr-be | fr-ca | fr-ch | hu | is | it | ja | lt | mk | nl | no | pl | pt | pt-br | sl | sv | tr>` ('default =' `en-us`)::
1f554f76 181
c2993fe5 182Keybord layout for vnc server. Default is read from the '/etc/pve/datacenter.conf' configuration file.
1f554f76 183
013dc89f 184`-kvm` `<boolean>` ('default =' `1`)::
1f554f76
DM
185
186Enable/disable KVM hardware virtualization.
187
013dc89f 188`-localtime` `<boolean>` ::
1f554f76 189
c2993fe5 190Set the real time clock to local time. This is enabled by default if ostype indicates a Microsoft OS.
1f554f76 191
013dc89f 192`-lock` `<backup | migrate | rollback | snapshot>` ::
1f554f76
DM
193
194Lock/unlock the VM.
195
196`-machine` `(pc|pc(-i440fx)?-\d+\.\d+(\.pxe)?|q35|pc-q35-\d+\.\d+(\.pxe)?)` ::
197
198Specific the Qemu machine type.
199
013dc89f 200`-memory` `<integer> (16 - N)` ('default =' `512`)::
1f554f76 201
c2993fe5 202Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device.
1f554f76 203
013dc89f 204`-migrate_downtime` `<number> (0 - N)` ('default =' `0.1`)::
1f554f76
DM
205
206Set maximum tolerated downtime (in seconds) for migrations.
207
013dc89f 208`-migrate_speed` `<integer> (0 - N)` ('default =' `0`)::
1f554f76
DM
209
210Set maximum speed (in MB/s) for migrations. Value 0 is no limit.
211
013dc89f 212`-name` `<string>` ::
1f554f76
DM
213
214Set a name for the VM. Only used on the configuration web interface.
215
013dc89f 216`-net[n]` `[model=]<enum> [,bridge=<bridge>] [,firewall=<1|0>] [,link_down=<1|0>] [,macaddr=<XX:XX:XX:XX:XX:XX>] [,queues=<integer>] [,rate=<number>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,<model>=<macaddr>]` ::
1f554f76
DM
217
218Specify network devices.
1f554f76 219
013dc89f 220`-numa` `<boolean>` ('default =' `0`)::
1f554f76 221
9b3e4991 222Enable/disable NUMA.
1f554f76 223
f004f5b9 224`-numa[n]` `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` ::
1f554f76 225
c2993fe5 226NUMA topology.
1f554f76 227
013dc89f 228`-onboot` `<boolean>` ('default =' `0`)::
1f554f76
DM
229
230Specifies whether a VM will be started during system bootup.
231
32d876b5 232`-ostype` `<l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win7 | win8 | wvista | wxp>` ::
1f554f76 233
c2993fe5 234Specify guest operating system.
1f554f76
DM
235
236`-parallel[n]` `/dev/parport\d+|/dev/usb/lp\d+` ::
237
238Map host parallel devices (n is 0 to 2).
1f554f76 239
013dc89f 240`-pool` `<string>` ::
1f554f76
DM
241
242Add the VM to the specified pool.
243
013dc89f 244`-protection` `<boolean>` ('default =' `0`)::
1f554f76 245
c2993fe5 246Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.
1f554f76 247
013dc89f 248`-reboot` `<boolean>` ('default =' `1`)::
1f554f76
DM
249
250Allow reboot. If set to '0' the VM exit on reboot.
251
013dc89f 252`-sata[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_length=<seconds>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_length=<seconds>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
1f554f76
DM
253
254Use volume as SATA hard disk or CD-ROM (n is 0 to 5).
255
013dc89f 256`-scsi[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_length=<seconds>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_length=<seconds>] [,iops_wr_max=<iops>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,queues=<integer>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
1f554f76
DM
257
258Use volume as SCSI hard disk or CD-ROM (n is 0 to 13).
259
013dc89f 260`-scsihw` `<lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single>` ('default =' `lsi`)::
1f554f76 261
c2993fe5 262SCSI controller model
1f554f76
DM
263
264`-serial[n]` `(/dev/.+|socket)` ::
265
c2993fe5 266Create a serial device inside the VM (n is 0 to 3)
1f554f76 267
013dc89f 268`-shares` `<integer> (0 - 50000)` ('default =' `1000`)::
1f554f76 269
c2993fe5 270Amount of memory shares for auto-ballooning. The larger the number is, the more memory this VM gets. Number is relative to weights of all other running VMs. Using zero disables auto-ballooning
1f554f76 271
f004f5b9 272`-smbios1` `[family=<string>] [,manufacturer=<string>] [,product=<string>] [,serial=<string>] [,sku=<string>] [,uuid=<UUID>] [,version=<string>]` ::
1f554f76
DM
273
274Specify SMBIOS type 1 fields.
275
013dc89f 276`-smp` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
277
278The number of CPUs. Please use option -sockets instead.
279
013dc89f 280`-sockets` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
281
282The number of CPU sockets.
283
013dc89f 284`-startdate` `(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)` ('default =' `now`)::
1f554f76 285
c2993fe5 286Set the initial date of the real time clock. Valid format for date are: 'now' or '2006-06-17T16:01:21' or '2006-06-17'.
1f554f76
DM
287
288`-startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
289
c2993fe5 290Startup 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 291
013dc89f 292`-storage` `<string>` ::
1f554f76
DM
293
294Default storage.
295
013dc89f 296`-tablet` `<boolean>` ('default =' `1`)::
1f554f76 297
c2993fe5 298Enable/disable the USB tablet device.
1f554f76 299
013dc89f 300`-tdf` `<boolean>` ('default =' `0`)::
1f554f76
DM
301
302Enable/disable time drift fix.
303
013dc89f 304`-template` `<boolean>` ('default =' `0`)::
1f554f76
DM
305
306Enable/disable Template.
307
013dc89f 308`-unique` `<boolean>` ::
1f554f76
DM
309
310Assign a unique random ethernet address.
311+
312NOTE: Requires option(s): `archive`
313
013dc89f 314`-unused[n]` `<string>` ::
1f554f76 315
c2993fe5 316Reference to unused volumes. This is used internally, and should not be modified manually.
1f554f76 317
f004f5b9 318`-usb[n]` `[host=]<HOSTUSBDEVICE|spice> [,usb3=<1|0>]` ::
1f554f76 319
c2993fe5 320Configure an USB device (n is 0 to 4).
1f554f76 321
013dc89f 322`-vcpus` `<integer> (1 - N)` ('default =' `0`)::
1f554f76
DM
323
324Number of hotplugged vcpus.
325
013dc89f 326`-vga` `<cirrus | qxl | qxl2 | qxl3 | qxl4 | serial0 | serial1 | serial2 | serial3 | std | vmware>` ::
1f554f76 327
c2993fe5 328Select the VGA type.
1f554f76 329
013dc89f 330`-virtio[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_length=<seconds>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_length=<seconds>] [,iops_wr_max=<iops>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
1f554f76
DM
331
332Use volume as VIRTIO hard disk (n is 0 to 15).
333
013dc89f 334`-watchdog` `[[model=]<i6300esb|ib700>] [,action=<enum>]` ::
1f554f76 335
c2993fe5 336Create a virtual hardware watchdog device.
1f554f76
DM
337
338
339
340*qm delsnapshot* `<vmid> <snapname>` `[OPTIONS]`
341
342Delete a VM snapshot.
343
013dc89f 344`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
345
346The (unique) ID of the VM.
347
013dc89f 348`<snapname>`: `<string>` ::
1f554f76
DM
349
350The name of the snapshot.
351
013dc89f 352`-force` `<boolean>` ::
1f554f76
DM
353
354For removal from config file, even if removing disk snapshots fails.
355
356
357
358*qm destroy* `<vmid>` `[OPTIONS]`
359
360Destroy the vm (also delete all used/owned volumes).
361
013dc89f 362`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
363
364The (unique) ID of the VM.
365
013dc89f 366`-skiplock` `<boolean>` ::
1f554f76
DM
367
368Ignore locks - only root is allowed to use this option.
369
370
371
372
373*qm help* `[<cmd>]` `[OPTIONS]`
374
375Get help about specified command.
376
013dc89f 377`<cmd>`: `<string>` ::
1f554f76
DM
378
379Command name
380
013dc89f 381`-verbose` `<boolean>` ::
1f554f76
DM
382
383Verbose output format.
384
385
386
387
9b3e4991 388*qm list* `[OPTIONS]`
1f554f76
DM
389
390Virtual machine index (per node).
391
013dc89f 392`-full` `<boolean>` ::
9b3e4991
DM
393
394Determine the full status of active VMs.
395
1f554f76
DM
396
397
de0983cb
DM
398*qm listsnapshot* `<vmid>`
399
400List all snapshots.
401
013dc89f 402`<vmid>`: `<integer> (1 - N)` ::
de0983cb
DM
403
404The (unique) ID of the VM.
405
406
407
1f554f76
DM
408*qm migrate* `<vmid> <target>` `[OPTIONS]`
409
410Migrate virtual machine. Creates a new migration task.
411
013dc89f 412`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
413
414The (unique) ID of the VM.
415
013dc89f 416`<target>`: `<string>` ::
1f554f76
DM
417
418Target node.
419
013dc89f 420`-force` `<boolean>` ::
1f554f76 421
c2993fe5 422Allow to migrate VMs which use local devices. Only root may use this option.
1f554f76 423
013dc89f 424`-migration_network` `<string>` ::
de0983cb
DM
425
426CIDR of the (sub) network that is used for migration.
427
013dc89f 428`-migration_type` `<insecure | secure>` ::
de0983cb
DM
429
430Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.
431
013dc89f 432`-online` `<boolean>` ::
1f554f76
DM
433
434Use online/live migration.
435
436
437
438
439*qm monitor* `<vmid>`
440
441Enter Qemu Monitor interface.
442
013dc89f 443`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
444
445The (unique) ID of the VM.
446
447
448
449
450*qm move_disk* `<vmid> <disk> <storage>` `[OPTIONS]`
451
452Move volume to different storage.
453
013dc89f 454`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
455
456The (unique) ID of the VM.
457
013dc89f 458`<disk>`: `<efidisk0 | ide0 | ide1 | ide2 | ide3 | sata0 | sata1 | sata2 | sata3 | sata4 | sata5 | scsi0 | scsi1 | scsi10 | scsi11 | scsi12 | scsi13 | scsi2 | scsi3 | scsi4 | scsi5 | scsi6 | scsi7 | scsi8 | scsi9 | virtio0 | virtio1 | virtio10 | virtio11 | virtio12 | virtio13 | virtio14 | virtio15 | virtio2 | virtio3 | virtio4 | virtio5 | virtio6 | virtio7 | virtio8 | virtio9>` ::
1f554f76
DM
459
460The disk you want to move.
461
013dc89f 462`<storage>`: `<string>` ::
1f554f76
DM
463
464Target storage.
465
013dc89f 466`-delete` `<boolean>` ('default =' `0`)::
1f554f76 467
c2993fe5 468Delete the original disk after successful copy. By default the original disk is kept as unused disk.
1f554f76 469
013dc89f 470`-digest` `<string>` ::
1f554f76 471
c2993fe5 472Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
1f554f76 473
013dc89f 474`-format` `<qcow2 | raw | vmdk>` ::
1f554f76
DM
475
476Target Format.
477
478
479
480
481*qm mtunnel*
482
483Used by qmigrate - do not use manually.
484
485
486
487
488*qm pending* `<vmid>`
489
490Get virtual machine configuration, including pending changes.
491
013dc89f 492`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
493
494The (unique) ID of the VM.
495
496
497
498
499*qm rescan* `[OPTIONS]`
500
501Rescan all storages and update disk sizes and unused disk images.
502
013dc89f 503`-vmid` `<integer> (1 - N)` ::
1f554f76
DM
504
505The (unique) ID of the VM.
506
507
508
509
510*qm reset* `<vmid>` `[OPTIONS]`
511
512Reset virtual machine.
513
013dc89f 514`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
515
516The (unique) ID of the VM.
517
013dc89f 518`-skiplock` `<boolean>` ::
1f554f76
DM
519
520Ignore locks - only root is allowed to use this option.
521
522
523
524*qm resize* `<vmid> <disk> <size>` `[OPTIONS]`
525
526Extend volume size.
527
013dc89f 528`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
529
530The (unique) ID of the VM.
531
013dc89f 532`<disk>`: `<efidisk0 | ide0 | ide1 | ide2 | ide3 | sata0 | sata1 | sata2 | sata3 | sata4 | sata5 | scsi0 | scsi1 | scsi10 | scsi11 | scsi12 | scsi13 | scsi2 | scsi3 | scsi4 | scsi5 | scsi6 | scsi7 | scsi8 | scsi9 | virtio0 | virtio1 | virtio10 | virtio11 | virtio12 | virtio13 | virtio14 | virtio15 | virtio2 | virtio3 | virtio4 | virtio5 | virtio6 | virtio7 | virtio8 | virtio9>` ::
1f554f76
DM
533
534The disk you want to resize.
535
013dc89f 536`<size>`: `\+?\d+(\.\d+)?[KMGT]?` ::
1f554f76 537
c2993fe5 538The 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 539
013dc89f 540`-digest` `<string>` ::
1f554f76 541
c2993fe5 542Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
1f554f76 543
013dc89f 544`-skiplock` `<boolean>` ::
1f554f76
DM
545
546Ignore locks - only root is allowed to use this option.
547
548
549
550*qm resume* `<vmid>` `[OPTIONS]`
551
552Resume virtual machine.
553
013dc89f 554`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
555
556The (unique) ID of the VM.
557
013dc89f 558`-nocheck` `<boolean>` ::
1f554f76
DM
559
560no description available
561
013dc89f 562`-skiplock` `<boolean>` ::
1f554f76
DM
563
564Ignore locks - only root is allowed to use this option.
565
566
567
568*qm rollback* `<vmid> <snapname>`
569
570Rollback VM state to specified snapshot.
571
013dc89f 572`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
573
574The (unique) ID of the VM.
575
013dc89f 576`<snapname>`: `<string>` ::
1f554f76
DM
577
578The name of the snapshot.
579
580
581
582*qm sendkey* `<vmid> <key>` `[OPTIONS]`
583
584Send key event to virtual machine.
585
013dc89f 586`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
587
588The (unique) ID of the VM.
589
013dc89f 590`<key>`: `<string>` ::
1f554f76
DM
591
592The key (qemu monitor encoding).
593
013dc89f 594`-skiplock` `<boolean>` ::
1f554f76
DM
595
596Ignore locks - only root is allowed to use this option.
597
598
599
600*qm set* `<vmid>` `[OPTIONS]`
601
602Set virtual machine options (synchrounous API) - You should consider using
603the POST method instead for any actions involving hotplug or storage
604allocation.
605
013dc89f 606`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
607
608The (unique) ID of the VM.
609
013dc89f 610`-acpi` `<boolean>` ('default =' `1`)::
1f554f76
DM
611
612Enable/disable ACPI.
613
013dc89f 614`-agent` `<boolean>` ('default =' `0`)::
1f554f76
DM
615
616Enable/disable Qemu GuestAgent.
617
013dc89f 618`-args` `<string>` ::
1f554f76 619
c2993fe5 620Arbitrary arguments passed to kvm.
1f554f76 621
013dc89f 622`-autostart` `<boolean>` ('default =' `0`)::
1f554f76
DM
623
624Automatic restart after crash (currently ignored).
625
013dc89f 626`-balloon` `<integer> (0 - N)` ::
1f554f76 627
c2993fe5 628Amount of target RAM for the VM in MB. Using zero disables the ballon driver.
1f554f76 629
013dc89f 630`-bios` `<ovmf | seabios>` ('default =' `seabios`)::
1f554f76
DM
631
632Select BIOS implementation.
633
013dc89f 634`-boot` `[acdn]{1,4}` ('default =' `cdn`)::
1f554f76
DM
635
636Boot on floppy (a), hard disk (c), CD-ROM (d), or network (n).
637
638`-bootdisk` `(ide|sata|scsi|virtio)\d+` ::
639
640Enable booting from specified disk.
641
013dc89f 642`-cdrom` `<volume>` ::
1f554f76
DM
643
644This is an alias for option -ide2
645
013dc89f 646`-cores` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
647
648The number of cores per socket.
649
013dc89f 650`-cpu` `[cputype=]<enum> [,hidden=<1|0>]` ::
1f554f76
DM
651
652Emulated CPU type.
653
013dc89f 654`-cpulimit` `<number> (0 - 128)` ('default =' `0`)::
1f554f76 655
9b3e4991 656Limit of CPU usage.
1f554f76 657
013dc89f 658`-cpuunits` `<integer> (0 - 500000)` ('default =' `1024`)::
1f554f76 659
c2993fe5 660CPU weight for a VM.
1f554f76 661
013dc89f 662`-delete` `<string>` ::
1f554f76
DM
663
664A list of settings you want to delete.
665
013dc89f 666`-description` `<string>` ::
1f554f76 667
c2993fe5 668Description for the VM. Only used on the configuration web interface. This is saved as comment inside the configuration file.
1f554f76 669
013dc89f 670`-digest` `<string>` ::
1f554f76 671
c2993fe5 672Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
1f554f76 673
013dc89f 674`-efidisk0` `[file=]<volume> [,format=<enum>] [,size=<DiskSize>]` ::
2c0dde61
DM
675
676Configure a Disk for storing EFI vars
677
013dc89f 678`-force` `<boolean>` ::
1f554f76 679
c2993fe5 680Force physical removal. Without this, we simple remove the disk from the config file and create an additional configuration entry called 'unused[n]', which contains the volume ID. Unlink of unused[n] always cause physical removal.
1f554f76
DM
681+
682NOTE: Requires option(s): `delete`
683
013dc89f 684`-freeze` `<boolean>` ::
1f554f76
DM
685
686Freeze CPU at startup (use 'c' monitor command to start execution).
687
9b3e4991 688`-hostpci[n]` `[host=]<HOSTPCIID[;HOSTPCIID2...]> [,pcie=<1|0>] [,rombar=<1|0>] [,x-vga=<1|0>]` ::
1f554f76 689
c2993fe5 690Map host PCI devices into guest.
1f554f76 691
013dc89f 692`-hotplug` `<string>` ('default =' `network,disk,usb`)::
1f554f76 693
c2993fe5 694Selectively enable hotplug features. This is a comma separated list of hotplug features: 'network', 'disk', 'cpu', 'memory' and 'usb'. Use '0' to disable hotplug completely. Value '1' is an alias for the default 'network,disk,usb'.
1f554f76 695
013dc89f 696`-hugepages` `<1024 | 2 | any>` ::
2c0dde61
DM
697
698Enable/disable hugepages memory.
699
013dc89f 700`-ide[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_length=<seconds>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_length=<seconds>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
1f554f76
DM
701
702Use volume as IDE hard disk or CD-ROM (n is 0 to 3).
703
013dc89f 704`-keyboard` `<da | de | de-ch | en-gb | en-us | es | fi | fr | fr-be | fr-ca | fr-ch | hu | is | it | ja | lt | mk | nl | no | pl | pt | pt-br | sl | sv | tr>` ('default =' `en-us`)::
1f554f76 705
c2993fe5 706Keybord layout for vnc server. Default is read from the '/etc/pve/datacenter.conf' configuration file.
1f554f76 707
013dc89f 708`-kvm` `<boolean>` ('default =' `1`)::
1f554f76
DM
709
710Enable/disable KVM hardware virtualization.
711
013dc89f 712`-localtime` `<boolean>` ::
1f554f76 713
c2993fe5 714Set the real time clock to local time. This is enabled by default if ostype indicates a Microsoft OS.
1f554f76 715
013dc89f 716`-lock` `<backup | migrate | rollback | snapshot>` ::
1f554f76
DM
717
718Lock/unlock the VM.
719
720`-machine` `(pc|pc(-i440fx)?-\d+\.\d+(\.pxe)?|q35|pc-q35-\d+\.\d+(\.pxe)?)` ::
721
722Specific the Qemu machine type.
723
013dc89f 724`-memory` `<integer> (16 - N)` ('default =' `512`)::
1f554f76 725
c2993fe5 726Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device.
1f554f76 727
013dc89f 728`-migrate_downtime` `<number> (0 - N)` ('default =' `0.1`)::
1f554f76
DM
729
730Set maximum tolerated downtime (in seconds) for migrations.
731
013dc89f 732`-migrate_speed` `<integer> (0 - N)` ('default =' `0`)::
1f554f76
DM
733
734Set maximum speed (in MB/s) for migrations. Value 0 is no limit.
735
013dc89f 736`-name` `<string>` ::
1f554f76
DM
737
738Set a name for the VM. Only used on the configuration web interface.
739
013dc89f 740`-net[n]` `[model=]<enum> [,bridge=<bridge>] [,firewall=<1|0>] [,link_down=<1|0>] [,macaddr=<XX:XX:XX:XX:XX:XX>] [,queues=<integer>] [,rate=<number>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,<model>=<macaddr>]` ::
1f554f76
DM
741
742Specify network devices.
1f554f76 743
013dc89f 744`-numa` `<boolean>` ('default =' `0`)::
1f554f76 745
9b3e4991 746Enable/disable NUMA.
1f554f76 747
f004f5b9 748`-numa[n]` `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` ::
1f554f76 749
c2993fe5 750NUMA topology.
1f554f76 751
013dc89f 752`-onboot` `<boolean>` ('default =' `0`)::
1f554f76
DM
753
754Specifies whether a VM will be started during system bootup.
755
32d876b5 756`-ostype` `<l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win7 | win8 | wvista | wxp>` ::
1f554f76 757
c2993fe5 758Specify guest operating system.
1f554f76
DM
759
760`-parallel[n]` `/dev/parport\d+|/dev/usb/lp\d+` ::
761
762Map host parallel devices (n is 0 to 2).
1f554f76 763
013dc89f 764`-protection` `<boolean>` ('default =' `0`)::
1f554f76 765
c2993fe5 766Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.
1f554f76 767
013dc89f 768`-reboot` `<boolean>` ('default =' `1`)::
1f554f76
DM
769
770Allow reboot. If set to '0' the VM exit on reboot.
771
013dc89f 772`-revert` `<string>` ::
1f554f76
DM
773
774Revert a pending change.
775
013dc89f 776`-sata[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_length=<seconds>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_length=<seconds>] [,iops_wr_max=<iops>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
1f554f76
DM
777
778Use volume as SATA hard disk or CD-ROM (n is 0 to 5).
779
013dc89f 780`-scsi[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_length=<seconds>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_length=<seconds>] [,iops_wr_max=<iops>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,queues=<integer>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
1f554f76
DM
781
782Use volume as SCSI hard disk or CD-ROM (n is 0 to 13).
783
013dc89f 784`-scsihw` `<lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single>` ('default =' `lsi`)::
1f554f76 785
c2993fe5 786SCSI controller model
1f554f76
DM
787
788`-serial[n]` `(/dev/.+|socket)` ::
789
c2993fe5 790Create a serial device inside the VM (n is 0 to 3)
1f554f76 791
013dc89f 792`-shares` `<integer> (0 - 50000)` ('default =' `1000`)::
1f554f76 793
c2993fe5 794Amount of memory shares for auto-ballooning. The larger the number is, the more memory this VM gets. Number is relative to weights of all other running VMs. Using zero disables auto-ballooning
1f554f76 795
013dc89f 796`-skiplock` `<boolean>` ::
1f554f76
DM
797
798Ignore locks - only root is allowed to use this option.
799
f004f5b9 800`-smbios1` `[family=<string>] [,manufacturer=<string>] [,product=<string>] [,serial=<string>] [,sku=<string>] [,uuid=<UUID>] [,version=<string>]` ::
1f554f76
DM
801
802Specify SMBIOS type 1 fields.
803
013dc89f 804`-smp` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
805
806The number of CPUs. Please use option -sockets instead.
807
013dc89f 808`-sockets` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
809
810The number of CPU sockets.
811
013dc89f 812`-startdate` `(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)` ('default =' `now`)::
1f554f76 813
c2993fe5 814Set the initial date of the real time clock. Valid format for date are: 'now' or '2006-06-17T16:01:21' or '2006-06-17'.
1f554f76
DM
815
816`-startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
817
c2993fe5 818Startup 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 819
013dc89f 820`-tablet` `<boolean>` ('default =' `1`)::
1f554f76 821
c2993fe5 822Enable/disable the USB tablet device.
1f554f76 823
013dc89f 824`-tdf` `<boolean>` ('default =' `0`)::
1f554f76
DM
825
826Enable/disable time drift fix.
827
013dc89f 828`-template` `<boolean>` ('default =' `0`)::
1f554f76
DM
829
830Enable/disable Template.
831
013dc89f 832`-unused[n]` `<string>` ::
1f554f76 833
c2993fe5 834Reference to unused volumes. This is used internally, and should not be modified manually.
1f554f76 835
f004f5b9 836`-usb[n]` `[host=]<HOSTUSBDEVICE|spice> [,usb3=<1|0>]` ::
1f554f76 837
c2993fe5 838Configure an USB device (n is 0 to 4).
1f554f76 839
013dc89f 840`-vcpus` `<integer> (1 - N)` ('default =' `0`)::
1f554f76
DM
841
842Number of hotplugged vcpus.
843
013dc89f 844`-vga` `<cirrus | qxl | qxl2 | qxl3 | qxl4 | serial0 | serial1 | serial2 | serial3 | std | vmware>` ::
1f554f76 845
c2993fe5 846Select the VGA type.
1f554f76 847
013dc89f 848`-virtio[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_length=<seconds>] [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_length=<seconds>] [,iops_wr_max=<iops>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
1f554f76
DM
849
850Use volume as VIRTIO hard disk (n is 0 to 15).
851
013dc89f 852`-watchdog` `[[model=]<i6300esb|ib700>] [,action=<enum>]` ::
1f554f76 853
c2993fe5 854Create a virtual hardware watchdog device.
1f554f76
DM
855
856
857
858
859*qm showcmd* `<vmid>`
860
861Show command line which is used to start the VM (debug info).
862
013dc89f 863`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
864
865The (unique) ID of the VM.
866
867
868
869
870*qm shutdown* `<vmid>` `[OPTIONS]`
871
9b3e4991
DM
872Shutdown virtual machine. This is similar to pressing the power button on a
873physical machine.This will send an ACPI event for the guest OS, which
874should then proceed to a clean shutdown.
1f554f76 875
013dc89f 876`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
877
878The (unique) ID of the VM.
879
013dc89f 880`-forceStop` `<boolean>` ('default =' `0`)::
1f554f76
DM
881
882Make sure the VM stops.
883
013dc89f 884`-keepActive` `<boolean>` ('default =' `0`)::
1f554f76 885
de0983cb 886Do not deactivate storage volumes.
1f554f76 887
013dc89f 888`-skiplock` `<boolean>` ::
1f554f76
DM
889
890Ignore locks - only root is allowed to use this option.
891
013dc89f 892`-timeout` `<integer> (0 - N)` ::
1f554f76
DM
893
894Wait maximal timeout seconds.
895
896
897
898*qm snapshot* `<vmid> <snapname>` `[OPTIONS]`
899
900Snapshot a VM.
901
013dc89f 902`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
903
904The (unique) ID of the VM.
905
013dc89f 906`<snapname>`: `<string>` ::
1f554f76
DM
907
908The name of the snapshot.
909
013dc89f 910`-description` `<string>` ::
1f554f76
DM
911
912A textual description or comment.
913
013dc89f 914`-vmstate` `<boolean>` ::
1f554f76
DM
915
916Save the vmstate
917
918
919
920*qm start* `<vmid>` `[OPTIONS]`
921
922Start virtual machine.
923
013dc89f 924`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
925
926The (unique) ID of the VM.
927
928`-machine` `(pc|pc(-i440fx)?-\d+\.\d+(\.pxe)?|q35|pc-q35-\d+\.\d+(\.pxe)?)` ::
929
930Specific the Qemu machine type.
931
013dc89f 932`-migratedfrom` `<string>` ::
1f554f76
DM
933
934The cluster node name.
935
013dc89f 936`-migration_network` `<string>` ::
de0983cb
DM
937
938CIDR of the (sub) network that is used for migration.
939
013dc89f 940`-migration_type` `<insecure | secure>` ::
de0983cb
DM
941
942Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.
943
013dc89f 944`-skiplock` `<boolean>` ::
1f554f76
DM
945
946Ignore locks - only root is allowed to use this option.
947
013dc89f 948`-stateuri` `<string>` ::
1f554f76
DM
949
950Some command save/restore state from this location.
951
952
953
954
955*qm status* `<vmid>` `[OPTIONS]`
956
957Show VM status.
958
013dc89f 959`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
960
961The (unique) ID of the VM.
962
013dc89f 963`-verbose` `<boolean>` ::
1f554f76
DM
964
965Verbose output format
966
967
968
969
970*qm stop* `<vmid>` `[OPTIONS]`
971
9b3e4991
DM
972Stop virtual machine. The qemu process will exit immediately. Thisis akin
973to pulling the power plug of a running computer and may damage the VM data
1f554f76 974
013dc89f 975`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
976
977The (unique) ID of the VM.
978
013dc89f 979`-keepActive` `<boolean>` ('default =' `0`)::
1f554f76 980
de0983cb 981Do not deactivate storage volumes.
1f554f76 982
013dc89f 983`-migratedfrom` `<string>` ::
1f554f76
DM
984
985The cluster node name.
986
013dc89f 987`-skiplock` `<boolean>` ::
1f554f76
DM
988
989Ignore locks - only root is allowed to use this option.
990
013dc89f 991`-timeout` `<integer> (0 - N)` ::
1f554f76
DM
992
993Wait maximal timeout seconds.
994
995
996
997*qm suspend* `<vmid>` `[OPTIONS]`
998
999Suspend virtual machine.
1000
013dc89f 1001`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1002
1003The (unique) ID of the VM.
1004
013dc89f 1005`-skiplock` `<boolean>` ::
1f554f76
DM
1006
1007Ignore locks - only root is allowed to use this option.
1008
1009
1010
1011*qm template* `<vmid>` `[OPTIONS]`
1012
1013Create a Template.
1014
013dc89f 1015`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1016
1017The (unique) ID of the VM.
1018
013dc89f 1019`-disk` `<efidisk0 | ide0 | ide1 | ide2 | ide3 | sata0 | sata1 | sata2 | sata3 | sata4 | sata5 | scsi0 | scsi1 | scsi10 | scsi11 | scsi12 | scsi13 | scsi2 | scsi3 | scsi4 | scsi5 | scsi6 | scsi7 | scsi8 | scsi9 | virtio0 | virtio1 | virtio10 | virtio11 | virtio12 | virtio13 | virtio14 | virtio15 | virtio2 | virtio3 | virtio4 | virtio5 | virtio6 | virtio7 | virtio8 | virtio9>` ::
1f554f76
DM
1020
1021If you want to convert only 1 disk to base image.
1022
1023
1024
1025
1026*qm terminal* `<vmid>` `[OPTIONS]`
1027
1028Open a terminal using a serial device (The VM need to have a serial device
1029configured, for example 'serial0: socket')
1030
013dc89f 1031`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1032
1033The (unique) ID of the VM.
1034
013dc89f 1035`-iface` `<serial0 | serial1 | serial2 | serial3>` ::
1f554f76 1036
c2993fe5 1037Select the serial device. By default we simply use the first suitable device.
1f554f76
DM
1038
1039
1040
1041
1042*qm unlink* `<vmid> -idlist <string>` `[OPTIONS]`
1043
1044Unlink/delete disk images.
1045
013dc89f 1046`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1047
1048The (unique) ID of the VM.
1049
013dc89f 1050`-force` `<boolean>` ::
1f554f76 1051
c2993fe5 1052Force physical removal. Without this, we simple remove the disk from the config file and create an additional configuration entry called 'unused[n]', which contains the volume ID. Unlink of unused[n] always cause physical removal.
1f554f76 1053
013dc89f 1054`-idlist` `<string>` ::
1f554f76
DM
1055
1056A list of disk IDs you want to delete.
1057
1058
1059
1060
1061*qm unlock* `<vmid>`
1062
1063Unlock the VM.
1064
013dc89f 1065`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1066
1067The (unique) ID of the VM.
1068
1069
1070
1071*qm vncproxy* `<vmid>`
1072
1073Proxy VM VNC traffic to stdin/stdout
1074
013dc89f 1075`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1076
1077The (unique) ID of the VM.
1078
1079
1080
1081*qm wait* `<vmid>` `[OPTIONS]`
1082
1083Wait until the VM is stopped.
1084
013dc89f 1085`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1086
1087The (unique) ID of the VM.
1088
013dc89f 1089`-timeout` `<integer> (1 - N)` ::
1f554f76
DM
1090
1091Timeout in seconds. Default is to wait forever.
1092
1093
1094
1095