Nepedia
Back to Discover
Fluent Reader
💻

Virtual machine

technology Maturity 9-11 Next article →

A virtual machine is a way to make a computer act like another computer system.

Virt-manager 3.2.0 QEMU KVM screenshot
Virt-manager 3.2.0 QEMU KVM screenshot

It uses software or special hardware to imitate a real machine. This process is called virtualization. We call the real, physical computer the "host." The virtual computer running inside it is called the "guest."

Hardware Virtualization (copy)
Hardware Virtualization (copy)

One host can run many different guests at the same time. This is very useful for running different operating systems together. For example, you could run Windows and Linux on one machine. This helps people test new software in a safe place called a sandbox.

There are different ways these machines work. A system virtual machine acts like a whole computer. It uses a tool called a hypervisor to manage the hardware. The hypervisor shares the host's parts so many guests can exist at once. Each guest stays isolated from the others. Modern hypervisors often use hardware-assisted virtualization to work better. This means the computer's brain, or CPU, has special features to help the hypervisor.

Hardware Virtualization (copy)
Hardware Virtualization (copy)

Another type is a process virtual machine. This type runs as a normal application inside the host. It is created when a program starts and disappears when it closes.

Process virtual machines help programs run on any computer. They hide the tricky details of the hardware from the software. This makes it easier for programmers to write code that works everywhere. The Java virtual machine is a very famous example of this. Other examples include the .NET Framework and the Parrot virtual machine. Some special versions even help large groups of computers work together as one cluster. These systems let programmers focus on their ideas instead of how machines talk to each other.

People have been working on these ideas since the 1960s. System virtual machines grew from a method called time-sharing. This let many people use one computer at the same time. IBM created important early systems like the CP-40 and the CP-67. These were some of the first to use full virtualization. Process virtual machines also started around the same time. In 1966, the O-code machine was used to help move code to new systems. Later, the Pascal-P system used something called p-code in the 1970s.

Virtual machines are part of our digital world every day. They help servers work more efficiently through server consolidation. This means many tasks can live on one strong machine. They are also great for making new software. Developers can use them to find mistakes or reboot systems very quickly.

qubes-trust-level-architecture
qubes-trust-level-architecture

You might even use them if you like old video games. Some emulators let you play games designed for older consoles on a modern computer. Whether for work or play, these digital mimics are very powerful tools.

457 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (3)
File:Virt-manager_3.2.0_QEMU_KVM_screenshot.png
Virt-manager_3.2.0_QEMU_KVM_screenshot.png
File:Hardware Virtualization (copy).svg
Hardware Virtualization (copy).svg
qubes-trust-level-architecture.webp
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.