topic 14: operating systems and virtualization
DESCRIPTION
Cloud Computing Workshop 2013, ITUTRANSCRIPT
![Page 1: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/1.jpg)
14: Operating Systems and Virtualization
Zubair Nabi
April 21, 2013
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 1 / 24
![Page 2: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/2.jpg)
Outline
1 Operating Systems
2 Virtualization
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 2 / 24
![Page 3: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/3.jpg)
Outline
1 Operating Systems
2 Virtualization
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 3 / 24
![Page 4: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/4.jpg)
Introduction
Linux is the default choice
Due to its performance, modularity, power efficiency, scalability, opensource nature, and ubiquity
Deployed by everyone, from Google to Dell and from Amazon to IBM
But which distribution?
All distros have different features
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 4 / 24
![Page 5: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/5.jpg)
Introduction
Linux is the default choice
Due to its performance, modularity, power efficiency, scalability, opensource nature, and ubiquity
Deployed by everyone, from Google to Dell and from Amazon to IBM
But which distribution?
All distros have different features
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 4 / 24
![Page 6: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/6.jpg)
Introduction
Linux is the default choice
Due to its performance, modularity, power efficiency, scalability, opensource nature, and ubiquity
Deployed by everyone, from Google to Dell and from Amazon to IBM
But which distribution?
All distros have different features
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 4 / 24
![Page 7: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/7.jpg)
Introduction
Linux is the default choice
Due to its performance, modularity, power efficiency, scalability, opensource nature, and ubiquity
Deployed by everyone, from Google to Dell and from Amazon to IBM
But which distribution?
All distros have different features
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 4 / 24
![Page 8: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/8.jpg)
Introduction
Linux is the default choice
Due to its performance, modularity, power efficiency, scalability, opensource nature, and ubiquity
Deployed by everyone, from Google to Dell and from Amazon to IBM
But which distribution?
All distros have different features
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 4 / 24
![Page 9: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/9.jpg)
Distributions
Distributions overlap in most of their functionality
Many share a common package managerI CentOS, Red Hat, and Fedora use RPM packagesI Ubuntu and Debian use APT or .deb packages
Almost all distributions will run any type of software
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 5 / 24
![Page 10: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/10.jpg)
Distributions
Distributions overlap in most of their functionalityMany share a common package manager
I CentOS, Red Hat, and Fedora use RPM packagesI Ubuntu and Debian use APT or .deb packages
Almost all distributions will run any type of software
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 5 / 24
![Page 11: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/11.jpg)
Distributions
Distributions overlap in most of their functionalityMany share a common package manager
I CentOS, Red Hat, and Fedora use RPM packages
I Ubuntu and Debian use APT or .deb packages
Almost all distributions will run any type of software
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 5 / 24
![Page 12: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/12.jpg)
Distributions
Distributions overlap in most of their functionalityMany share a common package manager
I CentOS, Red Hat, and Fedora use RPM packagesI Ubuntu and Debian use APT or .deb packages
Almost all distributions will run any type of software
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 5 / 24
![Page 13: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/13.jpg)
Distributions
Distributions overlap in most of their functionalityMany share a common package manager
I CentOS, Red Hat, and Fedora use RPM packagesI Ubuntu and Debian use APT or .deb packages
Almost all distributions will run any type of software
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 5 / 24
![Page 14: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/14.jpg)
Ubuntu
Designed for ease of use across desktops as well as servers
Latest software versions are rolled out regularlyTwo different versions available:
1 LTS (Long Term Support) version with stable packages2 Normal version with cutting-edge packages
Due to their stability, LTS versions are deployed on production servers
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 6 / 24
![Page 15: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/15.jpg)
Ubuntu
Designed for ease of use across desktops as well as servers
Latest software versions are rolled out regularly
Two different versions available:1 LTS (Long Term Support) version with stable packages2 Normal version with cutting-edge packages
Due to their stability, LTS versions are deployed on production servers
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 6 / 24
![Page 16: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/16.jpg)
Ubuntu
Designed for ease of use across desktops as well as servers
Latest software versions are rolled out regularlyTwo different versions available:
1 LTS (Long Term Support) version with stable packages
2 Normal version with cutting-edge packages
Due to their stability, LTS versions are deployed on production servers
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 6 / 24
![Page 17: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/17.jpg)
Ubuntu
Designed for ease of use across desktops as well as servers
Latest software versions are rolled out regularlyTwo different versions available:
1 LTS (Long Term Support) version with stable packages2 Normal version with cutting-edge packages
Due to their stability, LTS versions are deployed on production servers
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 6 / 24
![Page 18: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/18.jpg)
Ubuntu
Designed for ease of use across desktops as well as servers
Latest software versions are rolled out regularlyTwo different versions available:
1 LTS (Long Term Support) version with stable packages2 Normal version with cutting-edge packages
Due to their stability, LTS versions are deployed on production servers
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 6 / 24
![Page 19: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/19.jpg)
CentOS
Emphasizes reliability
Well-suited to production environments
Packages have been tuned over time to work out as many bugs andsecurity flaws as possible
On the downside, software versions are rarely the latest
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 7 / 24
![Page 20: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/20.jpg)
CentOS
Emphasizes reliability
Well-suited to production environments
Packages have been tuned over time to work out as many bugs andsecurity flaws as possible
On the downside, software versions are rarely the latest
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 7 / 24
![Page 21: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/21.jpg)
CentOS
Emphasizes reliability
Well-suited to production environments
Packages have been tuned over time to work out as many bugs andsecurity flaws as possible
On the downside, software versions are rarely the latest
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 7 / 24
![Page 22: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/22.jpg)
CentOS
Emphasizes reliability
Well-suited to production environments
Packages have been tuned over time to work out as many bugs andsecurity flaws as possible
On the downside, software versions are rarely the latest
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 7 / 24
![Page 23: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/23.jpg)
Red Hat Enterprise Linux (RHEL)
Targets enterprise-level servers
Stable and handles heavy loads well
Requires a small licensing fee for non-free software components andupdates
Useful if the target software/workload supports it; enterprise software
If not, better off using CentOS
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 8 / 24
![Page 24: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/24.jpg)
Red Hat Enterprise Linux (RHEL)
Targets enterprise-level servers
Stable and handles heavy loads well
Requires a small licensing fee for non-free software components andupdates
Useful if the target software/workload supports it; enterprise software
If not, better off using CentOS
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 8 / 24
![Page 25: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/25.jpg)
Red Hat Enterprise Linux (RHEL)
Targets enterprise-level servers
Stable and handles heavy loads well
Requires a small licensing fee for non-free software components andupdates
Useful if the target software/workload supports it; enterprise software
If not, better off using CentOS
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 8 / 24
![Page 26: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/26.jpg)
Red Hat Enterprise Linux (RHEL)
Targets enterprise-level servers
Stable and handles heavy loads well
Requires a small licensing fee for non-free software components andupdates
Useful if the target software/workload supports it; enterprise software
If not, better off using CentOS
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 8 / 24
![Page 27: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/27.jpg)
Red Hat Enterprise Linux (RHEL)
Targets enterprise-level servers
Stable and handles heavy loads well
Requires a small licensing fee for non-free software components andupdates
Useful if the target software/workload supports it; enterprise software
If not, better off using CentOS
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 8 / 24
![Page 28: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/28.jpg)
Gentoo
By default forces the compilation of software rather than grabbingprecompiled packages
Achieves great system optimizations if compiler options for the targetenvironment known
Useful if fine-grained control over each aspect of the system is required
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 9 / 24
![Page 29: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/29.jpg)
Gentoo
By default forces the compilation of software rather than grabbingprecompiled packages
Achieves great system optimizations if compiler options for the targetenvironment known
Useful if fine-grained control over each aspect of the system is required
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 9 / 24
![Page 30: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/30.jpg)
Gentoo
By default forces the compilation of software rather than grabbingprecompiled packages
Achieves great system optimizations if compiler options for the targetenvironment known
Useful if fine-grained control over each aspect of the system is required
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 9 / 24
![Page 31: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/31.jpg)
Arch
A distribution for experienced sysadmins
Useful if good low-level control over program execution required
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 10 / 24
![Page 32: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/32.jpg)
Arch
A distribution for experienced sysadmins
Useful if good low-level control over program execution required
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 10 / 24
![Page 33: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/33.jpg)
Outline
1 Operating Systems
2 Virtualization
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 11 / 24
![Page 34: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/34.jpg)
Virtual Machine Monitor or Hypervisor
Sits between one or more operating systems and the hardware
Multiplexes the hardware across OSes
Major advantage is server consolidation
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 12 / 24
![Page 35: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/35.jpg)
Virtual Machine Monitor or Hypervisor
Sits between one or more operating systems and the hardware
Multiplexes the hardware across OSes
Major advantage is server consolidation
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 12 / 24
![Page 36: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/36.jpg)
Virtual Machine Monitor or Hypervisor
Sits between one or more operating systems and the hardware
Multiplexes the hardware across OSes
Major advantage is server consolidation
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 12 / 24
![Page 37: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/37.jpg)
Xen
Hypervisor which enables many instances of different operatingsystems to run atop the same physical host
Used as the basis for a large number of applications: server anddesktop virtualization, IaaS, security, etc.
Powering some of the largest clouds in production
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 13 / 24
![Page 38: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/38.jpg)
Xen
Hypervisor which enables many instances of different operatingsystems to run atop the same physical host
Used as the basis for a large number of applications: server anddesktop virtualization, IaaS, security, etc.
Powering some of the largest clouds in production
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 13 / 24
![Page 39: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/39.jpg)
Xen
Hypervisor which enables many instances of different operatingsystems to run atop the same physical host
Used as the basis for a large number of applications: server anddesktop virtualization, IaaS, security, etc.
Powering some of the largest clouds in production
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 13 / 24
![Page 40: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/40.jpg)
Features
Small footprint (1MB in size) due to its microkernel design
Main device drivers for a system can be run within a VM to ensureisolation
Paravirtualized guests optimized to run as VMs enabling greaterperformance
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 14 / 24
![Page 41: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/41.jpg)
Features
Small footprint (1MB in size) due to its microkernel design
Main device drivers for a system can be run within a VM to ensureisolation
Paravirtualized guests optimized to run as VMs enabling greaterperformance
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 14 / 24
![Page 42: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/42.jpg)
Features
Small footprint (1MB in size) due to its microkernel design
Main device drivers for a system can be run within a VM to ensureisolation
Paravirtualized guests optimized to run as VMs enabling greaterperformance
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 14 / 24
![Page 43: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/43.jpg)
Architecture
The hypervisor runs directly atop the hardware
I In charge of handling CPU, memory, and I/O
Running instance of a VM is called domU or guestA special domain, called dom0, contains the drivers for all devices inthe system
I Also contains the interface for VM creation, termination, andconfiguration
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 15 / 24
![Page 44: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/44.jpg)
Architecture
The hypervisor runs directly atop the hardwareI In charge of handling CPU, memory, and I/O
Running instance of a VM is called domU or guestA special domain, called dom0, contains the drivers for all devices inthe system
I Also contains the interface for VM creation, termination, andconfiguration
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 15 / 24
![Page 45: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/45.jpg)
Architecture
The hypervisor runs directly atop the hardwareI In charge of handling CPU, memory, and I/O
Running instance of a VM is called domU or guest
A special domain, called dom0, contains the drivers for all devices inthe system
I Also contains the interface for VM creation, termination, andconfiguration
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 15 / 24
![Page 46: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/46.jpg)
Architecture
The hypervisor runs directly atop the hardwareI In charge of handling CPU, memory, and I/O
Running instance of a VM is called domU or guestA special domain, called dom0, contains the drivers for all devices inthe system
I Also contains the interface for VM creation, termination, andconfiguration
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 15 / 24
![Page 47: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/47.jpg)
Architecture
The hypervisor runs directly atop the hardwareI In charge of handling CPU, memory, and I/O
Running instance of a VM is called domU or guestA special domain, called dom0, contains the drivers for all devices inthe system
I Also contains the interface for VM creation, termination, andconfiguration
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 15 / 24
![Page 48: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/48.jpg)
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 16 / 24
![Page 49: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/49.jpg)
Xen-enabled operating systems
dom0 requires a Xen-enabled kernel
Similarly, paravirtualized guests also require a PV-enabled kernel
Most Linux distributions are Xen-enabled and by default contain theXen tool chain
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 17 / 24
![Page 50: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/50.jpg)
Xen-enabled operating systems
dom0 requires a Xen-enabled kernel
Similarly, paravirtualized guests also require a PV-enabled kernel
Most Linux distributions are Xen-enabled and by default contain theXen tool chain
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 17 / 24
![Page 51: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/51.jpg)
Xen-enabled operating systems
dom0 requires a Xen-enabled kernel
Similarly, paravirtualized guests also require a PV-enabled kernel
Most Linux distributions are Xen-enabled and by default contain theXen tool chain
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 17 / 24
![Page 52: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/52.jpg)
I/O
dom0 is in charge of all hardware
Based on the configuration of a domU, dom0 exports a subset of thedevices into that domUDevices are exported as “class devices”
I A block device or a network device, not as a specific hardware device
dom0 runs the backend of the device which is connected to thefrontend in the domU
I netback and netfront in case of network devices and blockback andblockfront in case of block devices
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 18 / 24
![Page 53: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/53.jpg)
I/O
dom0 is in charge of all hardware
Based on the configuration of a domU, dom0 exports a subset of thedevices into that domU
Devices are exported as “class devices”I A block device or a network device, not as a specific hardware device
dom0 runs the backend of the device which is connected to thefrontend in the domU
I netback and netfront in case of network devices and blockback andblockfront in case of block devices
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 18 / 24
![Page 54: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/54.jpg)
I/O
dom0 is in charge of all hardware
Based on the configuration of a domU, dom0 exports a subset of thedevices into that domUDevices are exported as “class devices”
I A block device or a network device, not as a specific hardware device
dom0 runs the backend of the device which is connected to thefrontend in the domU
I netback and netfront in case of network devices and blockback andblockfront in case of block devices
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 18 / 24
![Page 55: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/55.jpg)
I/O
dom0 is in charge of all hardware
Based on the configuration of a domU, dom0 exports a subset of thedevices into that domUDevices are exported as “class devices”
I A block device or a network device, not as a specific hardware device
dom0 runs the backend of the device which is connected to thefrontend in the domU
I netback and netfront in case of network devices and blockback andblockfront in case of block devices
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 18 / 24
![Page 56: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/56.jpg)
I/O
dom0 is in charge of all hardware
Based on the configuration of a domU, dom0 exports a subset of thedevices into that domUDevices are exported as “class devices”
I A block device or a network device, not as a specific hardware device
dom0 runs the backend of the device which is connected to thefrontend in the domU
I netback and netfront in case of network devices and blockback andblockfront in case of block devices
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 18 / 24
![Page 57: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/57.jpg)
I/O
dom0 is in charge of all hardware
Based on the configuration of a domU, dom0 exports a subset of thedevices into that domUDevices are exported as “class devices”
I A block device or a network device, not as a specific hardware device
dom0 runs the backend of the device which is connected to thefrontend in the domU
I netback and netfront in case of network devices and blockback andblockfront in case of block devices
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 18 / 24
![Page 58: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/58.jpg)
Linux Containers (LXC)
Partition the resources managed by the OS into individual silos
Instructions are run native to the core CPU
In contrast to virtualization, no overhead of instruction-level emulation
Applications presented the illusion of running on a separate machine
A number of underlying resources are shared
For instance, all containers share the same underlying kernel
Part of the main kernel tree
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 19 / 24
![Page 59: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/59.jpg)
Linux Containers (LXC)
Partition the resources managed by the OS into individual silos
Instructions are run native to the core CPU
In contrast to virtualization, no overhead of instruction-level emulation
Applications presented the illusion of running on a separate machine
A number of underlying resources are shared
For instance, all containers share the same underlying kernel
Part of the main kernel tree
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 19 / 24
![Page 60: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/60.jpg)
Linux Containers (LXC)
Partition the resources managed by the OS into individual silos
Instructions are run native to the core CPU
In contrast to virtualization, no overhead of instruction-level emulation
Applications presented the illusion of running on a separate machine
A number of underlying resources are shared
For instance, all containers share the same underlying kernel
Part of the main kernel tree
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 19 / 24
![Page 61: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/61.jpg)
Linux Containers (LXC)
Partition the resources managed by the OS into individual silos
Instructions are run native to the core CPU
In contrast to virtualization, no overhead of instruction-level emulation
Applications presented the illusion of running on a separate machine
A number of underlying resources are shared
For instance, all containers share the same underlying kernel
Part of the main kernel tree
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 19 / 24
![Page 62: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/62.jpg)
Linux Containers (LXC)
Partition the resources managed by the OS into individual silos
Instructions are run native to the core CPU
In contrast to virtualization, no overhead of instruction-level emulation
Applications presented the illusion of running on a separate machine
A number of underlying resources are shared
For instance, all containers share the same underlying kernel
Part of the main kernel tree
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 19 / 24
![Page 63: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/63.jpg)
Linux Containers (LXC)
Partition the resources managed by the OS into individual silos
Instructions are run native to the core CPU
In contrast to virtualization, no overhead of instruction-level emulation
Applications presented the illusion of running on a separate machine
A number of underlying resources are shared
For instance, all containers share the same underlying kernel
Part of the main kernel tree
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 19 / 24
![Page 64: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/64.jpg)
Linux Containers (LXC)
Partition the resources managed by the OS into individual silos
Instructions are run native to the core CPU
In contrast to virtualization, no overhead of instruction-level emulation
Applications presented the illusion of running on a separate machine
A number of underlying resources are shared
For instance, all containers share the same underlying kernel
Part of the main kernel tree
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 19 / 24
![Page 65: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/65.jpg)
Bridging and Filesystem
Linux bridge code is used to link the container to the network
Each virtual interface has two pairs: one inside the container, the otherend connected to the bridge
Also possible to create a filesystem for each container
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 20 / 24
![Page 66: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/66.jpg)
Bridging and Filesystem
Linux bridge code is used to link the container to the network
Each virtual interface has two pairs: one inside the container, the otherend connected to the bridge
Also possible to create a filesystem for each container
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 20 / 24
![Page 67: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/67.jpg)
Bridging and Filesystem
Linux bridge code is used to link the container to the network
Each virtual interface has two pairs: one inside the container, the otherend connected to the bridge
Also possible to create a filesystem for each container
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 20 / 24
![Page 68: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/68.jpg)
Kernel-based Virtual Machine (KVM)
Merges the hypervisor with the kernel
Reduces redundancy and speeds up execution times
KVM driver acts as the middleware between the kernel and auserspace VM
Scheduling of processes and memory management is handled by thekernel
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 21 / 24
![Page 69: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/69.jpg)
Kernel-based Virtual Machine (KVM)
Merges the hypervisor with the kernel
Reduces redundancy and speeds up execution times
KVM driver acts as the middleware between the kernel and auserspace VM
Scheduling of processes and memory management is handled by thekernel
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 21 / 24
![Page 70: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/70.jpg)
Kernel-based Virtual Machine (KVM)
Merges the hypervisor with the kernel
Reduces redundancy and speeds up execution times
KVM driver acts as the middleware between the kernel and auserspace VM
Scheduling of processes and memory management is handled by thekernel
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 21 / 24
![Page 71: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/71.jpg)
Kernel-based Virtual Machine (KVM)
Merges the hypervisor with the kernel
Reduces redundancy and speeds up execution times
KVM driver acts as the middleware between the kernel and auserspace VM
Scheduling of processes and memory management is handled by thekernel
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 21 / 24
![Page 72: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/72.jpg)
QEMU
Manages I/O and enables a virtual home for the guest OS
QEMU itself runs as a user-space process
Virtual processors within a virtual machine simply execute as threadsin the host process
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 22 / 24
![Page 73: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/73.jpg)
QEMU
Manages I/O and enables a virtual home for the guest OS
QEMU itself runs as a user-space process
Virtual processors within a virtual machine simply execute as threadsin the host process
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 22 / 24
![Page 74: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/74.jpg)
QEMU
Manages I/O and enables a virtual home for the guest OS
QEMU itself runs as a user-space process
Virtual processors within a virtual machine simply execute as threadsin the host process
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 22 / 24
![Page 75: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/75.jpg)
Advantages
Reuse of existing software and infrastructure
Seamlessly works across all platforms: from servers to embeddeddevices
Integrates with the existing Linux scheduler, I/O stack, and availablefilesystems
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 23 / 24
![Page 76: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/76.jpg)
Advantages
Reuse of existing software and infrastructure
Seamlessly works across all platforms: from servers to embeddeddevices
Integrates with the existing Linux scheduler, I/O stack, and availablefilesystems
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 23 / 24
![Page 77: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/77.jpg)
Advantages
Reuse of existing software and infrastructure
Seamlessly works across all platforms: from servers to embeddeddevices
Integrates with the existing Linux scheduler, I/O stack, and availablefilesystems
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 23 / 24
![Page 78: Topic 14: Operating Systems and Virtualization](https://reader031.vdocument.in/reader031/viewer/2022020306/546c91eab4af9f842c8b5144/html5/thumbnails/78.jpg)
References
1 Linux: The Operating System of the Cloud:http://www.linuxfoundation.org/sites/main/files/publications/linuxincloud.html
2 Choosing a Linux Distribution:http://www.rackspace.com/knowledge_center/article/choosing-a-linux-distribution
3 Xen Overview:http://wiki.xenproject.org/wiki/Xen_Overview
4 LXC: Linux container tools: http://www.ibm.com/developerworks/linux/library/l-lxc-containers/
5 Kernel-based virtualization with KVM:http://www.linux-magazine.com/content/download/62512/485179/file/Kernel_Based_Virtualization_With_KVM.pdf
Zubair Nabi 14: Operating Systems and Virtualization April 21, 2013 24 / 24