Fortinet black logo

Optional: Resizing the virtual disk (vDisk)

Optional: Resizing the virtual disk (vDisk)

The following steps introduce how to resize the virtual disk, using Ubuntu 16.04 LTS headless server as an example.

  1. Check the size of the vDisk. The default size is 70 GB.
    qemu-img info <the path of the image file>
    For example: qemu-img info /opt/kvm_013001_zx/boot.qcow2
  2. Increase the size of the vDisk.
    note icon

    It's recommended to shut down the virtual appliance before performing this step.


    qemu-img resize <the path of the image file> +<the size you want to adjust>
    For example: qemu-img resize /opt/kvm_013001_zx/boot.qcow2 +20G
  3. Check the size of the vDisk again to make sure the size is changed.
    qemu-img info <the path of the image file>
  4. Power on the virtual appliance.
  5. Format the log disk.
    execute formatlogdisk
    On KVM, the expanded space will not be recognized by FortiManager until the vDisk is re-formatted.
  6. The appliance will automatically restart. The disk is being formatted after the first restart. It might take several minutes depending on the size of the disk.

  7. After the disk is formatted, the appliance restarts again.

Optional: Resizing the virtual disk (vDisk)

The following steps introduce how to resize the virtual disk, using Ubuntu 16.04 LTS headless server as an example.

  1. Check the size of the vDisk. The default size is 70 GB.
    qemu-img info <the path of the image file>
    For example: qemu-img info /opt/kvm_013001_zx/boot.qcow2
  2. Increase the size of the vDisk.
    note icon

    It's recommended to shut down the virtual appliance before performing this step.


    qemu-img resize <the path of the image file> +<the size you want to adjust>
    For example: qemu-img resize /opt/kvm_013001_zx/boot.qcow2 +20G
  3. Check the size of the vDisk again to make sure the size is changed.
    qemu-img info <the path of the image file>
  4. Power on the virtual appliance.
  5. Format the log disk.
    execute formatlogdisk
    On KVM, the expanded space will not be recognized by FortiManager until the vDisk is re-formatted.
  6. The appliance will automatically restart. The disk is being formatted after the first restart. It might take several minutes depending on the size of the disk.

  7. After the disk is formatted, the appliance restarts again.