OS Unit 5
OS Unit 5
• Another (older) way for running one operating system on a different operating system
• Virtualization requires underlying CPU to be same as guest was compiled for
• Emulation allows guest to run on different CPU
• Necessary to translate all guest instructions from guest CPU to native CPU
• Emulation, not virtualization
• Useful when host system has one architecture, guest compiled for other architecture
• Company replacing outdated servers with new servers containing different CPU architecture, but still
want to run old applications
• Performance challenge – order of magnitude slower than native code
• New machines faster than older machines so can reduce slowdown
• Very popular – especially in gaming where old consoles emulated on new
Types of VMs – Application Containment
• OS Virtualization
• With the help of OS virtualization nothing is pre-installed or permanently loaded on the local device and no-hard
disk is needed. Everything runs from the network using a kind of virtual disk. This virtual disk is actually a disk
image file stored on a remote server, SAN (Storage Area Network) or NAS (Non-volatile Attached Storage). The
client will be connected by the network to this virtual disk and will boot with the Operating System installed on
the virtual disk.
• How does OS Virtualization works?
• Components needed for using OS Virtualization in the infrastructure are given below:
• The first component is the OS Virtualization server. This server is the center point in the OS Virtualization
infrastructure. The server manages the streaming of the information on the virtual disks for the client and also
determines which client will be connected to which virtual disk (using a database, this information is stored). Also
the server can host the storage for the virtual disk locally or the server is connected to the virtual disks via a SAN
(Storage Area Network). In high availability environments there can be more OS Virtualization servers to create
no redundancy and load balancing. The server also ensures that the client will be unique within the infrastructure.
• Secondly, there is a client which will contact the server to get connected to the virtual disk and asks for
components stored on the virtual disk for running the operating system.
Virtualization and Operating-System Components