As per the software description : "*qemu-img allows you to create, convert and modify images offline. It can handle all image formats supported by QEMU.*"
Expanding a new disk implies creating a new blank image of the desired size and "copy" the existing disk into this new bigger image using virt-resize.
> In-place expansion is not supported, which mean than a copy of the disk to be expanded has to be created
{.is-info}
## Installation
* On Fedora-related distributions, `virt-resize` is provided by the `guestfs-tools` package :
```
# dnf install guestfs-tools
```
## Usage
* **Create a new disk image**
In-place expansion is not supported. A new disk of the desired size has to be created.
Use the following command to create `phyllome_but_bigger.img`, a disk of 15 GiB
```
$ qemu-img create -f raw phyllome-bigger.img 15G
```
* **Expand the root partition**
> This command only works if the root partition is located on vda3 and if the disk image filesystem uses EXT4.