Skip to content

Set-PveNodesQemuResize

Extend volume size.

API: PUT /nodes/{node}/qemu/{vmid}/resize, Proxmox VE API viewer

Set-PveNodesQemuResize
[-PveTicket <PveTicket>]
[-Digest <string>]
-Disk <string>
-Node <string>
-Size <string>
[-Skiplock <bool>]
-Vmid <int>
[<CommonParameters>]
Parameter Type Required Description
-PveTicket PveTicket No Ticket data connection.
-Digest string No Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
-Disk string Yes The disk you want to resize. Values: ide0, ide1, ide2, ide3, scsi0, scsi1, scsi2, scsi3, scsi4, scsi5, scsi6, scsi7, scsi8, scsi9, scsi10, scsi11, scsi12, scsi13, scsi14, scsi15, scsi16, scsi17, scsi18, scsi19, scsi20, scsi21, scsi22, scsi23, scsi24, scsi25, scsi26, scsi27, scsi28, scsi29, scsi30, virtio0, virtio1, virtio2, virtio3, virtio4, virtio5, virtio6, virtio7, virtio8, virtio9, virtio10, virtio11, virtio12, virtio13, virtio14, virtio15, sata0, sata1, sata2, sata3, sata4, sata5, efidisk0, tpmstate0.
-Node string Yes The cluster node name.
-Size string Yes 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.
-Skiplock bool No Ignore locks - only root is allowed to use this option.
-Vmid int Yes The (unique) ID of the VM.

Every parameter also binds by property name from the pipeline, so an object with node and vmid properties (the output of Get-PveGuest, for one) fills -Node and -Vmid. Without -PveTicket the cmdlet uses the last connection, see Connection.

A PveResponse: the data returned by Proxmox VE is in .Response.data, the outcome in .IsSuccessStatusCode. See Results and Errors.