Is there such thing as "main" OS in case of type 1 hypervisor?

时间:2019-01-20 21:33:07

标签: virtual-machine virtualization hypervisor

When we work with type 2 hypervisors it is very easy to say which OS is the main one. For example, if you install some type 2 hypervisor on Win 7, and launch Win 95 inside this hypervisor, the main OS will be Win 7. The conception is obvious.

enter image description here

However, it's not so obvious with type 1 hypervisors. I never worked with them before.

You have few operating systems on top the hypervisor. So... Which one of these OSs will be the main one? How this question is resolved? And probably (just a guess) there is no such thing as "main OS" in this case?

enter image description here

2 个答案:

答案 0 :(得分:3)

我认为“主”操作系统不是一个定义的术语。

类型2虚拟机管理程序是操作系统的扩展,当来宾操作系统在其之上运行时,该操作系统称为主机操作系统。主机操作系统直接在硬件上运行,并且需要具有特定的代码才能与硬件(例如NIC,磁盘等)进行交互,并向用户级程序提供抽象。系统管理程序只是扩展了主机操作系统的功能,以允许来宾操作系统在顶部运行(例如,当来宾操作系统想要写入硬盘驱动器时,系统管理程序会将此请求转换为主机操作系统可以理解的形式,以便主机操作系统可以访问磁盘)。

类型1虚拟机管理程序直接在没有操作系统的硬件上运行。 Type 1虚拟机管理程序基本上只是一个精简的操作系统,具有允许来宾操作系统在顶部运行所需的功能。当访客需要写入磁盘或执行其他一些特权操作时,类型1虚拟机管理程序将接收请求并对其执行操作。也许类型1系统管理程序就是您认为的“主”操作系统?无论如何,我都会避免使用该术语。

答案 1 :(得分:2)

我认为“主要”操作系统将是Hypervisor软件本身,因为它直接在硬件上运行并支持虚拟操作系统,并在系统启动时启动。