[Music]
hello everyone welcome back to our
Channel today we are diving into the
world of virtualization in this tutorial
we will explain how to install KVM on
rhl L system whether you are setting up
a test environment or exploring
virtualization For the First Time The
step-by-step tutorial has got you cover
before diving into the steps make sure
you have the following things in place
minimal install rhl line with desktop
environment a sudo user with admin
rights local repository or reded
subscription we need internet
connectivity if you are using a redhead
subscription for the interest of time I
have already prepared a set of commands
that I will use in this tutorial I will
say these commands in the description
for your reference I have already taken
the SSS session of my rhl L system let's
get started first thing first we need to
ensure our system supports
virtualization to verify
this we can run the
command
grab in double codes type
vmx and grab this vmx in
proc CPU info
file if you see the output highlighting
vmx then it confirms that your CPU
supports virtualization if there is no
output you might need to enable the
virtualization in your bio settings if
you are using AMD
processor you need to replace this
vmx with
svm as I'm using Intel based processor
so this command is not giving any output
altern way to verify whether your CPU
supports virtualization or
not we can run the command LS CPU and
then grip
virtualization in the output you should
see VT hyphen X it means we are using
Intel based processor and virtualization
Technologies
enabled before installing KVM it is a
good practice is to update your system
for that we can run the command sudu
dnf
update hyph
by this command will install all the
updates on your R line
system once the updates are complet
complete reboot your system using the
command
sudo space
reboot this ensures all the changes take
effect once the system is back online
after the reboot we will install
necessary virtualization packages like
word hyphen install word hyphen viewer
live word word hyphen manager word
hyphen top Li guest FS hyphen
tools copy this
command what hyphen install it is a
command line tool for creating virtual
machine word hyphen viewer it's a
lightweight interface for interacting
with virtual machine live what it's a
virtualization demon what hyphen manage
is a graphical user interface for
managing the virtual machines word
hyphen
top it is a utility for monitoring the
virtualization
stats lip guest FS ien tools this is
used for accessing and modifying the VM
disk
images now hit enter
next start and enable the Liberty
service to ensure it runs on the boot
run the
command sudo system
CTL start
Liberty it enter this will start the
Liberty service to enable the service
replace this start with unable keyword
and hit enter to confirm that Liberty
service is up and
running in the command sud sudo system
CTL status live
word this output confirms that Liber
service is up and running next step is
to configure a network bridge if you
plan to access your virtual machines
from the outside of your rhl L system
then you must configure the network
bridge first we need to identify the
primary interface which is configured on
our R line system for that we will be
using nmcli command line utility it's
network manager command line utility
which is used to configure the
networking on RH line
system let me clear the screen
first then in the command NM CLI
connection output confirms that we have
three different connections with the
name 0 S3 loop back for L and this
virtual BR Z and this is created
automatically whenever we are installing
KVM on any of the Linux system all right
so
0 S3 is our primary interface which is
currently configured on my
system now I will create a new
connection with the name KVM
br0 I will be creating a KVM BR Z
interface under this same connection
that is KVM BR Z once the connection is
created I will assign the same IP
address which is currently assigned to
our primary interface so in my case this
is the IP address which is currently
assigned to this 0 S3 so I will assign
this IP to my KVM br0
bridge and then I will assign the
Gateway IP address to this interface
which is KVM br0 similarly I will add
the DNS IP post that I will add this
interface EMP 0 in this bridge KVM brbr
Z as a slave copy this first command
if you can see this is my primary
interface and this is the IP address for
this interface let's create a new
connection in the output we can clearly
see that a new connection with KVM pr0
is created successfully if you rerun the
command you will see a new
connection with the name KVM
br0 type of
bridge and the interface name is KVM
br0 next assign the static IP address to
this bridge
this will assign the Gateway IP address
to the interface or the bridge KVM
br0 this command will add the DNS IP
address
our case interface name is np0
S3 all right this command will add this
interface 0
S3 as a slave to this bridge KVM
br0 H
enter next we need to set down the
current connection and we need to bring
up our KVM BR zero connection for that
we will be executing in these two
commands in one
Cod so once I hit enter here it
will disconnect my SSS
session I have to reconnect it after a
minute now try to SS again with the same
IP
if you type the command IP add space
show you will see that a new bridge with
the name KVM br0 is
active and the same IP which is assigned
to this EMP Z Now is assigned to this
KVM BR zero interface so overall we can
say that KVM BR Z is my primary
interface now next try to create and
manage virtual machines using word
manager but before that make sure your
user is added to the KVM and leave word
Group by doing so your local user will
able to run all the word command and can
manage the virtual machines without sudo
privileges
to make these changes into the fact log
out and login
again output confirms that my local user
now is a part of live word and KVM group
now start the word manager utility using
the command word hyphen
manager now create a new virtual
machine choose the first option local
install media in my case I have already
copied the ISO file on my RH line system
click on
forward click on
browse I have placed this ISO image
under this
location let's say I want to install ubu
just select the ubu ISO
file and click on
forward now specify the resources like
memory and CPU for your virtual
machine and click on
forward specify the disk for your
virtual machine in my case I am giving
it as 25gb click on forward
click on network selection make sure the
device name is selected as KVM br0 the
bridge device that we have created in
the previous step click on
finish all
right now follow the screen instructions
and finish the OS
installation other alternative way to
manage and create KVM VMS is via cockpit
console but cockpit console is not
installed by default on RH system first
we need to install cockpit and then
cockpit hyphen machines cockpit hyphen
machines package will allow us to manage
the KVM VMS from the cockpit console
let's install both these packages first
then the command
sudu dnf
install cockpit and then cockpit
hyphen
machines now start the cockpit
service verify it
status all right the service is up and
running
next access the cockpit web
console start the web browser type the
IP address of your uh primary interface
of your Rh line system in my case the
primary interface is KVM
br0 type the IP address here
192.168.1
do8
then followed by the port 9090 and hit
enter click on advanced
and accept the risk and continue because
cpit is using self-signed
certificate now specify your local user
here and it's
password click on
open all right now go to the virtual
machine sections
this is the VM that we have created
using the word manager currently the
state is set off now if you would like
to create a new VM then click on this
create
VM specify the name of your VM let's say
rhl
9 and then installation type is local
install
media specify the path of the ISO file
specify the disk that you would like to
assign to this virtual
machine and
memory then click on Create and
run all right you can see the state has
changed to running click on this
VM and then click on expand you will get
the
console now follow the screen
instructions and complete the
installation of your Rh line
system that's all from this video
tutorial if you found this helpful give
it a thumbs up subscribe our channel for
more Tech tutorials like this hit the
Bell Bell icon to stay updated feel free
to post your questions and feedback in
below comment section thanks for
watching see you in the next video bye