什么是虚拟机管理程序hypervisor,什么是hypervisor type 1, hypervisor type 2

article/2025/10/29 14:46:57

  服务器虚拟化目前是IT界的一个热门话题。它的受欢迎程度和使用率一直在增长,尤其是在企业环境中。使虚拟化成为可能的是所谓的hypervisor 管理程序。服务器虚拟化允许不同的操作系统在一台服务器上运行单独的应用程序,同时仍使用相同的物理资源。这些虚拟机使系统和网络管理员可以为需要运行的每个服务拥有专用的计算机。这不仅减少了所需的物理服务器数量,而且还节省了查找问题的时间。
在本文中,我们将讨论什么是虚拟机管理程序(hypervisor ),它们如何工作以及存在的不同类型。
在这里插入图片描述
在这里插入图片描述

什么是虚拟机监控程序?

  管理程序hypervisor,是使虚拟化成为可能的关键软件。它从实际硬件中提取来宾计算机及其运行的操作系统。

  系统管理程序创建一个虚拟化层,该层将CPU /处理器,RAM和其他物理资源与您创建的虚拟机分开。

  我们在其上安装虚拟机管理程序的计算机称为主机,而与之相对的是在主机上运行的来宾虚拟机。

  虚拟机管理程序模拟可用资源,以便客户机可以使用它们。无论使用虚拟机启动哪种操作系统,被启动的操作系统都会认为实际的物理硬件可供使用。

From a VM’s standpoint, there is no difference between the physical and virtualized environment. Guest machines do not know that the hypervisor created them in a virtual environment. Or that they are sharing available computing power. VMs run simultaneously with the hardware that powers them, and so they are entirely dependent on its stable operation.

Type 1 Hypervisor (also called bare metal or native)
Type 2 Hypervisor (also known as hosted hypervisors)

Type 1 Hypervisor

A bare-metal hypervisor (Type 1) is a layer of software we install directly on top of a physical server and its underlying hardware.

There is no software or any operating system in between, hence the name bare-metal hypervisor. A Type 1 hypervisor is proven in providing excellent performance and stability since it does not run inside Windows or any other operating system.

Type 1 hypervisors are an OS themselves, a very basic one on top of which you can run virtual machines. The physical machine the hypervisor is running on serves virtualization purposes only. You cannot use it for anything else.

Type 1 hypervisors are mainly found in enterprise environments.

在这里插入图片描述

type 1 Hypervisor example with virtual machines and physical server

Hypervisor Type 1 Performance

Given that type 1 hypervisors are relatively simple, they do not offer many functionalities.

Once you boot up a physical server with a bare-metal hypervisor installed, it displays a command prompt-like screen. If you connect a monitor to the server, what you get to see are some of the hardware and network details. This consists of the CPU type, the amount of memory, the IP address and the MAC address.

Below is an example of a VMware type 1 hypervisor’s screen after the server boots up.
在这里插入图片描述example of VMware hypervisor

Another type 1 hypervisor may look quite different but they also only allow for simple server configuration. This consists of changing the date and time, IP address, password, etc. In order to create virtual instances, you need a management console set up on another machine. Using the console, you can connect to the hypervisor on the server, and manage your virtual environment.

A management console can be web-based or a separate software package you install on the machine for which you want remote management. Depending on what functionalities you need, the license cost for management consoles varies substantially.

One action you can perform includes moving virtual machines between physical servers, manually or automatically. This move is based on resource needs of a VM at a given moment and happens without any impact to the end-users. It’s the same process if a piece of hardware or a whole server fails. Properly configured management software moves virtual machines to a working server as soon as an issue arises. The detection and restoration procedure takes place automatically and seamlessly.

One of the best features of type 1 hypervisors is that they allow for over-allocation of physical resources.

With type 1 hypervisors, you can assign more resources to your virtual machines than you have available. For example, if you have 128GB of RAM on your server and eight virtual machines, you can assign 24GB of RAM to each of them. This totals to 192GB of RAM, but VMs themselves will not actually consume all 24GB from the physical server. The VMs think they have 24GB when in reality they only use the amount of RAM they need to perform particular tasks.

The hypervisor allocates only the amount of necessary resources for an instance to be fully functional. This is one of the reasons all modern enterprise data centers, such as phoenixNAP, use type 1 hypervisors.

Type 1 Vendors

There are many different hypervisor vendors available. Most provide trial periods to test out their services before you buy them.

The licensing costs can be high if you want all the bells and whistles they have on offer.

These are the most common type 1 hypervisors:

VMware vSphere with ESX/ESXi

VMware is an industry-leading vendor of virtualization technology, and many large data centers run on their products. It may not be the most cost-effective solution for smaller IT environments. If you do not need all the advanced features VMware vSphere offers, there is a free version of this hypervisor and multiple commercial editions.

KVM (Kernel-Based Virtual Machine)

KVM is built into Linux as an added functionality. It lets you convert the Linux kernel into a hypervisor. It is sometimes confused with a type 2 hypervisor (see definition below). It has direct access to hardware along with virtual machines it hosts. KVM is an open-source hypervisor that contains all the features of Linux with the addition of many other functionalities. This makes it one of the top choices for enterprise environments. Some of the highlights include live migration, scheduling and resource control, alongside higher prioritization.

Microsoft Hyper-V

Despite VMware’s hypervisor being higher on the ladder with its numerous advanced features, Microsoft’s Hyper-V has become a worthy opponent. Microsoft also offers a free edition of their hypervisor, but if you want a GUI and additional functionalities, you will have to go for one of the commercial versions. Hyper-V may not offer as many features as VMware vSphere package, but you still get live migration, replication of virtual machines, dynamic memory and many other features.

Oracle VM

This hypervisor has open-source Xen at its core and is free. Advanced features are only available in paid versions. Even though Oracle VM is essentially a stable product, it is not as robust as vSphere, KVM or Hyper-V.

Citrix Hypervisor (formerly known as Xen Server)

This Server virtualization platform by Citrix is best suited for enterprise environments. It can handle all types of workloads and provides features for the most demanding tasks. Citrix is proud of its proprietary features, such as Intel and NVIDIA enhanced virtualized graphics and workload security with Direct Inspect APIs.

Type 2 Hypervisor

This type of hypervisor runs inside of an operating system of a physical host machine.

This is why we call type 2 hypervisors – hosted hypervisors. As opposed to type 1 hypervisors that run directly on the hardware, hosted hypervisors have one software layer underneath. In this case we have:

A physical machine.
An operating system installed on the hardware (Windows, Linux, macOS).
A type 2 hypervisor software within that operating system.
The actual instances of guest virtual machines.

digram of virtual machines, OS, and Hypervisors

Type 2 hypervisors are typically found in environments with a small number of servers.

What makes them convenient is that you do not need a management console on another machine to set up and manage virtual machines. You can do all of this on the server where you install the hypervisor. They are not any different from the other applications you have in your operating system.

When you launch a virtual machine, you get another window to perform all tasks.

Hypervisor Type 2 Performance

Hosted hypervisors essentially also act as management consoles for virtual machines, you can perform any task using the built-in functionalities.

There is no need to install separate software on another machine to create and maintain your virtual environment. You simply install and run a type 2 hypervisor as you would any other application within your OS. With it, you can create snapshots or clone your virtual machines, import or export appliances, etc.

Here is one example of a type 2 hypervisor interface (VirtualBox by Oracle):

virtalbox

You do need to be careful when allocating actual resources with this type of hypervisor.

Bare-metal hypervisors can dynamically allocate available resources depending on the current needs of a particular VM. A type 2 hypervisor occupies whatever you allocate to a virtual machine.

When you assign 8GB of RAM to a VM, that amount will be taken up even if the VM is using only a fraction of it. If the host machine has 32GB of RAM and you create three VMs with 8GB each, you are left with 8GB of RAM to keep the physical machine running. Creating another VM with 8GB of ram would bring down your system. This is critical to keep in mind, so as to avoid over-allocating resources and crashing the host machine.

Type 2 hypervisors are convenient for testing new software and research projects.

It is possible to use one physical machine to run multiple instances with different operating systems to test how an application behaves in each environment or to create a specific network environment. You only need to make sure that there are enough physical resources to keep both the host and the virtual machines running.

Type 2 Vendors

As is the case with bare-metal hypervisors, you can choose between numerous vendors and products. Conveniently, many type 2 hypervisors are free in their basic versions and provide sufficient functionalities.

Some even provide advanced features and performance boosts when you install add-on packages, free of charge. We will mention a few of the most used hosted hypervisors:

Oracle VM VirtualBox

A free but stable product with enough features for personal use and most use cases for smaller businesses. VirtualBox is not resource demanding, and it has proven to be a good solution for both desktop and server virtualization. It provides support for guest multiprocessing with up to 32 vCPUs per virtual machine, PXE Network boot, snapshot trees, and much more.

VMware Workstation Pro/VMware Fusion

VMware Workstation Pro is a type 2 hypervisor for Windows OS. It is full of advanced features and has seamless integration with vSphere. This allows you to move your apps between desktop and cloud environments.

It does come with a price tag, as there is no free version. If you want to take a glimpse into VMware hosted hypervisors free of charge, you can try VMware Workstation Player. This is the basic version of the hypervisor suitable for small sandbox environments.

For MacOS users, VMware has developed Fusion that is similar to their Workstation product. It comes with somewhat fewer features, but also carries a smaller price tag.

Windows Virtual PC

It only supports Windows 7 as a host machine and Windows OS on guest machines. This includes multiple versions of Windows 7 and Vista, as well as XP SP3. Virtual PC is completely free.

Parallels Desktop

A competitor to VMware Fusion. It is primarily intended for MacOS users and offers plenty of features depending on the version you purchase. Some of the features are network conditioning, integration with Chef/Ohai/Docker/Vagrant, support for up to 128GB per VM, etc.

Type 1 vs. Type 2 Hypervisor

Choosing the right type of hypervisor strictly depends on your individual needs.

The first thing you need to keep in mind is the size of the virtual environment you intend to run.

For personal use and smaller deployments, you can go for one of the type 2 hypervisors. If budget is not an issue, VMware will provide every feature you need. Otherwise, Oracle VM VirtualBox is a hypervisor that will provide most of the functionalities generally needed.

Enterprise Environments

Even though type 1 hypervisors are the way to go, you do need to take into consideration many factors before making a decision.

The critical factor is usually the licensing cost. This is where you need to pay extra attention since licensing may be per server, per CPU or sometimes even per core. In the current market, there is a battle going on between VMware vSphere and Microsoft Hyper-V. While Hyper-V was falling behind a few years ago, it has now become a valid choice, even for larger deployments. The same argument can be made for KVM.

Many vendors offer multiple products and layers of licenses to accommodate any organization. You may want to create a list of the requirements. Such as, how many VMs you need, maximum allowed resources per VM, nodes per cluster, specific functionalities, and then check which of these products best fits your needs. Note: trial periods can be very useful when testing for which hypervisor to choose.

In Closing

This article has explained what a hypervisor is and the types of hypervisors (type 1 and type 2) you can use.

Hypervisor vendors offer packages that contain multiple products with different licensing agreements. You will need to research the options thoroughly before making a final decision. Even though you can migrate between the hypervisors, this can be a tedious and expensive process. It’s best to get this decision right from the get go.

文章参考:https://phoenixnap.com/kb/what-is-hypervisor-type-1-2


http://chatgpt.dhexx.cn/article/ATabZhAo.shtml

相关文章

了解以及区分物理机,虚拟机(hypervisor/VMM) 和 容器(Docker)的适用场景

了解以及区分物理机,虚拟机hypervisor/VMM 和 容器Docker的适用场景 Abbreviations物理机和虚拟机以及容器的区别动机motivation:为什么要有虚拟机物理机:虚拟机容器 虚拟机的种类以及他们的本质区别虚拟化方式虚拟机类型docker技术传统计算机体系结构虚…

虚拟化与hypervisor

文章目录 虚拟化HypervisorHypervisor分类Hypervisor优点Container vs HypervisorHypervisorContainer 虚拟化 虚拟化通过将公司的物理资源视为可以动态分配虚拟资源的池,从而提高了IT资源的利用率。 虚拟化涉及从物理思维到逻辑思维的转变,将IT资源视…

Hypervisor 简介

单词解释 Hypervisor:超级监督者,管理程序 虚拟化技术 概念 一种运行在基础物理服务器和操作系统之间的中间软件层,可以访问服务器上包括磁盘和内存在内的所有物理设备。Hypervisor协调着这些硬件资源的访问,以及各个虚拟机之间…

Hypervisor技术

KVM介绍 KVM内置于Linux,是内核模块;KVM可以直接利用Linux来做一些在xen中需要利用hypervisor来做的事情,比如任务调度,内存管理等等。所以相比之下,KVM更轻量,更易管理,并且版本更新也可以随着…

hypervisor详解

hypervisor:一种运行在物理服务器和操作系统之间的中间层软件,可以允许多个操作系统和应用共享一套基础物理硬件。可以将hypervisor看做是虚拟环境中的“元”操作系统,可以协调访问服务器上的所有物理设备和虚拟机,所以又称为虚拟…

Hypervisor简介

从头开始了解和使用Hypervisor(第4部分) - 嘶吼 RoarTalk – 回归最本质的信息安全,互联网安全新媒体,4hou.com 根据 Hypervisor 的不同类型,我们将虚拟化分为I 型和 II 型两种。 I 型虚拟化,也被称为裸金属虚拟化,Hy…

什么是Hypervisor

根据维基百科:“Hypervisor 或者virtual machine monitor (VMM)是创造并且运行虚拟机的软件、固件、或者硬件”。 通俗来讲,Hypervisor是一种将操作系统与硬件抽象分离的方法,以达到host machine的硬件能同时运行一个至多个虚拟机作为guest …

虚拟化技术介绍 hypervisor简介

什么是虚拟化? 虚拟化(英语:Virtualization)是一种资源管理技术,是将计算机的各种实体资源,如服务器、网络、内存及存储等,予以抽象、转换后呈现出来,打破实体结构间的不可切割的障…

Hypervisor

1 什么是Hypervisor? Hypervisor是一种系统软件,它充当计算机硬件和虚拟机之间的中介,负责有效地分配和利用由各个虚拟机使用的硬件资源,这些虚拟机在物理主机上单独工作,因此,Hypervisor也称为虚拟机管理…

2020-12-01 剖析 Linux hypervisor

hypervisor:一种运行在物理服务器和操作系统之间的中间层软件,可以允许多个操作系统和应用共享一套基础物理硬件。可以将hypervisor看做是虚拟环境中的“元”操作系统,可以协调访问服务器上的所有物理设备和虚拟机,所以又称为虚拟…

Hypervisor定义、种类及产品介绍

Hypervisor 是一种运行在物理服务器和操作系统之间的中间软件层(可以是软件程序,也可以是固件程序),Hypervisor 分两种,一种是直接运行在硬件设备上的;另一种是运行在具有虚拟化功能的操作系统上的。 Hyper…

剖析 Linux hypervisor KVM

Linux 的最重要创新之一就是转变为hypervisor(或运行其他操作系统的操作系统)。现在涌现许多使用 Linux 作为内核的 hypervisor 解决方案。本文探索 hypervisor 背后的原理,以及两个使用 Linux 作为平台的 hypervisor(KVM 和 Lguest)。 hypervisor 之于操作系统类似于操作…

Hypervisor介绍

一、单词释义: Hypervisor:超级监督者,管理程序; 二、虚拟化技术: 1.概念: 运行在基础物理服务器和操作系统之间的中间软件层,可以访问服务器上包括磁盘和内存在内的所有物理设备。Hypervis…

趣味俄罗斯方块代码分享(C语言)

趣味俄罗斯方块代码分享(C语言) 代码源自明日科技编著的《C语言项目开发|实战入门》,书中是使用Dev c/Visual C6.0编写,我是将代码在VC2019中重新编写,部分地方有修改。 操作系统:win 10 编译软件&#x…

【c语言小项目】基于easyX的俄罗斯方块

EeayX是针对 C/C 的简单图形库插件,本项目基于easyX游戏框架下实现俄罗斯方块游戏。 俄罗斯方块功能实现中主要运用了二维数组的循环遍历。能够实现基本功能,暂未实现旋转 c语言系列专栏:c语言之路重点知识整合 更多【c语言】小项目&…

c语言俄罗斯方块程序设计论文,c语言俄罗斯方块游戏程序设计报告

c语言俄罗斯方块游戏程序设计报告 俄罗斯方块程序设计报告 2018-7-1511 计本(2)班 卢文俊C 语言课程设计报告主标题: C 语言课程设计 副标题: 俄罗斯方块游戏 ----界面设计姓 名: 卢文俊 指导教师: 刘慧 院 系: 信息工…

【C语言程序设计】开源俄罗斯方块的代码的改进以及分析

实验二 数据类型运算符与表达式 实验三 选择结构程序设计 实验四 循环结构序设计 实验五 数组和字符串 实验六 函数 实验七 指针 实验八 结构体与文件读写 结课实验 俄罗斯方块小游戏 目录 前言 核心代码解析 1.定位程序 2.页面设计 3.文本读写 4.隐藏光标 结语 前言 这…

俄罗斯方块—C语言

思路: 1.初始化界面,用一个矩阵来保存界面的每一个位置,包括颜色跟数值,数值用来区分是墙还是方块还是空格,便于运行时的判断。 2.初始化方块,用4*4矩阵保存,1表示方块,0表示空格。…

俄罗斯方块c语言代码及注释,C语言代码实现俄罗斯方块

这里为大家敲写一段怎样用C语言实现俄罗斯方块: 首先推荐大家使用CodeBlocks这个软件,方便添加不同的工程。 代码中有很多注释便于理解! 下面是效果图和全部的代码以及注释,大家可以观看并自己新增内容! 1、首先是main.c文件: #include #include #include "game.h…

【C语言】百行代码实现—俄罗斯方块

文章目录 自述整体框架和流程开始游戏页面设计游戏设计流程介绍 注意可执行源码-全部 自述 这个代码是19年的末尾写的,最近就想着想把这个用博客分享出来,一方面是为了巩固自己的知识,另一方面也希望同学们能够因为这篇文章有所收获&#xf…