• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install kernel virtual machine on rocky linux 8.6

  • 00:39 cat /etc/os-release
  • 00:52 yum groups list
  • 01:28 yum groupinstall "Virtualization Host"
  • 02:37 yum install virt-manager
  • 02:59 systemctl enable libvirtd
  • 03:12 systemctl start libvirtd
  • 03:23 systemctl status libvirtd
  • 03:54 virt-manager
7546

To install Kernel-based Virtual Machines on Rocky Linux 8.6

Introduction:

Kernel-based Virtual Machines (KVM) are open-source virtualization technologies built into Linux® operating systems. In particular, KVM allows a host machine to run multiple, isolated virtual environments called guests or virtual machines (VMs).

Step1 : Check the installed version of OS by using the below command

[root@localhost ~]# cat /etc/os-release
NAME="Rocky Linux"
VERSION="8.6 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.6"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.6 (Green Obsidian)"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky Linux"
ROCKY_SUPPORT_PRODUCT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8"

Step 2 : Install and list the groups list by using the below command

[root@localhost ~]# yum groups list
Rocky Linux 8 - AppStream                                            5.7 MB/s | 9.6 MB     00:01    
Rocky Linux 8 - BaseOS                                               4.8 MB/s | 6.7 MB     00:01    
Rocky Linux 8 - Extras                                                10 kB/s |  11 kB     00:01    
Last metadata expiration check: 0:00:01 ago on Sat 03 Sep 2022 05:36:06 PM EDT.
Available Environment Groups:
   Server
   Minimal Install
   Workstation
   Virtualization Host
   Custom Operating System
Installed Environment Groups:
   Server with GUI
Installed Groups:
   Container Management
   Headless Management
Available Groups:
   .NET Core Development
   RPM Development Tools
   Development Tools
   Graphical Administration Tools
   Legacy UNIX Compatibility
   Network Servers
   Scientific Support
   Security Tools
   Smart Card Support
   System Tools

Step 3: Install the Virtualization Host from grouplist by using the below command

[root@localhost ~]# yum groupinstall "Virtualization Host"
Last metadata expiration check: 0:00:36 ago on Sat 03 Sep 2022 05:36:06 PM EDT.
Dependencies resolved.
=====================================================================================================
 Package                            Arch   Version                                   Repo       Size
=====================================================================================================
Upgrading:
 NetworkManager                     x86_64 1:1.36.0-7.el8_6                          baseos    2.3 M
 NetworkManager-adsl                x86_64 1:1.36.0-7.el8_6                          baseos    148 k
 NetworkManager-bluetooth           x86_64 1:1.36.0-7.el8_6                          baseos    174 k
 NetworkManager-libnm               x86_64 1:1.36.0-7.el8_6                          baseos    1.8 M
 NetworkManager-team                x86_64 1:1.36.0-7.el8_6                          baseos    152 k
 NetworkManager-tui                 x86_64 1:1.36.0-7.el8_6                          baseos    345 k
 NetworkManager-wifi                x86_64 1:1.36.0-7.el8_6                          baseos    193 k
 NetworkManager-wwan                x86_64 1:1.36.0-7.el8_6                          baseos    180 k
 bash                               x86_64 4.4.20-4.el8_6                            baseos    1.5 M
 bpftool                            x86_64 4.18.0-372.19.1.el8_6                     baseos    8.8 M
 curl                               x86_64 7.61.1-22.el8_6.4                         baseos    351 k
 dbus                               x86_64 1:1.12.8-18.el8_6.1                       baseos     40 k
 dbus-common                        noarch 1:1.12.8-18.el8_6.1                       baseos     45 k
 dbus-daemon                        x86_64 1:1.12.8-18.el8_6.1                       baseos    239 k
 dbus-libs                          x86_64 1:1.12.8-18.el8_6.1                       baseos    183 k
 dbus-tools                         x86_64 1:1.12.8-18.el8_6.1                       baseos     85 k
 dbus-x11                           x86_64 1:1.12.8-18.el8_6.1                       appstream  59 k
 device-mapper                      x86_64 8:1.02.181-3.el8_6.2                      baseos    376 k
 device-mapper-event                x86_64 8:1.02.181-3.el8_6.2                      baseos    270 k
 device-mapper-event-libs           x86_64 8:1.02.181-3.el8_6.2                      baseos    269 k
 device-mapper-libs                 x86_64 8:1.02.181-3.el8_6.2                      baseos    409 k

Step 4 : Install the virt-manager by using the below command

[root@localhost ~]# yum install virt-manager
Last metadata expiration check: 0:06:20 ago on Sat 03 Sep 2022 05:36:06 PM EDT.
Dependencies resolved.
=====================================================================================================
 Package                  Arch        Version                                   Repository      Size
=====================================================================================================
Installing:
 virt-manager             noarch      3.2.0-4.el8                               appstream      620 k
Installing dependencies:
 python3-argcomplete      noarch      1.9.3-6.el8                               appstream       59 k
 python3-libvirt          x86_64      8.0.0-1.module+el8.6.0+847+b490afdd       appstream      331 k
 virt-manager-common      noarch      3.2.0-4.el8                               appstream      1.0 M

Transaction Summary
=====================================================================================================
Install  4 Packages

Total download size: 2.0 M
Installed size: 9.8 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): python3-argcomplete-1.9.3-6.el8.noarch.rpm                    302 kB/s |  59 kB     00:00    
(2/4): python3-libvirt-8.0.0-1.module+el8.6.0+847+b490afdd.x86_64.rp 1.2 MB/s | 331 kB     00:00    
(3/4): virt-manager-3.2.0-4.el8.noarch.rpm                           2.2 MB/s | 620 kB     00:00    
(4/4): virt-manager-common-3.2.0-4.el8.noarch.rpm                    5.9 MB/s | 1.0 MB     00:00    
-----------------------------------------------------------------------------------------------------
Total                                                                1.7 MB/s | 2.0 MB     00:01     

Complete!

Step 5: Enable the service by using the below command

[root@localhost ~]# systemctl enable libvirtd

Step 6: Start the service by using the below command

[root@localhost ~]# systemctl start libvirtd

Step 7: Check the status by using the below command

[root@localhost ~]# systemctl status libvirtd
● libvirtd.service - Virtualization daemon
   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2022-09-03 17:57:37 EDT; 9s ago
     Docs: man:libvirtd(8)
           https://libvirt.org
 Main PID: 58693 (libvirtd)
    Tasks: 21 (limit: 32768)
   Memory: 50.6M

Step 8: Run the below command to get KVM console

[root@localhost ~]# virt-manager

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to install kernel virtual machine on rocky Linux 8.6. Your feedback is much welcome.

Tags:
matthew
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

How To Identify The Kvm Version?

A

To locate the KVM model use the command ‘virsh model’

Q

How to verify Virtualization Technology (VT) is enabled in your server’s BIOS or not?

A

grep -E ‘svm|vmx’ /proc/cpuinfo
• vmx is for Intel processors
• svm is for AMD processors

Q

Which command is used in KVM for VMs live migration?

A

‘virsh migrate –live machine_name qemu+ssh://destination_server/system’

Q

How to get hardware information on the KVM guest machine?

A

Use the command ‘virsh dominfo ’

Q

What are the different states of a VM in Xen hypervisor?

A

A VM can have different states like
• r – Running
• b – Blocked
• c – crashed
• s – Shutdown
• p – Paused

Related Tutorials in How to install kernel virtual machine on rocky linux 8.6

Related Tutorials in How to install kernel virtual machine on rocky linux 8.6

How to install Xrdp Server (Remote Desktop) on Oracle Linux 8.5
How to install Xrdp Server (Remote Desktop) on Oracle Linux 8.5
Oct 17, 2022
How to install and update OpenSSL on Debian 11.3
How to install and update OpenSSL on Debian 11.3
Oct 21, 2022
How to add and remove local storage repository in xenserver
How to add and remove local storage repository in xenserver
Jul 1, 2016
How to Install and Configure Mega in Linux
How to Install and Configure Mega in Linux
Jul 19, 2016
How to use Aureport command on Linux
How to use Aureport command on Linux
Nov 28, 2017
How to install Development tools on Linux
How to install Development tools on Linux
Jun 12, 2018
How to Install mod_ssl and SSL certificate on Oracle Linux
How to Install mod_ssl and SSL certificate on Oracle Linux
Dec 30, 2021
How to install Nextcloud on Ubuntu 22.04 version
How to install Nextcloud on Ubuntu 22.04 version
Jun 23, 2023

Related Forums in How to install kernel virtual machine on rocky linux 8.6

Related Forums in How to install kernel virtual machine on rocky linux 8.6

Linux
jayce class=
shasum command not found
May 5, 2017
Linux
stephan class=
How to list all samba users
Jan 12, 2018
pv command
muhammad class=
pvcreate command not found error
May 9, 2017
Linux
henry class=
Starting NFS daemon: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
Apr 25, 2017
ifconfig command
jackbrookes class=
what is the location of the ifconfig program on your machine?
Jan 4, 2018
Linux
baseer class=
single command to apply setfacl for multiple user at a time
Jan 23, 2018
Linux
beulah class=
What does mean by 0 0 value in fstab file
Jan 2, 2018
CentOS
mason class=
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
Nov 20, 2018

Related News in How to install kernel virtual machine on rocky linux 8.6

Related News in How to install kernel virtual machine on rocky linux 8.6

Anbox, the Android-to-Linux tool the developers have been waiting for
Anbox, the Android-to-Linux tool the developers have been waiting for
Apr 17, 2017
Linus Torvalds stops signing Linux kernel RC tarballs
Linus Torvalds stops signing Linux kernel RC tarballs
May 17, 2017
Capsule8 Launches Linux-Based Container Security Platform
Capsule8 Launches Linux-Based Container Security Platform
Feb 14, 2017
Symantec updates Management console product
Symantec updates Management console product
Nov 22, 2017
Latest Linux driver release feature seven AMD Vega
Latest Linux driver release feature seven AMD Vega
Mar 23, 2017
A Newer and a Faster Window Manager for Tina (Linux Mint 19.2)
A Newer and a Faster Window Manager for Tina (Linux Mint 19.2)
Apr 9, 2019
Microsoft makes its Azure App service now available on Linux Systems
Microsoft makes its Azure App service now available on Linux Systems
Sep 7, 2017
Docker friendly Alpine Linux gets hardened Node.js
Docker friendly Alpine Linux gets hardened Node.js
Apr 19, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Isaiah ?
What is the use of SUID & SGID commands

How to set the special permissions to the files and folders using SUID and SGID commands...

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.