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