SlideShare a Scribd company logo
Create Virtual Machines in Linux Using KVM
Virtualization packages are means for users to run various operating systems without
“bare metal” hardware are basically, you can run more than one operating system on a
single computer without dual-booting or similar approaches .Virtualization software
emulates a real machine and “fools” the guestoperating system into thinking it’s running
on a real computer.Besides the more obvious advantages,virtual machines help create a
greener and easier to administer computing environment.Looking at the trends in the IT
industry, virtualization has a seen quite a boom in the last few years, because it fits the
conceptof utility computing and/orsoftware as a service . Virtualization can be useful to
you if you are an enterprise architect, developer, a home userorbasically everything in
between.We will begin with the shortintroduction aboutthe virtualization in general,then
we will specifically treat KVM as they seem to be mostpopularopen source full virtualization
solutions. Here we start aboutthe KVM process in detail.
KVM Features
There are manyuseful features and advantages which you will gain when you use KVM to
deployyour virtual platform. KVM hypervisor supports following features:
1. Over-committing : Which means allocating more virtualized CPUs or memorythan
the available resources on the system.
2. Thin provisioning : Which allows the allocation of flexible storage and optimizes the
available space for every guestvirtual machine.
3. Disk I/O throttling : Provides the ability to set a limit on disk I/O requests sentfrom
virtual machines to the hostmachine.
4. Automatic NUMA balancing :Improves the performance ofapplications running on
NUMA hardware systems.
5. Virtual CPU hot add capability : Provides the ability to increase processing poweras
needed on running virtual machines,without downtime.
Make sure that your system has the hardware virtualization extensions:ForIntel-based
hosts, verify the CPU virtualization extension [vmx] are available using following command.
[root@localhost~]# grep -e ‘vmx’/proc/cpuinfo
ForAMD-based hosts,verify the CPU virtualization extension [svm] are available.
[root@localhost~]# grep -e ‘svm’/proc/cpuinfo
If there is no outputmake sure that virtualization extensions is enabled in BIOS. Verify that
KVM modules are loaded in the kernel“it should be loaded bydefault”.
[root@localhost~]# lsmod | grep kvm
[root@localhost ~]# lsmod | grep kvm
Kvm_intel 147785 0
Kvm 464964 1 kvm_intel
Before starting , you will need the rootaccountor non-rootuser with sudo privileges
configured on your system and also make sure that your system is up-to-date.
[root@localhost~]# yum update
Forthis, Selinux must be in Permissive mode.
[root@localhost~]# setenforce 0
Step 1: KVM Installation and Deployment
1 We will install qemu-kvm and qemu-img packages atfirst. These packages provide the
user-level KVM and disk image manager.
[root@localhost~]# yum installqemu-kvm qemu-img
2 Now, you have the minimum requirementto deployvirtual platform on your host, butwe
also still have useful tools to administrate ourplatform such as:
1. virt-manager provides a GUI tool to administrate your virtual machines.
2. libvirt-client provides a CL tool to administrate your virtual environmentthis tool
called virsh.
3. virt-install provides the command “virt-install” to create your virtual machines from
CLI.
4. libvirt provides the server and hostside libraries for interacting with hypervisors and
hostsystems.
Let’s install these above tools using the following command.
[root@localhost~]# yum installvirt-manager libvert libvert-phython libvert-client
3 For RHEL/CentOS7 users,also still having additional package groups such as:
Virtualization Client, Virtualization Platform and Virtualization Tools to install
[root@localhost~]# yum groupinstall virtualization-client virtualization-platform
virtualization-tools
4 The virtualization daemon which manage allof the platform is “libvirtd”. lets restart it.
[root@localhost~]# systemctl restartlibvirtd
5 After restarting the daemon,then check its status by running following command
[root@localhost~]# systemctl status libvirtd
Step 2: Create VMs using KVM
As we mentioned early, we have some useful tools to manage ourvirtual platform and
creating virtual machines.One ofthis tools called [virt-manager] which we use in the next
section.
6 Although virt-manager is a GUI based tool, we also could launch/startit from terminal as
well as from GUI.
[root@localhost~]# virt-manager
Using GNOME Classic
7 After starting the tool, this window will appear.
8 By default you will find manageris connected directly to localhost, fortunately you could
use the same tool to manage anotherhostremotely. From “File” tab, just select “Add
Connection”and this windowwill appear.
Check “Connect to remote host” option then provide Hostname/IP of the remote server. If
you need establishing connection to the remote hostat every time the managerstarting, just
check “Auto Connect” option.
9 Let’s return to our localhost, before creating newvirtual machine you should decide
where will the files be stored?!in other words,you should create the Volume Disk (Virtual
disk / Disk image ) for your virtual machine.
By Right clicking on localhostand selecting “Details” and then select “Storage” tab.
10 Next, press “New Volume”button, then enter the name ofyour new virtual disk (Volume
Disk) and enter the size which you want/need in the “Max Capacity” section.
The allocation size is the actual size for your disk which will be allocated immediately from
your physical disk after finishing the steps.
Note: This is an important technology in storage administration field which called “thin
provision”. It used to allocate the used storage size only, NOT all of available size.
Forexample,you created virtual disk with size 60G,but you have used actually only 20G,
using this technologythe allocated size from your physicalhard disk will be 20G not60G.
In anotherwords the allocated physical size will by dynamically allocated depending on the
actual used size.
11 You will note that a label of the newVolume Disk has been appeared in the list.
You should also notice the path of the newdisk image (Volume Disk), by default it will be
under/var/lib/libvirt/images, you can verify it using the following command.
[root@localhost Downloads]# ls –l /var/lib/libvirt/images
12 Now, we’re readyto create our virtual machine.Let’s hit the button “VM” in the main
window, this wizard windowwill be appear.
Select the installation method which you will use to create the virtual machine.Fornowwe
will use Localinstall media,later we will discuss the remaining methods.
13 Now it’s time to specify which Localinstall media to be used,we have two options:
From physical[CDROM/DVD].
From ISO image.
Let’s use ISO image method,so you should provide the path of your ISO image.
14 The storage has return back,we will use the virtual disk which we have created early to
install virtual machine on it. It will be as shown.
15 The final step which ask you aboutthe name ofyour virtual machine and another
advanced options let’s talk aboutit later.
Then click finish and wait seconds,controlconsole will appearfor your GuestOS to
manage it
Conclusion
Now you have learned whatis is KVM, Howto manage yourvirtual platform using GUI
tools, How to deployvirtual machine using it and anotherawesome things.

More Related Content

What's hot

Optimizing VM images for OpenStack with KVM/QEMU
Optimizing VM images for OpenStack with KVM/QEMUOptimizing VM images for OpenStack with KVM/QEMU
Optimizing VM images for OpenStack with KVM/QEMUOpenStack Foundation
 
Rmll Virtualization As Is Tool 20090707 V1.0
Rmll Virtualization As Is Tool 20090707 V1.0Rmll Virtualization As Is Tool 20090707 V1.0
Rmll Virtualization As Is Tool 20090707 V1.0guest72e8c1
 
LOAD BALANCING OF APPLICATIONS USING XEN HYPERVISOR
LOAD BALANCING OF APPLICATIONS  USING XEN HYPERVISORLOAD BALANCING OF APPLICATIONS  USING XEN HYPERVISOR
LOAD BALANCING OF APPLICATIONS USING XEN HYPERVISOR
Vanika Kapoor
 
S4 xen hypervisor_20080622
S4 xen hypervisor_20080622S4 xen hypervisor_20080622
S4 xen hypervisor_20080622Todd Deshane
 
Virtualization with KVM (Kernel-based Virtual Machine)
Virtualization with KVM (Kernel-based Virtual Machine)Virtualization with KVM (Kernel-based Virtual Machine)
Virtualization with KVM (Kernel-based Virtual Machine)
Novell
 
Kvm
KvmKvm
Build a private cloud – prototype and test with open nebula
Build a private cloud – prototype and test with open nebulaBuild a private cloud – prototype and test with open nebula
Build a private cloud – prototype and test with open nebula
A B M Moniruzzaman
 
OpenNebula 4.14 Hands-on Tutorial
OpenNebula 4.14 Hands-on TutorialOpenNebula 4.14 Hands-on Tutorial
OpenNebula 4.14 Hands-on Tutorial
OpenNebula Project
 
Building (localized) Vagrant boxes with Packer
Building (localized) Vagrant boxes with PackerBuilding (localized) Vagrant boxes with Packer
Building (localized) Vagrant boxes with Packer
Cristovao G. Verstraeten
 
QEMU Disk IO Which performs Better: Native or threads?
QEMU Disk IO Which performs Better: Native or threads?QEMU Disk IO Which performs Better: Native or threads?
QEMU Disk IO Which performs Better: Native or threads?
Pradeep Kumar
 
RHEVM - Live Storage Migration
RHEVM - Live Storage MigrationRHEVM - Live Storage Migration
RHEVM - Live Storage Migration
Raz Tamir
 
OpenNebulaConf 2016 - Building a GNU/Linux Distribution by Daniel Dehennin, M...
OpenNebulaConf 2016 - Building a GNU/Linux Distribution by Daniel Dehennin, M...OpenNebulaConf 2016 - Building a GNU/Linux Distribution by Daniel Dehennin, M...
OpenNebulaConf 2016 - Building a GNU/Linux Distribution by Daniel Dehennin, M...
OpenNebula Project
 
Kvm performance optimization for ubuntu
Kvm performance optimization for ubuntuKvm performance optimization for ubuntu
Kvm performance optimization for ubuntuSim Janghoon
 
OpenNebulaConf 2016 - Hypervisors and Containers Hands-on Workshop by Jaime M...
OpenNebulaConf 2016 - Hypervisors and Containers Hands-on Workshop by Jaime M...OpenNebulaConf 2016 - Hypervisors and Containers Hands-on Workshop by Jaime M...
OpenNebulaConf 2016 - Hypervisors and Containers Hands-on Workshop by Jaime M...
OpenNebula Project
 
Automated Amazon EC2 Cloud deployments with openQRM
Automated Amazon EC2 Cloud deployments with openQRMAutomated Amazon EC2 Cloud deployments with openQRM
Automated Amazon EC2 Cloud deployments with openQRM
openQRM Enterprise GmbH
 
open source virtualization
open source virtualizationopen source virtualization
open source virtualization
Kris Buytaert
 
Installation vm
Installation vmInstallation vm
Installation vmkiwimjg
 
Domino9on centos6
Domino9on centos6Domino9on centos6
Domino9on centos6a8us
 

What's hot (19)

The kvm virtualization way
The kvm virtualization wayThe kvm virtualization way
The kvm virtualization way
 
Optimizing VM images for OpenStack with KVM/QEMU
Optimizing VM images for OpenStack with KVM/QEMUOptimizing VM images for OpenStack with KVM/QEMU
Optimizing VM images for OpenStack with KVM/QEMU
 
Rmll Virtualization As Is Tool 20090707 V1.0
Rmll Virtualization As Is Tool 20090707 V1.0Rmll Virtualization As Is Tool 20090707 V1.0
Rmll Virtualization As Is Tool 20090707 V1.0
 
LOAD BALANCING OF APPLICATIONS USING XEN HYPERVISOR
LOAD BALANCING OF APPLICATIONS  USING XEN HYPERVISORLOAD BALANCING OF APPLICATIONS  USING XEN HYPERVISOR
LOAD BALANCING OF APPLICATIONS USING XEN HYPERVISOR
 
S4 xen hypervisor_20080622
S4 xen hypervisor_20080622S4 xen hypervisor_20080622
S4 xen hypervisor_20080622
 
Virtualization with KVM (Kernel-based Virtual Machine)
Virtualization with KVM (Kernel-based Virtual Machine)Virtualization with KVM (Kernel-based Virtual Machine)
Virtualization with KVM (Kernel-based Virtual Machine)
 
Kvm
KvmKvm
Kvm
 
Build a private cloud – prototype and test with open nebula
Build a private cloud – prototype and test with open nebulaBuild a private cloud – prototype and test with open nebula
Build a private cloud – prototype and test with open nebula
 
OpenNebula 4.14 Hands-on Tutorial
OpenNebula 4.14 Hands-on TutorialOpenNebula 4.14 Hands-on Tutorial
OpenNebula 4.14 Hands-on Tutorial
 
Building (localized) Vagrant boxes with Packer
Building (localized) Vagrant boxes with PackerBuilding (localized) Vagrant boxes with Packer
Building (localized) Vagrant boxes with Packer
 
QEMU Disk IO Which performs Better: Native or threads?
QEMU Disk IO Which performs Better: Native or threads?QEMU Disk IO Which performs Better: Native or threads?
QEMU Disk IO Which performs Better: Native or threads?
 
RHEVM - Live Storage Migration
RHEVM - Live Storage MigrationRHEVM - Live Storage Migration
RHEVM - Live Storage Migration
 
OpenNebulaConf 2016 - Building a GNU/Linux Distribution by Daniel Dehennin, M...
OpenNebulaConf 2016 - Building a GNU/Linux Distribution by Daniel Dehennin, M...OpenNebulaConf 2016 - Building a GNU/Linux Distribution by Daniel Dehennin, M...
OpenNebulaConf 2016 - Building a GNU/Linux Distribution by Daniel Dehennin, M...
 
Kvm performance optimization for ubuntu
Kvm performance optimization for ubuntuKvm performance optimization for ubuntu
Kvm performance optimization for ubuntu
 
OpenNebulaConf 2016 - Hypervisors and Containers Hands-on Workshop by Jaime M...
OpenNebulaConf 2016 - Hypervisors and Containers Hands-on Workshop by Jaime M...OpenNebulaConf 2016 - Hypervisors and Containers Hands-on Workshop by Jaime M...
OpenNebulaConf 2016 - Hypervisors and Containers Hands-on Workshop by Jaime M...
 
Automated Amazon EC2 Cloud deployments with openQRM
Automated Amazon EC2 Cloud deployments with openQRMAutomated Amazon EC2 Cloud deployments with openQRM
Automated Amazon EC2 Cloud deployments with openQRM
 
open source virtualization
open source virtualizationopen source virtualization
open source virtualization
 
Installation vm
Installation vmInstallation vm
Installation vm
 
Domino9on centos6
Domino9on centos6Domino9on centos6
Domino9on centos6
 

Viewers also liked

Building a fundable open source company
Building a fundable open source company  Building a fundable open source company
Building a fundable open source company
Ariel Tseitlin
 
Fabiana e Yasmin Cristine
Fabiana e Yasmin CristineFabiana e Yasmin Cristine
Fabiana e Yasmin Cristine
Debora Deorio
 
Norton R928 lamellrondeller - Broschyr
Norton R928 lamellrondeller - BroschyrNorton R928 lamellrondeller - Broschyr
Norton R928 lamellrondeller - Broschyr
Saint-Gobain Abrasives AB
 
Clipping Catering 01/12/11 @ IED Barcelona
Clipping Catering 01/12/11 @ IED BarcelonaClipping Catering 01/12/11 @ IED Barcelona
Clipping Catering 01/12/11 @ IED BarcelonaIED Barcelona
 
Slash 2010 album
Slash   2010 albumSlash   2010 album
Slash 2010 album
Pisani Plásticos S/A
 

Viewers also liked (11)

Building a fundable open source company
Building a fundable open source company  Building a fundable open source company
Building a fundable open source company
 
Thank you
Thank youThank you
Thank you
 
Examen
ExamenExamen
Examen
 
What makes media social
What makes media socialWhat makes media social
What makes media social
 
Hectalys m
Hectalys mHectalys m
Hectalys m
 
Fabiana e Yasmin Cristine
Fabiana e Yasmin CristineFabiana e Yasmin Cristine
Fabiana e Yasmin Cristine
 
Norton R928 lamellrondeller - Broschyr
Norton R928 lamellrondeller - BroschyrNorton R928 lamellrondeller - Broschyr
Norton R928 lamellrondeller - Broschyr
 
Clipping Catering 01/12/11 @ IED Barcelona
Clipping Catering 01/12/11 @ IED BarcelonaClipping Catering 01/12/11 @ IED Barcelona
Clipping Catering 01/12/11 @ IED Barcelona
 
Trabajo compu
Trabajo compuTrabajo compu
Trabajo compu
 
Slash 2010 album
Slash   2010 albumSlash   2010 album
Slash 2010 album
 
DOC190416-19042016070345 (1)
DOC190416-19042016070345 (1)DOC190416-19042016070345 (1)
DOC190416-19042016070345 (1)
 

Similar to Krenel Based Virtual Machine In Centos7

Running virtual box from the linux command line
Running virtual box from the linux command lineRunning virtual box from the linux command line
Running virtual box from the linux command line
Eric Javier Espino Man
 
Virtualization technology "comparison vmware 9 vs virtualbox 4.2"
Virtualization  technology "comparison vmware 9 vs virtualbox 4.2"Virtualization  technology "comparison vmware 9 vs virtualbox 4.2"
Virtualization technology "comparison vmware 9 vs virtualbox 4.2"
Lagendary Sheeva
 
Open Source Virtualization Hacks
Open Source Virtualization HacksOpen Source Virtualization Hacks
Open Source Virtualization HacksNiel Bornstein
 
Free tools for win server administration
Free tools for win server administrationFree tools for win server administration
Free tools for win server administrationConcentrated Technology
 
Building your own Desktop Cloud Environment
Building your own Desktop Cloud EnvironmentBuilding your own Desktop Cloud Environment
Building your own Desktop Cloud Environment
Jnaapti
 
Startup guide for kvm on cent os 6
Startup guide for kvm on cent os 6Startup guide for kvm on cent os 6
Startup guide for kvm on cent os 6Carlos Eduardo
 
Virtualization.pdf
Virtualization.pdfVirtualization.pdf
Virtual technology
Virtual technologyVirtual technology
Virtual technology
Student
 
Lessons On Hyper V
Lessons On Hyper VLessons On Hyper V
Lessons On Hyper V
Aidan Finn
 
Virtualization
VirtualizationVirtualization
Virtualization
Yansi Keim
 
Virtualizing Testbeds For Fun And Profit
Virtualizing Testbeds For Fun And ProfitVirtualizing Testbeds For Fun And Profit
Virtualizing Testbeds For Fun And Profitmatthew.maisel
 
Install MariaDB on IBM i - Tips, troubleshooting, and more
Install MariaDB on IBM i - Tips, troubleshooting, and moreInstall MariaDB on IBM i - Tips, troubleshooting, and more
Install MariaDB on IBM i - Tips, troubleshooting, and more
Rod Flohr
 
Gluster Storage Platform Installation Guide
Gluster Storage Platform Installation GuideGluster Storage Platform Installation Guide
Gluster Storage Platform Installation Guide
GlusterFS
 
Ws90 using
Ws90 usingWs90 using
Ws90 using
kevalmahendra
 
Vagrant and chef
Vagrant and chefVagrant and chef
Vagrant and chef
Nick Ramirez
 
Creating a gallery image for Azure marketplace
Creating a gallery image for Azure marketplaceCreating a gallery image for Azure marketplace
Creating a gallery image for Azure marketplace
Alexey Bokov
 
Ws80 using VMware
Ws80 using VMwareWs80 using VMware
Ws80 using VMware
Umesh Gupta
 
NetBSD on Google Compute Engine (en)
NetBSD on Google Compute Engine (en)NetBSD on Google Compute Engine (en)
NetBSD on Google Compute Engine (en)
Ryo ONODERA
 

Similar to Krenel Based Virtual Machine In Centos7 (20)

Comando kvm terminal
Comando kvm terminalComando kvm terminal
Comando kvm terminal
 
Running virtual box from the linux command line
Running virtual box from the linux command lineRunning virtual box from the linux command line
Running virtual box from the linux command line
 
Virtualization technology "comparison vmware 9 vs virtualbox 4.2"
Virtualization  technology "comparison vmware 9 vs virtualbox 4.2"Virtualization  technology "comparison vmware 9 vs virtualbox 4.2"
Virtualization technology "comparison vmware 9 vs virtualbox 4.2"
 
Open Source Virtualization Hacks
Open Source Virtualization HacksOpen Source Virtualization Hacks
Open Source Virtualization Hacks
 
Free tools for win server administration
Free tools for win server administrationFree tools for win server administration
Free tools for win server administration
 
Building your own Desktop Cloud Environment
Building your own Desktop Cloud EnvironmentBuilding your own Desktop Cloud Environment
Building your own Desktop Cloud Environment
 
Startup guide for kvm on cent os 6
Startup guide for kvm on cent os 6Startup guide for kvm on cent os 6
Startup guide for kvm on cent os 6
 
Virtualization.pdf
Virtualization.pdfVirtualization.pdf
Virtualization.pdf
 
Virtual technology
Virtual technologyVirtual technology
Virtual technology
 
Lessons On Hyper V
Lessons On Hyper VLessons On Hyper V
Lessons On Hyper V
 
Virtualization
VirtualizationVirtualization
Virtualization
 
Virtualizing Testbeds For Fun And Profit
Virtualizing Testbeds For Fun And ProfitVirtualizing Testbeds For Fun And Profit
Virtualizing Testbeds For Fun And Profit
 
Install MariaDB on IBM i - Tips, troubleshooting, and more
Install MariaDB on IBM i - Tips, troubleshooting, and moreInstall MariaDB on IBM i - Tips, troubleshooting, and more
Install MariaDB on IBM i - Tips, troubleshooting, and more
 
Gluster Storage Platform Installation Guide
Gluster Storage Platform Installation GuideGluster Storage Platform Installation Guide
Gluster Storage Platform Installation Guide
 
Howto Pxeboot
Howto PxebootHowto Pxeboot
Howto Pxeboot
 
Ws90 using
Ws90 usingWs90 using
Ws90 using
 
Vagrant and chef
Vagrant and chefVagrant and chef
Vagrant and chef
 
Creating a gallery image for Azure marketplace
Creating a gallery image for Azure marketplaceCreating a gallery image for Azure marketplace
Creating a gallery image for Azure marketplace
 
Ws80 using VMware
Ws80 using VMwareWs80 using VMware
Ws80 using VMware
 
NetBSD on Google Compute Engine (en)
NetBSD on Google Compute Engine (en)NetBSD on Google Compute Engine (en)
NetBSD on Google Compute Engine (en)
 

Recently uploaded

Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 

Recently uploaded (20)

Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 

Krenel Based Virtual Machine In Centos7

  • 1. Create Virtual Machines in Linux Using KVM Virtualization packages are means for users to run various operating systems without “bare metal” hardware are basically, you can run more than one operating system on a single computer without dual-booting or similar approaches .Virtualization software emulates a real machine and “fools” the guestoperating system into thinking it’s running on a real computer.Besides the more obvious advantages,virtual machines help create a greener and easier to administer computing environment.Looking at the trends in the IT industry, virtualization has a seen quite a boom in the last few years, because it fits the conceptof utility computing and/orsoftware as a service . Virtualization can be useful to you if you are an enterprise architect, developer, a home userorbasically everything in between.We will begin with the shortintroduction aboutthe virtualization in general,then we will specifically treat KVM as they seem to be mostpopularopen source full virtualization solutions. Here we start aboutthe KVM process in detail.
  • 2. KVM Features There are manyuseful features and advantages which you will gain when you use KVM to deployyour virtual platform. KVM hypervisor supports following features: 1. Over-committing : Which means allocating more virtualized CPUs or memorythan the available resources on the system. 2. Thin provisioning : Which allows the allocation of flexible storage and optimizes the available space for every guestvirtual machine. 3. Disk I/O throttling : Provides the ability to set a limit on disk I/O requests sentfrom virtual machines to the hostmachine. 4. Automatic NUMA balancing :Improves the performance ofapplications running on NUMA hardware systems. 5. Virtual CPU hot add capability : Provides the ability to increase processing poweras needed on running virtual machines,without downtime. Make sure that your system has the hardware virtualization extensions:ForIntel-based hosts, verify the CPU virtualization extension [vmx] are available using following command. [root@localhost~]# grep -e ‘vmx’/proc/cpuinfo ForAMD-based hosts,verify the CPU virtualization extension [svm] are available. [root@localhost~]# grep -e ‘svm’/proc/cpuinfo
  • 3. If there is no outputmake sure that virtualization extensions is enabled in BIOS. Verify that KVM modules are loaded in the kernel“it should be loaded bydefault”. [root@localhost~]# lsmod | grep kvm [root@localhost ~]# lsmod | grep kvm Kvm_intel 147785 0 Kvm 464964 1 kvm_intel Before starting , you will need the rootaccountor non-rootuser with sudo privileges configured on your system and also make sure that your system is up-to-date. [root@localhost~]# yum update Forthis, Selinux must be in Permissive mode. [root@localhost~]# setenforce 0 Step 1: KVM Installation and Deployment 1 We will install qemu-kvm and qemu-img packages atfirst. These packages provide the user-level KVM and disk image manager. [root@localhost~]# yum installqemu-kvm qemu-img 2 Now, you have the minimum requirementto deployvirtual platform on your host, butwe also still have useful tools to administrate ourplatform such as: 1. virt-manager provides a GUI tool to administrate your virtual machines.
  • 4. 2. libvirt-client provides a CL tool to administrate your virtual environmentthis tool called virsh. 3. virt-install provides the command “virt-install” to create your virtual machines from CLI. 4. libvirt provides the server and hostside libraries for interacting with hypervisors and hostsystems. Let’s install these above tools using the following command. [root@localhost~]# yum installvirt-manager libvert libvert-phython libvert-client 3 For RHEL/CentOS7 users,also still having additional package groups such as: Virtualization Client, Virtualization Platform and Virtualization Tools to install [root@localhost~]# yum groupinstall virtualization-client virtualization-platform virtualization-tools 4 The virtualization daemon which manage allof the platform is “libvirtd”. lets restart it. [root@localhost~]# systemctl restartlibvirtd 5 After restarting the daemon,then check its status by running following command [root@localhost~]# systemctl status libvirtd
  • 5. Step 2: Create VMs using KVM As we mentioned early, we have some useful tools to manage ourvirtual platform and creating virtual machines.One ofthis tools called [virt-manager] which we use in the next section. 6 Although virt-manager is a GUI based tool, we also could launch/startit from terminal as well as from GUI. [root@localhost~]# virt-manager
  • 6. Using GNOME Classic 7 After starting the tool, this window will appear.
  • 7. 8 By default you will find manageris connected directly to localhost, fortunately you could use the same tool to manage anotherhostremotely. From “File” tab, just select “Add Connection”and this windowwill appear. Check “Connect to remote host” option then provide Hostname/IP of the remote server. If you need establishing connection to the remote hostat every time the managerstarting, just check “Auto Connect” option. 9 Let’s return to our localhost, before creating newvirtual machine you should decide where will the files be stored?!in other words,you should create the Volume Disk (Virtual disk / Disk image ) for your virtual machine. By Right clicking on localhostand selecting “Details” and then select “Storage” tab.
  • 8.
  • 9. 10 Next, press “New Volume”button, then enter the name ofyour new virtual disk (Volume Disk) and enter the size which you want/need in the “Max Capacity” section. The allocation size is the actual size for your disk which will be allocated immediately from your physical disk after finishing the steps. Note: This is an important technology in storage administration field which called “thin provision”. It used to allocate the used storage size only, NOT all of available size. Forexample,you created virtual disk with size 60G,but you have used actually only 20G, using this technologythe allocated size from your physicalhard disk will be 20G not60G. In anotherwords the allocated physical size will by dynamically allocated depending on the actual used size.
  • 10. 11 You will note that a label of the newVolume Disk has been appeared in the list. You should also notice the path of the newdisk image (Volume Disk), by default it will be under/var/lib/libvirt/images, you can verify it using the following command. [root@localhost Downloads]# ls –l /var/lib/libvirt/images 12 Now, we’re readyto create our virtual machine.Let’s hit the button “VM” in the main window, this wizard windowwill be appear.
  • 11. Select the installation method which you will use to create the virtual machine.Fornowwe will use Localinstall media,later we will discuss the remaining methods. 13 Now it’s time to specify which Localinstall media to be used,we have two options: From physical[CDROM/DVD]. From ISO image.
  • 12. Let’s use ISO image method,so you should provide the path of your ISO image. 14 The storage has return back,we will use the virtual disk which we have created early to install virtual machine on it. It will be as shown.
  • 13. 15 The final step which ask you aboutthe name ofyour virtual machine and another advanced options let’s talk aboutit later. Then click finish and wait seconds,controlconsole will appearfor your GuestOS to manage it
  • 14. Conclusion Now you have learned whatis is KVM, Howto manage yourvirtual platform using GUI tools, How to deployvirtual machine using it and anotherawesome things.