QEMU can be used for building a virtual machine from the ISO
image of a Linux distribution. Follow this procedure to create a VM image.
Procedure
Download the ISO image for your chosen operating system, for example
fedora29.iso.
Create a qemu harddisk image file.
qemu-img create fedora.img 10G
Use the qemu harddisk image file created in step 2, as the harddisk in the qemu -boot command, to begin the installation
of the operating system into the VM.