7 Distributed System notes: Virtualization (虚拟化)

What is virtualization?

Virtualization is the process of running a virtual instance of a computer system in a layer abstracted from the actual hardware. Most commonly, it refers to running multiple operating systems on a computer system simultaneously. To the applications running on top of the virtualized machine, it can appear as if they are on their own dedicated machine, where the operating system, libraries, and other programs are unique to the guest virtualized system and unconnected to the host operating system which sits below it.

  • 计算机系统的虚拟实例可以理解为运行在虚拟机软件上的操作系统。

  • 抽象层也是运行在计算机硬件的软件,比如说虚拟机软件(VMware Fusion 或VirtualBox)。

  • 一般来说,虚拟化指的是多个操作系统实例同时运行在同一个计算机系统(这指的是软件,同时这个操作系统运行在计算机硬件之上)中。

  • 多个操作系统之间相互独立,不同操作系统的软件也是相互独立的;同时虚拟化的操作系统实例与宿主操作系统也是独立的。
    在这里插入图片描述
    There are many reasons why people utilize virtualization in computing. To desktop users, the most common use is to be able to run applications meant for a different operating system without having to switch computers or reboot into a different system. For administrators of servers, virtualization also offers the ability to run different operating systems, but perhaps, more importantly, it offers a way to segment a large system into many smaller parts, allowing the server to be used more efficiently by a number of different users or applications with different needs. It also allows for isolation, keeping programs running inside of a virtual machine safe from the processes taking place in another virtual machine on the same host.

  • 计算机用户可以不必拥有多台计算机去同时运行多个操作系统,或者为了使用某个操作系统去重启切换操作系统。

  • 虚拟化更大的用处是根据不同用户的需求,让用户使用来自同一台服务器的不同操作系统的服务;这使服务器的效率最大化。

  • 虚拟化技术使运行操作系统之间相互隔离,这使安全性大大提高。

What is a hypervisor?

A hypervisor is a program for creating and running virtual machines. Hypervisors have traditionally been split into two classes: type one, or “bare metal” hypervisors that run guest virtual machines directly on a system’s hardware, essentially behaving as an operating system. Type two, or “hosted” hypervisors behave more like traditional applications that can be started and stopped like a normal program. In modern systems, this split is less prevalent, particularly with systems like KVM. KVM, short for kernel-based virtual machine, is a part of the Linux kernel that can run virtual machines directly, although you can still use a system running KVM virtual machines as a normal computer itself.

What is a virtual machine?

A virtual machine is the emulated equivalent of a computer system that runs on top of another system. Virtual machines may have access to any number of resources: computing power, through hardware-assisted but limited access to the host machine’s CPU and memory; one or more physical or virtual disk devices for storage; a virtual or real network inferface; as well as any devices such as video cards, USB devices, or other hardware that are shared with the virtual machine. If the virtual machine is stored on a virtual disk, this is often referred to as a disk image. A disk image may contain the files for a virtual machine to boot, or, it can contain any other specific storage needs.

What is the difference between a container and a virtual machine?

You may have heard of Linux containers, which are conceptually similar to virtual machines, but function somewhat differently. While both containers and virtual machines allow for running applications in an isolated environment, allowing you to stack many onto the same machine as if they are separate computers, containers are not full, independent machines. A container is actually just an isolated process that shared the same Linux kernel as the host operating system, as well as the libraries and other files needed for the execution of the program running inside of the container, often with a network interface such that the container can be exposed to the world in the same way as a virtual machine. Typically, containers are designed to run a single program, as opposed to emulating a full multi-purpose server.

References

What is virtualization?

Data-intensive Systems slides of University of St Andrews

发布了20 篇原创文章 · 获赞 3 · 访问量 251

猜你喜欢

转载自blog.csdn.net/qq_34515959/article/details/104034931