Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Installing QEMU-KVM

Leer en espanol
Installing QEMU-KVM

Table of contents

Kernel-based Virtual Machine or KVM is a solution to implement complete virtualization with Linux. It is made up of a m ===

What is KVM (Wikipedia)?

Kernel-based Virtual Machine either KVM, (in SpanishKernel-based virtual machine) is a solution to implement full virtualization with Linux. It is made up of a kernel module (named kvm.ko) and tools in user space, being entirelyfree software. The KVM component for the kernel has been included in Linux since version 2.6.20.

KVM allows you to run virtual machines using disk images containing unmodified operating systems. Each virtual machine has its own virtualized hardware: a network cardhard drivesgraphic card, etc.

What is QEMU (Wikipedia)?

QEMU is a processor emulator based on dynamic binary translation (conversion of the binary code of the source architecture into code understandable by the host architecture). QEMU also has virtualization within an operating system, either GNU/LinuxWindows, or any of the supported operating systems, (in fact it is the most common way of use). This virtual machine can run on any type of Microprocessor or architecture (x86x86-64,PowerPCMIPSSPARC, etc.). It is partly licensed with the LGPL and the GPL ofGNU.

Checks

Before starting the installation we must check if our equipment is compatible. We execute the following command:

rokitoh@red-orbita:~$ egrep -c «(svm|vmx)» /proc/cpuinfo
4

If it returned 0 it would not be compatible for virtualization, from 1 onwards we will not have any problem

Facility 

Bash
rokitoh@red-orbita:~# apt-get install qemu-kvm libvirt-bin bridge-utils virt-manager hal

We add our user to the libvirt group

Bash
rokitoh@red-orbita:~# adduser rokitoh libvirt

We start the service

rokitoh@red-orbita:~#/etc/init.d/libvirt-bin start
[ ok ] Starting libvirt management daemon: libvirtd already running.

We open the application and it is ready to create virtual machines.

Selección_005

All the best. rokitoh!

Comments