SlideShare ist ein Scribd-Unternehmen logo
1 von 32
Xen Virtualization
Submitted To:
Mr. Prakash Kumar
Submitted By:
Vanika Kapoor(10103453)
Atishay Baid(10103457)
Virtualization
 Separation of administrative zones
 Separation of software failure
 Consolidation of hardware resources
Full utilization of hardware
Easier hardware provisioning -- Want a
server? You’ve got a server.
Excellent test environments
What virtualization isn’t
 Not an HA solution by itself
 Naïve Implementation:
 Not suitable for some secure applications
 Timing of private keys
 Unknown -- Lots of new code
 Host OS adds a new point of entry
 May actually increase complexity
 Adds Host OSes to manage
 Adds to total number of points of management
 Encourages “guerilla” server projects
Full Virtualization
 Hardware Virtual Machines
 VMWare, Xen HVM, KVM, Microsoft VM, Parallels
 Runs unmodified guests
 Generally worst performance, but often acceptable
 Simulates bios, communicates with VMs through
ACPI emulation, BIOS emulation, sometimes custom
drivers
 Can sometimes virtualize accross architectures,
although this is out of fashion.
Para-virtualization
 Hypervisor runs on the bare metal. Handles CPU
scheduling and memory compartmentalization.
 Dom0, a modified Linux Kernel, handles networking
and block storage for all guests.
 Dom0 is also privileged to manage the VMs on the system.
 DomU, or the guests OS, sends some requests
straight to the hypervisor, and others to the Dom0.
 Because the kernel knows its virtualized, features can
be built into it: hot connection/disconnection of
resources, friendly shutdown, serial console.
 Other paravirtualization schemes: Sun Logical
Domains, VMware (sometimes)
Elements of a Xen VM
Virtual Block Device
Image file
Real block device (either LVM or physical)
Network Bridges
Routed, terminates at the Dom0
Bridged, terminates at the network
interface
Virtual Framebuffer
VNC Server
Example VM Config
name = ”DomU-1"
maxmem = 512
memory = 512
vcpus = 2
bootloader = "/usr/bin/pygrub"
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
vfb = [ "type=vnc,vncunused=1,keymap=en-us" ]
disk = [ "tap:aio:/var/lib/xen/images/Centos5Image.img,xvda,w" ]
vif = [ "mac=00:16:3e:79:fd:8d,bridge=xenbr0" ]
xm -- Xen Manager
 Commandline tool on Dom0 for managing vms.
 Quick overview of options:
 console -- attach to a device’s console
 create -- boot a DomU from a config file
 destroy -- immediately stop a DomU
 list -- List running DomUs
 migrate -- Migrate a console to another Dom0
 pause/unpause -- akin to suspend. TCP connections will timeout
 shutdown -- Tell a DomU to shut down.
 network-attach/network-detach
 block-attach/block-detach
Graph View
Xen Live Migration
Migrate machines off during upgrades or
balance load
Set xend.conf to allow migration from
other xen Dom0s.
Machine must reside on shared storage.
Must be on the same level2 network
xm migrate -l Machine dest.ip.addr.ess
Shared Storage Options
 NFS
 Simple hardware failover
 well-understood configuration
 Spotty reliability history
 Block level storage (iscsi or FC)
 More complex configuration
 Multipathing
 Commercial solutions are expensive
 We’re seeing traction for open iscsi lately.
What to Look for In Storage
Redundant host connections
Snapshotting
Replication
Sensible Volume Management
Thin Provisioning
IP-based failover, esp. if x86 based
Storage Systems
 OpenFiler
Nice fronted.
Replication with DRBD
iscsi with linux iscsi-target
 OpenSolaris/ZFS
Thin provisioning
Too many ZFS features to list
StorageTek AVS -- Replication in may forms
Complex configuration
 NexentaStor
ZFS/AVS in Debian.
Rapidly Evolving
 SAN/IQ
Failover, storage virtualization, n(y) redundancy
Expensive and wickedly strict licensing
 Too Many propriety hardware systems to list
Network Segmentation
 802.1q VLAN tagging
 All VLANs operate on the same physical network, but
packets carry an extra tag that indicates which
network they belong in.
 Create an interface and a bridge for each vlan.
 Connect Xen DomUs to their appropriate vlan
 Configure host’s switch ports as vlan trunk ports.
 Configure router somewhere, or a layer 3 switch is
useful here.
Commercial Xens
Citrix XenServer
Oracle VM
VirtualIron
Typical Features:
Resource QoS
Performance trending
Physical Machine Failure detection
Pretty GUI!
API for server provisioning
Recovery strategies
 Mount virtual block device on Dom0
 losetup /dev/loop0 XenVBlockImage.img
 losetup -a
 kpartx -a /dev/loop0
 pvscan (if using LVM inside VM)
 vgchange -a y VolGroup00
 mount /dev/mapper/VolGroup00-LogVol00 /mnt/xen
 chroot /mnt/xen (or whatever recovery steps you take next)
Xen Recovery -- cont
 Boot from recovery CD as HVM
disk = [ ’tap:aio:/home/xen/domains/damsel.img,ioemu:hda,w',
'file:/home/jack/knoppix.iso,ioemu:hdc:cdrom,r' ]
builder="hvm"
extid=0
device_model="/usr/lib/xen/bin/qemu-dm"
kernel="/usr/lib/xen/boot/hvmloader"
boot="d"
vnc=1
vncunused=1
apic=0
acpi=1
 Create custom Xen Kernel OS image for rescues
Pitfalls
 Failure to segregate network
 802.1q and iptables firewalls everywhere
 Creating Single Points of Failure
 Make sure that VMs are clustered
 If they can’t be clustered, auto started on another
machine
 Assess reliability of shared storage
 Storage Bottlenecks
 Not planning for extra points of management
 cfengine, puppet, centralized authentication
 Less predictable performance modeling
Maintaining HA
Hardware will fail
Individual VMs will crash
Cluster Multiple VMs for each application
Load Balancers can be VMs too.
HA -- Continued
 Failure Detection, make VM restart on different
machines if a machine fails
 Make VMs migrate off a host when you shut it
down
 Build your testing system into the VM scheme.
 At least one testing system per type of host.
Diligently do all changes on that before rolling out.
 Have at least one development VM per VM cluster.
 Make sure that networking equipment and
storage is redundant too
 If running web servers, keep a physical web
server on hand to serve a “We’re sorry, come
back later” page. For mail servers, an
independant backup MX.
What is File System?
• A file system is a hierarchical structure (file
tree) of files and directories.
• This file tree uses directories to organize
data and programs into groups, allowing the
management of several directories and files
at one time.
• Some tasks are performed more efficiently
on a file system than on each directory
within the file system.
What is Network File System?
• NFS developed by SUN Microsystems for use
on its UNIX-based workstations.
• A distributed file system
• Allows users to access files and directories
located on remote computers
• But, data potentially stored on another
machine.
• NFS builds on the Open Network Computing
Remote Procedure Call (ONC RPC) system
Continue…
Mechanism for storing files on a network.
Allows users to ‘Share’ a directory.
NFS most commonly used with UNIX systems.
Other software platforms:
-Mac OS, Microsoft Windows, Novell NetWare, etc.
Major Goals:
-simple crash recovery
-reasonable performance :80% of a local drive
Versions and Variations
Version 1 and Version 2
V1 Sun used only for in-house
experimental purposes
Did not release it to the public
V2 of the protocol originally operated
entirely over UDP and was meant to keep
the protocol stateless, with locking (for
example) implemented outside of the core
protocol.
Both suffered from performance problems
Both suffered from security problems
security dependant upon IP address
Version 3
NFS v3 can operate across TCP as well as
UDP
Support for asynchronous writes on the
server
Obtains multiple file name, handles and
attributes
Support for 64-bit file sizes and offsets
Handle files larger than 4 gigabytes (GB)
Improves performance, and allowed it to
work more reliably across the Internet
Version 4
Currently version 2 and version 3
protocols are in use with version 4 under
consideration for a standard
includes more performance
improvements
Mandates strong security
introduces a stateful protocol
developed with the IETF (Internet
Engineering Task Force)
File
Syste
m
File
Syste
m
NFS
Client
NFS
Client
Netw
ork
NFS
Server
File
Syste
m
NFS Architecture
RPC request Action
GETATTR Get file attribute
SETATTR Set file attribute
LOOKUP File name search
ACCESS Check access
READ Read file
WRITE Write to the file
CREATE Create file
REMOVE Remove file
RENAME Rename file
stateless server and client
server can be rebooted and user on
client might be unaware of the reboot
client/server distinction occurs at the
application/user level not the system
level
highly flexible, so we need to be
disciplined in our
administration/configuration
Advantages
Disadvantage
uses RPC authentication
easily spoofed
filesystem data is transmitted in
cleartext
Data could be copied
Network slower than local disk
Complexity, Security issues.
Conclusion
New technologies open up new
possibilities for network file systems
Cost of increased traffic over Ethernet
may cause problems for xFS, cooperative
caching.
LOAD BALANCING OF APPLICATIONS  USING XEN HYPERVISOR

Weitere ähnliche Inhalte

Was ist angesagt?

Kvm performance optimization for ubuntu
Kvm performance optimization for ubuntuKvm performance optimization for ubuntu
Kvm performance optimization for ubuntuSim Janghoon
 
Dealing with Hardware Heterogeneity Using EmbeddedXEN, a Virtualization Frame...
Dealing with Hardware Heterogeneity Using EmbeddedXEN, a Virtualization Frame...Dealing with Hardware Heterogeneity Using EmbeddedXEN, a Virtualization Frame...
Dealing with Hardware Heterogeneity Using EmbeddedXEN, a Virtualization Frame...The Linux Foundation
 
XPDS16: The OpenXT Project in 2016 - Christopher Clark, BAE Systems
XPDS16: The OpenXT Project in 2016 - Christopher Clark, BAE SystemsXPDS16: The OpenXT Project in 2016 - Christopher Clark, BAE Systems
XPDS16: The OpenXT Project in 2016 - Christopher Clark, BAE SystemsThe Linux Foundation
 
XPDDS18: LCC18: Xen Project: After 15 years, What's Next? - George Dunlap, C...
XPDDS18: LCC18:  Xen Project: After 15 years, What's Next? - George Dunlap, C...XPDDS18: LCC18:  Xen Project: After 15 years, What's Next? - George Dunlap, C...
XPDDS18: LCC18: Xen Project: After 15 years, What's Next? - George Dunlap, C...The Linux 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
 
System Device Tree update: Bus Firewalls and Lopper
System Device Tree update: Bus Firewalls and LopperSystem Device Tree update: Bus Firewalls and Lopper
System Device Tree update: Bus Firewalls and LopperStefano Stabellini
 
Tech X Virtualization Tips
Tech X Virtualization TipsTech X Virtualization Tips
Tech X Virtualization TipsYoussef EL HADJ
 
12 christian ferber xen_server_advanced
12 christian ferber xen_server_advanced12 christian ferber xen_server_advanced
12 christian ferber xen_server_advancedDigicomp Academy AG
 
Building a Distributed Block Storage System on Xen
Building a Distributed Block Storage System on XenBuilding a Distributed Block Storage System on Xen
Building a Distributed Block Storage System on XenThe Linux Foundation
 
VMware Performance Troubleshooting
VMware Performance TroubleshootingVMware Performance Troubleshooting
VMware Performance Troubleshootingglbsolutions
 
XPDS13: HVM Dom0 - Any unmodified OS as Dom0 - Will Auld, Intel
XPDS13: HVM Dom0 - Any unmodified OS as Dom0 - Will Auld, IntelXPDS13: HVM Dom0 - Any unmodified OS as Dom0 - Will Auld, Intel
XPDS13: HVM Dom0 - Any unmodified OS as Dom0 - Will Auld, IntelThe Linux Foundation
 
Dave Gilbert - KVM and QEMU
Dave Gilbert - KVM and QEMUDave Gilbert - KVM and QEMU
Dave Gilbert - KVM and QEMUDanny Abukalam
 
Intrack14dec tips tricks_clean
Intrack14dec tips tricks_cleanIntrack14dec tips tricks_clean
Intrack14dec tips tricks_cleanchinitooo
 
Improving the Performance of the qcow2 Format (KVM Forum 2017)
Improving the Performance of the qcow2 Format (KVM Forum 2017)Improving the Performance of the qcow2 Format (KVM Forum 2017)
Improving the Performance of the qcow2 Format (KVM Forum 2017)Igalia
 
Xen PV Performance Status and Optimization Opportunities
Xen PV Performance Status and Optimization OpportunitiesXen PV Performance Status and Optimization Opportunities
Xen PV Performance Status and Optimization OpportunitiesThe Linux Foundation
 
ELC21: VM-to-VM Communication Mechanisms for Embedded
ELC21: VM-to-VM Communication Mechanisms for EmbeddedELC21: VM-to-VM Communication Mechanisms for Embedded
ELC21: VM-to-VM Communication Mechanisms for EmbeddedStefano Stabellini
 

Was ist angesagt? (20)

Kvm performance optimization for ubuntu
Kvm performance optimization for ubuntuKvm performance optimization for ubuntu
Kvm performance optimization for ubuntu
 
OLUG_xen.ppt
OLUG_xen.pptOLUG_xen.ppt
OLUG_xen.ppt
 
Dealing with Hardware Heterogeneity Using EmbeddedXEN, a Virtualization Frame...
Dealing with Hardware Heterogeneity Using EmbeddedXEN, a Virtualization Frame...Dealing with Hardware Heterogeneity Using EmbeddedXEN, a Virtualization Frame...
Dealing with Hardware Heterogeneity Using EmbeddedXEN, a Virtualization Frame...
 
RunningFreeBSDonLinuxKVM
RunningFreeBSDonLinuxKVMRunningFreeBSDonLinuxKVM
RunningFreeBSDonLinuxKVM
 
XPDS16: The OpenXT Project in 2016 - Christopher Clark, BAE Systems
XPDS16: The OpenXT Project in 2016 - Christopher Clark, BAE SystemsXPDS16: The OpenXT Project in 2016 - Christopher Clark, BAE Systems
XPDS16: The OpenXT Project in 2016 - Christopher Clark, BAE Systems
 
XPDDS18: LCC18: Xen Project: After 15 years, What's Next? - George Dunlap, C...
XPDDS18: LCC18:  Xen Project: After 15 years, What's Next? - George Dunlap, C...XPDDS18: LCC18:  Xen Project: After 15 years, What's Next? - George Dunlap, C...
XPDDS18: LCC18: Xen Project: After 15 years, What's Next? - George Dunlap, C...
 
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
 
System Device Tree update: Bus Firewalls and Lopper
System Device Tree update: Bus Firewalls and LopperSystem Device Tree update: Bus Firewalls and Lopper
System Device Tree update: Bus Firewalls and Lopper
 
Tech X Virtualization Tips
Tech X Virtualization TipsTech X Virtualization Tips
Tech X Virtualization Tips
 
12 christian ferber xen_server_advanced
12 christian ferber xen_server_advanced12 christian ferber xen_server_advanced
12 christian ferber xen_server_advanced
 
(Free and Net) BSD Xen Roadmap
(Free and Net) BSD Xen Roadmap(Free and Net) BSD Xen Roadmap
(Free and Net) BSD Xen Roadmap
 
Aplura virtualization slides
Aplura virtualization slidesAplura virtualization slides
Aplura virtualization slides
 
Building a Distributed Block Storage System on Xen
Building a Distributed Block Storage System on XenBuilding a Distributed Block Storage System on Xen
Building a Distributed Block Storage System on Xen
 
VMware Performance Troubleshooting
VMware Performance TroubleshootingVMware Performance Troubleshooting
VMware Performance Troubleshooting
 
XPDS13: HVM Dom0 - Any unmodified OS as Dom0 - Will Auld, Intel
XPDS13: HVM Dom0 - Any unmodified OS as Dom0 - Will Auld, IntelXPDS13: HVM Dom0 - Any unmodified OS as Dom0 - Will Auld, Intel
XPDS13: HVM Dom0 - Any unmodified OS as Dom0 - Will Auld, Intel
 
Dave Gilbert - KVM and QEMU
Dave Gilbert - KVM and QEMUDave Gilbert - KVM and QEMU
Dave Gilbert - KVM and QEMU
 
Intrack14dec tips tricks_clean
Intrack14dec tips tricks_cleanIntrack14dec tips tricks_clean
Intrack14dec tips tricks_clean
 
Improving the Performance of the qcow2 Format (KVM Forum 2017)
Improving the Performance of the qcow2 Format (KVM Forum 2017)Improving the Performance of the qcow2 Format (KVM Forum 2017)
Improving the Performance of the qcow2 Format (KVM Forum 2017)
 
Xen PV Performance Status and Optimization Opportunities
Xen PV Performance Status and Optimization OpportunitiesXen PV Performance Status and Optimization Opportunities
Xen PV Performance Status and Optimization Opportunities
 
ELC21: VM-to-VM Communication Mechanisms for Embedded
ELC21: VM-to-VM Communication Mechanisms for EmbeddedELC21: VM-to-VM Communication Mechanisms for Embedded
ELC21: VM-to-VM Communication Mechanisms for Embedded
 

Ähnlich wie LOAD BALANCING OF APPLICATIONS USING XEN HYPERVISOR

Using openQRM to Manage Virtual Machines
Using openQRM to Manage Virtual MachinesUsing openQRM to Manage Virtual Machines
Using openQRM to Manage Virtual MachinesKris Buytaert
 
Unikernels: the rise of the library hypervisor in MirageOS
Unikernels: the rise of the library hypervisor in MirageOSUnikernels: the rise of the library hypervisor in MirageOS
Unikernels: the rise of the library hypervisor in MirageOSDocker, Inc.
 
The lies we tell our code, LinuxCon/CloudOpen 2015-08-18
The lies we tell our code, LinuxCon/CloudOpen 2015-08-18The lies we tell our code, LinuxCon/CloudOpen 2015-08-18
The lies we tell our code, LinuxCon/CloudOpen 2015-08-18Casey Bisson
 
Automating Your CloudStack Cloud with Puppet
Automating Your CloudStack Cloud with PuppetAutomating Your CloudStack Cloud with Puppet
Automating Your CloudStack Cloud with Puppetbuildacloud
 
Automating CloudStack with Puppet - David Nalley
Automating CloudStack with Puppet - David NalleyAutomating CloudStack with Puppet - David Nalley
Automating CloudStack with Puppet - David NalleyPuppet
 
Unikernels: Rise of the Library Hypervisor
Unikernels: Rise of the Library HypervisorUnikernels: Rise of the Library Hypervisor
Unikernels: Rise of the Library HypervisorAnil Madhavapeddy
 
virtualization and hypervisors
virtualization and hypervisorsvirtualization and hypervisors
virtualization and hypervisorsGaurav Suri
 
XenServer Design Workshop
XenServer Design WorkshopXenServer Design Workshop
XenServer Design WorkshopTim Mackey
 
Linux beginner's Workshop
Linux beginner's WorkshopLinux beginner's Workshop
Linux beginner's Workshopfutureshocked
 
The Lies We Tell Our Code (#seascale 2015 04-22)
The Lies We Tell Our Code (#seascale 2015 04-22)The Lies We Tell Our Code (#seascale 2015 04-22)
The Lies We Tell Our Code (#seascale 2015 04-22)Casey Bisson
 
Containerization is more than the new Virtualization: enabling separation of ...
Containerization is more than the new Virtualization: enabling separation of ...Containerization is more than the new Virtualization: enabling separation of ...
Containerization is more than the new Virtualization: enabling separation of ...Jérôme Petazzoni
 
Introduction to Virtualization
Introduction to VirtualizationIntroduction to Virtualization
Introduction to VirtualizationMuhammadRizkyFaza
 

Ähnlich wie LOAD BALANCING OF APPLICATIONS USING XEN HYPERVISOR (20)

.ppt
.ppt.ppt
.ppt
 
OpenQrm
OpenQrmOpenQrm
OpenQrm
 
Using openQRM to Manage Virtual Machines
Using openQRM to Manage Virtual MachinesUsing openQRM to Manage Virtual Machines
Using openQRM to Manage Virtual Machines
 
Unikernels: the rise of the library hypervisor in MirageOS
Unikernels: the rise of the library hypervisor in MirageOSUnikernels: the rise of the library hypervisor in MirageOS
Unikernels: the rise of the library hypervisor in MirageOS
 
openQRM is Not Dead
openQRM is Not DeadopenQRM is Not Dead
openQRM is Not Dead
 
The lies we tell our code, LinuxCon/CloudOpen 2015-08-18
The lies we tell our code, LinuxCon/CloudOpen 2015-08-18The lies we tell our code, LinuxCon/CloudOpen 2015-08-18
The lies we tell our code, LinuxCon/CloudOpen 2015-08-18
 
Automating Your CloudStack Cloud with Puppet
Automating Your CloudStack Cloud with PuppetAutomating Your CloudStack Cloud with Puppet
Automating Your CloudStack Cloud with Puppet
 
Automating CloudStack with Puppet - David Nalley
Automating CloudStack with Puppet - David NalleyAutomating CloudStack with Puppet - David Nalley
Automating CloudStack with Puppet - David Nalley
 
aws.ppt
aws.pptaws.ppt
aws.ppt
 
Unikernels: Rise of the Library Hypervisor
Unikernels: Rise of the Library HypervisorUnikernels: Rise of the Library Hypervisor
Unikernels: Rise of the Library Hypervisor
 
OSSNA18: Xen Beginners Training
OSSNA18: Xen Beginners Training OSSNA18: Xen Beginners Training
OSSNA18: Xen Beginners Training
 
virtualization and hypervisors
virtualization and hypervisorsvirtualization and hypervisors
virtualization and hypervisors
 
XenServer Design Workshop
XenServer Design WorkshopXenServer Design Workshop
XenServer Design Workshop
 
Linux beginner's Workshop
Linux beginner's WorkshopLinux beginner's Workshop
Linux beginner's Workshop
 
The Lies We Tell Our Code (#seascale 2015 04-22)
The Lies We Tell Our Code (#seascale 2015 04-22)The Lies We Tell Our Code (#seascale 2015 04-22)
The Lies We Tell Our Code (#seascale 2015 04-22)
 
Containerization is more than the new Virtualization: enabling separation of ...
Containerization is more than the new Virtualization: enabling separation of ...Containerization is more than the new Virtualization: enabling separation of ...
Containerization is more than the new Virtualization: enabling separation of ...
 
Hyper v r2 deep dive
Hyper v r2 deep diveHyper v r2 deep dive
Hyper v r2 deep dive
 
Handout2o
Handout2oHandout2o
Handout2o
 
Slide final
Slide finalSlide final
Slide final
 
Introduction to Virtualization
Introduction to VirtualizationIntroduction to Virtualization
Introduction to Virtualization
 

Kürzlich hochgeladen

Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 

Kürzlich hochgeladen (20)

Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 

LOAD BALANCING OF APPLICATIONS USING XEN HYPERVISOR

  • 1. Xen Virtualization Submitted To: Mr. Prakash Kumar Submitted By: Vanika Kapoor(10103453) Atishay Baid(10103457)
  • 2. Virtualization  Separation of administrative zones  Separation of software failure  Consolidation of hardware resources Full utilization of hardware Easier hardware provisioning -- Want a server? You’ve got a server. Excellent test environments
  • 3. What virtualization isn’t  Not an HA solution by itself  Naïve Implementation:  Not suitable for some secure applications  Timing of private keys  Unknown -- Lots of new code  Host OS adds a new point of entry  May actually increase complexity  Adds Host OSes to manage  Adds to total number of points of management  Encourages “guerilla” server projects
  • 4. Full Virtualization  Hardware Virtual Machines  VMWare, Xen HVM, KVM, Microsoft VM, Parallels  Runs unmodified guests  Generally worst performance, but often acceptable  Simulates bios, communicates with VMs through ACPI emulation, BIOS emulation, sometimes custom drivers  Can sometimes virtualize accross architectures, although this is out of fashion.
  • 5. Para-virtualization  Hypervisor runs on the bare metal. Handles CPU scheduling and memory compartmentalization.  Dom0, a modified Linux Kernel, handles networking and block storage for all guests.  Dom0 is also privileged to manage the VMs on the system.  DomU, or the guests OS, sends some requests straight to the hypervisor, and others to the Dom0.  Because the kernel knows its virtualized, features can be built into it: hot connection/disconnection of resources, friendly shutdown, serial console.  Other paravirtualization schemes: Sun Logical Domains, VMware (sometimes)
  • 6. Elements of a Xen VM Virtual Block Device Image file Real block device (either LVM or physical) Network Bridges Routed, terminates at the Dom0 Bridged, terminates at the network interface Virtual Framebuffer VNC Server
  • 7. Example VM Config name = ”DomU-1" maxmem = 512 memory = 512 vcpus = 2 bootloader = "/usr/bin/pygrub" on_poweroff = "destroy" on_reboot = "restart" on_crash = "restart" vfb = [ "type=vnc,vncunused=1,keymap=en-us" ] disk = [ "tap:aio:/var/lib/xen/images/Centos5Image.img,xvda,w" ] vif = [ "mac=00:16:3e:79:fd:8d,bridge=xenbr0" ]
  • 8. xm -- Xen Manager  Commandline tool on Dom0 for managing vms.  Quick overview of options:  console -- attach to a device’s console  create -- boot a DomU from a config file  destroy -- immediately stop a DomU  list -- List running DomUs  migrate -- Migrate a console to another Dom0  pause/unpause -- akin to suspend. TCP connections will timeout  shutdown -- Tell a DomU to shut down.  network-attach/network-detach  block-attach/block-detach
  • 10. Xen Live Migration Migrate machines off during upgrades or balance load Set xend.conf to allow migration from other xen Dom0s. Machine must reside on shared storage. Must be on the same level2 network xm migrate -l Machine dest.ip.addr.ess
  • 11. Shared Storage Options  NFS  Simple hardware failover  well-understood configuration  Spotty reliability history  Block level storage (iscsi or FC)  More complex configuration  Multipathing  Commercial solutions are expensive  We’re seeing traction for open iscsi lately.
  • 12. What to Look for In Storage Redundant host connections Snapshotting Replication Sensible Volume Management Thin Provisioning IP-based failover, esp. if x86 based
  • 13. Storage Systems  OpenFiler Nice fronted. Replication with DRBD iscsi with linux iscsi-target  OpenSolaris/ZFS Thin provisioning Too many ZFS features to list StorageTek AVS -- Replication in may forms Complex configuration  NexentaStor ZFS/AVS in Debian. Rapidly Evolving  SAN/IQ Failover, storage virtualization, n(y) redundancy Expensive and wickedly strict licensing  Too Many propriety hardware systems to list
  • 14. Network Segmentation  802.1q VLAN tagging  All VLANs operate on the same physical network, but packets carry an extra tag that indicates which network they belong in.  Create an interface and a bridge for each vlan.  Connect Xen DomUs to their appropriate vlan  Configure host’s switch ports as vlan trunk ports.  Configure router somewhere, or a layer 3 switch is useful here.
  • 15. Commercial Xens Citrix XenServer Oracle VM VirtualIron Typical Features: Resource QoS Performance trending Physical Machine Failure detection Pretty GUI! API for server provisioning
  • 16. Recovery strategies  Mount virtual block device on Dom0  losetup /dev/loop0 XenVBlockImage.img  losetup -a  kpartx -a /dev/loop0  pvscan (if using LVM inside VM)  vgchange -a y VolGroup00  mount /dev/mapper/VolGroup00-LogVol00 /mnt/xen  chroot /mnt/xen (or whatever recovery steps you take next)
  • 17. Xen Recovery -- cont  Boot from recovery CD as HVM disk = [ ’tap:aio:/home/xen/domains/damsel.img,ioemu:hda,w', 'file:/home/jack/knoppix.iso,ioemu:hdc:cdrom,r' ] builder="hvm" extid=0 device_model="/usr/lib/xen/bin/qemu-dm" kernel="/usr/lib/xen/boot/hvmloader" boot="d" vnc=1 vncunused=1 apic=0 acpi=1  Create custom Xen Kernel OS image for rescues
  • 18. Pitfalls  Failure to segregate network  802.1q and iptables firewalls everywhere  Creating Single Points of Failure  Make sure that VMs are clustered  If they can’t be clustered, auto started on another machine  Assess reliability of shared storage  Storage Bottlenecks  Not planning for extra points of management  cfengine, puppet, centralized authentication  Less predictable performance modeling
  • 19. Maintaining HA Hardware will fail Individual VMs will crash Cluster Multiple VMs for each application Load Balancers can be VMs too.
  • 20. HA -- Continued  Failure Detection, make VM restart on different machines if a machine fails  Make VMs migrate off a host when you shut it down  Build your testing system into the VM scheme.  At least one testing system per type of host. Diligently do all changes on that before rolling out.  Have at least one development VM per VM cluster.  Make sure that networking equipment and storage is redundant too  If running web servers, keep a physical web server on hand to serve a “We’re sorry, come back later” page. For mail servers, an independant backup MX.
  • 21. What is File System? • A file system is a hierarchical structure (file tree) of files and directories. • This file tree uses directories to organize data and programs into groups, allowing the management of several directories and files at one time. • Some tasks are performed more efficiently on a file system than on each directory within the file system.
  • 22. What is Network File System? • NFS developed by SUN Microsystems for use on its UNIX-based workstations. • A distributed file system • Allows users to access files and directories located on remote computers • But, data potentially stored on another machine. • NFS builds on the Open Network Computing Remote Procedure Call (ONC RPC) system
  • 23. Continue… Mechanism for storing files on a network. Allows users to ‘Share’ a directory. NFS most commonly used with UNIX systems. Other software platforms: -Mac OS, Microsoft Windows, Novell NetWare, etc. Major Goals: -simple crash recovery -reasonable performance :80% of a local drive
  • 24. Versions and Variations Version 1 and Version 2 V1 Sun used only for in-house experimental purposes Did not release it to the public V2 of the protocol originally operated entirely over UDP and was meant to keep the protocol stateless, with locking (for example) implemented outside of the core protocol. Both suffered from performance problems Both suffered from security problems security dependant upon IP address
  • 25. Version 3 NFS v3 can operate across TCP as well as UDP Support for asynchronous writes on the server Obtains multiple file name, handles and attributes Support for 64-bit file sizes and offsets Handle files larger than 4 gigabytes (GB) Improves performance, and allowed it to work more reliably across the Internet
  • 26. Version 4 Currently version 2 and version 3 protocols are in use with version 4 under consideration for a standard includes more performance improvements Mandates strong security introduces a stateful protocol developed with the IETF (Internet Engineering Task Force)
  • 28. RPC request Action GETATTR Get file attribute SETATTR Set file attribute LOOKUP File name search ACCESS Check access READ Read file WRITE Write to the file CREATE Create file REMOVE Remove file RENAME Rename file
  • 29. stateless server and client server can be rebooted and user on client might be unaware of the reboot client/server distinction occurs at the application/user level not the system level highly flexible, so we need to be disciplined in our administration/configuration Advantages
  • 30. Disadvantage uses RPC authentication easily spoofed filesystem data is transmitted in cleartext Data could be copied Network slower than local disk Complexity, Security issues.
  • 31. Conclusion New technologies open up new possibilities for network file systems Cost of increased traffic over Ethernet may cause problems for xFS, cooperative caching.