OS & Hardware
Which correctly distinguishes containers from virtual machines?
- AEach container has its own OS kernel, while virtual machines share a kernel
- BContainers run on a hypervisor, while virtual machines run using only OS features
- CContainers share the kernel; each VM runs its own OS
Show answer and explanation
Answer: C. Containers share the kernel; each VM runs its own OS
Containers share a single OS kernel while partitioning file-system views, processes, networking and resource limits by group. Since no whole OS is booted, they are lightweight and start quickly. Virtual machines run on a hypervisor, each with its own OS including a kernel, which is heavier but gives stronger isolation and allows different OS types. Kernel sharing belongs to containers; watch for options that reverse the two.
- A. It is containers that share the kernel; this is reversed.
- B. It is virtual machines that run on a hypervisor.
- C. Correct. Containers share the kernel; each VM runs its own OS.