Score:0

Can VMs run on raw HW or do they neeed an OS?

cn flag
Jim

I have a general question about Virtual Machines.
It is not clear to me if I need an operating system at the lower level and then install the VM and on top of that the rest or I can install a VM without any OS present.
Could someone clarify?

Michael Hampton avatar
cz flag
https://en.wikipedia.org/wiki/Hypervisor
Jim avatar
cn flag
Jim
@MichaelHampton: Based on the wiki if the VM has a type-1 hypervisor it runs directly on HW? Is the hypervisor an OS?
Michael Hampton avatar
cz flag
That is answered in the wikipedia article already.
Jim avatar
cn flag
Jim
@MichaelHampton: I am not sure if the wiki is purely theoretical. The way it is phrased there sounds like a theoretical clasification but not what actually implementations offer. At least this is what I get from the sentence mentioning KVMs. that convert the hostOS to something else.Am I misunderstanding this?
Michael Hampton avatar
cz flag
No, you actually understood that bit correctly. There is a long standing argument about whether KVM on Linux is a type 1 or type 2 hypervisor. In practice it doesn't matter much.
Score:1
uz flag

A VM is, by definition, an operating system running inside an operating system. So no, you can't run a VM directly on hardware.

There are always exceptions to rules, and a VM with a VHD for a disk is kind of one. Windows allows you to boot from a VHD file. But none of the settings of the VM (RAM, network configuration, other storage configuration, etc.) are used, and the guest OS inside the VHD has to support the hardware directly instead of the virtual hardware typically provided by the hypervisor.

Jim avatar
cn flag
Jim
What is a "VHD"?
Jim avatar
cn flag
Jim
So what is meant with Hardware virtualization then?
uz flag
"Hardware virtualization" is an ambiguous term. It could mean one of many different things, none of which allow "install a VM without any OS present".
uz flag
A VHD is a "Virtual Hard Disk", a Microsoft file format for virtualizing a hard drive for a VM.
Jim avatar
cn flag
Jim
how about as phrased here? https://www.vmware.com/topics/glossary/content/virtual-machine Is that some specific kind of VM?
Jim avatar
cn flag
Jim
Does hypervisor that you also mention run on top of the OS or interacts with hw drivers directly?
Jim avatar
cn flag
Jim
Is hypervisor an OS or does it run on top of the OS?
uz flag
The hypervisor is the software that allows a computer to run virtual machines. vmware (the kind that runs on servers) and Hyper-V are examples of "hardware virtualization" in that page you linked to. In over-simplified terms, the hypervisor is what actually runs directly on the hardware. The "host" operating system runs as a specially privileged "guest" on top of the hypervisor, and gets direct access to the hardware. Guests use virtual hardware provided by the hypervisor, or direct access to hardware via hypervisor-specific drivers. https://nativebyte.co/images/header/virtualisation1.png
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.