CS-3013 & CS-502, Summer 2006 Virtual Machine Systems1 CS-502 Operating Systems Slides excerpted from Silbershatz, Ch. 2.

Slides:



Advertisements
Similar presentations
Operating Systems Components of OS
Advertisements

Chap 2 System Structures.
Introduction to Operating Systems CS-2301 B-term Introduction to Operating Systems CS-2301, System Programming for Non-majors (Slides include materials.
3.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 3: Operating-System Structures System Components Operating System.
1/21/2008CSCI 315 Operating Systems Design1 Operating System Structures Notice: The slides for this lecture have been largely based on those accompanying.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
1/28/2004CSCI 315 Operating Systems Design1 Operating System Structures & Processes Notice: The slides for this lecture have been largely based on those.
Common System Components
VirtualizationCS-502 Fall Virtualization CS-502 Operating Systems Fall 2006 (Slides include materials from Operating System Concepts, 7 th ed., by.
Os31 Chapter 3 Operating-System Structures. os32 Outlines System Components Operating System Services System Calls System Programs System Structure Virtual.
A. Frank - P. Weisberg Operating Systems Structure of Operating Systems.
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
Role Of Virtual Machine In Operating System By- Name: Abdul Mobin KSU ID:
Virtual Machine Monitors CSE451 Andrew Whitaker. Hardware Virtualization Running multiple operating systems on a single physical machine Examples:  VMWare,
The Origin of the VM/370 Time-sharing system Presented by Niranjan Soundararajan.
Virtualization 101.
Paper on Best implemented scientific concept for E-Governance Virtual Machine By Nitin V. Choudhari, DIO,NIC,Akola By Nitin V. Choudhari, DIO,NIC,Akola.
Virtualization Technology Prof D M Dhamdhere CSE Department IIT Bombay Moving towards Virtualization… Department of Computer Science and Engineering, IIT.
Tanenbaum 8.3 See references
Operating System Virtualization
Paper on Best implemented scientific concept for E-Governance projects Virtual Machine By Nitin V. Choudhari, DIO,NIC,Akola.
Zen and the Art of Virtualization Paul Barham, et al. University of Cambridge, Microsoft Research Cambridge Published by ACM SOSP’03 Presented by Tina.
Microkernels, virtualization, exokernels Tutorial 1 – CSC469.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Silberschatz, Galvin and Gagne  Applied Operating System Concepts Chapter 3: Operating-System Structures System Components OS Services System.
CS533 Concepts of Operating Systems Jonathan Walpole.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 14, 2005 Operating System.
Introduction to Operating Systems Chapter 1. cs431 -cotter2 Lecture Objectives Understand the relationship between computing hardware, operating system,
Introduction 1-1 Introduction to Virtual Machines From “Virtual Machines” Smith and Nair Chapter 1.
Silberschatz and Galvin  Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services System Calls.
The IBM VM CS450/550 Section 2 Stephen Kam. IBM VM - Origins Originally an experimental OS called “CP-67” Designed to run on the IBM System/360 Model.
3.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 3: Operating-System Structures System Components Operating System.
 Virtual machine systems: simulators for multiple copies of a machine on itself.  Virtual machine (VM): the simulated machine.  Virtual machine monitor.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services.
3.1 Operating System Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual.
1 CSE Department MAITSandeep Tayal Operating-System Structures System Components Operating System Services System Calls System Programs System Structure.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 3 Operating-System Structures Slide 1 Chapter 3 Operating-System Structures.
A. Frank - P. Weisberg Operating Systems Structure of Operating Systems.
Full and Para Virtualization
Operating-System Structures
Protection of Processes Security and privacy of data is challenging currently. Protecting information – Not limited to hardware. – Depends on innovation.
Cloud Computing Lecture 5-6 Muhammad Ahmad Jan.
Virtual Machines. A virtual machine takes the layered approach to its logical conclusion. It treats hardware and the operating system kernel as though.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
VIRTUAL MACHINE – VMWARE. VIRTUAL MACHINE (VM) What is a VM? – A virtual machine (VM) is a software implementation of a computing environment in which.
1.2 Operating System Structure. 1. Monolithic System The earliest and most common OS architecture. Every component of OS contained in the kernel and can.
Module 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
Introduction to Virtualization
Virtual Machine Monitors
Module 3: Operating-System Structures
Agenda Hardware Virtualization Concepts
Operating System Structure
Operating System Structure
1. 2 VIRTUAL MACHINES By: Satya Prasanna Mallick Reg.No
Virtual Machines.
Virtualization 101.
Virtualization Techniques
Chapter 3: Operating-System Structures
Chapter 1 Introduction to Operating System Part 5
Outline Chapter 2 (cont) OS Design OS structure
CSE 451: Operating Systems Autumn Module 24 Virtual Machine Monitors
Introduction to Virtual Machines
Outline Operating System Organization Operating System Examples
System calls….. C-program->POSIX call
Introduction to Virtual Machines
CSE 451: Operating Systems Autumn Module 24 Virtual Machine Monitors
Hypervisor A hypervisor or virtual machine monitor (VMM) is computer software, firmware or hardware that creates and runs virtual machines. A computer.
Presentation transcript:

CS-3013 & CS-502, Summer 2006 Virtual Machine Systems1 CS-502 Operating Systems Slides excerpted from Silbershatz, Ch. 2

CS-3013 & CS-502, Summer 2006 Virtual Machine Systems2 Question Can a “small” operating system simulate the hardware of some machine so that –Another operating system can run in that simulated hardware? –More than one instance of that operating system run on the same hardware at the same time? –More than one different operating system can share the same hardware at the same time? Answer: Yes

CS-3013 & CS-502, Summer 2006 Virtual Machine Systems3 Solution – Virtual Machine A virtual machine provides interface identical to underlying bare hardware –I.e., all devices, interrupts, memory, page tables, etc. Virtual Machine Operating System creates illusion of multiple processors & memories –Each capable of executing independently –No sharing, except via network protocols

CS-3013 & CS-502, Summer 2006 Virtual Machine Systems4 History – CP67 / CMS IBM Cambridge Scientific Center Ran on IBM 360/67 Alternative to TSS/360, which was never very popular Replicated hardware in each “process” Virtual 360/67 processor and memory Virtual disk(s), virtual console, printer, card reader, etc. CMS: Cambridge Monitor System A single user, interactive operating system Commercialized as VM370 in mid-1970s

CS-3013 & CS-502, Summer 2006 Virtual Machine Systems5 History (continued) Various other attempts with other machines VMware –Workstation –Servers (for IT centers)

CS-3013 & CS-502, Summer 2006 Virtual Machine Systems6 Virtual Machines (continued) The resources of the physical computer are shared to create the virtual machines –CPU scheduling can create the appearance that each user has own processor –Spooling and a file system provide virtual card readers, virtual line printers –Disk partitioned to provide virtual disks –A normal user time-sharing terminal serves as the virtual machine operator’s console

CS-3013 & CS-502, Summer 2006 Virtual Machine Systems7 Virtual Machines (continued) (a) Nonvirtual machine (b) virtual machine Non-virtual Machine Virtual Machine

CS-3013 & CS-502, Summer 2006 Virtual Machine Systems8 Definitions Host Operating System: –The operating system actually running on the hardware –Together with virtualization layer, it simulates environment for … Guest Operating System: –The operating system running in the simulated environment –E.g., the one we are trying to debug

CS-3013 & CS-502, Summer 2006 Virtual Machine Systems9 Virtual Machines (continued) Virtual-machine concept provides complete protection of system resources –Each virtual machine is isolated from all other virtual machines. –However, no direct sharing of resources Virtual-machine system is a good vehicle for operating- systems research and development. –System development is done on the virtual machine does not disrupt normal operation –Multiple concurrent developers can work at same time The virtual machine concept is difficult to implement due to the effort required to simulate an exact duplicate of the underlying hardware

CS-3013 & CS-502, Summer 2006 Virtual Machine Systems10 Example – Page tables Suppose guest OS has its own page tables Then virtualization layer must –Transcribe those tables to host page tables –Trap all references & updates to guest page tables and simulate them in host tables During page fault –Virtualization layer must decide whether fault belongs to guest OS or self –If guest OS, must simulate a page fault Likewise, virtualization layer must trap and simulate every privileged instruction in machine!

CS-3013 & CS-502, Summer 2006 Virtual Machine Systems11 Virtual Machines (continued) Some hardware architectures or features are impossible to virtualize –Certain registers or state not exposed –Unusual devices and device control –Clocks, time, and real-time behavior

CS-3013 & CS-502, Summer 2006 Virtual Machine Systems12 VMware – Modern Virtual Machine System Founded 1998, Mendel Rosenblum et al. Research at Stanford University VMware Workstation Separates Host OS from virtualization layer Host OS may be Windows, Linux, etc. Wide variety of Guest operating systems < $200

CS-3013 & CS-502, Summer 2006 Virtual Machine Systems13 VMware Architecture

CS-3013 & CS-502, Summer 2006 Virtual Machine Systems14 VMware Server Free version released in Runs on any x86 server hardware and OS Windows Server and Linux Host OS’s Partition a physical server into multiple virtual server machines Target market – IT centers providing multiple services Allows separate virtual servers to be separately configured for separate IT applications –Provisioning Portability, replication, etc.

CS-3013 & CS-502, Summer 2006 Virtual Machine Systems15 VMware Server ESX Total decoupling between hardware and applications High-end, high-performance IT centers with multiple applications Oracle, SQL Server, Microsoft Exchange server, SAP, Siebel, Lotus Notes, BEA WebLogic, Apache Dynamically move running application to different hardware Maintenance, hardware replacement Provisioning new versions, etc.

CS-3013 & CS-502, Summer 2006 Virtual Machine Systems16 Must virtual machine be replica of host machine? No, virtualization layer can simulate any architecture Typically used for debugging specialized systems Real-time systems, niche products, etc. Guest architecture does not even have to be real hardware!

CS-3013 & CS-502, Summer 2006 Virtual Machine Systems17 The Java Virtual Machine Own idealized architecture Stylized machine language Byte codes Readily available interpreter

CS-3013 & CS-502, Summer 2006 Virtual Machine Systems18 Questions?