IT109 Microsoft Windows 7 Operating Systems Unit 02

687 views
633 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
687
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
11
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

IT109 Microsoft Windows 7 Operating Systems Unit 02

  1. 1. Chapter 2 Introduction ( Pages 76-98) <ul><li>The second half of Chapter 2 covers virtualization technology, Debugging, OS Generation and the Boot Process. These powerpoints will skip the Debugging section, since that is a more involved section more suited to a programming class. </li></ul>
  2. 2. OS Layers and Modes <ul><li>Recall that with proper hardware support, an operating system can be written in “layers”. </li></ul><ul><li>A layer is an absract object composed of data and allowed operations. </li></ul><ul><li>Hardware is necessary to create modes that protect the resources of the lower layers. </li></ul><ul><li>Typically there will be a kernel mode and user mode, and sometimes other layers. </li></ul>
  3. 3. fg2_14
  4. 4. Virtualization <ul><li>Virtualization takes layers a step further: Since a virtual machine will run in kernel and user mode, this requires hardware support for a kernel and user mode for both the host and guest machine. </li></ul><ul><li>The host creates an illusion that the guest has a processor, memory and hardware all to itself. </li></ul><ul><li>Virtualilzation existed back in the 1970’s on IBM’s VM370, which could run several CMS single user interactive operating systems. </li></ul>
  5. 5. fg2_17
  6. 6. Virtualization Benefits <ul><li>Some Benefits of virtualization: </li></ul><ul><li>Share the same hardware to appear as separate computers </li></ul><ul><li>Host system is protected from the guest(s) </li></ul><ul><li>Guest operating systems are protected from each other </li></ul><ul><li>Run several OS at the same time (good for development, testing, QA, etc.) </li></ul><ul><li>Run old applications that require obsolete hardware </li></ul><ul><li>Sharing is possible between guests by: </li></ul><ul><li>Sharing a file system </li></ul><ul><li>Creating a virtual network and sharing over the network </li></ul>
  7. 7. Virtualization Methods <ul><li>Virtuallization can be implemented by several methods: </li></ul><ul><li>Sharing host hardware (system virtualization) requires kernel support, but is typically faster than simulation. </li></ul><ul><li>Simulation: Guest OS thinks it has different hardware. May be a bit slower since software emulates hardware. </li></ul><ul><li>Para-Virtualization: Guest presented with hardware “similar” to host machine, but requires guest to be modified to run on the para-virtualilzed hardware. The guest is NOT tricked into thinking it has it’s own machine, but the guest OS must have VM support. </li></ul><ul><li>Virtualization tool runs in user mode as an application </li></ul>
  8. 8. VMWare Workstation <ul><li>Virtualization Layer is a User Application </li></ul><ul><li>This Virtualization Layer is the interface between the host OS and the guest OS </li></ul><ul><li>It abstracts the hardware </li></ul><ul><li>The physical disk is just a file! </li></ul><ul><li>The virtualization layer is the heart of VMWare </li></ul><ul><li>Other similar products: Virtual PC, VirtualBox </li></ul>
  9. 9. fg2_19
  10. 10. 3 Virtualilzation Products <ul><li>We use 3 different products at this school, the first two supported by the lab imate: </li></ul><ul><li>VMWare Player </li></ul><ul><li>Microsoft Virtual PC </li></ul><ul><li>Oracle VirtualBox (on many Linux systems, but not installed on our Lab Computers). </li></ul>
  11. 11. Differrences between these 3 <ul><li>VMWare Player </li></ul><ul><li>Multi-Platform: versions for Windows, Linux, etc. </li></ul><ul><li>Full Featured VMWare Product similar to Workstation, but it’s free. Not just a player: you can install an OS. </li></ul><ul><li>Limitations: Can’t undo changes or choose boot device </li></ul><ul><li>Microsoft Virtual PC 2007 </li></ul><ul><li>A fully functional VM which also supports an “undo” disk </li></ul><ul><li>Host must be Windows OS </li></ul><ul><li>Oracle VirtualBox </li></ul><ul><li>Snapshots provide an elaborate “undo” capability </li></ul><ul><li>Multi-Platform, runs on Linux, Windows, etc. </li></ul>
  12. 12. Some other VM’s <ul><li>Java Virtual Machine (JVM) </li></ul><ul><li>Java is a popular object oriented language that will run a JVM </li></ul><ul><li>JVM is a specification for an abstract computer that runs “byte-codes”. Java is compiled to these byte-codes </li></ul><ul><li>Byte-codes can be run in hardware (a hardware JVM), or interpreted by software (slower), or compiled to the host’s instruction set using a “just-in-time” (JIT) compiler. This results in fast execution, almost as fast as code compiled for the host. </li></ul>
  13. 13. And then there was “dot-net” <ul><li>The .NET Framework is Microsoft’s creation </li></ul><ul><li>It’s a collection of technologies for developing software </li></ul><ul><li>Programmers don’t worry about hardware specifics </li></ul><ul><li>The execution environment abstracts the hardware details and provides a “virtual machine” </li></ul><ul><li>The core of .NET Framework is the “Common Language Runtime” or CLR. </li></ul><ul><li>CLR is the implementation of the .Net virtual machine </li></ul>
  14. 14. Operating System Generation <ul><li>It’s possible to create an OS for one machine at one site </li></ul><ul><li>This is not practical, so instead a process called System Gneration (or SYSGEN) will configure the OS for a site. </li></ul><ul><li>SYSGEN asks questions like: </li></ul><ul><ul><li>What is the CPU? </li></ul></ul><ul><ul><li>How is the boot disk formatted? </li></ul></ul><ul><ul><li>How much memory? </li></ul></ul><ul><ul><li>What devices available </li></ul></ul><ul><ul><li>What OS system options desired? </li></ul></ul><ul><li>The OS is configured at install time to meet these specs </li></ul><ul><li>SYSGEN is different than “SYSPREP” (discuss) </li></ul>
  15. 15. Boot Process <ul><li>After an OS is generated, it must be made available </li></ul><ul><li>The process of starting a computer and loading the kernel is called “booting the system” </li></ul><ul><li>Done by a small program called a “bootstrap program” or “bootstrap loader” that exists on the boot device </li></ul><ul><li>The bootstrap loader is stored in firmware (BIOS), and it loads a small program from the boot block. </li></ul>
  16. 16. Boot Process <ul><li>The boot block may be too small to hold a large loader program. Boot block [program] typically only knows the address on disk and the length of the rest of the bootstrap loader. </li></ul><ul><li>Boot block loads the rest of the loader, which loads the OS </li></ul><ul><li>Every OS must have a loader </li></ul><ul><li>GRUB is a Linux loader that can be used to boot Windows or Linux (or other OS) in a multi-boot environment. </li></ul>
  17. 17. A Few Miscelaneous Items <ul><li>Sometimes there is no boot loader: For small handheld devices (cell phones, etc.), the entire OS may reside in hardware (this is called firmware). Note: Methods are provided for updating firmware </li></ul><ul><li>Operating systems generally are composed of a kernel (or microkernel), and other support programs (called system programs), such as the command line interface (CLI) also called a command interpreter. </li></ul><ul><li>A microkernel is a small kernel that is stripped of non-essential programs which can be run at the higher user levels. This results in a smaller kernel. </li></ul>
  18. 18. Some Final Thoughts <ul><li>The OS installed on a Virtual Machine (using a virtualization layer like VMWare) thinks it has it’s own memory, it’s own disk, it’s own network card, etc. It has no idea it is running in a virtual environment. Thus, the OS requires no special changes to run virtually. </li></ul><ul><li>System Calls provide the interface to the Operating System, and it’s through system calls that the application programs obtain OS services. The set of available system calls is part of the API (application programming interface). </li></ul>
  19. 19. What Next? <ul><li>These short Powerpoints covered some highlights from the short book on Operating Systems that is part of this course. </li></ul><ul><li>Starting next class, we switch to the Microsoft book and install and learn about Windows 7 and the desktop environment (workstation and domain) </li></ul><ul><li>We will use VirtualPC for this class, and you will use that or VMWare for most of your classes here. </li></ul><ul><li>What about other VM options (Virtualbox?) – discuss </li></ul><ul><li>What are some VM skills and “Best Practices” </li></ul>
  20. 20. VM Best Practices <ul><li>Here are some “best practices” for VMs in this and other classes you may take </li></ul><ul><li>The virtual machine is really just a file! </li></ul><ul><li>Always make a copy of the virtual machine </li></ul><ul><li>When copying a machine, copy an entire folder! Treat the entire folder as a unit. It contains settings, suspended states, etc. </li></ul><ul><li>Make sure all files are stored in the folder on your USB hard drive. Some VMs like to put stuff in “Documents & Settings” on the host – yuk! You may need to set this up when you create the machine. Discuss </li></ul>

×