System virtual machine

Operating system component

This article includes a list of general references, but it lacks sufficient corresponding inline citations. Please help to improve this article by introducing more precise citations. (February 2015) (Learn how and when to remove this message)

|

A system virtual machine (also called SysVM[1]) is a virtual machine (VM) that provides a complete system platform and supports the execution of a complete operating system (OS).[2] These usually emulate an existing architecture, and are built with the purpose of either providing a platform to run programs where the real hardware is not available for use (for example, executing on otherwise obsolete platforms), or of having multiple instances of virtual machines leading to more efficient use of computing resources, both in terms of energy consumption and cost effectiveness (known as hardware virtualization, the key to a cloud computing environment), or both. A VM was originally defined by Popek and Goldberg as "an efficient, isolated duplicate of a real machine".

## System virtual machines

[edit]

See also: Hardware virtualization and Comparison of platform virtualization software

System virtual machine advantages:

* Multiple OS environments can co-exist on the same primary hard drive, with a virtual partition that allows sharing of files generated in either the "host" operating system or "guest" virtual environment. Adjunct software installations, wireless connectivity, and remote replication, such as printing and faxing, can be generated in any of the guest or host operating systems. Regardless of the system, all files are stored on the hard drive of the host OS.
* Application provisioning, maintenance, high availability and disaster recovery are inherent in the virtual machine software selected.
* Can provide emulated hardware environments different from the host's instruction set architecture (ISA), through emulation or by using just-in-time compilation.

The main disadvantages of VMs are:

* A virtual machine is less efficient than an actual machine when it accesses the host hard drive indirectly.
* When multiple VMs are concurrently running on the hard drive of the actual host, adjunct virtual machines may exhibit a varying and/or unstable performance (speed of execution and malware protection). This depends on the data load imposed on the system by other VMs, unless the selected VM software provides temporal isolation among virtual machines.
* Malware protections for VMs are not necessarily compatible with the "host", and may require separate software.

Multiple VMs running their own guest operating system are frequently engaged for server consolidation in order to avoid interference from separate VMs on the same actual machine platform.

The desire to run multiple operating systems was the initial motivation for virtual machines, so as to allow time-sharing among several single-tasking operating systems. In some respects, a system virtual machine can be considered a generalization of the concept of virtual memory that historically preceded it. IBM's CP/CMS, the first systems to allow full virtualization, implemented time sharing by providing each user with a single-user operating system, the CMS. Unlike virtual memory, a system virtual machine entitled the user to write privileged instructions in their code. This approach had certain advantages, such as adding input/output devices not allowed by the standard system.[3]

As technology evolves virtual memory for purposes of virtualization, new systems of memory overcommitment may be applied to manage memory sharing among multiple virtual machines on one actual computer operating system. It may be possible to share "memory pages" that have identical contents among multiple virtual machines that run on the same physical machine, what may result in mapping them to the same physical page by a technique known as Kernel SamePage Merging. This is particularly useful for read-only pages, such as those that contain code segments; in particular, that would be the case for multiple virtual machines running the same or similar software, software libraries, web servers, middleware components, etc. The guest operating systems do not need to be compliant with the host hardware, thereby making it possible to run different operating systems on the same computer (e.g., Microsoft Windows, Linux, or previous versions of an operating system) to support future software.

The use of virtual machines to support separate guest operating systems is popular in regard to embedded systems. A typical use would be to run a real-time operating system simultaneously with a preferred complex operating system, such as Linux or Windows. Another use would be for novel and unproven software still in the developmental stage, so it runs inside a sandbox. Virtual machines have other advantages for operating system development, and may include improved debugging access and faster reboots.[4]

## Techniques

[edit]

Different virtualization techniques are used, based on the desired usage. Native execution is based on direct virtualization of the underlying raw hardware, thus it provides multiple "instances" of the same architecture a real machine is based on, capable of running complete operating systems. Some virtual machines can also emulate different architectures and allow execution of software applications and operating systems written for another CPU or architecture. Operating-system-level virtualization allows the resources of a computer to be partitioned via kernel's support for multiple isolated user space instances, which are usually called containers and may look and feel like real machines to the end users. Some computer architectures are capable of hardware-assisted virtualization, which enables efficient full virtualization by using virtualization-specific hardware capabilities, primarily from the host CPUs.

### Virtualization of the underlying raw hardware (native execution)

[edit]

See also: Hardware-assisted virtualization

This approach is described as full virtualization of the hardware, and can be implemented using a type 1 or type 2 hypervisor: a type 1 hypervisor runs directly on the hardware, and a type 2 hypervisor runs on another operating system, such as Linux or Windows. Each virtual machine can run any operating system supported by the underlying hardware. Users can thus run two or more different "guest" operating systems simultaneously, in separate "private" virtual computers.

The pioneer system using this concept was IBM's CP-40, the first (1967) version of IBM's CP/CMS (1967–1972) and the precursor to IBM's VM family (1972–present). With the VM architecture, most users run a relatively simple interactive computing single-user operating system, CMS, as a "guest" on top of the VM control program (VM-CP). This approach kept the CMS design simple, as if it were running alone; the control program quietly provides multitasking and resource management services "behind the scenes". In addition to CMS communication and other system tasks are performed by multitasking VMs (RSCS, GCS, TCP/IP, UNIX), and users can run any of the other IBM operating systems, such as MVS, even a new CP itself or now z/OS. Even the simple CMS could be run in a threaded environment (LISTSERV, TRICKLE). z/VM is the current version of VM, and is used to support hundreds or thousands of virtual machines on a given mainframe. Some installations use Linux on IBM Z to run Web servers, where Linux runs as the operating system within many virtual machines.

Full virtualization is particularly helpful in operating system development, when experimental new code can be run at the same time as older, more stable, versions, each in a separate virtual machine. The process can even be recursive: IBM debugged new versions of its virtual machine operating system, VM, in a virtual machine running under an older version of VM, and even used this technique to simulate new hardware.[NB 1]

The standard x86 instruction set architecture as used in the modern PCs does not actually meet the Popek and Goldberg virtualization requirements. Notably, there is no execution mode where all sensitive machine instructions always trap, which would allow per-instruction virtualization.

Despite these limitations, several software packages have managed to provide virtualization on the x86 architecture, even though dynamic recompilation of privileged code, as first implemented by VMware, incurs some performance overhead as compared to a VM running on a natively virtualizable architecture such as the IBM System/370 or Motorola MC68020. By now, several other software packages such as Virtual PC, VirtualBox, Parallels Workstation and Virtual Iron manage to implement virtualization on x86 hardware.

Intel and AMD have introduced features to their x86 processors to enable virtualization in hardware.

As well as virtualization of the resources of a single machine, multiple independent nodes in a cluster can be combined and accessed as a single virtual NUMA machine.[5]

### Emulation of a non-native system

[edit]

Virtual machines can also perform the role of an emulator, allowing software applications and operating systems written for another computer processor architecture to be run.

### Operating-system-level virtualization

[edit]

Main article: Operating-system-level virtualization

Operating-system-level virtualization is a server virtualization technology which virtualizes servers on an operating system (kernel) layer. It can be thought of as partitioning: a single physical server is sliced into multiple small partitions (otherwise called virtual environments (VE), virtual private servers (VPS), guests, zones, etc.); each such partition looks and feels like a real server, from the point of view of its users.

For example, Solaris Zones supports multiple guest operating systems running under the same operating system such as Solaris 10.[6] Guest operating systems can use the same kernel level with the same operating system version, or can be a separate copy of the operating system with a different kernel version using Solaris Kernel Zones.[7] Solaris native Zones also requires that the host operating system is a version of Solaris; other operating systems from other manufacturers are not supported.[citation needed] However, Solaris Branded Zones would need to be used to have other operating systems as zones.[citation needed]

Another example is System Workload Partitions (WPARs), introduced in version 6.1 of the IBM AIX operating system. System WPARs are software partitions running under one instance of the global AIX OS environment.

The operating system level architecture has low overhead that helps to maximize efficient use of server resources. The virtualization introduces only a negligible overhead and allows running hundreds of virtual private servers on a single physical server. In contrast, approaches such as full virtualization (like VMware) and paravirtualization (like Xen or UML) cannot achieve such level of density, due to overhead of running multiple kernels. From the other side, operating system-level virtualization does not allow running different operating systems (i.e., different kernels), although different libraries, distributions, etc. are possible. Different virtualization techniques are used, based on the desired usage. Native execution is based on direct virtualization of the underlying raw hardware, thus it provides multiple "instances" of the same architecture a real machine is based on, capable of running complete operating systems. Some virtual machines can also emulate different architectures and allow execution of software applications and operating systems written for another CPU or architecture. Operating-system-level virtualization allows the resources of a computer to be partitioned via kernel's support for multiple isolated user space instances, which are usually called containers and may look and feel like real machines to the end users. Some computer architectures are capable of hardware-assisted virtualization, which enables efficient full virtualization by using virtualization-specific hardware capabilities, primarily from the host CPUs.

## Virtualization-enabled hardware

[edit]

Examples of virtualization-enabled hardware include the following:

* ARM TrustZone
* Boston Circuits gCore (grid-on-chip) with 16 ARC 750D cores and Time-machine hardware virtualization module.
* Freescale PowerPC MPC8572 and MPC8641D
* IBM System/370, System/390, and zSeries mainframes with the interpretive-execution facility
* IBM Power Systems
* x86:
* AMD-V (formerly code-named Pacifica)
* Intel VT-x (formerly code-named Vanderpool)
* HP vPAR and cell based nPAR
* Oracle Corporation (previously Sun Microsystems) SPARC sun4v (SPARC M6, T5, T4, T3, UltraSPARC T1 and T2) - utilized by Oracle VM Server for SPARC, also known as "Logical Domains"

Examples of hardware with features to support emulation of non-native systems:

* Honeywell 200/2000 systems Liberator replacing IBM 14xx systems
* IBM System/360 and System/370 models with emulators supporting programs for older IBM systems

## See also

[edit]

* Amazon Machine Image
* Linux containers
* Storage hypervisor
* Universal Turing machine
* Virtual appliance
* Virtual backup appliance
* Virtual disk image
* Virtual machine escape

## Notes

[edit]

1. ^ See History of CP/CMS for IBM's use of virtual machines for operating system development and simulation of new hardware

## References

[edit]

1. ^ "On Expressing Different Concurrency Paradigms on Virtual Execution Systems". Proceedings of the 33rd Annual IEEE International Computer Software and Applications Conference, COMPSAC 2009. Seattle, Washington, USA. January 2009. doi:10.1109/COMPSAC.2009.102.
2. ^ "Virtual Machines: Virtualization vs. Emulation". Archived from the original on 2014-07-15. Retrieved 2011-03-11.
3. ^ Smith and Nair, pp. 395–396
4. ^ "Super Fast Server Reboots – Another reason Virtualization rocks". vmwarez.com. 2006-05-09. Archived from the original on 2006-06-14. Retrieved 2013-06-14.
5. ^ Matthew Chapman; Gernot Heiser (June 2009). "vNUMA: A virtual shared-memory multiprocessor" (PDF). Proceedings of the 2009 USENIX Annual Technical Conference. San Diego, CA, USA. Archived from the original (PDF) on 2009-09-13.
6. ^ "Oracle Solaris Zones Overview". docs.oracle.com. Retrieved 2015-06-26.
7. ^ "About Oracle Solaris Kernel Zones". docs.oracle.com. Retrieved 2015-06-26.

## Further reading

[edit]

* James E. Smith, Ravi Nair, Virtual Machines: Versatile Platforms For Systems And Processes, Morgan Kaufmann, May 2005, ISBN 1-55860-910-5, 656 pages (covers both process and system virtual machines)
* Craig, Iain D. Virtual Machines. Springer, 2006, ISBN 1-85233-969-1, 269 pages (covers only process virtual machines)

## External links

[edit]

* The Reincarnation of Virtual Machines, Article on ACM Queue by Mendel Rosenblum, Co-Founder, VMware

* v
* t
* e

Virtualization software

Comparison of platform virtualization software

Hardware
(hypervisors)|

| Native|

* Adeos
* CP/CMS
* Hyper-V
* KVM
* oVirt
* KubeVirt
* LDoms / Oracle VM Server for SPARC
* Logical partition (LPAR)
* LynxSecure
* PikeOS
* Proxmox VE
* QNX
* SIMMON
* VMware ESXi
* VMware vSphere
* vCloud
* VMware Infrastructure
* Xen
* XenServer
* XCP-ng
* XtratuM
* z/VM

|

Hosted|

| Specialized|

* Basilisk II
* Bochs
* Cooperative Linux
* DOSBox
* DOSEMU
* PCem
* 86Box
* PikeOS
* SheepShaver
* SIMH
* Windows on Windows
* Virtual DOS machine
* Win4Lin

|

Independent|

* bhyve
* Microsoft Virtual Server
* Parallels Workstation (Extreme)
* Parallels Desktop for Mac
* Parallels Server for Mac
* PearPC
* QEMU
* UTM
* VirtualBox
* Virtual Iron
* Virtual PC
* VMware Fusion
* VMware Server
* VMware Workstation (Player)

Tools|

* Ganeti
* System Center Virtual Machine Manager
* Virt-manager

Operating
system|

| OS containers|

* FreeBSD jail
* iCore Virtual Accounts
* Linux-VServer
* Linux Containers
* OpenVZ
* Solaris Containers
* Virtuozzo
* Workload Partitions

|

Application containers|

* Docker
* Podman
* lmctfy
* rkt

Virtual kernel architectures|

* Rump kernel
* User-mode Linux
* vkernel

Related kernel features|

* BrandZ
* cgroups
* chroot
* namespaces
* eBPF
* seccomp

Orchestration|

* Amazon ECS
* Kubernetes
* OpenShift

Desktop|

* Citrix Virtual Apps
* Citrix Virtual Desktops
* Remote Desktop Services
* VMware Horizon

Application|

* Ceedo
* Citrix Virtual Apps
* Dalvik
* InstallFree
* Microsoft App-V
* Remote Desktop Services
* Symantec Workspace Virtualization
* Turbo
* VMware ThinApp
* ZeroVM

Network|

* Distributed Overlay Virtual Ethernet (DOVE)
* Ethernet VPN (EVPN)
* NVGRE
* Open vSwitch
* Virtual security switch
* Virtual Extensible LAN (VXLAN)
* Generic Network Virtualization Encapsulation (GENEVE)

See also|

* BlueStacks

See also: List of emulators, List of computer system emulators
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template