]>
Commit | Line | Data |
---|---|---|
1f554f76 DM |
1 | *qm* `<COMMAND> [ARGS] [OPTIONS]` |
2 | ||
4d47f125 | 3 | *qm agent* |
32d876b5 | 4 | |
4d47f125 | 5 | An alias for 'qm guest cmd'. |
32d876b5 | 6 | |
e2d681b3 TL |
7 | *qm cleanup* `<vmid> <clean-shutdown> <guest-requested>` |
8 | ||
9 | Cleans up resources like tap devices, vgpus, etc. Called after a vm shuts | |
10 | down, crashes, etc. | |
11 | ||
12 | `<vmid>`: `<integer> (1 - N)` :: | |
13 | ||
14 | The (unique) ID of the VM. | |
15 | ||
16 | `<clean-shutdown>`: `<boolean>` :: | |
17 | ||
18 | Indicates if qemu shutdown cleanly. | |
19 | ||
20 | `<guest-requested>`: `<boolean>` :: | |
21 | ||
22 | Indicates if the shutdown was requested by the guest or via qmp. | |
23 | ||
1f554f76 DM |
24 | *qm clone* `<vmid> <newid>` `[OPTIONS]` |
25 | ||
26 | Create a copy of virtual machine/template. | |
27 | ||
013dc89f | 28 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
29 | |
30 | The (unique) ID of the VM. | |
31 | ||
013dc89f | 32 | `<newid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
33 | |
34 | VMID for the clone. | |
35 | ||
95895385 TL |
36 | `--bwlimit` `<integer> (0 - N)` ('default =' `clone limit from datacenter or storage config`):: |
37 | ||
38 | Override I/O bandwidth limit (in KiB/s). | |
39 | ||
2489d6df | 40 | `--description` `<string>` :: |
1f554f76 DM |
41 | |
42 | Description for the new VM. | |
43 | ||
2489d6df | 44 | `--format` `<qcow2 | raw | vmdk>` :: |
1f554f76 | 45 | |
27a7acb2 | 46 | Target format for file storage. Only valid for full clone. |
1f554f76 | 47 | |
27a7acb2 | 48 | `--full` `<boolean>` :: |
1f554f76 | 49 | |
27a7acb2 | 50 | Create 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 | |
54 | Set a name for the new VM. | |
55 | ||
2489d6df | 56 | `--pool` `<string>` :: |
1f554f76 DM |
57 | |
58 | Add the new VM to the specified pool. | |
59 | ||
2489d6df | 60 | `--snapname` `<string>` :: |
1f554f76 DM |
61 | |
62 | The name of the snapshot. | |
63 | ||
2489d6df | 64 | `--storage` `<string>` :: |
1f554f76 DM |
65 | |
66 | Target storage for full clone. | |
1f554f76 | 67 | |
2489d6df | 68 | `--target` `<string>` :: |
1f554f76 DM |
69 | |
70 | Target node. Only allowed if the original VM is on shared storage. | |
71 | ||
1e3f8156 TL |
72 | *qm cloudinit dump* `<vmid> <type>` |
73 | ||
74 | Get automatically generated cloudinit config. | |
75 | ||
76 | `<vmid>`: `<integer> (1 - N)` :: | |
77 | ||
78 | The (unique) ID of the VM. | |
79 | ||
80 | `<type>`: `<meta | network | user>` :: | |
81 | ||
82 | Config type. | |
83 | ||
1f554f76 DM |
84 | *qm config* `<vmid>` `[OPTIONS]` |
85 | ||
e9cd3bd4 TL |
86 | Get the virtual machine configuration with pending configuration changes |
87 | applied. Set the 'current' parameter to get the current configuration | |
88 | instead. | |
1f554f76 | 89 | |
013dc89f | 90 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
91 | |
92 | The (unique) ID of the VM. | |
93 | ||
2489d6df | 94 | `--current` `<boolean>` ('default =' `0`):: |
1f554f76 DM |
95 | |
96 | Get current values (instead of pending values). | |
97 | ||
5f26e15b TL |
98 | `--snapshot` `<string>` :: |
99 | ||
100 | Fetch config values from given snapshot. | |
101 | ||
1f554f76 DM |
102 | *qm create* `<vmid>` `[OPTIONS]` |
103 | ||
104 | Create or restore a virtual machine. | |
105 | ||
013dc89f | 106 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
107 | |
108 | The (unique) ID of the VM. | |
109 | ||
2489d6df | 110 | `--acpi` `<boolean>` ('default =' `1`):: |
1f554f76 DM |
111 | |
112 | Enable/disable ACPI. | |
113 | ||
5c1699e5 | 114 | `--agent` `[enabled=]<1|0> [,fstrim_cloned_disks=<1|0>] [,type=<virtio|isa>]` :: |
1f554f76 | 115 | |
5370fa8c | 116 | Enable/disable communication with the Qemu Guest Agent and its properties. |
1f554f76 | 117 | |
e2d681b3 TL |
118 | `--arch` `<aarch64 | x86_64>` :: |
119 | ||
120 | Virtual processor architecture. Defaults to the host. | |
121 | ||
2489d6df | 122 | `--archive` `<string>` :: |
1f554f76 | 123 | |
c5aa7e14 | 124 | The backup archive. Either the file system path to a .tar or .vma file (use '-' to pipe data from stdin) or a proxmox storage backup volume identifier. |
1f554f76 | 125 | |
2489d6df | 126 | `--args` `<string>` :: |
1f554f76 | 127 | |
c2993fe5 | 128 | Arbitrary arguments passed to kvm. |
1f554f76 | 129 | |
d2656385 | 130 | `--audio0` `device=<ich9-intel-hda|intel-hda|AC97> [,driver=<spice|none>]` :: |
1c532546 TL |
131 | |
132 | Configure a audio device, useful in combination with QXL/Spice. | |
133 | ||
2489d6df | 134 | `--autostart` `<boolean>` ('default =' `0`):: |
1f554f76 DM |
135 | |
136 | Automatic restart after crash (currently ignored). | |
137 | ||
2489d6df | 138 | `--balloon` `<integer> (0 - N)` :: |
1f554f76 | 139 | |
c2993fe5 | 140 | Amount of target RAM for the VM in MB. Using zero disables the ballon driver. |
1f554f76 | 141 | |
2489d6df | 142 | `--bios` `<ovmf | seabios>` ('default =' `seabios`):: |
1f554f76 DM |
143 | |
144 | Select BIOS implementation. | |
145 | ||
4772952b | 146 | `--boot` `[[legacy=]<[acdn]{1,4}>] [,order=<device[;device...]>]` :: |
1f554f76 | 147 | |
5370fa8c | 148 | Specify guest boot order. Use the 'order=' sub-property as usage with no key or 'legacy=' is deprecated. |
1f554f76 | 149 | |
2489d6df | 150 | `--bootdisk` `(ide|sata|scsi|virtio)\d+` :: |
1f554f76 | 151 | |
4772952b | 152 | Enable booting from specified disk. Deprecated: Use 'boot: order=foo;bar' instead. |
1f554f76 | 153 | |
95895385 | 154 | `--bwlimit` `<integer> (0 - N)` ('default =' `restore limit from datacenter or storage config`):: |
27a7acb2 | 155 | |
95895385 | 156 | Override I/O bandwidth limit (in KiB/s). |
27a7acb2 | 157 | |
2489d6df | 158 | `--cdrom` `<volume>` :: |
1f554f76 DM |
159 | |
160 | This is an alias for option -ide2 | |
161 | ||
5370fa8c | 162 | `--cicustom` `[meta=<volume>] [,network=<volume>] [,user=<volume>] [,vendor=<volume>]` :: |
95895385 TL |
163 | |
164 | cloud-init: Specify custom files to replace the automatically generated ones at start. | |
165 | ||
27a7acb2 DM |
166 | `--cipassword` `<password>` :: |
167 | ||
168 | cloud-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. | |
169 | ||
d2656385 | 170 | `--citype` `<configdrive2 | nocloud | opennebula>` :: |
27a7acb2 DM |
171 | |
172 | Specifies 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. | |
173 | ||
174 | `--ciuser` `<string>` :: | |
175 | ||
176 | cloud-init: User name to change ssh keys and password for instead of the image's configured default user. | |
177 | ||
2489d6df | 178 | `--cores` `<integer> (1 - N)` ('default =' `1`):: |
1f554f76 DM |
179 | |
180 | The number of cores per socket. | |
181 | ||
04d22a9f | 182 | `--cpu` `[[cputype=]<string>] [,flags=<+FLAG[;-FLAG...]>] [,hidden=<1|0>] [,hv-vendor-id=<vendor-id>] [,phys-bits=<8-64|host>] [,reported-model=<enum>]` :: |
1f554f76 DM |
183 | |
184 | Emulated CPU type. | |
185 | ||
2489d6df | 186 | `--cpulimit` `<number> (0 - 128)` ('default =' `0`):: |
1f554f76 | 187 | |
9b3e4991 | 188 | Limit of CPU usage. |
1f554f76 | 189 | |
7af2edf9 | 190 | `--cpuunits` `<integer> (1 - 262144)` ('default =' `cgroup v1: 1024, cgroup v2: 100`):: |
1f554f76 | 191 | |
5370fa8c | 192 | CPU weight for a VM, will be clamped to [1, 10000] in cgroup v2. |
1f554f76 | 193 | |
2489d6df | 194 | `--description` `<string>` :: |
1f554f76 | 195 | |
8f4d9c87 | 196 | Description for the VM. Shown in the web-interface VM's summary. This is saved as comment inside the configuration file. |
1f554f76 | 197 | |
7af2edf9 | 198 | `--efidisk0` `[file=]<volume> [,efitype=<2m|4m>] [,format=<enum>] [,import-from=<source volume>] [,pre-enrolled-keys=<1|0>] [,size=<DiskSize>]` :: |
2c0dde61 | 199 | |
7af2edf9 | 200 | Configure a Disk for storing EFI vars. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Note that SIZE_IN_GiB is ignored here and that the default EFI vars are copied to the volume instead. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume. |
2c0dde61 | 201 | |
2489d6df | 202 | `--force` `<boolean>` :: |
1f554f76 DM |
203 | |
204 | Allow to overwrite existing VM. | |
205 | + | |
206 | NOTE: Requires option(s): `archive` | |
207 | ||
2489d6df | 208 | `--freeze` `<boolean>` :: |
1f554f76 DM |
209 | |
210 | Freeze CPU at startup (use 'c' monitor command to start execution). | |
211 | ||
5f26e15b TL |
212 | `--hookscript` `<string>` :: |
213 | ||
214 | Script that will be executed during various steps in the vms lifetime. | |
215 | ||
7af2edf9 | 216 | `--hostpci[n]` `[host=]<HOSTPCIID[;HOSTPCIID2...]> [,device-id=<hex id>] [,legacy-igd=<1|0>] [,mdev=<string>] [,pcie=<1|0>] [,rombar=<1|0>] [,romfile=<string>] [,sub-device-id=<hex id>] [,sub-vendor-id=<hex id>] [,vendor-id=<hex id>] [,x-vga=<1|0>]` :: |
1f554f76 | 217 | |
c2993fe5 | 218 | Map host PCI devices into guest. |
1f554f76 | 219 | |
2489d6df | 220 | `--hotplug` `<string>` ('default =' `network,disk,usb`):: |
1f554f76 | 221 | |
5370fa8c | 222 | Selectively enable hotplug features. This is a comma separated list of hotplug features: 'network', 'disk', 'cpu', 'memory' and 'usb'. Use '0' to disable hotplug completely. Using '1' as value is an alias for the default `network,disk,usb`. |
1f554f76 | 223 | |
2489d6df | 224 | `--hugepages` `<1024 | 2 | any>` :: |
2c0dde61 DM |
225 | |
226 | Enable/disable hugepages memory. | |
227 | ||
7af2edf9 | 228 | `--ide[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,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>] [,import-from=<source volume>] [,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 | 229 | |
7af2edf9 | 230 | Use volume as IDE hard disk or CD-ROM (n is 0 to 3). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume. |
1f554f76 | 231 | |
27a7acb2 DM |
232 | `--ipconfig[n]` `[gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>]` :: |
233 | ||
234 | cloud-init: Specify IP addresses and gateways for the corresponding interface. | |
235 | + | |
236 | IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. | |
237 | + | |
4772952b TL |
238 | The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit |
239 | gateway should be provided. | |
d2656385 TL |
240 | For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires |
241 | cloud-init 19.4 or newer. | |
27a7acb2 | 242 | + |
4772952b TL |
243 | If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using |
244 | dhcp on IPv4. | |
27a7acb2 | 245 | |
95895385 TL |
246 | `--ivshmem` `size=<integer> [,name=<string>]` :: |
247 | ||
248 | Inter-VM shared memory. Useful for direct communication between VMs, or to the host. | |
249 | ||
4772952b TL |
250 | `--keephugepages` `<boolean>` ('default =' `0`):: |
251 | ||
252 | Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts. | |
253 | ||
35a75dd3 | 254 | `--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 | 255 | |
7af2edf9 | 256 | Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS. |
1f554f76 | 257 | |
2489d6df | 258 | `--kvm` `<boolean>` ('default =' `1`):: |
1f554f76 DM |
259 | |
260 | Enable/disable KVM hardware virtualization. | |
261 | ||
d2656385 TL |
262 | `--live-restore` `<boolean>` :: |
263 | ||
264 | Start the VM immediately from the backup and restore in background. PBS only. | |
265 | + | |
266 | NOTE: Requires option(s): `archive` | |
267 | ||
2489d6df | 268 | `--localtime` `<boolean>` :: |
1f554f76 | 269 | |
5370fa8c | 270 | Set the real time clock (RTC) to local time. This is enabled by default if the `ostype` indicates a Microsoft Windows OS. |
1f554f76 | 271 | |
95895385 | 272 | `--lock` `<backup | clone | create | migrate | rollback | snapshot | snapshot-delete | suspended | suspending>` :: |
1f554f76 DM |
273 | |
274 | Lock/unlock the VM. | |
275 | ||
5c1699e5 | 276 | `--machine` `(pc|pc(-i440fx)?-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|q35|pc-q35-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|virt(?:-\d+(\.\d+)+)?(\+pve\d+)?)` :: |
1f554f76 | 277 | |
4d47f125 | 278 | Specifies the Qemu machine type. |
1f554f76 | 279 | |
2489d6df | 280 | `--memory` `<integer> (16 - N)` ('default =' `512`):: |
1f554f76 | 281 | |
c2993fe5 | 282 | Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device. |
1f554f76 | 283 | |
2489d6df | 284 | `--migrate_downtime` `<number> (0 - N)` ('default =' `0.1`):: |
1f554f76 DM |
285 | |
286 | Set maximum tolerated downtime (in seconds) for migrations. | |
287 | ||
2489d6df | 288 | `--migrate_speed` `<integer> (0 - N)` ('default =' `0`):: |
1f554f76 DM |
289 | |
290 | Set maximum speed (in MB/s) for migrations. Value 0 is no limit. | |
291 | ||
2489d6df | 292 | `--name` `<string>` :: |
1f554f76 DM |
293 | |
294 | Set a name for the VM. Only used on the configuration web interface. | |
295 | ||
27a7acb2 DM |
296 | `--nameserver` `<string>` :: |
297 | ||
4772952b TL |
298 | cloud-init: Sets DNS server IP address for a container. Create will' |
299 | .' automatically use the setting from the host if neither searchdomain nor nameserver' | |
300 | .' are set. | |
27a7acb2 | 301 | |
ac70d7d1 | 302 | `--net[n]` `[model=]<enum> [,bridge=<bridge>] [,firewall=<1|0>] [,link_down=<1|0>] [,macaddr=<XX:XX:XX:XX:XX:XX>] [,mtu=<integer>] [,queues=<integer>] [,rate=<number>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,<model>=<macaddr>]` :: |
1f554f76 DM |
303 | |
304 | Specify network devices. | |
1f554f76 | 305 | |
2489d6df | 306 | `--numa` `<boolean>` ('default =' `0`):: |
1f554f76 | 307 | |
9b3e4991 | 308 | Enable/disable NUMA. |
1f554f76 | 309 | |
2489d6df | 310 | `--numa[n]` `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` :: |
1f554f76 | 311 | |
c2993fe5 | 312 | NUMA topology. |
1f554f76 | 313 | |
2489d6df | 314 | `--onboot` `<boolean>` ('default =' `0`):: |
1f554f76 DM |
315 | |
316 | Specifies whether a VM will be started during system bootup. | |
317 | ||
5370fa8c | 318 | `--ostype` `<l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win11 | win7 | win8 | wvista | wxp>` :: |
1f554f76 | 319 | |
c2993fe5 | 320 | Specify guest operating system. |
1f554f76 | 321 | |
2489d6df | 322 | `--parallel[n]` `/dev/parport\d+|/dev/usb/lp\d+` :: |
1f554f76 DM |
323 | |
324 | Map host parallel devices (n is 0 to 2). | |
1f554f76 | 325 | |
2489d6df | 326 | `--pool` `<string>` :: |
1f554f76 DM |
327 | |
328 | Add the VM to the specified pool. | |
329 | ||
2489d6df | 330 | `--protection` `<boolean>` ('default =' `0`):: |
1f554f76 | 331 | |
c2993fe5 | 332 | Sets the protection flag of the VM. This will disable the remove VM and remove disk operations. |
1f554f76 | 333 | |
2489d6df | 334 | `--reboot` `<boolean>` ('default =' `1`):: |
1f554f76 DM |
335 | |
336 | Allow reboot. If set to '0' the VM exit on reboot. | |
337 | ||
c5aa7e14 TL |
338 | `--rng0` `[source=]</dev/urandom|/dev/random|/dev/hwrng> [,max_bytes=<integer>] [,period=<integer>]` :: |
339 | ||
340 | Configure a VirtIO-based Random Number Generator. | |
341 | ||
7af2edf9 | 342 | `--sata[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,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>] [,import-from=<source volume>] [,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 | 343 | |
7af2edf9 | 344 | Use volume as SATA hard disk or CD-ROM (n is 0 to 5). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume. |
1f554f76 | 345 | |
7af2edf9 | 346 | `--scsi[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,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>] [,import-from=<source volume>] [,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>] [,ro=<1|0>] [,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 | 347 | |
7af2edf9 | 348 | Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume. |
1f554f76 | 349 | |
2489d6df | 350 | `--scsihw` `<lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single>` ('default =' `lsi`):: |
1f554f76 | 351 | |
c2993fe5 | 352 | SCSI controller model |
1f554f76 | 353 | |
27a7acb2 DM |
354 | `--searchdomain` `<string>` :: |
355 | ||
4772952b TL |
356 | cloud-init: Sets DNS search domains for a container. Create will' |
357 | .' automatically use the setting from the host if neither searchdomain nor nameserver' | |
358 | .' are set. | |
27a7acb2 | 359 | |
2489d6df | 360 | `--serial[n]` `(/dev/.+|socket)` :: |
1f554f76 | 361 | |
c2993fe5 | 362 | Create a serial device inside the VM (n is 0 to 3) |
1f554f76 | 363 | |
2489d6df | 364 | `--shares` `<integer> (0 - 50000)` ('default =' `1000`):: |
1f554f76 | 365 | |
5da3d723 | 366 | Amount 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 | 367 | |
1e3f8156 | 368 | `--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 |
369 | |
370 | Specify SMBIOS type 1 fields. | |
371 | ||
2489d6df | 372 | `--smp` `<integer> (1 - N)` ('default =' `1`):: |
1f554f76 DM |
373 | |
374 | The number of CPUs. Please use option -sockets instead. | |
375 | ||
2489d6df | 376 | `--sockets` `<integer> (1 - N)` ('default =' `1`):: |
1f554f76 DM |
377 | |
378 | The number of CPU sockets. | |
379 | ||
1c532546 TL |
380 | `--spice_enhancements` `[foldersharing=<1|0>] [,videostreaming=<off|all|filter>]` :: |
381 | ||
382 | Configure additional enhancements for SPICE. | |
383 | ||
27a7acb2 DM |
384 | `--sshkeys` `<filepath>` :: |
385 | ||
386 | cloud-init: Setup public SSH keys (one key per line, OpenSSH format). | |
387 | ||
5da3d723 TL |
388 | `--start` `<boolean>` ('default =' `0`):: |
389 | ||
390 | Start VM after it was created successfully. | |
391 | ||
2489d6df | 392 | `--startdate` `(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)` ('default =' `now`):: |
1f554f76 | 393 | |
4772952b | 394 | Set 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 | 395 | |
2489d6df | 396 | `--startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` :: |
1f554f76 | 397 | |
c2993fe5 | 398 | Startup 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 | 399 | |
2489d6df | 400 | `--storage` `<string>` :: |
1f554f76 DM |
401 | |
402 | Default storage. | |
403 | ||
2489d6df | 404 | `--tablet` `<boolean>` ('default =' `1`):: |
1f554f76 | 405 | |
c2993fe5 | 406 | Enable/disable the USB tablet device. |
1f554f76 | 407 | |
5c1699e5 TL |
408 | `--tags` `<string>` :: |
409 | ||
410 | Tags of the VM. This is only meta information. | |
411 | ||
2489d6df | 412 | `--tdf` `<boolean>` ('default =' `0`):: |
1f554f76 DM |
413 | |
414 | Enable/disable time drift fix. | |
415 | ||
2489d6df | 416 | `--template` `<boolean>` ('default =' `0`):: |
1f554f76 DM |
417 | |
418 | Enable/disable Template. | |
419 | ||
7af2edf9 | 420 | `--tpmstate0` `[file=]<volume> [,import-from=<source volume>] [,size=<DiskSize>] [,version=<v1.2|v2.0>]` :: |
5370fa8c | 421 | |
7af2edf9 | 422 | Configure a Disk for storing TPM state. The format is fixed to 'raw'. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Note that SIZE_IN_GiB is ignored here and 4 MiB will be used instead. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume. |
5370fa8c | 423 | |
2489d6df | 424 | `--unique` `<boolean>` :: |
1f554f76 DM |
425 | |
426 | Assign a unique random ethernet address. | |
427 | + | |
428 | NOTE: Requires option(s): `archive` | |
429 | ||
c5aa7e14 | 430 | `--unused[n]` `[file=]<volume>` :: |
1f554f76 | 431 | |
c2993fe5 | 432 | Reference to unused volumes. This is used internally, and should not be modified manually. |
1f554f76 | 433 | |
2489d6df | 434 | `--usb[n]` `[host=]<HOSTUSBDEVICE|spice> [,usb3=<1|0>]` :: |
1f554f76 | 435 | |
c2993fe5 | 436 | Configure an USB device (n is 0 to 4). |
1f554f76 | 437 | |
2489d6df | 438 | `--vcpus` `<integer> (1 - N)` ('default =' `0`):: |
1f554f76 DM |
439 | |
440 | Number of hotplugged vcpus. | |
441 | ||
e2d681b3 | 442 | `--vga` `[[type=]<enum>] [,memory=<integer>]` :: |
1f554f76 | 443 | |
e2d681b3 | 444 | Configure the VGA hardware. |
1f554f76 | 445 | |
7af2edf9 | 446 | `--virtio[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,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>] [,import-from=<source volume>] [,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>] [,ro=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` :: |
1f554f76 | 447 | |
7af2edf9 | 448 | Use volume as VIRTIO hard disk (n is 0 to 15). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume. |
1f554f76 | 449 | |
4d47f125 TL |
450 | `--vmgenid` `<UUID>` ('default =' `1 (autogenerated)`):: |
451 | ||
452 | Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly. | |
453 | ||
2489d6df WB |
454 | `--vmstatestorage` `<string>` :: |
455 | ||
456 | Default storage for VM state volumes/files. | |
457 | ||
458 | `--watchdog` `[[model=]<i6300esb|ib700>] [,action=<enum>]` :: | |
1f554f76 | 459 | |
c2993fe5 | 460 | Create a virtual hardware watchdog device. |
1f554f76 | 461 | |
1f554f76 DM |
462 | *qm delsnapshot* `<vmid> <snapname>` `[OPTIONS]` |
463 | ||
464 | Delete a VM snapshot. | |
465 | ||
013dc89f | 466 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
467 | |
468 | The (unique) ID of the VM. | |
469 | ||
013dc89f | 470 | `<snapname>`: `<string>` :: |
1f554f76 DM |
471 | |
472 | The name of the snapshot. | |
473 | ||
2489d6df | 474 | `--force` `<boolean>` :: |
1f554f76 DM |
475 | |
476 | For removal from config file, even if removing disk snapshots fails. | |
477 | ||
1f554f76 DM |
478 | *qm destroy* `<vmid>` `[OPTIONS]` |
479 | ||
d2656385 TL |
480 | Destroy the VM and all used/owned volumes. Removes any VM specific |
481 | permissions and firewall rules | |
1f554f76 | 482 | |
013dc89f | 483 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
484 | |
485 | The (unique) ID of the VM. | |
486 | ||
8f4d9c87 | 487 | `--destroy-unreferenced-disks` `<boolean>` ('default =' `0`):: |
d2656385 TL |
488 | |
489 | If set, destroy additionally all disks not referenced in the config but with a matching VMID from all enabled storages. | |
490 | ||
1c532546 TL |
491 | `--purge` `<boolean>` :: |
492 | ||
d2656385 | 493 | Remove VMID from configurations, like backup & replication jobs and HA. |
1c532546 | 494 | |
2489d6df | 495 | `--skiplock` `<boolean>` :: |
1f554f76 DM |
496 | |
497 | Ignore locks - only root is allowed to use this option. | |
498 | ||
4d47f125 TL |
499 | *qm guest cmd* `<vmid> <command>` |
500 | ||
501 | Execute Qemu Guest Agent commands. | |
502 | ||
503 | `<vmid>`: `<integer> (1 - N)` :: | |
504 | ||
505 | The (unique) ID of the VM. | |
506 | ||
507 | `<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>` :: | |
508 | ||
509 | The QGA command. | |
510 | ||
511 | *qm guest exec* `<vmid> [<extra-args>]` `[OPTIONS]` | |
512 | ||
513 | Executes the given command via the guest agent | |
514 | ||
515 | `<vmid>`: `<integer> (1 - N)` :: | |
516 | ||
517 | The (unique) ID of the VM. | |
518 | ||
519 | `<extra-args>`: `<array>` :: | |
520 | ||
521 | Extra arguments as array | |
522 | ||
c5aa7e14 TL |
523 | `--pass-stdin` `<boolean>` ('default =' `0`):: |
524 | ||
525 | When set, read STDIN until EOF and forward to guest agent via 'input-data' (usually treated as STDIN to process launched by guest agent). Allows maximal 1 MiB. | |
526 | ||
4d47f125 TL |
527 | `--synchronous` `<boolean>` ('default =' `1`):: |
528 | ||
529 | If set to off, returns the pid immediately instead of waiting for the commmand to finish or the timeout. | |
530 | ||
531 | `--timeout` `<integer> (0 - N)` ('default =' `30`):: | |
532 | ||
533 | The maximum time to wait synchronously for the command to finish. If reached, the pid gets returned. Set to 0 to deactivate | |
534 | ||
535 | *qm guest exec-status* `<vmid> <pid>` | |
536 | ||
537 | Gets the status of the given pid started by the guest-agent | |
538 | ||
539 | `<vmid>`: `<integer> (1 - N)` :: | |
540 | ||
541 | The (unique) ID of the VM. | |
542 | ||
543 | `<pid>`: `<integer>` :: | |
544 | ||
545 | The PID to query | |
546 | ||
547 | *qm guest passwd* `<vmid> <username>` `[OPTIONS]` | |
548 | ||
549 | Sets the password for the given user to the given password | |
550 | ||
551 | `<vmid>`: `<integer> (1 - N)` :: | |
552 | ||
553 | The (unique) ID of the VM. | |
554 | ||
555 | `<username>`: `<string>` :: | |
556 | ||
557 | The user to set the password for. | |
558 | ||
559 | `--crypted` `<boolean>` ('default =' `0`):: | |
560 | ||
561 | set to 1 if the password has already been passed through crypt() | |
562 | ||
35a75dd3 | 563 | *qm help* `[OPTIONS]` |
1f554f76 DM |
564 | |
565 | Get help about specified command. | |
566 | ||
35a75dd3 | 567 | `--extra-args` `<array>` :: |
1f554f76 | 568 | |
35a75dd3 | 569 | Shows help for a specific command |
1f554f76 | 570 | |
2489d6df | 571 | `--verbose` `<boolean>` :: |
1f554f76 DM |
572 | |
573 | Verbose output format. | |
574 | ||
5d9c884c DM |
575 | *qm importdisk* `<vmid> <source> <storage>` `[OPTIONS]` |
576 | ||
577 | Import an external disk image as an unused disk in a VM. The | |
578 | image format has to be supported by qemu-img(1). | |
579 | ||
580 | `<vmid>`: `<integer> (1 - N)` :: | |
581 | ||
582 | The (unique) ID of the VM. | |
583 | ||
584 | `<source>`: `<string>` :: | |
585 | ||
586 | Path to the disk image to import | |
587 | ||
588 | `<storage>`: `<string>` :: | |
589 | ||
590 | Target storage ID | |
591 | ||
2489d6df WB |
592 | `--format` `<qcow2 | raw | vmdk>` :: |
593 | ||
594 | Target format | |
595 | ||
2489d6df WB |
596 | *qm importovf* `<vmid> <manifest> <storage>` `[OPTIONS]` |
597 | ||
598 | Create a new VM using parameters read from an OVF manifest | |
599 | ||
600 | `<vmid>`: `<integer> (1 - N)` :: | |
601 | ||
602 | The (unique) ID of the VM. | |
603 | ||
604 | `<manifest>`: `<string>` :: | |
605 | ||
606 | path to the ovf file | |
607 | ||
608 | `<storage>`: `<string>` :: | |
609 | ||
610 | Target storage ID | |
611 | ||
612 | `--dryrun` `<boolean>` :: | |
613 | ||
614 | Print a parsed representation of the extracted OVF parameters, but do not create a VM | |
615 | ||
616 | `--format` `<qcow2 | raw | vmdk>` :: | |
5d9c884c DM |
617 | |
618 | Target format | |
619 | ||
9b3e4991 | 620 | *qm list* `[OPTIONS]` |
1f554f76 DM |
621 | |
622 | Virtual machine index (per node). | |
623 | ||
2489d6df | 624 | `--full` `<boolean>` :: |
9b3e4991 DM |
625 | |
626 | Determine the full status of active VMs. | |
627 | ||
de0983cb DM |
628 | *qm listsnapshot* `<vmid>` |
629 | ||
630 | List all snapshots. | |
631 | ||
013dc89f | 632 | `<vmid>`: `<integer> (1 - N)` :: |
de0983cb DM |
633 | |
634 | The (unique) ID of the VM. | |
635 | ||
1f554f76 DM |
636 | *qm migrate* `<vmid> <target>` `[OPTIONS]` |
637 | ||
638 | Migrate virtual machine. Creates a new migration task. | |
639 | ||
013dc89f | 640 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
641 | |
642 | The (unique) ID of the VM. | |
643 | ||
013dc89f | 644 | `<target>`: `<string>` :: |
1f554f76 DM |
645 | |
646 | Target node. | |
647 | ||
95895385 TL |
648 | `--bwlimit` `<integer> (0 - N)` ('default =' `migrate limit from datacenter or storage config`):: |
649 | ||
650 | Override I/O bandwidth limit (in KiB/s). | |
651 | ||
2489d6df | 652 | `--force` `<boolean>` :: |
1f554f76 | 653 | |
c2993fe5 | 654 | Allow to migrate VMs which use local devices. Only root may use this option. |
1f554f76 | 655 | |
2489d6df | 656 | `--migration_network` `<string>` :: |
de0983cb DM |
657 | |
658 | CIDR of the (sub) network that is used for migration. | |
659 | ||
2489d6df | 660 | `--migration_type` `<insecure | secure>` :: |
de0983cb DM |
661 | |
662 | Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance. | |
663 | ||
2489d6df | 664 | `--online` `<boolean>` :: |
1f554f76 | 665 | |
1c532546 | 666 | Use online/live migration if VM is running. Ignored if VM is stopped. |
1f554f76 | 667 | |
2489d6df | 668 | `--targetstorage` `<string>` :: |
52e44c50 | 669 | |
c5aa7e14 | 670 | Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value '1' will map each source storage to itself. |
52e44c50 | 671 | |
2489d6df | 672 | `--with-local-disks` `<boolean>` :: |
52e44c50 FG |
673 | |
674 | Enable live storage migration for local disk | |
675 | ||
1f554f76 DM |
676 | *qm monitor* `<vmid>` |
677 | ||
678 | Enter Qemu Monitor interface. | |
679 | ||
013dc89f | 680 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
681 | |
682 | The (unique) ID of the VM. | |
683 | ||
5370fa8c | 684 | *qm move-disk* `<vmid> <disk> [<storage>]` `[OPTIONS]` |
1f554f76 | 685 | |
5370fa8c | 686 | Move volume to different storage or to a different VM. |
1f554f76 | 687 | |
013dc89f | 688 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
689 | |
690 | The (unique) ID of the VM. | |
691 | ||
5370fa8c | 692 | `<disk>`: `<efidisk0 | ide0 | ide1 | ide2 | ide3 | sata0 | sata1 | sata2 | sata3 | sata4 | sata5 | scsi0 | scsi1 | scsi10 | scsi11 | scsi12 | scsi13 | scsi14 | scsi15 | scsi16 | scsi17 | scsi18 | scsi19 | scsi2 | scsi20 | scsi21 | scsi22 | scsi23 | scsi24 | scsi25 | scsi26 | scsi27 | scsi28 | scsi29 | scsi3 | scsi30 | scsi4 | scsi5 | scsi6 | scsi7 | scsi8 | scsi9 | tpmstate0 | unused0 | unused1 | unused10 | unused100 | unused101 | unused102 | unused103 | unused104 | unused105 | unused106 | unused107 | unused108 | unused109 | unused11 | unused110 | unused111 | unused112 | unused113 | unused114 | unused115 | unused116 | unused117 | unused118 | unused119 | unused12 | unused120 | unused121 | unused122 | unused123 | unused124 | unused125 | unused126 | unused127 | unused128 | unused129 | unused13 | unused130 | unused131 | unused132 | unused133 | unused134 | unused135 | unused136 | unused137 | unused138 | unused139 | unused14 | unused140 | unused141 | unused142 | unused143 | unused144 | unused145 | unused146 | unused147 | unused148 | unused149 | unused15 | unused150 | unused151 | unused152 | unused153 | unused154 | unused155 | unused156 | unused157 | unused158 | unused159 | unused16 | unused160 | unused161 | unused162 | unused163 | unused164 | unused165 | unused166 | unused167 | unused168 | unused169 | unused17 | unused170 | unused171 | unused172 | unused173 | unused174 | unused175 | unused176 | unused177 | unused178 | unused179 | unused18 | unused180 | unused181 | unused182 | unused183 | unused184 | unused185 | unused186 | unused187 | unused188 | unused189 | unused19 | unused190 | unused191 | unused192 | unused193 | unused194 | unused195 | unused196 | unused197 | unused198 | unused199 | unused2 | unused20 | unused200 | unused201 | unused202 | unused203 | unused204 | unused205 | unused206 | unused207 | unused208 | unused209 | unused21 | unused210 | unused211 | unused212 | unused213 | unused214 | unused215 | unused216 | unused217 | unused218 | unused219 | unused22 | unused220 | unused221 | unused222 | unused223 | unused224 | unused225 | unused226 | unused227 | unused228 | unused229 | unused23 | unused230 | unused231 | unused232 | unused233 | unused234 | unused235 | unused236 | unused237 | unused238 | unused239 | unused24 | unused240 | unused241 | unused242 | unused243 | unused244 | unused245 | unused246 | unused247 | unused248 | unused249 | unused25 | unused250 | unused251 | unused252 | unused253 | unused254 | unused255 | unused26 | unused27 | unused28 | unused29 | unused3 | unused30 | unused31 | unused32 | unused33 | unused34 | unused35 | unused36 | unused37 | unused38 | unused39 | unused4 | unused40 | unused41 | unused42 | unused43 | unused44 | unused45 | unused46 | unused47 | unused48 | unused49 | unused5 | unused50 | unused51 | unused52 | unused53 | unused54 | unused55 | unused56 | unused57 | unused58 | unused59 | unused6 | unused60 | unused61 | unused62 | unused63 | unused64 | unused65 | unused66 | unused67 | unused68 | unused69 | unused7 | unused70 | unused71 | unused72 | unused73 | unused74 | unused75 | unused76 | unused77 | unused78 | unused79 | unused8 | unused80 | unused81 | unused82 | unused83 | unused84 | unused85 | unused86 | unused87 | unused88 | unused89 | unused9 | unused90 | unused91 | unused92 | unused93 | unused94 | unused95 | unused96 | unused97 | unused98 | unused99 | virtio0 | virtio1 | virtio10 | virtio11 | virtio12 | virtio13 | virtio14 | virtio15 | virtio2 | virtio3 | virtio4 | virtio5 | virtio6 | virtio7 | virtio8 | virtio9>` :: |
1f554f76 DM |
693 | |
694 | The disk you want to move. | |
695 | ||
013dc89f | 696 | `<storage>`: `<string>` :: |
1f554f76 DM |
697 | |
698 | Target storage. | |
699 | ||
95895385 TL |
700 | `--bwlimit` `<integer> (0 - N)` ('default =' `move limit from datacenter or storage config`):: |
701 | ||
702 | Override I/O bandwidth limit (in KiB/s). | |
703 | ||
2489d6df | 704 | `--delete` `<boolean>` ('default =' `0`):: |
1f554f76 | 705 | |
c2993fe5 | 706 | Delete the original disk after successful copy. By default the original disk is kept as unused disk. |
1f554f76 | 707 | |
2489d6df | 708 | `--digest` `<string>` :: |
1f554f76 | 709 | |
5370fa8c TL |
710 | Prevent changes if current configuration file has different SHA1" |
711 | ." digest. This can be used to prevent concurrent modifications. | |
1f554f76 | 712 | |
2489d6df | 713 | `--format` `<qcow2 | raw | vmdk>` :: |
1f554f76 DM |
714 | |
715 | Target Format. | |
716 | ||
5370fa8c TL |
717 | `--target-digest` `<string>` :: |
718 | ||
719 | Prevent changes if the current config file of the target VM has a" | |
720 | ." different SHA1 digest. This can be used to detect concurrent modifications. | |
721 | ||
722 | `--target-disk` `<efidisk0 | ide0 | ide1 | ide2 | ide3 | sata0 | sata1 | sata2 | sata3 | sata4 | sata5 | scsi0 | scsi1 | scsi10 | scsi11 | scsi12 | scsi13 | scsi14 | scsi15 | scsi16 | scsi17 | scsi18 | scsi19 | scsi2 | scsi20 | scsi21 | scsi22 | scsi23 | scsi24 | scsi25 | scsi26 | scsi27 | scsi28 | scsi29 | scsi3 | scsi30 | scsi4 | scsi5 | scsi6 | scsi7 | scsi8 | scsi9 | tpmstate0 | unused0 | unused1 | unused10 | unused100 | unused101 | unused102 | unused103 | unused104 | unused105 | unused106 | unused107 | unused108 | unused109 | unused11 | unused110 | unused111 | unused112 | unused113 | unused114 | unused115 | unused116 | unused117 | unused118 | unused119 | unused12 | unused120 | unused121 | unused122 | unused123 | unused124 | unused125 | unused126 | unused127 | unused128 | unused129 | unused13 | unused130 | unused131 | unused132 | unused133 | unused134 | unused135 | unused136 | unused137 | unused138 | unused139 | unused14 | unused140 | unused141 | unused142 | unused143 | unused144 | unused145 | unused146 | unused147 | unused148 | unused149 | unused15 | unused150 | unused151 | unused152 | unused153 | unused154 | unused155 | unused156 | unused157 | unused158 | unused159 | unused16 | unused160 | unused161 | unused162 | unused163 | unused164 | unused165 | unused166 | unused167 | unused168 | unused169 | unused17 | unused170 | unused171 | unused172 | unused173 | unused174 | unused175 | unused176 | unused177 | unused178 | unused179 | unused18 | unused180 | unused181 | unused182 | unused183 | unused184 | unused185 | unused186 | unused187 | unused188 | unused189 | unused19 | unused190 | unused191 | unused192 | unused193 | unused194 | unused195 | unused196 | unused197 | unused198 | unused199 | unused2 | unused20 | unused200 | unused201 | unused202 | unused203 | unused204 | unused205 | unused206 | unused207 | unused208 | unused209 | unused21 | unused210 | unused211 | unused212 | unused213 | unused214 | unused215 | unused216 | unused217 | unused218 | unused219 | unused22 | unused220 | unused221 | unused222 | unused223 | unused224 | unused225 | unused226 | unused227 | unused228 | unused229 | unused23 | unused230 | unused231 | unused232 | unused233 | unused234 | unused235 | unused236 | unused237 | unused238 | unused239 | unused24 | unused240 | unused241 | unused242 | unused243 | unused244 | unused245 | unused246 | unused247 | unused248 | unused249 | unused25 | unused250 | unused251 | unused252 | unused253 | unused254 | unused255 | unused26 | unused27 | unused28 | unused29 | unused3 | unused30 | unused31 | unused32 | unused33 | unused34 | unused35 | unused36 | unused37 | unused38 | unused39 | unused4 | unused40 | unused41 | unused42 | unused43 | unused44 | unused45 | unused46 | unused47 | unused48 | unused49 | unused5 | unused50 | unused51 | unused52 | unused53 | unused54 | unused55 | unused56 | unused57 | unused58 | unused59 | unused6 | unused60 | unused61 | unused62 | unused63 | unused64 | unused65 | unused66 | unused67 | unused68 | unused69 | unused7 | unused70 | unused71 | unused72 | unused73 | unused74 | unused75 | unused76 | unused77 | unused78 | unused79 | unused8 | unused80 | unused81 | unused82 | unused83 | unused84 | unused85 | unused86 | unused87 | unused88 | unused89 | unused9 | unused90 | unused91 | unused92 | unused93 | unused94 | unused95 | unused96 | unused97 | unused98 | unused99 | virtio0 | virtio1 | virtio10 | virtio11 | virtio12 | virtio13 | virtio14 | virtio15 | virtio2 | virtio3 | virtio4 | virtio5 | virtio6 | virtio7 | virtio8 | virtio9>` :: | |
723 | ||
724 | The config key the disk will be moved to on the target VM (for example, ide0 or scsi1). Default is the source disk key. | |
725 | ||
726 | `--target-vmid` `<integer> (1 - N)` :: | |
727 | ||
728 | The (unique) ID of the VM. | |
729 | ||
730 | *qm move_disk* | |
731 | ||
732 | An alias for 'qm move-disk'. | |
733 | ||
1f554f76 DM |
734 | *qm mtunnel* |
735 | ||
736 | Used by qmigrate - do not use manually. | |
737 | ||
52e44c50 FG |
738 | *qm nbdstop* `<vmid>` |
739 | ||
740 | Stop embedded nbd server. | |
741 | ||
742 | `<vmid>`: `<integer> (1 - N)` :: | |
743 | ||
744 | The (unique) ID of the VM. | |
745 | ||
1f554f76 DM |
746 | *qm pending* `<vmid>` |
747 | ||
e9cd3bd4 | 748 | Get the virtual machine configuration with both current and pending values. |
1f554f76 | 749 | |
013dc89f | 750 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
751 | |
752 | The (unique) ID of the VM. | |
753 | ||
1c532546 TL |
754 | *qm reboot* `<vmid>` `[OPTIONS]` |
755 | ||
756 | Reboot the VM by shutting it down, and starting it again. Applies pending | |
757 | changes. | |
758 | ||
759 | `<vmid>`: `<integer> (1 - N)` :: | |
760 | ||
761 | The (unique) ID of the VM. | |
762 | ||
763 | `--timeout` `<integer> (0 - N)` :: | |
764 | ||
765 | Wait maximal timeout seconds for the shutdown. | |
766 | ||
1f554f76 DM |
767 | *qm rescan* `[OPTIONS]` |
768 | ||
769 | Rescan all storages and update disk sizes and unused disk images. | |
770 | ||
4d47f125 TL |
771 | `--dryrun` `<boolean>` ('default =' `0`):: |
772 | ||
773 | Do not actually write changes out to VM config(s). | |
774 | ||
2489d6df | 775 | `--vmid` `<integer> (1 - N)` :: |
1f554f76 DM |
776 | |
777 | The (unique) ID of the VM. | |
778 | ||
1f554f76 DM |
779 | *qm reset* `<vmid>` `[OPTIONS]` |
780 | ||
781 | Reset virtual machine. | |
782 | ||
013dc89f | 783 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
784 | |
785 | The (unique) ID of the VM. | |
786 | ||
2489d6df | 787 | `--skiplock` `<boolean>` :: |
1f554f76 DM |
788 | |
789 | Ignore locks - only root is allowed to use this option. | |
790 | ||
1f554f76 DM |
791 | *qm resize* `<vmid> <disk> <size>` `[OPTIONS]` |
792 | ||
793 | Extend volume size. | |
794 | ||
013dc89f | 795 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
796 | |
797 | The (unique) ID of the VM. | |
798 | ||
5370fa8c | 799 | `<disk>`: `<efidisk0 | ide0 | ide1 | ide2 | ide3 | sata0 | sata1 | sata2 | sata3 | sata4 | sata5 | scsi0 | scsi1 | scsi10 | scsi11 | scsi12 | scsi13 | scsi14 | scsi15 | scsi16 | scsi17 | scsi18 | scsi19 | scsi2 | scsi20 | scsi21 | scsi22 | scsi23 | scsi24 | scsi25 | scsi26 | scsi27 | scsi28 | scsi29 | scsi3 | scsi30 | scsi4 | scsi5 | scsi6 | scsi7 | scsi8 | scsi9 | tpmstate0 | virtio0 | virtio1 | virtio10 | virtio11 | virtio12 | virtio13 | virtio14 | virtio15 | virtio2 | virtio3 | virtio4 | virtio5 | virtio6 | virtio7 | virtio8 | virtio9>` :: |
1f554f76 DM |
800 | |
801 | The disk you want to resize. | |
802 | ||
013dc89f | 803 | `<size>`: `\+?\d+(\.\d+)?[KMGT]?` :: |
1f554f76 | 804 | |
5d9c884c | 805 | The 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 | 806 | |
2489d6df | 807 | `--digest` `<string>` :: |
1f554f76 | 808 | |
c2993fe5 | 809 | Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. |
1f554f76 | 810 | |
2489d6df | 811 | `--skiplock` `<boolean>` :: |
1f554f76 DM |
812 | |
813 | Ignore locks - only root is allowed to use this option. | |
814 | ||
1f554f76 DM |
815 | *qm resume* `<vmid>` `[OPTIONS]` |
816 | ||
817 | Resume virtual machine. | |
818 | ||
013dc89f | 819 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
820 | |
821 | The (unique) ID of the VM. | |
822 | ||
2489d6df | 823 | `--nocheck` `<boolean>` :: |
1f554f76 DM |
824 | |
825 | no description available | |
826 | ||
2489d6df | 827 | `--skiplock` `<boolean>` :: |
1f554f76 DM |
828 | |
829 | Ignore locks - only root is allowed to use this option. | |
830 | ||
1f554f76 DM |
831 | *qm rollback* `<vmid> <snapname>` |
832 | ||
833 | Rollback VM state to specified snapshot. | |
834 | ||
013dc89f | 835 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
836 | |
837 | The (unique) ID of the VM. | |
838 | ||
013dc89f | 839 | `<snapname>`: `<string>` :: |
1f554f76 DM |
840 | |
841 | The name of the snapshot. | |
842 | ||
1f554f76 DM |
843 | *qm sendkey* `<vmid> <key>` `[OPTIONS]` |
844 | ||
845 | Send key event to virtual machine. | |
846 | ||
013dc89f | 847 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
848 | |
849 | The (unique) ID of the VM. | |
850 | ||
013dc89f | 851 | `<key>`: `<string>` :: |
1f554f76 DM |
852 | |
853 | The key (qemu monitor encoding). | |
854 | ||
2489d6df | 855 | `--skiplock` `<boolean>` :: |
1f554f76 DM |
856 | |
857 | Ignore locks - only root is allowed to use this option. | |
858 | ||
1f554f76 DM |
859 | *qm set* `<vmid>` `[OPTIONS]` |
860 | ||
861 | Set virtual machine options (synchrounous API) - You should consider using | |
862 | the POST method instead for any actions involving hotplug or storage | |
863 | allocation. | |
864 | ||
013dc89f | 865 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
866 | |
867 | The (unique) ID of the VM. | |
868 | ||
2489d6df | 869 | `--acpi` `<boolean>` ('default =' `1`):: |
1f554f76 DM |
870 | |
871 | Enable/disable ACPI. | |
872 | ||
5c1699e5 | 873 | `--agent` `[enabled=]<1|0> [,fstrim_cloned_disks=<1|0>] [,type=<virtio|isa>]` :: |
1f554f76 | 874 | |
5370fa8c | 875 | Enable/disable communication with the Qemu Guest Agent and its properties. |
1f554f76 | 876 | |
e2d681b3 TL |
877 | `--arch` `<aarch64 | x86_64>` :: |
878 | ||
879 | Virtual processor architecture. Defaults to the host. | |
880 | ||
2489d6df | 881 | `--args` `<string>` :: |
1f554f76 | 882 | |
c2993fe5 | 883 | Arbitrary arguments passed to kvm. |
1f554f76 | 884 | |
d2656385 | 885 | `--audio0` `device=<ich9-intel-hda|intel-hda|AC97> [,driver=<spice|none>]` :: |
1c532546 TL |
886 | |
887 | Configure a audio device, useful in combination with QXL/Spice. | |
888 | ||
2489d6df | 889 | `--autostart` `<boolean>` ('default =' `0`):: |
1f554f76 DM |
890 | |
891 | Automatic restart after crash (currently ignored). | |
892 | ||
2489d6df | 893 | `--balloon` `<integer> (0 - N)` :: |
1f554f76 | 894 | |
c2993fe5 | 895 | Amount of target RAM for the VM in MB. Using zero disables the ballon driver. |
1f554f76 | 896 | |
2489d6df | 897 | `--bios` `<ovmf | seabios>` ('default =' `seabios`):: |
1f554f76 DM |
898 | |
899 | Select BIOS implementation. | |
900 | ||
4772952b | 901 | `--boot` `[[legacy=]<[acdn]{1,4}>] [,order=<device[;device...]>]` :: |
1f554f76 | 902 | |
5370fa8c | 903 | Specify guest boot order. Use the 'order=' sub-property as usage with no key or 'legacy=' is deprecated. |
1f554f76 | 904 | |
2489d6df | 905 | `--bootdisk` `(ide|sata|scsi|virtio)\d+` :: |
1f554f76 | 906 | |
4772952b | 907 | Enable booting from specified disk. Deprecated: Use 'boot: order=foo;bar' instead. |
1f554f76 | 908 | |
2489d6df | 909 | `--cdrom` `<volume>` :: |
1f554f76 DM |
910 | |
911 | This is an alias for option -ide2 | |
912 | ||
5370fa8c | 913 | `--cicustom` `[meta=<volume>] [,network=<volume>] [,user=<volume>] [,vendor=<volume>]` :: |
95895385 TL |
914 | |
915 | cloud-init: Specify custom files to replace the automatically generated ones at start. | |
916 | ||
27a7acb2 DM |
917 | `--cipassword` `<password>` :: |
918 | ||
919 | cloud-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. | |
920 | ||
d2656385 | 921 | `--citype` `<configdrive2 | nocloud | opennebula>` :: |
27a7acb2 DM |
922 | |
923 | Specifies 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. | |
924 | ||
925 | `--ciuser` `<string>` :: | |
926 | ||
927 | cloud-init: User name to change ssh keys and password for instead of the image's configured default user. | |
928 | ||
2489d6df | 929 | `--cores` `<integer> (1 - N)` ('default =' `1`):: |
1f554f76 DM |
930 | |
931 | The number of cores per socket. | |
932 | ||
04d22a9f | 933 | `--cpu` `[[cputype=]<string>] [,flags=<+FLAG[;-FLAG...]>] [,hidden=<1|0>] [,hv-vendor-id=<vendor-id>] [,phys-bits=<8-64|host>] [,reported-model=<enum>]` :: |
1f554f76 DM |
934 | |
935 | Emulated CPU type. | |
936 | ||
2489d6df | 937 | `--cpulimit` `<number> (0 - 128)` ('default =' `0`):: |
1f554f76 | 938 | |
9b3e4991 | 939 | Limit of CPU usage. |
1f554f76 | 940 | |
7af2edf9 | 941 | `--cpuunits` `<integer> (1 - 262144)` ('default =' `cgroup v1: 1024, cgroup v2: 100`):: |
1f554f76 | 942 | |
5370fa8c | 943 | CPU weight for a VM, will be clamped to [1, 10000] in cgroup v2. |
1f554f76 | 944 | |
2489d6df | 945 | `--delete` `<string>` :: |
1f554f76 DM |
946 | |
947 | A list of settings you want to delete. | |
948 | ||
2489d6df | 949 | `--description` `<string>` :: |
1f554f76 | 950 | |
8f4d9c87 | 951 | Description for the VM. Shown in the web-interface VM's summary. This is saved as comment inside the configuration file. |
1f554f76 | 952 | |
2489d6df | 953 | `--digest` `<string>` :: |
1f554f76 | 954 | |
c2993fe5 | 955 | Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. |
1f554f76 | 956 | |
7af2edf9 | 957 | `--efidisk0` `[file=]<volume> [,efitype=<2m|4m>] [,format=<enum>] [,import-from=<source volume>] [,pre-enrolled-keys=<1|0>] [,size=<DiskSize>]` :: |
2c0dde61 | 958 | |
7af2edf9 | 959 | Configure a Disk for storing EFI vars. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Note that SIZE_IN_GiB is ignored here and that the default EFI vars are copied to the volume instead. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume. |
2c0dde61 | 960 | |
2489d6df | 961 | `--force` `<boolean>` :: |
1f554f76 | 962 | |
c2993fe5 | 963 | Force 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 |
964 | + |
965 | NOTE: Requires option(s): `delete` | |
966 | ||
2489d6df | 967 | `--freeze` `<boolean>` :: |
1f554f76 DM |
968 | |
969 | Freeze CPU at startup (use 'c' monitor command to start execution). | |
970 | ||
5f26e15b TL |
971 | `--hookscript` `<string>` :: |
972 | ||
973 | Script that will be executed during various steps in the vms lifetime. | |
974 | ||
7af2edf9 | 975 | `--hostpci[n]` `[host=]<HOSTPCIID[;HOSTPCIID2...]> [,device-id=<hex id>] [,legacy-igd=<1|0>] [,mdev=<string>] [,pcie=<1|0>] [,rombar=<1|0>] [,romfile=<string>] [,sub-device-id=<hex id>] [,sub-vendor-id=<hex id>] [,vendor-id=<hex id>] [,x-vga=<1|0>]` :: |
1f554f76 | 976 | |
c2993fe5 | 977 | Map host PCI devices into guest. |
1f554f76 | 978 | |
2489d6df | 979 | `--hotplug` `<string>` ('default =' `network,disk,usb`):: |
1f554f76 | 980 | |
5370fa8c | 981 | Selectively enable hotplug features. This is a comma separated list of hotplug features: 'network', 'disk', 'cpu', 'memory' and 'usb'. Use '0' to disable hotplug completely. Using '1' as value is an alias for the default `network,disk,usb`. |
1f554f76 | 982 | |
2489d6df | 983 | `--hugepages` `<1024 | 2 | any>` :: |
2c0dde61 DM |
984 | |
985 | Enable/disable hugepages memory. | |
986 | ||
7af2edf9 | 987 | `--ide[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,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>] [,import-from=<source volume>] [,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 | 988 | |
7af2edf9 | 989 | Use volume as IDE hard disk or CD-ROM (n is 0 to 3). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume. |
1f554f76 | 990 | |
27a7acb2 DM |
991 | `--ipconfig[n]` `[gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>]` :: |
992 | ||
993 | cloud-init: Specify IP addresses and gateways for the corresponding interface. | |
994 | + | |
995 | IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. | |
996 | + | |
4772952b TL |
997 | The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit |
998 | gateway should be provided. | |
d2656385 TL |
999 | For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires |
1000 | cloud-init 19.4 or newer. | |
27a7acb2 | 1001 | + |
4772952b TL |
1002 | If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using |
1003 | dhcp on IPv4. | |
27a7acb2 | 1004 | |
95895385 TL |
1005 | `--ivshmem` `size=<integer> [,name=<string>]` :: |
1006 | ||
1007 | Inter-VM shared memory. Useful for direct communication between VMs, or to the host. | |
1008 | ||
4772952b TL |
1009 | `--keephugepages` `<boolean>` ('default =' `0`):: |
1010 | ||
1011 | Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts. | |
1012 | ||
35a75dd3 | 1013 | `--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 | 1014 | |
7af2edf9 | 1015 | Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS. |
1f554f76 | 1016 | |
2489d6df | 1017 | `--kvm` `<boolean>` ('default =' `1`):: |
1f554f76 DM |
1018 | |
1019 | Enable/disable KVM hardware virtualization. | |
1020 | ||
2489d6df | 1021 | `--localtime` `<boolean>` :: |
1f554f76 | 1022 | |
5370fa8c | 1023 | Set the real time clock (RTC) to local time. This is enabled by default if the `ostype` indicates a Microsoft Windows OS. |
1f554f76 | 1024 | |
95895385 | 1025 | `--lock` `<backup | clone | create | migrate | rollback | snapshot | snapshot-delete | suspended | suspending>` :: |
1f554f76 DM |
1026 | |
1027 | Lock/unlock the VM. | |
1028 | ||
5c1699e5 | 1029 | `--machine` `(pc|pc(-i440fx)?-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|q35|pc-q35-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|virt(?:-\d+(\.\d+)+)?(\+pve\d+)?)` :: |
1f554f76 | 1030 | |
4d47f125 | 1031 | Specifies the Qemu machine type. |
1f554f76 | 1032 | |
2489d6df | 1033 | `--memory` `<integer> (16 - N)` ('default =' `512`):: |
1f554f76 | 1034 | |
c2993fe5 | 1035 | Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device. |
1f554f76 | 1036 | |
2489d6df | 1037 | `--migrate_downtime` `<number> (0 - N)` ('default =' `0.1`):: |
1f554f76 DM |
1038 | |
1039 | Set maximum tolerated downtime (in seconds) for migrations. | |
1040 | ||
2489d6df | 1041 | `--migrate_speed` `<integer> (0 - N)` ('default =' `0`):: |
1f554f76 DM |
1042 | |
1043 | Set maximum speed (in MB/s) for migrations. Value 0 is no limit. | |
1044 | ||
2489d6df | 1045 | `--name` `<string>` :: |
1f554f76 DM |
1046 | |
1047 | Set a name for the VM. Only used on the configuration web interface. | |
1048 | ||
27a7acb2 DM |
1049 | `--nameserver` `<string>` :: |
1050 | ||
4772952b TL |
1051 | cloud-init: Sets DNS server IP address for a container. Create will' |
1052 | .' automatically use the setting from the host if neither searchdomain nor nameserver' | |
1053 | .' are set. | |
27a7acb2 | 1054 | |
ac70d7d1 | 1055 | `--net[n]` `[model=]<enum> [,bridge=<bridge>] [,firewall=<1|0>] [,link_down=<1|0>] [,macaddr=<XX:XX:XX:XX:XX:XX>] [,mtu=<integer>] [,queues=<integer>] [,rate=<number>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,<model>=<macaddr>]` :: |
1f554f76 DM |
1056 | |
1057 | Specify network devices. | |
1f554f76 | 1058 | |
2489d6df | 1059 | `--numa` `<boolean>` ('default =' `0`):: |
1f554f76 | 1060 | |
9b3e4991 | 1061 | Enable/disable NUMA. |
1f554f76 | 1062 | |
2489d6df | 1063 | `--numa[n]` `cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]` :: |
1f554f76 | 1064 | |
c2993fe5 | 1065 | NUMA topology. |
1f554f76 | 1066 | |
2489d6df | 1067 | `--onboot` `<boolean>` ('default =' `0`):: |
1f554f76 DM |
1068 | |
1069 | Specifies whether a VM will be started during system bootup. | |
1070 | ||
5370fa8c | 1071 | `--ostype` `<l24 | l26 | other | solaris | w2k | w2k3 | w2k8 | win10 | win11 | win7 | win8 | wvista | wxp>` :: |
1f554f76 | 1072 | |
c2993fe5 | 1073 | Specify guest operating system. |
1f554f76 | 1074 | |
2489d6df | 1075 | `--parallel[n]` `/dev/parport\d+|/dev/usb/lp\d+` :: |
1f554f76 DM |
1076 | |
1077 | Map host parallel devices (n is 0 to 2). | |
1f554f76 | 1078 | |
2489d6df | 1079 | `--protection` `<boolean>` ('default =' `0`):: |
1f554f76 | 1080 | |
c2993fe5 | 1081 | Sets the protection flag of the VM. This will disable the remove VM and remove disk operations. |
1f554f76 | 1082 | |
2489d6df | 1083 | `--reboot` `<boolean>` ('default =' `1`):: |
1f554f76 DM |
1084 | |
1085 | Allow reboot. If set to '0' the VM exit on reboot. | |
1086 | ||
2489d6df | 1087 | `--revert` `<string>` :: |
1f554f76 DM |
1088 | |
1089 | Revert a pending change. | |
1090 | ||
c5aa7e14 TL |
1091 | `--rng0` `[source=]</dev/urandom|/dev/random|/dev/hwrng> [,max_bytes=<integer>] [,period=<integer>]` :: |
1092 | ||
1093 | Configure a VirtIO-based Random Number Generator. | |
1094 | ||
7af2edf9 | 1095 | `--sata[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,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>] [,import-from=<source volume>] [,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 | 1096 | |
7af2edf9 | 1097 | Use volume as SATA hard disk or CD-ROM (n is 0 to 5). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume. |
1f554f76 | 1098 | |
7af2edf9 | 1099 | `--scsi[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,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>] [,import-from=<source volume>] [,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>] [,ro=<1|0>] [,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 | 1100 | |
7af2edf9 | 1101 | Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume. |
1f554f76 | 1102 | |
2489d6df | 1103 | `--scsihw` `<lsi | lsi53c810 | megasas | pvscsi | virtio-scsi-pci | virtio-scsi-single>` ('default =' `lsi`):: |
1f554f76 | 1104 | |
c2993fe5 | 1105 | SCSI controller model |
1f554f76 | 1106 | |
27a7acb2 DM |
1107 | `--searchdomain` `<string>` :: |
1108 | ||
4772952b TL |
1109 | cloud-init: Sets DNS search domains for a container. Create will' |
1110 | .' automatically use the setting from the host if neither searchdomain nor nameserver' | |
1111 | .' are set. | |
27a7acb2 | 1112 | |
2489d6df | 1113 | `--serial[n]` `(/dev/.+|socket)` :: |
1f554f76 | 1114 | |
c2993fe5 | 1115 | Create a serial device inside the VM (n is 0 to 3) |
1f554f76 | 1116 | |
2489d6df | 1117 | `--shares` `<integer> (0 - 50000)` ('default =' `1000`):: |
1f554f76 | 1118 | |
5da3d723 | 1119 | Amount 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 | 1120 | |
2489d6df | 1121 | `--skiplock` `<boolean>` :: |
1f554f76 DM |
1122 | |
1123 | Ignore locks - only root is allowed to use this option. | |
1124 | ||
1e3f8156 | 1125 | `--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 |
1126 | |
1127 | Specify SMBIOS type 1 fields. | |
1128 | ||
2489d6df | 1129 | `--smp` `<integer> (1 - N)` ('default =' `1`):: |
1f554f76 DM |
1130 | |
1131 | The number of CPUs. Please use option -sockets instead. | |
1132 | ||
2489d6df | 1133 | `--sockets` `<integer> (1 - N)` ('default =' `1`):: |
1f554f76 DM |
1134 | |
1135 | The number of CPU sockets. | |
1136 | ||
1c532546 TL |
1137 | `--spice_enhancements` `[foldersharing=<1|0>] [,videostreaming=<off|all|filter>]` :: |
1138 | ||
1139 | Configure additional enhancements for SPICE. | |
1140 | ||
27a7acb2 DM |
1141 | `--sshkeys` `<filepath>` :: |
1142 | ||
1143 | cloud-init: Setup public SSH keys (one key per line, OpenSSH format). | |
1144 | ||
2489d6df | 1145 | `--startdate` `(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)` ('default =' `now`):: |
1f554f76 | 1146 | |
4772952b | 1147 | Set 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 | 1148 | |
2489d6df | 1149 | `--startup` `[[order=]\d+] [,up=\d+] [,down=\d+] ` :: |
1f554f76 | 1150 | |
c2993fe5 | 1151 | Startup 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 | 1152 | |
2489d6df | 1153 | `--tablet` `<boolean>` ('default =' `1`):: |
1f554f76 | 1154 | |
c2993fe5 | 1155 | Enable/disable the USB tablet device. |
1f554f76 | 1156 | |
5c1699e5 TL |
1157 | `--tags` `<string>` :: |
1158 | ||
1159 | Tags of the VM. This is only meta information. | |
1160 | ||
2489d6df | 1161 | `--tdf` `<boolean>` ('default =' `0`):: |
1f554f76 DM |
1162 | |
1163 | Enable/disable time drift fix. | |
1164 | ||
2489d6df | 1165 | `--template` `<boolean>` ('default =' `0`):: |
1f554f76 DM |
1166 | |
1167 | Enable/disable Template. | |
1168 | ||
7af2edf9 | 1169 | `--tpmstate0` `[file=]<volume> [,import-from=<source volume>] [,size=<DiskSize>] [,version=<v1.2|v2.0>]` :: |
5370fa8c | 1170 | |
7af2edf9 | 1171 | Configure a Disk for storing TPM state. The format is fixed to 'raw'. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Note that SIZE_IN_GiB is ignored here and 4 MiB will be used instead. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume. |
5370fa8c | 1172 | |
c5aa7e14 | 1173 | `--unused[n]` `[file=]<volume>` :: |
1f554f76 | 1174 | |
c2993fe5 | 1175 | Reference to unused volumes. This is used internally, and should not be modified manually. |
1f554f76 | 1176 | |
2489d6df | 1177 | `--usb[n]` `[host=]<HOSTUSBDEVICE|spice> [,usb3=<1|0>]` :: |
1f554f76 | 1178 | |
c2993fe5 | 1179 | Configure an USB device (n is 0 to 4). |
1f554f76 | 1180 | |
2489d6df | 1181 | `--vcpus` `<integer> (1 - N)` ('default =' `0`):: |
1f554f76 DM |
1182 | |
1183 | Number of hotplugged vcpus. | |
1184 | ||
e2d681b3 | 1185 | `--vga` `[[type=]<enum>] [,memory=<integer>]` :: |
1f554f76 | 1186 | |
e2d681b3 | 1187 | Configure the VGA hardware. |
1f554f76 | 1188 | |
7af2edf9 | 1189 | `--virtio[n]` `[file=]<volume> [,aio=<native|threads|io_uring>] [,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>] [,import-from=<source volume>] [,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>] [,ro=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]` :: |
1f554f76 | 1190 | |
7af2edf9 | 1191 | Use volume as VIRTIO hard disk (n is 0 to 15). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume. |
1f554f76 | 1192 | |
4d47f125 TL |
1193 | `--vmgenid` `<UUID>` ('default =' `1 (autogenerated)`):: |
1194 | ||
1195 | Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly. | |
1196 | ||
2489d6df WB |
1197 | `--vmstatestorage` `<string>` :: |
1198 | ||
1199 | Default storage for VM state volumes/files. | |
1200 | ||
1201 | `--watchdog` `[[model=]<i6300esb|ib700>] [,action=<enum>]` :: | |
1f554f76 | 1202 | |
c2993fe5 | 1203 | Create a virtual hardware watchdog device. |
1f554f76 | 1204 | |
35a75dd3 | 1205 | *qm showcmd* `<vmid>` `[OPTIONS]` |
1f554f76 DM |
1206 | |
1207 | Show command line which is used to start the VM (debug info). | |
1208 | ||
013dc89f | 1209 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
1210 | |
1211 | The (unique) ID of the VM. | |
1212 | ||
35a75dd3 | 1213 | `--pretty` `<boolean>` ('default =' `0`):: |
1f554f76 | 1214 | |
35a75dd3 | 1215 | Puts each option on a new line to enhance human readability |
1f554f76 | 1216 | |
5f26e15b TL |
1217 | `--snapshot` `<string>` :: |
1218 | ||
1219 | Fetch config values from given snapshot. | |
1220 | ||
1f554f76 DM |
1221 | *qm shutdown* `<vmid>` `[OPTIONS]` |
1222 | ||
9b3e4991 DM |
1223 | Shutdown virtual machine. This is similar to pressing the power button on a |
1224 | physical machine.This will send an ACPI event for the guest OS, which | |
1225 | should then proceed to a clean shutdown. | |
1f554f76 | 1226 | |
013dc89f | 1227 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
1228 | |
1229 | The (unique) ID of the VM. | |
1230 | ||
2489d6df | 1231 | `--forceStop` `<boolean>` ('default =' `0`):: |
1f554f76 DM |
1232 | |
1233 | Make sure the VM stops. | |
1234 | ||
2489d6df | 1235 | `--keepActive` `<boolean>` ('default =' `0`):: |
1f554f76 | 1236 | |
de0983cb | 1237 | Do not deactivate storage volumes. |
1f554f76 | 1238 | |
2489d6df | 1239 | `--skiplock` `<boolean>` :: |
1f554f76 DM |
1240 | |
1241 | Ignore locks - only root is allowed to use this option. | |
1242 | ||
2489d6df | 1243 | `--timeout` `<integer> (0 - N)` :: |
1f554f76 DM |
1244 | |
1245 | Wait maximal timeout seconds. | |
1246 | ||
1f554f76 DM |
1247 | *qm snapshot* `<vmid> <snapname>` `[OPTIONS]` |
1248 | ||
1249 | Snapshot a VM. | |
1250 | ||
013dc89f | 1251 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
1252 | |
1253 | The (unique) ID of the VM. | |
1254 | ||
013dc89f | 1255 | `<snapname>`: `<string>` :: |
1f554f76 DM |
1256 | |
1257 | The name of the snapshot. | |
1258 | ||
2489d6df | 1259 | `--description` `<string>` :: |
1f554f76 DM |
1260 | |
1261 | A textual description or comment. | |
1262 | ||
2489d6df | 1263 | `--vmstate` `<boolean>` :: |
1f554f76 DM |
1264 | |
1265 | Save the vmstate | |
1266 | ||
1f554f76 DM |
1267 | *qm start* `<vmid>` `[OPTIONS]` |
1268 | ||
1269 | Start virtual machine. | |
1270 | ||
013dc89f | 1271 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
1272 | |
1273 | The (unique) ID of the VM. | |
1274 | ||
c5aa7e14 TL |
1275 | `--force-cpu` `<string>` :: |
1276 | ||
1277 | Override QEMU's -cpu argument with the given string. | |
1278 | ||
5c1699e5 | 1279 | `--machine` `(pc|pc(-i440fx)?-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|q35|pc-q35-\d+(\.\d+)+(\+pve\d+)?(\.pxe)?|virt(?:-\d+(\.\d+)+)?(\+pve\d+)?)` :: |
1f554f76 | 1280 | |
4d47f125 | 1281 | Specifies the Qemu machine type. |
1f554f76 | 1282 | |
2489d6df | 1283 | `--migratedfrom` `<string>` :: |
1f554f76 DM |
1284 | |
1285 | The cluster node name. | |
1286 | ||
2489d6df | 1287 | `--migration_network` `<string>` :: |
de0983cb DM |
1288 | |
1289 | CIDR of the (sub) network that is used for migration. | |
1290 | ||
2489d6df | 1291 | `--migration_type` `<insecure | secure>` :: |
de0983cb DM |
1292 | |
1293 | Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance. | |
1294 | ||
2489d6df | 1295 | `--skiplock` `<boolean>` :: |
1f554f76 DM |
1296 | |
1297 | Ignore locks - only root is allowed to use this option. | |
1298 | ||
2489d6df | 1299 | `--stateuri` `<string>` :: |
1f554f76 DM |
1300 | |
1301 | Some command save/restore state from this location. | |
1302 | ||
2489d6df | 1303 | `--targetstorage` `<string>` :: |
52e44c50 | 1304 | |
c5aa7e14 | 1305 | Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value '1' will map each source storage to itself. |
52e44c50 | 1306 | |
e9cd3bd4 TL |
1307 | `--timeout` `<integer> (0 - N)` ('default =' `max(30, vm memory in GiB)`):: |
1308 | ||
1309 | Wait maximal timeout seconds. | |
1310 | ||
1f554f76 DM |
1311 | *qm status* `<vmid>` `[OPTIONS]` |
1312 | ||
1313 | Show VM status. | |
1314 | ||
013dc89f | 1315 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
1316 | |
1317 | The (unique) ID of the VM. | |
1318 | ||
2489d6df | 1319 | `--verbose` `<boolean>` :: |
1f554f76 DM |
1320 | |
1321 | Verbose output format | |
1322 | ||
1f554f76 DM |
1323 | *qm stop* `<vmid>` `[OPTIONS]` |
1324 | ||
9b3e4991 DM |
1325 | Stop virtual machine. The qemu process will exit immediately. Thisis akin |
1326 | to pulling the power plug of a running computer and may damage the VM data | |
1f554f76 | 1327 | |
013dc89f | 1328 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
1329 | |
1330 | The (unique) ID of the VM. | |
1331 | ||
2489d6df | 1332 | `--keepActive` `<boolean>` ('default =' `0`):: |
1f554f76 | 1333 | |
de0983cb | 1334 | Do not deactivate storage volumes. |
1f554f76 | 1335 | |
2489d6df | 1336 | `--migratedfrom` `<string>` :: |
1f554f76 DM |
1337 | |
1338 | The cluster node name. | |
1339 | ||
2489d6df | 1340 | `--skiplock` `<boolean>` :: |
1f554f76 DM |
1341 | |
1342 | Ignore locks - only root is allowed to use this option. | |
1343 | ||
2489d6df | 1344 | `--timeout` `<integer> (0 - N)` :: |
1f554f76 DM |
1345 | |
1346 | Wait maximal timeout seconds. | |
1347 | ||
1f554f76 DM |
1348 | *qm suspend* `<vmid>` `[OPTIONS]` |
1349 | ||
1350 | Suspend virtual machine. | |
1351 | ||
013dc89f | 1352 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
1353 | |
1354 | The (unique) ID of the VM. | |
1355 | ||
2489d6df | 1356 | `--skiplock` `<boolean>` :: |
1f554f76 DM |
1357 | |
1358 | Ignore locks - only root is allowed to use this option. | |
1359 | ||
95895385 TL |
1360 | `--statestorage` `<string>` :: |
1361 | ||
1362 | The storage for the VM state | |
1363 | + | |
1364 | NOTE: Requires option(s): `todisk` | |
1365 | ||
1366 | `--todisk` `<boolean>` ('default =' `0`):: | |
1367 | ||
1368 | If set, suspends the VM to disk. Will be resumed on next VM start. | |
1369 | ||
1f554f76 DM |
1370 | *qm template* `<vmid>` `[OPTIONS]` |
1371 | ||
1372 | Create a Template. | |
1373 | ||
013dc89f | 1374 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
1375 | |
1376 | The (unique) ID of the VM. | |
1377 | ||
5370fa8c | 1378 | `--disk` `<efidisk0 | ide0 | ide1 | ide2 | ide3 | sata0 | sata1 | sata2 | sata3 | sata4 | sata5 | scsi0 | scsi1 | scsi10 | scsi11 | scsi12 | scsi13 | scsi14 | scsi15 | scsi16 | scsi17 | scsi18 | scsi19 | scsi2 | scsi20 | scsi21 | scsi22 | scsi23 | scsi24 | scsi25 | scsi26 | scsi27 | scsi28 | scsi29 | scsi3 | scsi30 | scsi4 | scsi5 | scsi6 | scsi7 | scsi8 | scsi9 | tpmstate0 | virtio0 | virtio1 | virtio10 | virtio11 | virtio12 | virtio13 | virtio14 | virtio15 | virtio2 | virtio3 | virtio4 | virtio5 | virtio6 | virtio7 | virtio8 | virtio9>` :: |
1f554f76 DM |
1379 | |
1380 | If you want to convert only 1 disk to base image. | |
1381 | ||
1f554f76 DM |
1382 | *qm terminal* `<vmid>` `[OPTIONS]` |
1383 | ||
1384 | Open a terminal using a serial device (The VM need to have a serial device | |
1385 | configured, for example 'serial0: socket') | |
1386 | ||
013dc89f | 1387 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
1388 | |
1389 | The (unique) ID of the VM. | |
1390 | ||
35a75dd3 | 1391 | `--escape` `<string>` ('default =' `^O`):: |
1f554f76 | 1392 | |
35a75dd3 | 1393 | Escape character. |
1f554f76 | 1394 | |
35a75dd3 | 1395 | `--iface` `<serial0 | serial1 | serial2 | serial3>` :: |
1f554f76 | 1396 | |
35a75dd3 | 1397 | Select the serial device. By default we simply use the first suitable device. |
1f554f76 | 1398 | |
2489d6df | 1399 | *qm unlink* `<vmid> --idlist <string>` `[OPTIONS]` |
1f554f76 DM |
1400 | |
1401 | Unlink/delete disk images. | |
1402 | ||
013dc89f | 1403 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
1404 | |
1405 | The (unique) ID of the VM. | |
1406 | ||
2489d6df | 1407 | `--force` `<boolean>` :: |
1f554f76 | 1408 | |
c2993fe5 | 1409 | Force 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 | 1410 | |
2489d6df | 1411 | `--idlist` `<string>` :: |
1f554f76 DM |
1412 | |
1413 | A list of disk IDs you want to delete. | |
1414 | ||
1f554f76 DM |
1415 | *qm unlock* `<vmid>` |
1416 | ||
1417 | Unlock the VM. | |
1418 | ||
013dc89f | 1419 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
1420 | |
1421 | The (unique) ID of the VM. | |
1422 | ||
1f554f76 DM |
1423 | *qm vncproxy* `<vmid>` |
1424 | ||
1425 | Proxy VM VNC traffic to stdin/stdout | |
1426 | ||
013dc89f | 1427 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
1428 | |
1429 | The (unique) ID of the VM. | |
1430 | ||
1f554f76 DM |
1431 | *qm wait* `<vmid>` `[OPTIONS]` |
1432 | ||
1433 | Wait until the VM is stopped. | |
1434 | ||
013dc89f | 1435 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
1436 | |
1437 | The (unique) ID of the VM. | |
1438 | ||
2489d6df | 1439 | `--timeout` `<integer> (1 - N)` :: |
1f554f76 DM |
1440 | |
1441 | Timeout in seconds. Default is to wait forever. | |
1442 | ||
1443 |