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