DEV Community

Konstantin Krivko
Konstantin Krivko

Posted on

Virtual machines on QEMU on Linux

Just a quick note:
I apologize for the rough draft. Because if I want to write a full article, the article never ends up being finished, or published, or written. And if it is written, it's not. So I will always write the version number of the text (v. 01) at the bottom. And I will supplement it as I have free time from work and worldly affairs.

Let's start:
Once upon a time. I had an old system based on a very strange OS like ALTLinux, it was my first time using KDE, in FreeBSD I only saw the console. But I needed to build a VM cluster. So I gave it a try.
Now I have normal hardware, and I will build a VM cluster in VM. This is fun for me, not as fun as attacking orcs with a shovel in a gas mask.
For this I use:
Base OS: Debian
Packages:

  • qemu-kvm
  • qemu-img - VM creation and management tool
  • edk2-ovmf - UEFI image

Let's take a look at the following VM:

  • VM on bios
  • VM on UEFI
  • VM cluster shared disk

I thought I was going to create the VM and all the environment now, but then I realized I needed to install the software first.

Installing and configuring KVM/QEMU

Install KVM/QEMU and related packages using the commands:

$ sudo apt-get install qemu qemu-system-gui qemu-utils
Enter fullscreen mode Exit fullscreen mode

Create the hard disk image with:

$ qemu-img create debian.img 2G

If you're installing a desktop environment, you'll need more than 2G

(v.00.01)

Top comments (0)