+3 votes
257 views
How to install and use KVM to manage Cloud images on Linux

in Linux / Unix by (552k points)
reopened | 257 views

1 Answer

+4 votes
Best answer

1. How to install KVM Linux

Currently, one of the most booming issues that has become an ideal solution for the execution of hundreds of operating systems is virtualization..

Thanks to virtualization we have the opportunity to implement various operating systems or applications on a single computer without the need to invest large amounts of money in new resources or equipment. We all know the various virtualization options available today, some paid, others not. Today TechnoWikis will focus on one that is special for its power and its image management capacity and is KVM.

What is KVM?
KVM (Kernel-based Virtual Machine) is a virtualization solution for Linux on 32-bit x86 hardware, which includes virtualization extensions (Intel VT or AMD-V). Its design consists of an executable kernel module, kvm.ko, which provides the main virtualization infrastructure and a specific processor module, kvm-intel.ko or kvm-amd.ko.

When using KVM, we will be able to run multiple virtual machines using Linux or Windows images without modifying any parameters within the hardware of the computer. Each virtual machine has private virtualized hardware: a network card, a disk, a graphics adapter, and thus manage it completely..

KVM is an open source software. The kernel component of KVM is included in the mainline Linux, as of 2.6.20. The user space component of KVM is included in main QEMU, from 1.3 which allows us to have full availability.

KVM features
Among the many features we have with KVM are:
  • QMP - Qemu Monitor Protocol
  • KSM - Kernel Samepage Merging
  • Kvm Paravirtual Clock - A source of Paravirtual time for KVM
  • CPU support Hotplug
  • PCI Hotplug support: Allows you to add PCI devices are running
  • vmchannel - Communication channel between host and guests
  • migration - Migration of virtual machines
  • vhost
  • SCSI disk emulation
  • Virtio devices
  • CPU grouping
  • Hpet
  • Device assignment pxe boot
  • iscsi boot
  • x2apic
  • Floppy
  • CD ROM
  • USB
  • Irqchip emulation in the user space
  • Memory controller
  • Large page support
  • Stable Guest ABI

1. How to install KVM Linux


Before proceeding with the installation of KVM it is necessary to know that KVM will only work if the computer's CPU has hardware virtualization support, either Intel VT or AMD-V, this can be verified by executing the following command:
 egrep '(vmx | svm)' / proc / cpuinfo 

image

If the result generates an error, it will not be possible to use KVM..

To perform the installation of KVM we will execute the following line:

 sudo apt-get install qemu-kvm qemu virt-manager virt-viewer libvirt-bin 

image

We will enter the letter S to accept the download and installation of the KVM packages.
In this case the values ​​are:

qemu-kvm
Kernel-based virtual machine, QEMU uses it for CPU virtualization.

qemu
CPU emulator.s

virt-viewer
Graphic console

We can verify the installation of KVM by executing the following:

 kvm-ok 
The result will be as follows:

image

Next we proceed to install some KVM tools with the following command:

 sudo apt install uvtool 

image

We accept the download and installation of these.

image

Login Join up!


by (3.5m points)
edited

Related questions

+5 votes
1 answer
asked Apr 30, 2020 in Linux / Unix by backtothefuture (552k points) | 308 views
+4 votes
1 answer
asked Nov 11, 2019 in Linux / Unix by backtothefuture (552k points) | 386 views
+5 votes
1 answer
+3 votes
1 answer
+4 votes
1 answer
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users