]> git.proxmox.com Git - pve-docs.git/blame - qm.1-synopsis.adoc
basic network reload documentation
[pve-docs.git] / qm.1-synopsis.adoc
CommitLineData
1f554f76
DM
1*qm* `<COMMAND> [ARGS] [OPTIONS]`
2
4d47f125 3*qm agent*
32d876b5 4
4d47f125 5An alias for 'qm guest cmd'.
32d876b5 6
e2d681b3
TL
7*qm cleanup* `<vmid> <clean-shutdown> <guest-requested>`
8
9Cleans up resources like tap devices, vgpus, etc. Called after a vm shuts
10down, crashes, etc.
11
12`<vmid>`: `<integer> (1 - N)` ::
13
14The (unique) ID of the VM.
15
16`<clean-shutdown>`: `<boolean>` ::
17
18Indicates if qemu shutdown cleanly.
19
20`<guest-requested>`: `<boolean>` ::
21
22Indicates if the shutdown was requested by the guest or via qmp.
23
1f554f76
DM
24*qm clone* `<vmid> <newid>` `[OPTIONS]`
25
26Create a copy of virtual machine/template.
27
013dc89f 28`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
29
30The (unique) ID of the VM.
31
013dc89f 32`<newid>`: `<integer> (1 - N)` ::
1f554f76
DM
33
34VMID for the clone.
35
95895385
TL
36`--bwlimit` `<integer> (0 - N)` ('default =' `clone limit from datacenter or storage config`)::
37
38Override I/O bandwidth limit (in KiB/s).
39
2489d6df 40`--description` `<string>` ::
1f554f76
DM
41
42Description for the new VM.
43
2489d6df 44`--format` `<qcow2 | raw | vmdk>` ::
1f554f76 45
27a7acb2 46Target format for file storage. Only valid for full clone.
1f554f76 47
27a7acb2 48`--full` `<boolean>` ::
1f554f76 49
27a7acb2 50Create a full copy of all disks. This is always done when you clone a normal VM. For VM templates, we try to create a linked clone by default.
1f554f76 51
2489d6df 52`--name` `<string>` ::
1f554f76
DM
53
54Set a name for the new VM.
55
2489d6df 56`--pool` `<string>` ::
1f554f76
DM
57
58Add the new VM to the specified pool.
59
2489d6df 60`--snapname` `<string>` ::
1f554f76
DM
61
62The name of the snapshot.
63
2489d6df 64`--storage` `<string>` ::
1f554f76
DM
65
66Target storage for full clone.
1f554f76 67
2489d6df 68`--target` `<string>` ::
1f554f76
DM
69
70Target node. Only allowed if the original VM is on shared storage.
71
1e3f8156
TL
72*qm cloudinit dump* `<vmid> <type>`
73
74Get automatically generated cloudinit config.
75
76`<vmid>`: `<integer> (1 - N)` ::
77
78The (unique) ID of the VM.
79
80`<type>`: `<meta | network | user>` ::
81
82Config type.
83
1f554f76
DM
84*qm config* `<vmid>` `[OPTIONS]`
85
86Get current virtual machine configuration. This does not include pending
87configuration changes (see 'pending' API).
88
013dc89f 89`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
90
91The (unique) ID of the VM.
92
2489d6df 93`--current` `<boolean>` ('default =' `0`)::
1f554f76
DM
94
95Get current values (instead of pending values).
96
5f26e15b
TL
97`--snapshot` `<string>` ::
98
99Fetch config values from given snapshot.
100
1f554f76
DM
101*qm create* `<vmid>` `[OPTIONS]`
102
103Create or restore a virtual machine.
104
013dc89f 105`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
106
107The (unique) ID of the VM.
108
2489d6df 109`--acpi` `<boolean>` ('default =' `1`)::
1f554f76
DM
110
111Enable/disable ACPI.
112
5c1699e5 113`--agent` `[enabled=]<1|0> [,fstrim_cloned_disks=<1|0>] [,type=<virtio|isa>]` ::
1f554f76 114
4d47f125 115Enable/disable Qemu GuestAgent and its properties.
1f554f76 116
e2d681b3
TL
117`--arch` `<aarch64 | x86_64>` ::
118
119Virtual processor architecture. Defaults to the host.
120
2489d6df 121`--archive` `<string>` ::
1f554f76
DM
122
123The backup file.
124
2489d6df 125`--args` `<string>` ::
1f554f76 126
c2993fe5 127Arbitrary arguments passed to kvm.
1f554f76 128
1c532546
TL
129`--audio0` `device=<ich9-intel-hda|intel-hda|AC97> [,driver=<spice>]` ::
130
131Configure a audio device, useful in combination with QXL/Spice.
132
2489d6df 133`--autostart` `<boolean>` ('default =' `0`)::
1f554f76
DM
134
135Automatic restart after crash (currently ignored).
136
2489d6df 137`--balloon` `<integer> (0 - N)` ::
1f554f76 138
c2993fe5 139Amount of target RAM for the VM in MB. Using zero disables the ballon driver.
1f554f76 140
2489d6df 141`--bios` `<ovmf | seabios>` ('default =' `seabios`)::
1f554f76
DM
142
143Select BIOS implementation.
144
2489d6df 145`--boot` `[acdn]{1,4}` ('default =' `cdn`)::
1f554f76
DM
146
147Boot on floppy (a), hard disk (c), CD-ROM (d), or network (n).
148
2489d6df 149`--bootdisk` `(ide|sata|scsi|virtio)\d+` ::
1f554f76
DM
150
151Enable booting from specified disk.
152
95895385 153`--bwlimit` `<integer> (0 - N)` ('default =' `restore limit from datacenter or storage config`)::
27a7acb2 154
95895385 155Override I/O bandwidth limit (in KiB/s).
27a7acb2 156
2489d6df 157`--cdrom` `<volume>` ::
1f554f76
DM
158
159This is an alias for option -ide2
160
95895385
TL
161`--cicustom` `[meta=<volume>] [,network=<volume>] [,user=<volume>]` ::
162
163cloud-init: Specify custom files to replace the automatically generated ones at start.
164
27a7acb2
DM
165`--cipassword` `<password>` ::
166
167cloud-init: Password to assign the user. Using this is generally not recommended. Use ssh keys instead. Also note that older cloud-init versions do not support hashed passwords.
168
169`--citype` `<configdrive2 | nocloud>` ::
170
171Specifies the cloud-init configuration format. The default depends on the configured operating system type (`ostype`. We use the `nocloud` format for Linux, and `configdrive2` for windows.
172
173`--ciuser` `<string>` ::
174
175cloud-init: User name to change ssh keys and password for instead of the image's configured default user.
176
2489d6df 177`--cores` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
178
179The number of cores per socket.
180
5f26e15b 181`--cpu` `[cputype=]<enum> [,flags=<+FLAG[;-FLAG...]>] [,hidden=<1|0>] [,hv-vendor-id=<vendor-id>]` ::
1f554f76
DM
182
183Emulated CPU type.
184
2489d6df 185`--cpulimit` `<number> (0 - 128)` ('default =' `0`)::
1f554f76 186
9b3e4991 187Limit of CPU usage.
1f554f76 188
2489d6df 189`--cpuunits` `<integer> (2 - 262144)` ('default =' `1024`)::
1f554f76 190
c2993fe5 191CPU weight for a VM.
1f554f76 192
2489d6df 193`--description` `<string>` ::
1f554f76 194
c2993fe5 195Description for the VM. Only used on the configuration web interface. This is saved as comment inside the configuration file.
1f554f76 196
2489d6df 197`--efidisk0` `[file=]<volume> [,format=<enum>] [,size=<DiskSize>]` ::
2c0dde61
DM
198
199Configure a Disk for storing EFI vars
200
2489d6df 201`--force` `<boolean>` ::
1f554f76
DM
202
203Allow to overwrite existing VM.
204+
205NOTE: Requires option(s): `archive`
206
2489d6df 207`--freeze` `<boolean>` ::
1f554f76
DM
208
209Freeze CPU at startup (use 'c' monitor command to start execution).
210
5f26e15b
TL
211`--hookscript` `<string>` ::
212
213Script that will be executed during various steps in the vms lifetime.
214
e2d681b3 215`--hostpci[n]` `[host=]<HOSTPCIID[;HOSTPCIID2...]> [,mdev=<string>] [,pcie=<1|0>] [,rombar=<1|0>] [,romfile=<string>] [,x-vga=<1|0>]` ::
1f554f76 216
c2993fe5 217Map host PCI devices into guest.
1f554f76 218
2489d6df 219`--hotplug` `<string>` ('default =' `network,disk,usb`)::
1f554f76 220
c2993fe5 221Selectively 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 222
2489d6df 223`--hugepages` `<1024 | 2 | any>` ::
2c0dde61
DM
224
225Enable/disable hugepages memory.
226
95895385 227`--ide[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_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_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]` ::
1f554f76
DM
228
229Use volume as IDE hard disk or CD-ROM (n is 0 to 3).
230
27a7acb2
DM
231`--ipconfig[n]` `[gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>]` ::
232
233cloud-init: Specify IP addresses and gateways for the corresponding interface.
234+
235IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified.
236+
237The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided.
238For IPv6 the special string 'auto' can be used to use stateless autoconfiguration.
239+
240If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4.
241
95895385
TL
242`--ivshmem` `size=<integer> [,name=<string>]` ::
243
244Inter-VM shared memory. Useful for direct communication between VMs, or to the host.
245
35a75dd3 246`--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>` ::
1f554f76 247
5da3d723 248Keybord layout for vnc server. Default is read from the '/etc/pve/datacenter.cfg' configuration file.It should not be necessary to set it.
1f554f76 249
2489d6df 250`--kvm` `<boolean>` ('default =' `1`)::
1f554f76
DM
251
252Enable/disable KVM hardware virtualization.
253
2489d6df 254`--localtime` `<boolean>` ::
1f554f76 255
c2993fe5 256Set the real time clock to local time. This is enabled by default if ostype indicates a Microsoft OS.
1f554f76 257
95895385 258`--lock` `<backup | clone | create | migrate | rollback | snapshot | snapshot-delete | suspended | suspending>` ::
1f554f76
DM
259
260Lock/unlock the VM.
261
5c1699e5 262`--machine` `(pc|pc(-i440fx)?-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|q35|pc-q35-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|virt(?:-\d+(\.\d+)+)?(\+pve\d+)?)` ::
1f554f76 263
4d47f125 264Specifies the Qemu machine type.
1f554f76 265
2489d6df 266`--memory` `<integer> (16 - N)` ('default =' `512`)::
1f554f76 267
c2993fe5 268Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device.
1f554f76 269
2489d6df 270`--migrate_downtime` `<number> (0 - N)` ('default =' `0.1`)::
1f554f76
DM
271
272Set maximum tolerated downtime (in seconds) for migrations.
273
2489d6df 274`--migrate_speed` `<integer> (0 - N)` ('default =' `0`)::
1f554f76
DM
275
276Set maximum speed (in MB/s) for migrations. Value 0 is no limit.
277
2489d6df 278`--name` `<string>` ::
1f554f76
DM
279
280Set a name for the VM. Only used on the configuration web interface.
281
27a7acb2
DM
282`--nameserver` `<string>` ::
283
284cloud-init: Sets DNS server IP address for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.
285
2489d6df 286`--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
287
288Specify network devices.
1f554f76 289
2489d6df 290`--numa` `<boolean>` ('default =' `0`)::
1f554f76 291
9b3e4991 292Enable/disable NUMA.
1f554f76 293
2489d6df 294`--numa[n]` `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` ::
1f554f76 295
c2993fe5 296NUMA topology.
1f554f76 297
2489d6df 298`--onboot` `<boolean>` ('default =' `0`)::
1f554f76
DM
299
300Specifies whether a VM will be started during system bootup.
301
2489d6df 302`--ostype` `<l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win7 | win8 | wvista | wxp>` ::
1f554f76 303
c2993fe5 304Specify guest operating system.
1f554f76 305
2489d6df 306`--parallel[n]` `/dev/parport\d+|/dev/usb/lp\d+` ::
1f554f76
DM
307
308Map host parallel devices (n is 0 to 2).
1f554f76 309
2489d6df 310`--pool` `<string>` ::
1f554f76
DM
311
312Add the VM to the specified pool.
313
2489d6df 314`--protection` `<boolean>` ('default =' `0`)::
1f554f76 315
c2993fe5 316Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.
1f554f76 317
2489d6df 318`--reboot` `<boolean>` ('default =' `1`)::
1f554f76
DM
319
320Allow reboot. If set to '0' the VM exit on reboot.
321
95895385 322`--sata[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_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_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]` ::
1f554f76
DM
323
324Use volume as SATA hard disk or CD-ROM (n is 0 to 5).
325
95895385 326`--scsi[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_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_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,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>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,scsiblock=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]` ::
1f554f76
DM
327
328Use volume as SCSI hard disk or CD-ROM (n is 0 to 13).
329
2489d6df 330`--scsihw` `<lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single>` ('default =' `lsi`)::
1f554f76 331
c2993fe5 332SCSI controller model
1f554f76 333
27a7acb2
DM
334`--searchdomain` `<string>` ::
335
336cloud-init: Sets DNS search domains for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.
337
2489d6df 338`--serial[n]` `(/dev/.+|socket)` ::
1f554f76 339
c2993fe5 340Create a serial device inside the VM (n is 0 to 3)
1f554f76 341
2489d6df 342`--shares` `<integer> (0 - 50000)` ('default =' `1000`)::
1f554f76 343
5da3d723 344Amount 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. Auto-ballooning is done by pvestatd.
1f554f76 345
1e3f8156 346`--smbios1` `[base64=<1|0>] [,family=<Base64 encoded string>] [,manufacturer=<Base64 encoded string>] [,product=<Base64 encoded string>] [,serial=<Base64 encoded string>] [,sku=<Base64 encoded string>] [,uuid=<UUID>] [,version=<Base64 encoded string>]` ::
1f554f76
DM
347
348Specify SMBIOS type 1 fields.
349
2489d6df 350`--smp` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
351
352The number of CPUs. Please use option -sockets instead.
353
2489d6df 354`--sockets` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
355
356The number of CPU sockets.
357
1c532546
TL
358`--spice_enhancements` `[foldersharing=<1|0>] [,videostreaming=<off|all|filter>]` ::
359
360Configure additional enhancements for SPICE.
361
27a7acb2
DM
362`--sshkeys` `<filepath>` ::
363
364cloud-init: Setup public SSH keys (one key per line, OpenSSH format).
365
5da3d723
TL
366`--start` `<boolean>` ('default =' `0`)::
367
368Start VM after it was created successfully.
369
2489d6df 370`--startdate` `(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)` ('default =' `now`)::
1f554f76 371
c2993fe5 372Set 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 373
2489d6df 374`--startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
1f554f76 375
c2993fe5 376Startup 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 377
2489d6df 378`--storage` `<string>` ::
1f554f76
DM
379
380Default storage.
381
2489d6df 382`--tablet` `<boolean>` ('default =' `1`)::
1f554f76 383
c2993fe5 384Enable/disable the USB tablet device.
1f554f76 385
5c1699e5
TL
386`--tags` `<string>` ::
387
388Tags of the VM. This is only meta information.
389
2489d6df 390`--tdf` `<boolean>` ('default =' `0`)::
1f554f76
DM
391
392Enable/disable time drift fix.
393
2489d6df 394`--template` `<boolean>` ('default =' `0`)::
1f554f76
DM
395
396Enable/disable Template.
397
2489d6df 398`--unique` `<boolean>` ::
1f554f76
DM
399
400Assign a unique random ethernet address.
401+
402NOTE: Requires option(s): `archive`
403
2489d6df 404`--unused[n]` `<string>` ::
1f554f76 405
c2993fe5 406Reference to unused volumes. This is used internally, and should not be modified manually.
1f554f76 407
2489d6df 408`--usb[n]` `[host=]<HOSTUSBDEVICE|spice> [,usb3=<1|0>]` ::
1f554f76 409
c2993fe5 410Configure an USB device (n is 0 to 4).
1f554f76 411
2489d6df 412`--vcpus` `<integer> (1 - N)` ('default =' `0`)::
1f554f76
DM
413
414Number of hotplugged vcpus.
415
e2d681b3 416`--vga` `[[type=]<enum>] [,memory=<integer>]` ::
1f554f76 417
e2d681b3 418Configure the VGA hardware.
1f554f76 419
27a7acb2 420`--virtio[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_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_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,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>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
1f554f76
DM
421
422Use volume as VIRTIO hard disk (n is 0 to 15).
423
4d47f125
TL
424`--vmgenid` `<UUID>` ('default =' `1 (autogenerated)`)::
425
426Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly.
427
2489d6df
WB
428`--vmstatestorage` `<string>` ::
429
430Default storage for VM state volumes/files.
431
432`--watchdog` `[[model=]<i6300esb|ib700>] [,action=<enum>]` ::
1f554f76 433
c2993fe5 434Create a virtual hardware watchdog device.
1f554f76 435
1f554f76
DM
436*qm delsnapshot* `<vmid> <snapname>` `[OPTIONS]`
437
438Delete a VM snapshot.
439
013dc89f 440`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
441
442The (unique) ID of the VM.
443
013dc89f 444`<snapname>`: `<string>` ::
1f554f76
DM
445
446The name of the snapshot.
447
2489d6df 448`--force` `<boolean>` ::
1f554f76
DM
449
450For removal from config file, even if removing disk snapshots fails.
451
1f554f76
DM
452*qm destroy* `<vmid>` `[OPTIONS]`
453
454Destroy the vm (also delete all used/owned volumes).
455
013dc89f 456`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
457
458The (unique) ID of the VM.
459
1c532546
TL
460`--purge` `<boolean>` ::
461
462Remove vmid from backup cron jobs.
463
2489d6df 464`--skiplock` `<boolean>` ::
1f554f76
DM
465
466Ignore locks - only root is allowed to use this option.
467
4d47f125
TL
468*qm guest cmd* `<vmid> <command>`
469
470Execute Qemu Guest Agent commands.
471
472`<vmid>`: `<integer> (1 - N)` ::
473
474The (unique) ID of the VM.
475
476`<command>`: `<fsfreeze-freeze | fsfreeze-status | fsfreeze-thaw | fstrim | get-fsinfo | get-host-name | get-memory-block-info | get-memory-blocks | get-osinfo | get-time | get-timezone | get-users | get-vcpus | info | network-get-interfaces | ping | shutdown | suspend-disk | suspend-hybrid | suspend-ram>` ::
477
478The QGA command.
479
480*qm guest exec* `<vmid> [<extra-args>]` `[OPTIONS]`
481
482Executes the given command via the guest agent
483
484`<vmid>`: `<integer> (1 - N)` ::
485
486The (unique) ID of the VM.
487
488`<extra-args>`: `<array>` ::
489
490Extra arguments as array
491
492`--synchronous` `<boolean>` ('default =' `1`)::
493
494If set to off, returns the pid immediately instead of waiting for the commmand to finish or the timeout.
495
496`--timeout` `<integer> (0 - N)` ('default =' `30`)::
497
498The maximum time to wait synchronously for the command to finish. If reached, the pid gets returned. Set to 0 to deactivate
499
500*qm guest exec-status* `<vmid> <pid>`
501
502Gets the status of the given pid started by the guest-agent
503
504`<vmid>`: `<integer> (1 - N)` ::
505
506The (unique) ID of the VM.
507
508`<pid>`: `<integer>` ::
509
510The PID to query
511
512*qm guest passwd* `<vmid> <username>` `[OPTIONS]`
513
514Sets the password for the given user to the given password
515
516`<vmid>`: `<integer> (1 - N)` ::
517
518The (unique) ID of the VM.
519
520`<username>`: `<string>` ::
521
522The user to set the password for.
523
524`--crypted` `<boolean>` ('default =' `0`)::
525
526set to 1 if the password has already been passed through crypt()
527
35a75dd3 528*qm help* `[OPTIONS]`
1f554f76
DM
529
530Get help about specified command.
531
35a75dd3 532`--extra-args` `<array>` ::
1f554f76 533
35a75dd3 534Shows help for a specific command
1f554f76 535
2489d6df 536`--verbose` `<boolean>` ::
1f554f76
DM
537
538Verbose output format.
539
5d9c884c
DM
540*qm importdisk* `<vmid> <source> <storage>` `[OPTIONS]`
541
542Import an external disk image as an unused disk in a VM. The
543 image format has to be supported by qemu-img(1).
544
545`<vmid>`: `<integer> (1 - N)` ::
546
547The (unique) ID of the VM.
548
549`<source>`: `<string>` ::
550
551Path to the disk image to import
552
553`<storage>`: `<string>` ::
554
555Target storage ID
556
2489d6df
WB
557`--format` `<qcow2 | raw | vmdk>` ::
558
559Target format
560
2489d6df
WB
561*qm importovf* `<vmid> <manifest> <storage>` `[OPTIONS]`
562
563Create a new VM using parameters read from an OVF manifest
564
565`<vmid>`: `<integer> (1 - N)` ::
566
567The (unique) ID of the VM.
568
569`<manifest>`: `<string>` ::
570
571path to the ovf file
572
573`<storage>`: `<string>` ::
574
575Target storage ID
576
577`--dryrun` `<boolean>` ::
578
579Print a parsed representation of the extracted OVF parameters, but do not create a VM
580
581`--format` `<qcow2 | raw | vmdk>` ::
5d9c884c
DM
582
583Target format
584
9b3e4991 585*qm list* `[OPTIONS]`
1f554f76
DM
586
587Virtual machine index (per node).
588
2489d6df 589`--full` `<boolean>` ::
9b3e4991
DM
590
591Determine the full status of active VMs.
592
de0983cb
DM
593*qm listsnapshot* `<vmid>`
594
595List all snapshots.
596
013dc89f 597`<vmid>`: `<integer> (1 - N)` ::
de0983cb
DM
598
599The (unique) ID of the VM.
600
1f554f76
DM
601*qm migrate* `<vmid> <target>` `[OPTIONS]`
602
603Migrate virtual machine. Creates a new migration task.
604
013dc89f 605`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
606
607The (unique) ID of the VM.
608
013dc89f 609`<target>`: `<string>` ::
1f554f76
DM
610
611Target node.
612
95895385
TL
613`--bwlimit` `<integer> (0 - N)` ('default =' `migrate limit from datacenter or storage config`)::
614
615Override I/O bandwidth limit (in KiB/s).
616
2489d6df 617`--force` `<boolean>` ::
1f554f76 618
c2993fe5 619Allow to migrate VMs which use local devices. Only root may use this option.
1f554f76 620
2489d6df 621`--migration_network` `<string>` ::
de0983cb
DM
622
623CIDR of the (sub) network that is used for migration.
624
2489d6df 625`--migration_type` `<insecure | secure>` ::
de0983cb
DM
626
627Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.
628
2489d6df 629`--online` `<boolean>` ::
1f554f76 630
1c532546 631Use online/live migration if VM is running. Ignored if VM is stopped.
1f554f76 632
2489d6df 633`--targetstorage` `<string>` ::
52e44c50
FG
634
635Default target storage.
636
2489d6df 637`--with-local-disks` `<boolean>` ::
52e44c50
FG
638
639Enable live storage migration for local disk
640
1f554f76
DM
641*qm monitor* `<vmid>`
642
643Enter Qemu Monitor interface.
644
013dc89f 645`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
646
647The (unique) ID of the VM.
648
1f554f76
DM
649*qm move_disk* `<vmid> <disk> <storage>` `[OPTIONS]`
650
651Move volume to different storage.
652
013dc89f 653`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
654
655The (unique) ID of the VM.
656
013dc89f 657`<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
658
659The disk you want to move.
660
013dc89f 661`<storage>`: `<string>` ::
1f554f76
DM
662
663Target storage.
664
95895385
TL
665`--bwlimit` `<integer> (0 - N)` ('default =' `move limit from datacenter or storage config`)::
666
667Override I/O bandwidth limit (in KiB/s).
668
2489d6df 669`--delete` `<boolean>` ('default =' `0`)::
1f554f76 670
c2993fe5 671Delete the original disk after successful copy. By default the original disk is kept as unused disk.
1f554f76 672
2489d6df 673`--digest` `<string>` ::
1f554f76 674
c2993fe5 675Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
1f554f76 676
2489d6df 677`--format` `<qcow2 | raw | vmdk>` ::
1f554f76
DM
678
679Target Format.
680
1f554f76
DM
681*qm mtunnel*
682
683Used by qmigrate - do not use manually.
684
52e44c50
FG
685*qm nbdstop* `<vmid>`
686
687Stop embedded nbd server.
688
689`<vmid>`: `<integer> (1 - N)` ::
690
691The (unique) ID of the VM.
692
1f554f76
DM
693*qm pending* `<vmid>`
694
695Get virtual machine configuration, including pending changes.
696
013dc89f 697`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
698
699The (unique) ID of the VM.
700
1c532546
TL
701*qm reboot* `<vmid>` `[OPTIONS]`
702
703Reboot the VM by shutting it down, and starting it again. Applies pending
704changes.
705
706`<vmid>`: `<integer> (1 - N)` ::
707
708The (unique) ID of the VM.
709
710`--timeout` `<integer> (0 - N)` ::
711
712Wait maximal timeout seconds for the shutdown.
713
1f554f76
DM
714*qm rescan* `[OPTIONS]`
715
716Rescan all storages and update disk sizes and unused disk images.
717
4d47f125
TL
718`--dryrun` `<boolean>` ('default =' `0`)::
719
720Do not actually write changes out to VM config(s).
721
2489d6df 722`--vmid` `<integer> (1 - N)` ::
1f554f76
DM
723
724The (unique) ID of the VM.
725
1f554f76
DM
726*qm reset* `<vmid>` `[OPTIONS]`
727
728Reset virtual machine.
729
013dc89f 730`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
731
732The (unique) ID of the VM.
733
2489d6df 734`--skiplock` `<boolean>` ::
1f554f76
DM
735
736Ignore locks - only root is allowed to use this option.
737
1f554f76
DM
738*qm resize* `<vmid> <disk> <size>` `[OPTIONS]`
739
740Extend volume size.
741
013dc89f 742`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
743
744The (unique) ID of the VM.
745
013dc89f 746`<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
747
748The disk you want to resize.
749
013dc89f 750`<size>`: `\+?\d+(\.\d+)?[KMGT]?` ::
1f554f76 751
5d9c884c 752The 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 753
2489d6df 754`--digest` `<string>` ::
1f554f76 755
c2993fe5 756Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
1f554f76 757
2489d6df 758`--skiplock` `<boolean>` ::
1f554f76
DM
759
760Ignore locks - only root is allowed to use this option.
761
1f554f76
DM
762*qm resume* `<vmid>` `[OPTIONS]`
763
764Resume virtual machine.
765
013dc89f 766`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
767
768The (unique) ID of the VM.
769
2489d6df 770`--nocheck` `<boolean>` ::
1f554f76
DM
771
772no description available
773
2489d6df 774`--skiplock` `<boolean>` ::
1f554f76
DM
775
776Ignore locks - only root is allowed to use this option.
777
1f554f76
DM
778*qm rollback* `<vmid> <snapname>`
779
780Rollback VM state to specified snapshot.
781
013dc89f 782`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
783
784The (unique) ID of the VM.
785
013dc89f 786`<snapname>`: `<string>` ::
1f554f76
DM
787
788The name of the snapshot.
789
1f554f76
DM
790*qm sendkey* `<vmid> <key>` `[OPTIONS]`
791
792Send key event to virtual machine.
793
013dc89f 794`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
795
796The (unique) ID of the VM.
797
013dc89f 798`<key>`: `<string>` ::
1f554f76
DM
799
800The key (qemu monitor encoding).
801
2489d6df 802`--skiplock` `<boolean>` ::
1f554f76
DM
803
804Ignore locks - only root is allowed to use this option.
805
1f554f76
DM
806*qm set* `<vmid>` `[OPTIONS]`
807
808Set virtual machine options (synchrounous API) - You should consider using
809the POST method instead for any actions involving hotplug or storage
810allocation.
811
013dc89f 812`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
813
814The (unique) ID of the VM.
815
2489d6df 816`--acpi` `<boolean>` ('default =' `1`)::
1f554f76
DM
817
818Enable/disable ACPI.
819
5c1699e5 820`--agent` `[enabled=]<1|0> [,fstrim_cloned_disks=<1|0>] [,type=<virtio|isa>]` ::
1f554f76 821
4d47f125 822Enable/disable Qemu GuestAgent and its properties.
1f554f76 823
e2d681b3
TL
824`--arch` `<aarch64 | x86_64>` ::
825
826Virtual processor architecture. Defaults to the host.
827
2489d6df 828`--args` `<string>` ::
1f554f76 829
c2993fe5 830Arbitrary arguments passed to kvm.
1f554f76 831
1c532546
TL
832`--audio0` `device=<ich9-intel-hda|intel-hda|AC97> [,driver=<spice>]` ::
833
834Configure a audio device, useful in combination with QXL/Spice.
835
2489d6df 836`--autostart` `<boolean>` ('default =' `0`)::
1f554f76
DM
837
838Automatic restart after crash (currently ignored).
839
2489d6df 840`--balloon` `<integer> (0 - N)` ::
1f554f76 841
c2993fe5 842Amount of target RAM for the VM in MB. Using zero disables the ballon driver.
1f554f76 843
2489d6df 844`--bios` `<ovmf | seabios>` ('default =' `seabios`)::
1f554f76
DM
845
846Select BIOS implementation.
847
2489d6df 848`--boot` `[acdn]{1,4}` ('default =' `cdn`)::
1f554f76
DM
849
850Boot on floppy (a), hard disk (c), CD-ROM (d), or network (n).
851
2489d6df 852`--bootdisk` `(ide|sata|scsi|virtio)\d+` ::
1f554f76
DM
853
854Enable booting from specified disk.
855
2489d6df 856`--cdrom` `<volume>` ::
1f554f76
DM
857
858This is an alias for option -ide2
859
95895385
TL
860`--cicustom` `[meta=<volume>] [,network=<volume>] [,user=<volume>]` ::
861
862cloud-init: Specify custom files to replace the automatically generated ones at start.
863
27a7acb2
DM
864`--cipassword` `<password>` ::
865
866cloud-init: Password to assign the user. Using this is generally not recommended. Use ssh keys instead. Also note that older cloud-init versions do not support hashed passwords.
867
868`--citype` `<configdrive2 | nocloud>` ::
869
870Specifies the cloud-init configuration format. The default depends on the configured operating system type (`ostype`. We use the `nocloud` format for Linux, and `configdrive2` for windows.
871
872`--ciuser` `<string>` ::
873
874cloud-init: User name to change ssh keys and password for instead of the image's configured default user.
875
2489d6df 876`--cores` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
877
878The number of cores per socket.
879
5f26e15b 880`--cpu` `[cputype=]<enum> [,flags=<+FLAG[;-FLAG...]>] [,hidden=<1|0>] [,hv-vendor-id=<vendor-id>]` ::
1f554f76
DM
881
882Emulated CPU type.
883
2489d6df 884`--cpulimit` `<number> (0 - 128)` ('default =' `0`)::
1f554f76 885
9b3e4991 886Limit of CPU usage.
1f554f76 887
2489d6df 888`--cpuunits` `<integer> (2 - 262144)` ('default =' `1024`)::
1f554f76 889
c2993fe5 890CPU weight for a VM.
1f554f76 891
2489d6df 892`--delete` `<string>` ::
1f554f76
DM
893
894A list of settings you want to delete.
895
2489d6df 896`--description` `<string>` ::
1f554f76 897
c2993fe5 898Description for the VM. Only used on the configuration web interface. This is saved as comment inside the configuration file.
1f554f76 899
2489d6df 900`--digest` `<string>` ::
1f554f76 901
c2993fe5 902Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
1f554f76 903
2489d6df 904`--efidisk0` `[file=]<volume> [,format=<enum>] [,size=<DiskSize>]` ::
2c0dde61
DM
905
906Configure a Disk for storing EFI vars
907
2489d6df 908`--force` `<boolean>` ::
1f554f76 909
c2993fe5 910Force 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
911+
912NOTE: Requires option(s): `delete`
913
2489d6df 914`--freeze` `<boolean>` ::
1f554f76
DM
915
916Freeze CPU at startup (use 'c' monitor command to start execution).
917
5f26e15b
TL
918`--hookscript` `<string>` ::
919
920Script that will be executed during various steps in the vms lifetime.
921
e2d681b3 922`--hostpci[n]` `[host=]<HOSTPCIID[;HOSTPCIID2...]> [,mdev=<string>] [,pcie=<1|0>] [,rombar=<1|0>] [,romfile=<string>] [,x-vga=<1|0>]` ::
1f554f76 923
c2993fe5 924Map host PCI devices into guest.
1f554f76 925
2489d6df 926`--hotplug` `<string>` ('default =' `network,disk,usb`)::
1f554f76 927
c2993fe5 928Selectively 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 929
2489d6df 930`--hugepages` `<1024 | 2 | any>` ::
2c0dde61
DM
931
932Enable/disable hugepages memory.
933
95895385 934`--ide[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_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_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]` ::
1f554f76
DM
935
936Use volume as IDE hard disk or CD-ROM (n is 0 to 3).
937
27a7acb2
DM
938`--ipconfig[n]` `[gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>]` ::
939
940cloud-init: Specify IP addresses and gateways for the corresponding interface.
941+
942IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified.
943+
944The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided.
945For IPv6 the special string 'auto' can be used to use stateless autoconfiguration.
946+
947If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4.
948
95895385
TL
949`--ivshmem` `size=<integer> [,name=<string>]` ::
950
951Inter-VM shared memory. Useful for direct communication between VMs, or to the host.
952
35a75dd3 953`--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>` ::
1f554f76 954
5da3d723 955Keybord layout for vnc server. Default is read from the '/etc/pve/datacenter.cfg' configuration file.It should not be necessary to set it.
1f554f76 956
2489d6df 957`--kvm` `<boolean>` ('default =' `1`)::
1f554f76
DM
958
959Enable/disable KVM hardware virtualization.
960
2489d6df 961`--localtime` `<boolean>` ::
1f554f76 962
c2993fe5 963Set the real time clock to local time. This is enabled by default if ostype indicates a Microsoft OS.
1f554f76 964
95895385 965`--lock` `<backup | clone | create | migrate | rollback | snapshot | snapshot-delete | suspended | suspending>` ::
1f554f76
DM
966
967Lock/unlock the VM.
968
5c1699e5 969`--machine` `(pc|pc(-i440fx)?-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|q35|pc-q35-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|virt(?:-\d+(\.\d+)+)?(\+pve\d+)?)` ::
1f554f76 970
4d47f125 971Specifies the Qemu machine type.
1f554f76 972
2489d6df 973`--memory` `<integer> (16 - N)` ('default =' `512`)::
1f554f76 974
c2993fe5 975Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device.
1f554f76 976
2489d6df 977`--migrate_downtime` `<number> (0 - N)` ('default =' `0.1`)::
1f554f76
DM
978
979Set maximum tolerated downtime (in seconds) for migrations.
980
2489d6df 981`--migrate_speed` `<integer> (0 - N)` ('default =' `0`)::
1f554f76
DM
982
983Set maximum speed (in MB/s) for migrations. Value 0 is no limit.
984
2489d6df 985`--name` `<string>` ::
1f554f76
DM
986
987Set a name for the VM. Only used on the configuration web interface.
988
27a7acb2
DM
989`--nameserver` `<string>` ::
990
991cloud-init: Sets DNS server IP address for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.
992
2489d6df 993`--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
994
995Specify network devices.
1f554f76 996
2489d6df 997`--numa` `<boolean>` ('default =' `0`)::
1f554f76 998
9b3e4991 999Enable/disable NUMA.
1f554f76 1000
2489d6df 1001`--numa[n]` `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` ::
1f554f76 1002
c2993fe5 1003NUMA topology.
1f554f76 1004
2489d6df 1005`--onboot` `<boolean>` ('default =' `0`)::
1f554f76
DM
1006
1007Specifies whether a VM will be started during system bootup.
1008
2489d6df 1009`--ostype` `<l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win7 | win8 | wvista | wxp>` ::
1f554f76 1010
c2993fe5 1011Specify guest operating system.
1f554f76 1012
2489d6df 1013`--parallel[n]` `/dev/parport\d+|/dev/usb/lp\d+` ::
1f554f76
DM
1014
1015Map host parallel devices (n is 0 to 2).
1f554f76 1016
2489d6df 1017`--protection` `<boolean>` ('default =' `0`)::
1f554f76 1018
c2993fe5 1019Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.
1f554f76 1020
2489d6df 1021`--reboot` `<boolean>` ('default =' `1`)::
1f554f76
DM
1022
1023Allow reboot. If set to '0' the VM exit on reboot.
1024
2489d6df 1025`--revert` `<string>` ::
1f554f76
DM
1026
1027Revert a pending change.
1028
95895385 1029`--sata[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_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_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]` ::
1f554f76
DM
1030
1031Use volume as SATA hard disk or CD-ROM (n is 0 to 5).
1032
95895385 1033`--scsi[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_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_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,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>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,scsiblock=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]` ::
1f554f76
DM
1034
1035Use volume as SCSI hard disk or CD-ROM (n is 0 to 13).
1036
2489d6df 1037`--scsihw` `<lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single>` ('default =' `lsi`)::
1f554f76 1038
c2993fe5 1039SCSI controller model
1f554f76 1040
27a7acb2
DM
1041`--searchdomain` `<string>` ::
1042
1043cloud-init: Sets DNS search domains for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.
1044
2489d6df 1045`--serial[n]` `(/dev/.+|socket)` ::
1f554f76 1046
c2993fe5 1047Create a serial device inside the VM (n is 0 to 3)
1f554f76 1048
2489d6df 1049`--shares` `<integer> (0 - 50000)` ('default =' `1000`)::
1f554f76 1050
5da3d723 1051Amount 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. Auto-ballooning is done by pvestatd.
1f554f76 1052
2489d6df 1053`--skiplock` `<boolean>` ::
1f554f76
DM
1054
1055Ignore locks - only root is allowed to use this option.
1056
1e3f8156 1057`--smbios1` `[base64=<1|0>] [,family=<Base64 encoded string>] [,manufacturer=<Base64 encoded string>] [,product=<Base64 encoded string>] [,serial=<Base64 encoded string>] [,sku=<Base64 encoded string>] [,uuid=<UUID>] [,version=<Base64 encoded string>]` ::
1f554f76
DM
1058
1059Specify SMBIOS type 1 fields.
1060
2489d6df 1061`--smp` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
1062
1063The number of CPUs. Please use option -sockets instead.
1064
2489d6df 1065`--sockets` `<integer> (1 - N)` ('default =' `1`)::
1f554f76
DM
1066
1067The number of CPU sockets.
1068
1c532546
TL
1069`--spice_enhancements` `[foldersharing=<1|0>] [,videostreaming=<off|all|filter>]` ::
1070
1071Configure additional enhancements for SPICE.
1072
27a7acb2
DM
1073`--sshkeys` `<filepath>` ::
1074
1075cloud-init: Setup public SSH keys (one key per line, OpenSSH format).
1076
2489d6df 1077`--startdate` `(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)` ('default =' `now`)::
1f554f76 1078
c2993fe5 1079Set 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 1080
2489d6df 1081`--startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` ::
1f554f76 1082
c2993fe5 1083Startup 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 1084
2489d6df 1085`--tablet` `<boolean>` ('default =' `1`)::
1f554f76 1086
c2993fe5 1087Enable/disable the USB tablet device.
1f554f76 1088
5c1699e5
TL
1089`--tags` `<string>` ::
1090
1091Tags of the VM. This is only meta information.
1092
2489d6df 1093`--tdf` `<boolean>` ('default =' `0`)::
1f554f76
DM
1094
1095Enable/disable time drift fix.
1096
2489d6df 1097`--template` `<boolean>` ('default =' `0`)::
1f554f76
DM
1098
1099Enable/disable Template.
1100
2489d6df 1101`--unused[n]` `<string>` ::
1f554f76 1102
c2993fe5 1103Reference to unused volumes. This is used internally, and should not be modified manually.
1f554f76 1104
2489d6df 1105`--usb[n]` `[host=]<HOSTUSBDEVICE|spice> [,usb3=<1|0>]` ::
1f554f76 1106
c2993fe5 1107Configure an USB device (n is 0 to 4).
1f554f76 1108
2489d6df 1109`--vcpus` `<integer> (1 - N)` ('default =' `0`)::
1f554f76
DM
1110
1111Number of hotplugged vcpus.
1112
e2d681b3 1113`--vga` `[[type=]<enum>] [,memory=<integer>]` ::
1f554f76 1114
e2d681b3 1115Configure the VGA hardware.
1f554f76 1116
27a7acb2 1117`--virtio[n]` `[file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_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_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,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>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` ::
1f554f76
DM
1118
1119Use volume as VIRTIO hard disk (n is 0 to 15).
1120
4d47f125
TL
1121`--vmgenid` `<UUID>` ('default =' `1 (autogenerated)`)::
1122
1123Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly.
1124
2489d6df
WB
1125`--vmstatestorage` `<string>` ::
1126
1127Default storage for VM state volumes/files.
1128
1129`--watchdog` `[[model=]<i6300esb|ib700>] [,action=<enum>]` ::
1f554f76 1130
c2993fe5 1131Create a virtual hardware watchdog device.
1f554f76 1132
35a75dd3 1133*qm showcmd* `<vmid>` `[OPTIONS]`
1f554f76
DM
1134
1135Show command line which is used to start the VM (debug info).
1136
013dc89f 1137`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1138
1139The (unique) ID of the VM.
1140
35a75dd3 1141`--pretty` `<boolean>` ('default =' `0`)::
1f554f76 1142
35a75dd3 1143Puts each option on a new line to enhance human readability
1f554f76 1144
5f26e15b
TL
1145`--snapshot` `<string>` ::
1146
1147Fetch config values from given snapshot.
1148
1f554f76
DM
1149*qm shutdown* `<vmid>` `[OPTIONS]`
1150
9b3e4991
DM
1151Shutdown virtual machine. This is similar to pressing the power button on a
1152physical machine.This will send an ACPI event for the guest OS, which
1153should then proceed to a clean shutdown.
1f554f76 1154
013dc89f 1155`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1156
1157The (unique) ID of the VM.
1158
2489d6df 1159`--forceStop` `<boolean>` ('default =' `0`)::
1f554f76
DM
1160
1161Make sure the VM stops.
1162
2489d6df 1163`--keepActive` `<boolean>` ('default =' `0`)::
1f554f76 1164
de0983cb 1165Do not deactivate storage volumes.
1f554f76 1166
2489d6df 1167`--skiplock` `<boolean>` ::
1f554f76
DM
1168
1169Ignore locks - only root is allowed to use this option.
1170
2489d6df 1171`--timeout` `<integer> (0 - N)` ::
1f554f76
DM
1172
1173Wait maximal timeout seconds.
1174
1f554f76
DM
1175*qm snapshot* `<vmid> <snapname>` `[OPTIONS]`
1176
1177Snapshot a VM.
1178
013dc89f 1179`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1180
1181The (unique) ID of the VM.
1182
013dc89f 1183`<snapname>`: `<string>` ::
1f554f76
DM
1184
1185The name of the snapshot.
1186
2489d6df 1187`--description` `<string>` ::
1f554f76
DM
1188
1189A textual description or comment.
1190
2489d6df 1191`--vmstate` `<boolean>` ::
1f554f76
DM
1192
1193Save the vmstate
1194
1f554f76
DM
1195*qm start* `<vmid>` `[OPTIONS]`
1196
1197Start virtual machine.
1198
013dc89f 1199`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1200
1201The (unique) ID of the VM.
1202
5c1699e5 1203`--machine` `(pc|pc(-i440fx)?-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|q35|pc-q35-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|virt(?:-\d+(\.\d+)+)?(\+pve\d+)?)` ::
1f554f76 1204
4d47f125 1205Specifies the Qemu machine type.
1f554f76 1206
2489d6df 1207`--migratedfrom` `<string>` ::
1f554f76
DM
1208
1209The cluster node name.
1210
2489d6df 1211`--migration_network` `<string>` ::
de0983cb
DM
1212
1213CIDR of the (sub) network that is used for migration.
1214
2489d6df 1215`--migration_type` `<insecure | secure>` ::
de0983cb
DM
1216
1217Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.
1218
2489d6df 1219`--skiplock` `<boolean>` ::
1f554f76
DM
1220
1221Ignore locks - only root is allowed to use this option.
1222
2489d6df 1223`--stateuri` `<string>` ::
1f554f76
DM
1224
1225Some command save/restore state from this location.
1226
2489d6df 1227`--targetstorage` `<string>` ::
52e44c50
FG
1228
1229Target storage for the migration. (Can be '1' to use the same storage id as on the source node.)
1230
1f554f76
DM
1231*qm status* `<vmid>` `[OPTIONS]`
1232
1233Show VM status.
1234
013dc89f 1235`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1236
1237The (unique) ID of the VM.
1238
2489d6df 1239`--verbose` `<boolean>` ::
1f554f76
DM
1240
1241Verbose output format
1242
1f554f76
DM
1243*qm stop* `<vmid>` `[OPTIONS]`
1244
9b3e4991
DM
1245Stop virtual machine. The qemu process will exit immediately. Thisis akin
1246to pulling the power plug of a running computer and may damage the VM data
1f554f76 1247
013dc89f 1248`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1249
1250The (unique) ID of the VM.
1251
2489d6df 1252`--keepActive` `<boolean>` ('default =' `0`)::
1f554f76 1253
de0983cb 1254Do not deactivate storage volumes.
1f554f76 1255
2489d6df 1256`--migratedfrom` `<string>` ::
1f554f76
DM
1257
1258The cluster node name.
1259
2489d6df 1260`--skiplock` `<boolean>` ::
1f554f76
DM
1261
1262Ignore locks - only root is allowed to use this option.
1263
2489d6df 1264`--timeout` `<integer> (0 - N)` ::
1f554f76
DM
1265
1266Wait maximal timeout seconds.
1267
1f554f76
DM
1268*qm suspend* `<vmid>` `[OPTIONS]`
1269
1270Suspend virtual machine.
1271
013dc89f 1272`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1273
1274The (unique) ID of the VM.
1275
2489d6df 1276`--skiplock` `<boolean>` ::
1f554f76
DM
1277
1278Ignore locks - only root is allowed to use this option.
1279
95895385
TL
1280`--statestorage` `<string>` ::
1281
1282The storage for the VM state
1283+
1284NOTE: Requires option(s): `todisk`
1285
1286`--todisk` `<boolean>` ('default =' `0`)::
1287
1288If set, suspends the VM to disk. Will be resumed on next VM start.
1289
1f554f76
DM
1290*qm template* `<vmid>` `[OPTIONS]`
1291
1292Create a Template.
1293
013dc89f 1294`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1295
1296The (unique) ID of the VM.
1297
2489d6df 1298`--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
1299
1300If you want to convert only 1 disk to base image.
1301
1f554f76
DM
1302*qm terminal* `<vmid>` `[OPTIONS]`
1303
1304Open a terminal using a serial device (The VM need to have a serial device
1305configured, for example 'serial0: socket')
1306
013dc89f 1307`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1308
1309The (unique) ID of the VM.
1310
35a75dd3 1311`--escape` `<string>` ('default =' `^O`)::
1f554f76 1312
35a75dd3 1313Escape character.
1f554f76 1314
35a75dd3 1315`--iface` `<serial0 | serial1 | serial2 | serial3>` ::
1f554f76 1316
35a75dd3 1317Select the serial device. By default we simply use the first suitable device.
1f554f76 1318
2489d6df 1319*qm unlink* `<vmid> --idlist <string>` `[OPTIONS]`
1f554f76
DM
1320
1321Unlink/delete disk images.
1322
013dc89f 1323`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1324
1325The (unique) ID of the VM.
1326
2489d6df 1327`--force` `<boolean>` ::
1f554f76 1328
c2993fe5 1329Force 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 1330
2489d6df 1331`--idlist` `<string>` ::
1f554f76
DM
1332
1333A list of disk IDs you want to delete.
1334
1f554f76
DM
1335*qm unlock* `<vmid>`
1336
1337Unlock the VM.
1338
013dc89f 1339`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1340
1341The (unique) ID of the VM.
1342
1f554f76
DM
1343*qm vncproxy* `<vmid>`
1344
1345Proxy VM VNC traffic to stdin/stdout
1346
013dc89f 1347`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1348
1349The (unique) ID of the VM.
1350
1f554f76
DM
1351*qm wait* `<vmid>` `[OPTIONS]`
1352
1353Wait until the VM is stopped.
1354
013dc89f 1355`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
1356
1357The (unique) ID of the VM.
1358
2489d6df 1359`--timeout` `<integer> (1 - N)` ::
1f554f76
DM
1360
1361Timeout in seconds. Default is to wait forever.
1362
1363