Virtualization Workshop

Transcription

Virtualization Workshop
Virtualization Workshop
GridKa School 2008
Christian Baun, Volker Buege, Benjamin Klein, Oliver Oberst,
Jens Milke, Armin Scheurer
Die Kooperation von Forschungszentrum Karlsruhe GmbH
und Universität Karlsruhe (TH)
The Workshop

Workshop Agenda






Introduction – Oliver Oberst
Virtualization techniques and usecases – Volker Buege
Virtualization of worker nodes – Benjamin Klein
Live demo: VMware ESX - Jens Milke
Support during the workshop – Armin Scheurer, Christian Baun
Goals of the Workshop



Get in touch with virtualization
Learn to install and use Xen
Enable High Availability
KIT - Die Kooperation von
Forschungszentrum Karlsruhe GmbH
und Universität Karlsruhe (TH)
Virtualization

Possible Definition:


Share computer resources between
parallel running, independent and isolated
Operating System (OS) instances
Three main branches:




Platform virtualization
 Seperates the OS from the underlying
hardware resource
Resource virtualization
 Virtualized resources like storage
volumes, network,...
Application virtualization
 Encapsulation of software to improve
portablility, manageablility and
compatibility form the underlying OS
Server 1
Server 2
OS
OS
Hardware
Hardware
One server
VM1
VM2
VM3
VM4
Hardware
Server 3
Server 4
OS
OS
Hardware
Hardware
etc.
KIT - Die Kooperation von
Forschungszentrum Karlsruhe GmbH
und Universität Karlsruhe (TH)
Why Virtualization

Server load is often less than
20%

Historically grown server
infrastructure consumes:


Energy, climate and space
Manpower in administration:
 Hardware/Software
failover
 Live Migration
 Templates of VMs
 Fast deployment
 Backup of VMs
(snapshots)
 Desaster recovery
Load Balancing
Consolidation
High Availability etc.
Virtualization
KIT - Die Kooperation von
Forschungszentrum Karlsruhe GmbH
und Universität Karlsruhe (TH)
Server Consolidation - an Example: IEKP at KIT

Two main service infrasturctures :


Local services (ldap, cups,
samba, local batch system, .... )
gLite grid services of the
UNI-KARLSRUHE Tier 3 site

Virtualization Hardware:

Host system hardware:

UI
CE
BDII


MON
SE
SAMBA
e.t.c
ldap
CUPS
etc.
AMD Athlon 64 X2 4200+
6 GB RAM
400 GB Raid10 disk space
for VMs
host at UNI. Computing Center
KIT - Die Kooperation von
Forschungszentrum Karlsruhe GmbH
und Universität Karlsruhe (TH)
High Availablity (workshop topic)

What to to in case of Hardware failures on machines where many
VMs are hosted?
High Availability

One possibility: Use two powerful host machines with same
architecture in combination with a Distributed Replicated Block
Device (DRBD) to mirror disk space between the machines (Raid 1
over Ethernet) for the VM images
VM
VM
VM
Storage
VM
DRBD
In case of hardware problems or high
load the machines can easily be
migrated

Heartbeat2: in case of complete
hardware breakdown the machines
will be restarted on the other host
automatically
VM
VM
VM

Storage
KIT - Die Kooperation von
Forschungszentrum Karlsruhe GmbH
und Universität Karlsruhe (TH)
XEN Tutorial

15 teams. Each gets 2 hardware hosts with pre-installed
UBUNTU 8.04.1 (Hardy Heron)


See Handout for hardware and login information
Setup the hardware hosts:




Enable XEN virtualization
Start first VM / play around
Enable DRBD disk mirroring between the two hardware machines
Mirgrate your VMs between both hosts
XEN-Tutorial at:
http://www-ekp.physik.unikarlsruhe.de/~twiki/bin/view/GridkaSchool08/VirtualizationWorkshop08
KIT - Die Kooperation von
Forschungszentrum Karlsruhe GmbH
und Universität Karlsruhe (TH)

Similar documents