Explore information related to kvm


Create a virtual machine in KVM on the command line

This article covers how to create and manage guest virtual machines on KVM from the command-line. In fact, KVM (Kernel based Virtual Machine) is an opensource virtualization technology built for Linux machines. It comprises a kernel module – kvm.ko which provides the core virtualization platform and a processor-specific module ( kvm-intel.ko for Intel processors or kvm-amd.ko for AMD processors ).


How to Install KVM, Qemu, virt-manager & libvirtd daemon ?

To install KVM and associated packages, run the below command:

$ sudo apt install -y qemu qemu-kvm libvirt-daemon libvirt-clients bridge-utils virt-manager

The command installs the following packages:

  • qemu-kvm –  This is the main KVM package that provides virtualization support.
  • libvirt – Includes the libvirtd daemon which supports creation and management of virtual machines.
  • libvirt-client – This package provides the virsh utility used for interacting with virtual machines.
  • virt-install – A utility that helps you to create virtual machines and install OS on those virtual machines from command line.
  • virt-viewer – A utility that displays the graphical view for the virtual machine.

Once installed, we need to confirm if the required kvm modules are loaded. Therefore, run the command:

$ lsmod | grep kvm

Additionally, confirm that the libvirtd daemon is running as follows:

$ sudo systemctl status libvirtd.service

Read More



Install KVM on Rocky Linux 8 / AlmaLinux 8 - Step by step guide ?

This article covers the installation of KVM on Rocky Linux / AlmaLinux. In fact, Kernel-Based Virtual Machine (KVM) is an open-source Linux-based hypervisor that is inbuilt within the Linux Linux Operating systems. Is grouped as a type 1 hypervisor as it possesses type 1 characteristics such as direct access to hardware with VM's. It has kvm.ko kernel module which creates a core virtualization infrastructure and supports both Intel and AMD processors.

Read More



Install Kubectl on Linux Mint 20 - Best Method ?

This article covers how you can install Kubectl on your Linux system and use it to operate your Kubernetes clusters if you are fond of using the command-line interfaces. Infact, Kubectl tool is very efficient in terms of cluster management and application deployment. 

Kubectl is a command-line tool for Kubernetes. It allows us to execute Kubernetes operations via the API. We can use Kubectl to deploy apps, check logs as well as manage all the other resources of the cluster.

Kubernetes uses an HTTP-based REST API which is the actual Kubernetes user interface employed to manage it. This means that every Kubernetes operation is represented as an API endpoint and can be carried out based on an HTTP-request sent to the endpoint. 

Read More



Install Virt-Viewer on Linux Mint 20 - Step by Step Process ?

This article covers how to install Virt-Viewer on a Linux Mint 20 system. virt-viewer is a minimal tool for displaying the graphical console of a virtual machine. The console is accessed using the VNC or SPICE protocol. The viewer can connect to remote hosts to lookup the console information and then also connect to the remote console using the same network transport.


Functions of Virt Viewer: 

  • Connect to KVM virtual machines remotely via the SPICE remote desktop protocol.
  • Automatically adjust display resolution of the KVM virtual machines.
  • Use multiple monitors for the KVM virtual machines.
  • Passthrough USB devices from your computer to the KVM virtual machines.
  • Share folders from your computer to the KVM virtual machines.


To install Virt Viewer on Linux:

1. First, update the APT package repository cache with the following command:

$ sudo apt update

2. To install Virt Viewer on Ubuntu 20.04 LTS, run the following command:

$ sudo apt install virt-viewer --no-install-recommends --no-install-suggests

Then, confirm the installation, press Y and then press <Enter>.

Read More



Install and Use Docker Compose on CentOS 8 - Step by Step Process ?

This article covers how to install and use the Docker-compose on CentOS 8 system. By using the Docker-compose, you can deploy multiple Docker applications with container services through a single command. 

Basically, Docker Compose is a tool that can be used to define and run multiple containers as a single service. With Docker Compose, you can link multiple containers and deploy an application from a single command. 

It is mainly used in the development, testing and staging environment. 

Docker Compose uses a YAML file to define a complex stack in a file and running it with a single command.


To install Docker on CentOS:

1. Before starting, make sure you have Docker installed on your server. If not installed, you will need to add Docker-CE repository to your system. 

You can add it with the following command:

$ dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo

2. Once the repository is added, install the latest version of docker using the following command:

# dnf install docker-ce --nobest -y
# systemctl start docker
# systemctl enable docker

3. You can verify the docker version with the following command:

$ docker --version

Read More




For Linux Tutorials

We create Linux HowTos and Tutorials for Sys Admins. Visit us on LinuxAPT.com

Also for Tech related tips, Visit forum.outsourcepath.com or General Technical tips on www.outsourcepath.com