Adjusting the IP Office KVM virtual machine disk

Last Updated : Jan 23, 2025 |

About this task

By default, IP Office virtual machines have a 100 GB virtual disk. You must adjust this to meet the IP Office server profiling requirements. See IP Office Server Profiling.

Important:
  • You cannot decrease the disk size at a later stage.

  • You cannot change the disk size if there are snapshots of the virtual machine. You must delete any snapshots before increasing the disk size.

Before you begin

  • You can use this processes on a new virtual machine before starting it.

  • To perform this shut down the virtual machine.

Procedure

  1. Use the following command to list the virtual machines the Linux server is hosting:
    • sudo virsh list

    The list shows the virtual machines and their status. For example:

    $ sudo virsh list
     Id   Name        State
    ----------------------------
     2    ipoffice    running
  2. Identify the name of the virtual machine you want to profile.
  3. If the machine is running, shut it down using the following command:
    • sudo virsh shutdown <name>

      Where:

      • <Name> is the name shown in the list of virtual machines.

    For example:

    • sudo virsh shutdown ipoffice

  4. Use the sudo virsh list command again to check that the virtual machine is no longer running.
  5. Use the following command to display the virtual machine disks:
    • sudo virsh domblklist <Name> where <Name> is the name shown in the list of virtual machines.

    • For example: sudo virsh domblklist ipoffice

  6. List the existing disk size:
    • sudo qemu-img info <disk>

      Where:

      • <disk> is the disk source path shown in the previous step.

    For example:

    • sudo qemu-img info /var/lib/libvirt/images/ipo_primary.qcow2

  7. Use the following command to expand the existing disk size:
    • sudo qemu-img resize <disk> +<increase>

    For example:

    • sudo qemu-img resize /var/lib/libvirt/images/ipo_primary.qcow2 +20G

  8. Adjust the settings to match the recommended settings for the server role. See IP Office Server Profiling.

Next Steps