After manually resizing a disk image with qemu-img, how do we let MAAS refresh these changes for display?


Currently when we resize any disk space or allocate more memory to a KVM machine via virsh edit, MAAS does not reflect this in the UI. How do we tell MAAS to refresh this? The “Refresh” option on the KVM host does not seem to do so.

Refresh only refreshes the information for the host running the virtual machines. You can use the API to update memory and storage size manually or by recommissioning the virtual machine.

maas $PROFILE machine update $SYSTEM_ID memory=$NEW_MEMORY_AMOUNT
maas $PROFILE block-device update $SYSTEM_ID $BLOCK_DEVICE_ID size=$NEW_BLOCK_SIZE