Introduction To Virtualization
Introduction To Virtualization
Introduction To Virtualization
Main Points
Status and trends in data center
Definition of virtualization
Department Z
Department B
App 1
App 2
App 3
App n
Server 1
Server 2
Server 3
Server n
.
large amount
of processing
ability which
is fail to use
Servers of lack
of processing
ability
60%
40%
20%
0%
All servers
Defect 1According to the statistics, the average server utilization in data
center is below 30%, but there is still a considerable number of servers can not
meet their service level objects .
Defect 2The deployment of a new application needs budget, procurement,
installation and tests, product launching and other processes, and the cycle will
be over a period of weeks to months, so it is difficult to response to the
business needs timely.
Defect 3The number of servers and management costs have a linear relationship
with the number of applications, so there is enormous pressure of IT management
4
and cost.
Time
5
Iceberg Model
-- Cost structure of traditional data center
Visible cost
30% of the budget will be
used in new infrastructure and
new application development
Invisible cost
70% of the budget will be
used in the maintenance of
existing facilities and
personnel expenses
Question
How to save the operation
expenditure budget for more
IT infrastructure innovation?
6
LAN
WAN
MAN
storage
network
Server
interconnection
network
Storage
network
HPC
cluster
grid
Intelligent
information
Network (IIN)
Application System
Virtualization
Management of Resources
Independent of Underlying
Physical Infrastructure to
Increase Utilization, Efficiency
and Flexibility
Business Policies
On-Demand
Service Oriented
Computing resources
Network resources
Integration
Centralization and
Standardization to
Lower Costs, Improve Efficiency
and Uptime
Automation
Computing Network
resources resource
Storage
resource
Storage resources
ERP
CRM
Non-virtual Environment
Isolated techno-island
LAN
WAN
Internet
HP
SCM
ERP
CRM
Virtual Environment
VHCI
VPN
Simple architecture
Easy to configure the new workload
Virtual
Storage
Main Points
Status and trends in data center
Definition of virtualization
Common types of virtualization
Key technologies of sever virtualization
Definition of Virtualization
Nature of virtualization:
APP
APP
Operating System
CPU
Hard Disk
Memory
I/O Devices
APP
APP
APP
APP
Operating System
Operating System
Virtual Execution
Environment
Virtual Execution
Environment
CPU
Memory
Hard Disk
I/O Devices
Definition of Virtualization
Definition
Nature
of virtualization:
computing system or
Virtualization
is an abstraction of Previous
computer
resources. We
components
thatresources
run in real
running
virtual
can access
in environment
a consistentare
waynow
before
and inafter
environment.
abstraction through virtualization.
This kind of resource
Real computing model
Virtual Computing model
abstraction is not limited by implementation, geographical
location or the underlying physical configuration.
APP
APP
Operating System
CPU
Hard Disk
Memory
I/O Devices
APP
APP
APP
APP
Operating System
Operating System
Virtual Execution
Environment
Virtual Execution
Environment
CPU
Memory
Hard Disk
I/O Devices
Main Points
Status and trends in data center
Definition of virtualization
Common types of virtualization
Key technologies of sever virtualization
Mainstream virtualization softwares and the practice
of virtualization technology
System Virtualization
Core ideaCreate one or more virtual machines using virtualization software on
physical machine.
PC/Server VirtualizationThe maximum value of system virtualization.
Desktop Virtualization Solve the coupling relationship between PC desktop
environment(including applications and files, etc.) and physical machines.
Virtualized desktop environment is stored on a remote server, and when user has
compatible device with sufficient display ability(eg PC, Smart Phones, etc.), all the
programs and data will eventually stored in the remote server.
Software Virtualization
The High-level language virtualizationSolve the migration problem of executable
programs between different architectures. Programs which are written in high-level
language will be compiled into standard intermediate instructions, and these
instructions will be executed during interpretation or compiled environment(such as
Java virtual machine JVM)
Application
API
Program Library
System Calls
Operating System
ISA Instruction Set
Hardware
Computer System
Hardware level
virtualization
Main Points
Status and trends in data center
Definition of virtualization
Common types of virtualization
Key technologies of sever virtualization
Mainstream virtualization softwares
practice of virtualization technology
and
the
Application Server
average utilization rate is 20%?
DB Server
App Server
Web Server
DNS Server
Firewall
average utilization rate is 10% ?
Server
average utilization rate is 10%?
File/Print
Email
Firewall
Virtual Infrastructure
CPU Pool
Storage Pool
20
Now
Based on the high performance of the computer
hardware
how to reduce system cost and improve system
resource utilization rate
how to reduce management cost
how to enhance the safety and reliability
how to improve portability, and increase software
development efficiency
23
VMVirtual Machine
A complete computer system with full functions of hardware system through
software simulation, and runs in an absolutely isolated environment.
Host OS
Some VMMs are installed on existing OS which is called the host OS.
24
Full Virtualization
Guest
Application
Ring 2
Ring 1
Ring 0
Guest OS
Hypervisor
OS
requests
binary
translation
Hardware
Ring 3
Ring 2
Ring 1
Ring 0
Para-virtualization
Guest
Application
Paravirtualization
Guest OS
Hypervisor
Hardware
Disadvantage
The need to modify OS kernel.
26
Ring 3
Guest
Application
Ring 2
Non-root
mode
Ring 1
Ring 0
Root
mode
Guest OS
Hypervisor
Hardware
Hardware-assisted
Virtualization
CPU
needs
to
support
virtualization technology. Besides
ring 0 to ring 3, CPU needs to
provide an additional ring for
Hypervisor only, calling ring -1
Guest OS still runs in ring 0, but
when
OS
calls
privileged
instructions, they will be turned to
Hypervisor in the ring -1 through
hardware mechanism, and the
Hypervisor manages the hardware.
OSs
requests
trap into
Hypervisor.
Disadvantages:
No binary
Need hardware support.(such
translation
or
as Intel VT, AMD SVM)
paravirtuali
27
-zation
Classification of VMM
Hosted -Need to run on
provides
the
driver
communication
UMLinux, User-Mode Linux.
Hybrid
VMWare Workstation
Classification of VMM-III
29
Classification of VMM
30
CPU Virtualization
Memory Virtualization
I/O Virtualization
CPU Virtualization
Traditional CPU level classification
Memory Virtualization
VMM must has the ultimate control of physical memory, that is
to say, it must control the operation of mapping guest physical
address space to host address space. In this way, we can realize
memory virtualization.
I/O Virtualization
Hosted I/O Virtualization
With the structure of host, and use drivers of hosted
OSs I/O device.
Disadvantages
It greatly increases the performance overhead of
virtualization.
Modern OSs such as Windows and Linux have
no support for resources management to provide
performance isolation and service assurance, which
are basic requirements of many server environment.
Page 39
Main Points
Status and trends in data center
Definition of virtualization
Common types of virtualization
Key technologies of sever virtualization
Mainstream virtualization softwares and
the practice of virtualization technology
Need host OS
Experimental purposes
1>Understand the concept of virtualization
2> Master how to set-up and use virtual machine
3> Understand the way of establishing a network connection between VMs(2)
4> Understand basic operations of Vmware and Xen, and how to install OS on
them.(3)
Experimental requiremnt
1>Install a Virtual machine Monitor.
2>Install OS on virtual platform
3>Establish a ftp connection between VMs(2)
4>Build a virtual platform on the VM on virtual platform , and install os on it.(3)
5>Write lab reports, screenshots and proper interpretation of each step is required.
Resource Required
Vmware Workstation
http://www.xdowns.com/soft/softdown.asp
?softid=64236
Fedora
http://download.fedoraproject.org/pub/fed
ora/linux/releases/14/Fedora/i386/iso/Fedo
ra-14-i386-DVD.iso
Opensuse
http://ftp.jaist.ac.jp/pub/Linux/openSUSE/
distribution/11.3/iso/openSUSE-11.3DVD-i586.iso
Creation of VM
Step 1Open
Vmware, Choose File
> New > Virtual
Machine
Step 3Select
installation image-iso
In the browser, select
the downloaded
installation disk file.
Step 5Select a
specific type of
operating system
Choose other linux
2.6.x kernel in case it
is Fedora.
Choose directly if it is
Ubuntu or opensuse.
Bibliography
1. University of Cambridge. Users Manual Xen v3.0.2002[EB/OL].
http://www.cl.cam.ac.uk/research/srg/netos/xen/readmes/user/
2. Paul Barham, Boris Dragovic, Keir Fraser. Xen and Art of virtualization.
Proceeding of the nineteenth ACM symposium on Operating system principles,
2003,164-177
3. R.P.Goldberg. Survey of Virtual Machine Research[J]. IEEE Computer Magazine,
1974:34-45
4. Nanda, S., Chiueh. T. A survey on virtualization technologies 2005,
http://www.ecsl.cs.sunysb.edu/tr/TR179.pdf
5. Michael Steil. Inside VMware. 2006
http://events.ccc.de/congress/2006/Fahrplan/attachments/1132-InsideVMware.pdf
6. , , . Xen,, 2009
7. Uhlig, R., Neiger, G..,Rodgers, D., et al. Intel virtualization technology. Computer,
2005,38(5):48-56