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