It uses Linux KVM (Kernel-based Virtual Machine) to create virtual environments on a host computer.

Like any other Linux tool, using QEMU to create virtual machines is straightforward.

Download:Ubuntu Desktop

Download the installation image and save it to a preferred location on your system.

check whether virtualisation is enabled on linux

If not,enable virtualization on your machineby booting into the BIOS.

you’re gonna wanna install qemu-kvm, libvirt-daemon, bridge-utils, and virt-manager.

If you prefer the command line instead, skip to the next section.

local install with iso in virtual machine manager

Launch Virtual Machine Manager from the applications menu.

SelectBrowseto bring up the ISO media locator.

Here, you’ll need to add a storage pool from where you’ll grab the ISO.

adding a storage pool for the iso file

ClickBrowseto locate the folder and hitOpen.

Once done, choose the newly created pool from the left sidebar and highlight the Ubuntu ISO file.

virt-manager will automatically detect the OS you’re trying to install.

choosing the ubuntu iso file virtual machine manager

When you’re done, clickForward.

For this guide, let’s go with 4096MB of memory and 6 CPU threads.

you’re able to allocate more if your hardware supports it.

configuring memory and cpu options for ubuntu vm

On the following screen, configure storage for the Ubuntu virtual machine.

For an Ubuntu VM, anything more than 20GB works.

verify theEnable storage for this virtual machinebox is checked off.

configuring ubuntu virtual machine storage

Finally, clickFinishand virt-manager will set up the virtual machine for you.

Select that from the list of available options.

The steps to install Ubuntu using QEMU are more or less similar toinstalling Ubuntu on your PC.

ubuntu running using qemu

By default, the resolution of the virtual machine will be lower than your display resolution.

you’re free to change this by heading over toSystem Settingson Ubuntu and configuring the resolution manually.

With a few simple commands, you’re free to set up a usable QEMU VM running Ubuntu.

ubuntu vm running qemu cli

The virtual machine will use this disk image to store data, so confirm to specify a size accordingly.

PressEscapeto launch the boot menu and opt for appropriate option to boot from the ISO file.

Select theTry and Install Ubuntuoption from the list and Ubuntu will boot.

As earlier, you could either test the desktop or install Ubuntu on your rig.

After installing Ubuntu, confirm you remove the-cdromflag from the qemu command.

This will boot Ubuntu from the disk image file rather than the ISO file.

There are several other hypervisors for Linux users, namely KVM, QEMU, VirtualBox, and VMware.

Which one you should choose, depends on what you expect from the software.