Previous Page

nihilist - 00 / 00 / 00

Why do we need to Virtualize Machines

First let's start with the reasons why to virtualize a machine. The main reason to virtualize a machine is the ability to run multiple operating systems without impacting the host operating system. Virutal Machines(VMs) offer advantages of manageability and security, as well as the flexibility of running a separate operating system and non-native applications, making them ideal for software developers and testers. For example, a VM is isolated or "sandboxed" from the host system and other VMs, meaning that the software inside a VM can't escape or tamper with the computer itself. This produces an ideal environment for testing other operating systems including beta releases, accessing virus-infected data, creating operating system backups, and running software or applications on operating systems they weren't originally intended for.

How to Virtualize Machines(QEMU/KVM Hypervisor)

To get things started, we need to download QEMU. What is QEMU? QEMU, short for Quick Emulator,is a free and open-source emulator. You can download it from their official website.Using QEMU through the command line is troublesome, likely a tool called virt-manager makes the process of navigating QEMU much easier. To install virt-manager just type the following command.

sudo apt install virt-manager

After the installation is finished, virt-manager will look something like this.

Lets create a new virtual machine. I am creating a debian virtual machine, I already downloaded the .iso image from the official debian website. All the steps will be displayed in the following images.
















After clicking on "Finish", a virtual disk will be created to act as a hard-disk for the new VM.

Once the VM loads, you will go through the default debian installation process.