Virtualization: Difference between revisions
imported>Eric M Gearhart m (small copyedit) |
imported>Eric M Gearhart (trying to give a simple layman's example of virtualization) |
||
Line 2: | Line 2: | ||
In [[Computers|Computing]], '''Virtualization''' is a broad term that usually refers to the abstraction of resources on a computer. Usually this is accomplished using either a [[virtual machine]] or an [[operating system]] that has tools to enable virtual environments to run inside it. | In [[Computers|Computing]], '''Virtualization''' is a broad term that usually refers to the abstraction of resources on a computer. Usually this is accomplished using either a [[virtual machine]] or an [[operating system]] that has tools to enable virtual environments to run inside it. | ||
A simple way of looking at virtualization is that you run a "computer in a computer." | A simple way of looking at virtualization is that you run a "computer in a computer." As a simple example of this, you can run an [[NES]] emulator on a computer running Windows or Mac OS, allowing you to play games originally designed to run on an NES on your computer. This is one example of virtualization - you're running a "virtual" NES on your (Intel [[x86]]) computer. | ||
Terms used in this article refer to 'guests' and a 'host.' The host system is what runs the software that makes virtualization possible. A guest is an operating system that runs inside a host. | Terms used in this article refer to 'guests' and a 'host.' The host system is what runs the software that makes virtualization possible. A guest is an operating system that runs inside a host. |
Revision as of 05:39, 30 September 2007
In Computing, Virtualization is a broad term that usually refers to the abstraction of resources on a computer. Usually this is accomplished using either a virtual machine or an operating system that has tools to enable virtual environments to run inside it.
A simple way of looking at virtualization is that you run a "computer in a computer." As a simple example of this, you can run an NES emulator on a computer running Windows or Mac OS, allowing you to play games originally designed to run on an NES on your computer. This is one example of virtualization - you're running a "virtual" NES on your (Intel x86) computer.
Terms used in this article refer to 'guests' and a 'host.' The host system is what runs the software that makes virtualization possible. A guest is an operating system that runs inside a host.
There are several distinct types of virtualization. A description of several common ways of implementing virtualization follows.
OS Level Virtualization
Generally OS level virtualization involves one running kernel in a system, but several virtual environments running inside that kernel. OpenVZ, User Mode Linux and Solaris Zones are examples of virtualization solutions that utilize OS level virtualization.
Paravirtualization
When several 'virtual machines' run on top of a 'host' operating system, this is known as paravirtualization. When an operating system runs inside a virtual machine in this way it runs a completely seperate kernel, and in fact can be an entirely different operating system. There are real world examples of virtual machines running Microsoft Windows that run on top of a Linux server, for example. The reverse is also possible - Linux could run inside a virtual machine that runs on top of Windows Server for example.
Xen and VMware are two examples of software products that implement paravirtualization.
Virtual Machines built in to Operating Systems
For backwards compatibility, newer operating systems have used virtualization to support older software products that otherwise would have to be rewritten in order to run.
One example of this is in Microsoft Windows. When DOS programs are run in newer versions of Windows (versions based on Windows NT), a built-in virtual machine called NTVDM (the NT Virtual DOS Machine) is automatically started behind the scenes. The NTVDM runs DOS in a virtual machine on top of Windows. On Windows-based machines you can see this by going to Start, Run, typing in command.com and hitting OK. If you run Task Manager you can see the NTVDM.EXE process running.
Another example is in versions of Apple's Mac OS X. Just like Windows NT, OS X was a complete redesign from scratch, and programs written for its predecessor OS 9 could not run natively on OS X. A virtual machine called the Blue box was created to run a full copy of OS 9 on top of OS X, in order to allow older programs to still be run. When Apple moved off the PowerPC architecture to one based entirely on Intel's x86, the blue box became deprecated.