QEMU/Devices/Storage

Storage devices can be added using  parameter, or with the  command in the QEMU monitor.

Media type
Several drive types can be emulated. This can be specified through the  modifier. If not specified, it defaults to.

Valid types are:

Example:

Virtual FAT filesystem (VVFAT)
Qemu can emulate a virtual drive with a FAT filesystem. It is an easy way to share files between the guest and host.

It works by prepending  to a directory name. By default it's read-only, if you need to make it writable append  to the aforementioned prefix.

Example:

WARNING: keep in mind that QEMU makes the virtual FAT table once, when adding the device, and then doesn't update it in response to changes to the specified directory made by the host system. If you modify the directory while the VM is running, QEMU might get confused.

Cache policies
QEMU can cache access to the disk image files, and it provides several methods to do so. This can be specified using the  modifier.

Example:

Attaching drives to controller interfaces
If the drive is not attached to a controller interface (i.e. ), then it can be manually attached with: