Does a Type 2 virtual host suffer the same limitations as the host OS?

萝らか妹 提交于 2020-01-06 15:09:54

问题


Does the host OS impose limitations on the guest OS for a Type 2 virtual host (i.e. VirtualBox)?

For example: In Ruby, creating a child process is as easy as making a call to fork. However, forking on windows is not supported and instead an entire process must be spawned for multithreaded.

As I understand, this is a limitation of the operating system and not the programming language. Will having Windows as the host OS force these restrictions on a linux guest OS?

How are commands given to the guest OS passed to the host OS?


回答1:


Short answer: No

Longer answer:

A type-2 hypervisor such as VirtualBox emulates the entire hardware platform that the guest (such as Linux) runs on. As such, the guest OS does not actually call any host OS system calls, which allows the guest to bypass any limitations of the host OS (such as the forking limitation on Windows).



来源:https://stackoverflow.com/questions/34320605/does-a-type-2-virtual-host-suffer-the-same-limitations-as-the-host-os

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!