Tag Archivio per: KVM


“Today, we will learn how to install KVM on Linux Mint 21 using the command line. KVM is a complete virtualization solution for Linux on x86 hardware. Using this, we can easily create Aparente Machines just like we do in VMware or VirtualBox. The best part about KVM is that it is open source and more efficient than its rival virtualization solutions.”

We have used basic Linux commands implemented on Linux Mint’s Terminal to install KVM. Let’s see how it is done!

Guide

Following are the steps involved in installing KVM on Linux Mint 21:

Step 1: Update and Upgrade Linux Mint

Before installing KVM, it is recommended to update your system and upgrade it. The following commands will help us in updating and upgrading our Linux Mint machine:

Step 2: Check System Compatibility With KVM

Next, we need to check whether KVM is compatible with our system or not. If it is not compatible, then we’ll keep running into errors.

egrep -c ‘(vmx|svm)’ /proc/cpuinfo

Output:

If you get an output above 0, that means KVM is compatible with your system and can be easily installed. In our case, we got an 8. This means we can install KVM on our system.

Step 3: Install KVM

Now that we have made sure that KVM can be installed, let’s install it by executing this command:

sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager

Step 4: Add Your User to the KVM and Libvirt Group

It is now time to add your user to KVM and libvirt group to set up KVM so that you don’t run into any permissions-related errors. Add the user to the KVM group like this::

sudo usermod -aG kvm $USER

Add the user to the libvirt group with this command:

sudo usermod -aG libvirt $USER

How to Create a Aparente Machine(VM) in KVM?

Now that we have installed KVM let’s see how we can create a VM on it. First, download the iso you want to create a VM of. We have downloaded an iso for Ubuntu 20.04.

Now open Aparente Machine Manager on your machine. This is how the interface will appear:

Click on File; you will see a list of options to choose from. Now click on New Aparente Machine:

This window will open with a list of options to choose from for your VM:

Please select the first option, as it allows you to create a VM using an ISO image. Merienda selected, click Forward.

Now select the iso that you downloaded, as shown below:

After that, allot memory and CPU utilization for the VM like this:

Next, allot storage to the VM:

Now, give the VM a name. For example, if the VM is Ubuntu, you can name it Ubuntu, followed by its version.

These are all the settings that were required. Click on Finish to finish the VM setup. The VM creation process will begin after that.

Merienda the VM is created, a new window will open for OS installation. You can then install the OS easily.

Conclusion

In today’s guide, we saw in detail how to install KVM on Linux Mint 21. We began by updating and upgrading the system. Then we verified KVM compatibility. Afterward, we installed KVM on our machine. In the end, we also saw how to create a Aparente Machine on KVM.



Source link

La virtualización se está convirtiendo en un recurso muy popular entre las empresas y es que esta, permite la ejecución simultánea de dos o más sistemas operativos y aplicaciones en un único dispositivo físico o hardware. Para ello, es necesario un programa o software que nos permita crear lo que se denominan máquinas virtuales, las cuales pueden ser servicios, redes o servidores que se montan en un PC o servidor físico.

Cinco software de virtualización

Una máquina virtual se trata de un programa que crea un equipo virtual en su sistema, haciéndole creer que es un equipo de verdad. A continuación, os vamos a mostrar algunos de los software más utilizados para virtualizar varios sistemas operativos en un servidor.

VMware vSphere Enterprise

VMWare se trata de una de las principales compañías en el ámbito de la virtualización. Sus sistemas de virtualización sirven tanto para ordenadores de escritorio como para sistemas de servidores y es el software de virtualización más utilizado por las empresas.

Citrix XenServer

Citrix, junto con VMWare, se coloca en lo más alto, siendo otra de las grandes compañías de virtualización. Citrix está basado en software de código abierto y dispone de dos versiones: una de pago y otra libre.
Citrix XenServer es una plataforma de virtualización de servidores administrada, completa e integrada en el potente hipervisor Xen. La tecnología Xen proporciona aislamiento seguro, control de recursos, garantías de calidad de servicio y migración de máquinas virtuales en caliente. XenServer está diseñado para una gestión eficiente de los servidores virtuales de Windows y Linux.

Microsoft Hyper-V Server

Es el sistema de virtualización de Microsoft. Una de las funcionalidades que incorpora Hyper-V Server es la migración “en vivo”. Esta funcionalidad permite mover máquinas virtuales en ejecución desde un servidor físico a otro sin que los usuarios se vean afectados. Hyper-V permite crear y administrar un entorno informático virtualizado mediante la tecnología de virtualización integrada en Windows Server.

VirtualBox

VirtualBox se caracteriza por ser muy fácil de usar gracias a su función “Guest Additions”, disponible para Windows, Linux, Solaris y OS. Algunas de las ventajas de “Guest Additions” es que permite usar la máquina virtual en modo de pantalla completa correctamente, así como una mejor integración del mouse entre la máquina física y la virtual, entre otras.

KVM

Kernel-based Virtual Machine (KVM) es un software de virtualización libre y de código abierto para Linux que se basa en las extensiones de virtualización de hardware Intel VT-X y AMD-V y una versión modificada QEMU. KVM permite ejecutar máquinas virtuales utilizando imágenes de disco que contienen sistemas operativos sin modificar. Cada máquina virtual tiene su propio hardware virtualizado: una tarjeta de red, discos duros, tarjeta gráfica, etc.

Esto y mucho más lo pudimos ver el pasado mes de junio en la primera jornada de “La Transformación Digital del puesto de trabajo” que tuvo lugar en el emblemático Hotel Puerta de América en Madrid y que organizamos junto a nuestros partners Arrow, Citrix y Nutanix.