redhat virtualization
DESCRIPTION
A descriptive guide to explain the concepts and procedures to work with RedHat's Virtualization technology and its comparison with two most popular Hypervisors : VMware and VirtualBox.TRANSCRIPT
![Page 1: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/1.jpg)
Redhat Virtualization
By:Ankur VermaC.S.E- VI Sem0902710018A.K.G.E.C,Ghaziabad
![Page 2: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/2.jpg)
Agenda• Physical Vs Logical(Demo)• Virtualization: The What?• Virtualization: The How?• Virtualization: The Why?• Redhat Virtualization(Demo)• Virtualization Vs. Virtualization• Future
![Page 3: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/3.jpg)
Physical Vs LogicalA demonstration for Logical Volume Manager (L.V.M) is suffice enough to give an insight of how great the things are if scaled ahead the physical boundaries…
![Page 4: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/4.jpg)
• Commands required for configuration:Create the required partitions.#fdisk /dev/sda
Create the physical volumes #pvcreate /dev/sda{5,6,7}
Watch the pvsize and also the non usable size of the partition#pvdisplay
Create volume group of the three partitions thus formed#vgcreate vg0 /dev/hda{5,6,7}#vgdisplay
create the logical volume of the volume group thus formed using command:#lvcreate -L +50M /dev/vg0 -n lv0#lvdisplay
![Page 5: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/5.jpg)
We can even extend this logical volume thus formed using the following command depending upon our use:#lvextend -L +25M /dev/vg0/lv0
Display the logical partition which actually exists for use:#ls /dev/vg*
Finally after the partition is created:mount a file system to it using command:mkfs.ext3 -L /lvm_data /dev/vg0/lv0
Mounting it on a directory to use.mount /dev/vg0/ /mnt
We are ready to store data into this logical volume.
![Page 6: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/6.jpg)
Virtualization :
The Why?
![Page 7: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/7.jpg)
In PastOne operating system on one machine , so ,the OS had complete control of the resources in that machine. Various applications would run on that machine, but these applications could affect each other.
Machine utilisation was very low, most times it was below 20%. Even Now!!
![Page 8: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/8.jpg)
Low server utilization, andOverall increase in hardware cost, etc.
![Page 9: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/9.jpg)
then came the era of
!!Virtualization!!
![Page 10: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/10.jpg)
Virtualization :
The What?
![Page 11: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/11.jpg)
Virtualization, in computing, is the creation of a virtual (rather than actual) version of something, such as a hardware platform, operating system, a storage device or network resources.
The usual goal of virtualization is to centralize administrative tasks while improving scalability and overall hardware-resource utilization.
![Page 12: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/12.jpg)
Virtual Machine Monitor(or Hypervisor) Each virtual machine interfaces with its host system via the virtual machine monitor (VMM). Being the primary link between a VM and the host OS and hardware, the VMM provides a crucial role.
![Page 13: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/13.jpg)
![Page 14: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/14.jpg)
What a VMM Should Do??
![Page 15: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/15.jpg)
OS and Apps in a VM don't know that the VMM exists or that they share CPU resources with other VMs
VMM should run protected from allGuest software
VMM should isolate Guest SW stacks from one another
VMM should present a virtual platform interface to Guest SW
![Page 16: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/16.jpg)
x86 modes: Privilege Levels
• x86 processor’s segment-protection mechanism recognizes 4 privilege levels (0-high, 3-low level)
• The center (reserved for the most privileged code) is used for the segments containing the critical software, usually the kernel of an operating system.
• Outer rings are used for less critical software.
• The processor uses privilege levels to prevent a program or task operating at a lesser privilege level from accessing a segment with a greater privilege, except under controlled situations.
![Page 17: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/17.jpg)
• Full Virtualization• Para Virtualization
Virtualization Types:
![Page 18: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/18.jpg)
Full VirtualizationComplete simulation of the underlying hardware.
Every salient feature of the hardware is reflected into one of several virtual machines – including the full instruction set, input/output operations, interrupts, memory access, and whatever other elements are used by the software that runs on the bare machine, and that is intended to run in a virtual machine.
![Page 19: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/19.jpg)
Para Virtualizationpresents a software interface to virtual machines that is similar but not identical to that of the underlying hardware.
The intent of the modified interface is to reduce the portion of the guest's execution time spent performing operations which are substantially more difficult to run in a virtual environment compared to a non-virtualized environment.
![Page 20: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/20.jpg)
Virtualization :
The How?
![Page 21: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/21.jpg)
Major Hypervisors
Xen : University of Cambridge Computer Laboratory
Fully open sourced Set of patches against the Linux kernel
VMware ESX : Closed source Proprietary drivers
VirtualBox: a free hypervisor from SUN Systems. Limited functionality
KVM: Most used Hypervisor in Linux.
![Page 22: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/22.jpg)
Xen•Hypervisor that supports x86, x86_64, Itanium, and ARM architectures.•can run Linux, Windows, Solaris, and some of the BSDs as guests on their supported CPU architectures.•can do full virtualization on systems that support virtualization extensions, but can also work as a hypervisor on machines that don't have the virtualization extensions.
Xen Vs KVM
![Page 23: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/23.jpg)
• If you want to run a Xen host, you need to have a supported kernel.
• Though after kernel 2.6.23 ,linux has started to put in into the mainline.
![Page 24: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/24.jpg)
KVM• Hypervisor that is in the mainline Linux kernel.• runs on x86 and x86-64 systems with hardware
supporting virtualization extensions.• KVM isn't an option on older CPUs made before
the virtualization extensions were developed, and it rules out newer CPUs (like Intel's Atom CPUs) that don't include virtualization extensions.
• If you're getting a recent Linux kernel, you've already got KVM built in.
![Page 25: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/25.jpg)
System RequirementsXen para-virtualization requirements•Para-virtualized guests require a Red Hat Enterprise Linux 5 installation tree available over the network using the NFS, FTP or HTTP protocols.
Xen full virtualization requirementsFull virtualization with the Xen Hypervisor requires:•an Intel processor with the Intel VT extensions, or•an AMD processor with the AMD-V extensions.
![Page 26: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/26.jpg)
KVM requirementsThe KVM hypervisor requires:•an Intel processor with the Intel VT and the Intel 64 extensions, or•an AMD processor with the AMD-V and the AMD64 extensions.
![Page 27: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/27.jpg)
Red Hat Virtualization
![Page 28: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/28.jpg)
Virtualization with Red HatRed Hat Virtualization provides a complete package of almost all types of virtualizations1.Server/operating system virtualization
integrated into kernel and OS platform(as KVM)
2.Storage virtualization: Global data Red Hat Global File System/CLVM
3.System management, resource management, provisioning
Red Hat Network
4.Application environment consistency with non-virtualized environments
![Page 29: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/29.jpg)
Red Hat Enterprise Linux Advanced Platform
Shared Storage
Extend
• Server and storage virtualization extends across multiple systems
![Page 30: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/30.jpg)
Red Hat Enterprise Linux Advanced Platform
A fully integrated server and storage virtualization environmentMulti Host/Instance Logical Volume ManagementMulti Host/Instance Global File SystemMulti Host/Instance Application Migration
Provides a complete virtualization platform Server : Storage : ManagementSimplifies deployment & manageabilityIncreases flexibility & scalabilityIntegrates server & storage virtualization no special hardware
![Page 31: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/31.jpg)
Installing an Operating System Options Available:1)GUI(Graphical User Interface)2)CLI(Command Line Interface)
![Page 32: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/32.jpg)
Basic packages Installation# yum groupinstall VirtualizationLibvirtqemu-kvmpython-virtinstvir-managervirt-viewer
The dependencies are configured automatically during the installation process.
![Page 33: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/33.jpg)
GUI Installation
![Page 34: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/34.jpg)
• Open the Virtual Machine Manager window. Select Applications System ToolsVirtual Machine Manager.
![Page 35: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/35.jpg)
• Add a connection. Select File Add Connection. The Add Connection pop-up appears.
![Page 36: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/36.jpg)
• Add a new Virtual Machine: Select Domainclick New
![Page 37: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/37.jpg)
• Selecting Storage Location and Size:
![Page 38: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/38.jpg)
• Selecting Virtual Network in Select Network:
![Page 39: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/39.jpg)
• Selecting Memory and CPU Allocation
![Page 40: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/40.jpg)
• Finalising the virtual machine creation
![Page 41: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/41.jpg)
Working with our newly created virtual machine
![Page 42: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/42.jpg)
CLI Installation
![Page 43: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/43.jpg)
#virt-install --prompt
![Page 44: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/44.jpg)
![Page 45: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/45.jpg)
Open Source Virtualization
:Future?
![Page 46: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/46.jpg)
Virtualization – It's gonna be even better!
• Multiple Hypervisor Support(Xen, KVM, ....)
• Even better deploymentCobbler – next gen. Installation server
• More managebleoVirt (free platform virtualization management web application software developed by Red Hat)
![Page 47: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/47.jpg)
VMware Vs. VirtualBox Vs. KVMDomains for comparison:•Device Support•Ease of use•Installation•Administration•Look & Feel•Performance•Licensing and Support
![Page 48: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/48.jpg)
I/O Performance Comparison
![Page 49: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/49.jpg)
On Scale of 5(best)
![Page 50: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/50.jpg)
How’s That!!!
?
![Page 51: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/51.jpg)
Target• The Enthusiasts• The Architects• The Executives• The Followers
![Page 52: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/52.jpg)
References
Websites:•http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Virtualization/•http://en.wikipedia.org/wiki/Xen •http://xen.org/ •http://www.server-world.info/en/note?os=Ubuntu_10.04&p=kvm •http://www.linuxforu.com/2011/09/vmware-player-virtualbox-kvm-virtualization-comparative-review/http://www.linuxforu.com/2011/09/vmware-player-virtualbox-kvm-virtualization-comparative-review
/•https://www.linux.com/news/enterprise/systems-management/327628-kvm-or-xen-choosing-a-virtualization-platformPersons•Mr. Abhay Verma, IT (VIII Sem), AKGEC•Mr. Saurabh Singh SENIOR ASSOCIATE , Headstrong Corporation Ltd
![Page 53: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/53.jpg)
Contd..
Documents and Books:
•Xen and the Art of Virtualization Paper by:
Paul Barham, University of Cambridge Computer Laboratory
•Fedora Bible: 2010 EditionBy: Wiley Publication
• Virtualization Guide: Red Hat VirtualizationCopyright © 2007 Red Hat, Inc.
![Page 54: Redhat Virtualization](https://reader033.vdocuments.us/reader033/viewer/2022061105/54409049afaf9f78338b48ab/html5/thumbnails/54.jpg)
!!Queries!!