X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=qm.1-synopsis.adoc;fp=qm.1-synopsis.adoc;h=5c84a1fdca640069687c3eaa6932909ddb01d57f;hp=d77a5d3ff7ba9e49c597739db39d981bf3e1961b;hb=4d47f12597815e9a1fc3f3c1b4020e0d5c106254;hpb=68a192b5be240f604db58c7ae93f3421ebbf97e2 diff --git a/qm.1-synopsis.adoc b/qm.1-synopsis.adoc index d77a5d3..5c84a1f 100644 --- a/qm.1-synopsis.adoc +++ b/qm.1-synopsis.adoc @@ -1,16 +1,8 @@ *qm* ` [ARGS] [OPTIONS]` -*qm agent* ` ` +*qm agent* -Execute Qemu Guest Agent commands. - -``: ` (1 - N)` :: - -The (unique) ID of the VM. - -``: `` :: - -The QGA command. +An alias for 'qm guest cmd'. *qm clone* ` ` `[OPTIONS]` @@ -81,9 +73,9 @@ The (unique) ID of the VM. Enable/disable ACPI. -`--agent` `` ('default =' `0`):: +`--agent` `[enabled=]<1|0> [,fstrim_cloned_disks=<1|0>]` :: -Enable/disable Qemu GuestAgent. +Enable/disable Qemu GuestAgent and its properties. `--archive` `` :: @@ -212,7 +204,7 @@ Lock/unlock the VM. `--machine` `(pc|pc(-i440fx)?-\d+\.\d+(\.pxe)?|q35|pc-q35-\d+\.\d+(\.pxe)?)` :: -Specific the Qemu machine type. +Specifies the Qemu machine type. `--memory` ` (16 - N)` ('default =' `512`):: @@ -356,7 +348,7 @@ Configure an USB device (n is 0 to 4). Number of hotplugged vcpus. -`--vga` `` :: +`--vga` `` :: Select the VGA type. @@ -364,6 +356,10 @@ Select the VGA type. Use volume as VIRTIO hard disk (n is 0 to 15). +`--vmgenid` `` ('default =' `1 (autogenerated)`):: + +Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly. + `--vmstatestorage` `` :: Default storage for VM state volumes/files. @@ -400,6 +396,66 @@ The (unique) ID of the VM. Ignore locks - only root is allowed to use this option. +*qm guest cmd* ` ` + +Execute Qemu Guest Agent commands. + +``: ` (1 - N)` :: + +The (unique) ID of the VM. + +``: `` :: + +The QGA command. + +*qm guest exec* ` []` `[OPTIONS]` + +Executes the given command via the guest agent + +``: ` (1 - N)` :: + +The (unique) ID of the VM. + +``: `` :: + +Extra arguments as array + +`--synchronous` `` ('default =' `1`):: + +If set to off, returns the pid immediately instead of waiting for the commmand to finish or the timeout. + +`--timeout` ` (0 - N)` ('default =' `30`):: + +The maximum time to wait synchronously for the command to finish. If reached, the pid gets returned. Set to 0 to deactivate + +*qm guest exec-status* ` ` + +Gets the status of the given pid started by the guest-agent + +``: ` (1 - N)` :: + +The (unique) ID of the VM. + +``: `` :: + +The PID to query + +*qm guest passwd* ` ` `[OPTIONS]` + +Sets the password for the given user to the given password + +``: ` (1 - N)` :: + +The (unique) ID of the VM. + +``: `` :: + +The user to set the password for. + +`--crypted` `` ('default =' `0`):: + +set to 1 if the password has already been passed through crypt() + *qm help* `[OPTIONS]` Get help about specified command. @@ -569,6 +625,10 @@ The (unique) ID of the VM. Rescan all storages and update disk sizes and unused disk images. +`--dryrun` `` ('default =' `0`):: + +Do not actually write changes out to VM config(s). + `--vmid` ` (1 - N)` :: The (unique) ID of the VM. @@ -667,9 +727,9 @@ The (unique) ID of the VM. Enable/disable ACPI. -`--agent` `` ('default =' `0`):: +`--agent` `[enabled=]<1|0> [,fstrim_cloned_disks=<1|0>]` :: -Enable/disable Qemu GuestAgent. +Enable/disable Qemu GuestAgent and its properties. `--args` `` :: @@ -798,7 +858,7 @@ Lock/unlock the VM. `--machine` `(pc|pc(-i440fx)?-\d+\.\d+(\.pxe)?|q35|pc-q35-\d+\.\d+(\.pxe)?)` :: -Specific the Qemu machine type. +Specifies the Qemu machine type. `--memory` ` (16 - N)` ('default =' `512`):: @@ -932,7 +992,7 @@ Configure an USB device (n is 0 to 4). Number of hotplugged vcpus. -`--vga` `` :: +`--vga` `` :: Select the VGA type. @@ -940,6 +1000,10 @@ Select the VGA type. Use volume as VIRTIO hard disk (n is 0 to 15). +`--vmgenid` `` ('default =' `1 (autogenerated)`):: + +Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly. + `--vmstatestorage` `` :: Default storage for VM state volumes/files. @@ -1016,7 +1080,7 @@ The (unique) ID of the VM. `--machine` `(pc|pc(-i440fx)?-\d+\.\d+(\.pxe)?|q35|pc-q35-\d+\.\d+(\.pxe)?)` :: -Specific the Qemu machine type. +Specifies the Qemu machine type. `--migratedfrom` `` ::