

Note that a new file called “testing-image.img” is now created at your home folder (or the place where you run the terminal). To create an image file with the size of 10GB and qcow2 format (default format for QEMU images), run: qemu-img create -f qcow2 testing-image.img 10G To do this, we can use the “qemu-img” tool. This image file will contain all the data and files of the operating system after installation. And we’ll see many different examples in order to understand the possible ways to achieve our goals using QEMU.įirst, we have to create a virtual hard drive image if we want to install our virtual operating system somewhere. QEMU provides a lot of options, architectures and formats to use. To install QEMU on Arch Linux: sudo pacman -S qemu How To Use QEMU To install QEMU on SUSE/openSUSE sudo zypper in qemu To install QEMU on Red Hat/CentOS/Fedora (replace dnf with yum for Red Hat/CentOS): sudo dnf install qemu qemu-kvm To install QEMU on Ubuntu/Linux Mint: sudo apt install qemu qemu-kvm Which is a good thing for us since we won’t need to download or install anything from 3rd party repositories. Fortunately, QEMU is available to install from almost all the official Linux distributions repositories.
