[pve-devel] execute directly a qm monitor command

Dietmar Maurer dietmar at proxmox.com
Thu Aug 2 06:27:15 CEST 2012


> is there a way to directly execute a monitor command from shell?
> 
> Something like:
> qm monitor 102 "block_resize drive-virtio1 500G"

You can execute any API command with 'pvesh'.

# pvesh help /nodes/localhost/qemu/102/monitor -v
USAGE: create /nodes/{node}/qemu/{vmid}/monitor -command <string> [OPTIONS]

  Execute Qemu monitor commands.

  -command   string

	     The monitor command.

So you can do:

# pvesh create /nodes/localhost/qemu/102/monitor --command 'block_resize drive-virtio1 500G '


- Dietmar




More information about the pve-devel mailing list