THE MANAGEMENT OF LINUX VIRTUAL LAB BY DUAL LOAD BALANCING AKHIL S NAIK S7-CSE A ROLL NO:2 VJCET
INTRODUCTION Explsive grwth f Linux users Annual Rate f 21% Prviding each students a dedicated Linux machine is impractical Upgrading hardware and sftware maintenance becme burden Multi-cre is a new trend in CPU manufacturers 2
Average lad n CPU servers is less than 5% Hardware virtualizatin technlgy supprted by INTEL and AMD Linux virtual lab management system with dual lad-balancing(lvldl) t manage a dedicated Linux virtual machine fr each student during Linux management curse Frntend and backend lad-balancing mechanisms t imprve perfrmance 3
LINUX VIRTUAL LAB Reduce Hardware expenditure and sftware maintenance csts. Prvide mre access t lab fr students. Virtual machines can run basically anything that the real hst can. Kernel Based Virtual Machine Virtual netwrk build n tp f real cmputer netwrk 4
Types f Linux rt filesystem DebianNet-Light.ext3.gz high perfrmance cmputatin curses. Need t intstall AMD math Library DebianNet-UltraLight.ext3.gz Small rt file system with pen ffice supprt Can be used t build servers such as http server Debian.ext3.gz Rt file system fr linux management curse Includes system and netwrk management sftware 5
Linux virtual lab is depicted in an XML file Dcument Type Definitin as the grammar f virtual lab plan file Transfrmed int Linux virtual server cmmands fr purpse f virtual lab management 7
SYSTEM ARCHITECTURE XML parser using Xerces and Xalan Subsystems implemented using Perl language as CGI prgram Implementatin f LVLDL cnsists f tw parts Open surce packages integrated t establish a virtual netwrk Subsystem f LVLDL including VN generatin, mnitring and migratin. 8
Packages Needed in LVLDL include Readline library set f functins fr prcessing the cmmand line strings Fuse Package fully functinal file system
Bridge-utils package cnnecting multiple Ethernet devices tgether. Ipvsadm package build scalable netwrk services based f tw r mre ndes. Heartbeat package perfrms death-f-nde detectin, cmmunicates and cluster management in ne prcess Keepalived package prvides a strng and rbust health checking fr LVS clusters. 10
SUBSYSTEM OF LVLDL 11
Start mdule :- takes charge f system cnfiguratin Insert New curse infrmatin Creates user accunts Initiate manage mdule Frntend_LL mdule :- Query database t get user s lg infrmatin Select real hst t bt the exclusive kvm virtual mdule Predefined scheduling algrithm 12
Manage mdule :- bt.cgi will bt KVM virtual machines in destined hsts Release.cgi will halt the designated KVM virtual machines Live migratin f KVM frm ne hst t anther t balance system lad Backend_LL mdule :- Cllects system lading infrmatin Apply partial rdering f FCA Relcatin due t balancing effect 13
Mnitr mdule :- Mnitr.cgi registered in crn table Reprts system lading f each real hst every 15 minutes Available memry space, free disk space is reprted Hst with mre available resurces will be selected Perfrms live migratin 14
LOAD BALANCING Incming lad varies n each virtual servers accrding t user's lgin time and required cmputing resurces Dual lad balancing mechanism Frntend lad balancing Backend lad balancing 15
FRONTEND LOAD BALANCING A dedicated hst in netwrk clustr accept cnnectin requests frm user machines Linux virtual server as cluster management sftware Rund rbin scheduling t frward packets t real hst KVM virtual machines will be deplyed sequentially in real hsts accrding t user s lgin sequence 16
BACKEND LOAD BALANCING Lad Balancing using Frmal Cncept Analysis(FCA) Sme hsts may have lw perfrmance t many VMs And sme hsts have t few VMs. System attributes like CPU,memry,Netwrk,disk and Objects attributes like Hst names Frmal cncept fr a cntext is defined such that every Object has an attribute 18
CONCLUSIONS Established a linux virtual lab with high availability and scalability LVLDL was used t deply, migrate t KVM virtual machines in the clustr. Rund Rbin scheduling f LVS was used fr frnt end lad balancing and Backend_LL mdule was implemented using FCA Linux virtual lab ffers Parallel prgramming, Multiple perating systems. 19
Reduced Hardware cst Less burden fr sytem administratr Energy saving and less carbn emissins 20
REFERENCES [1] Inte_VT http://www.intel.cm/technlgy/virtualizatin/technlgy.htm. [2] AMD-V. Available frm: http://www.amd.cm/us/prducts/technlgies/virtualizatin/pages/virtuali zatin.aspx. [3] Chierici, A., R. Veraldi, and D. Salmni, Measuring perfrmances f linux hypervisrs. Nuv Ciment Della Scieta Italiana Di Fisica CCllquia n Physics, 2009. 32(2): p. 213-225. [4] IBM, IBM's VM perating system. http://www.vm.ibm.cm. [5] Whitaker, A., et al. Cnstructing services with interpsable virtual hardware. in First Sympsium n Netwrked Systems Design and Implementatin 2004. [6] Gldberg, R.P., Architecture f virtual machines. 1973. 21
[7] Barham, P., et al. Xen and the art f virtualizatin. in the nineteenth ACM sympsium n Operating Systems Principles 2003. [8] Dike, J., A user-mde prt f the linux kernel. In Prceedings f USENIX Annual Linux Shwcase and Cnference, Atlanta, GA, 2000. [9] KVM. Available frm: http://www.linux-kvm.rg/page/main_page. [10] Clark, C., et al. Live Migratin f Virtual Machine. in 2nd cnference n Sympsium n Netwrked Systems Design & Implementatin. 2005. [11] Krasnyansky, M. and M. Yevmenkin, Virtual Pint-t-Pint(TUN) and Ethernet(TAP) devices. http://vtun.surcefrge.net/tun. [12] Zhang, W., Linux Virtual Server. http://www.linuxvirtualserver.rg.
THANK YOU