Virtual Machine (VM): A software-based computer that runs on a physical server, with its own operating system, CPU, memory, and disk allocation, as if it were a separate machine.
Example
Your team needs a Linux machine to test a deployment script. Instead of buying hardware, you create a small Ubuntu VM on Azure in five minutes, test the script, and delete the VM afterwards.
How Virtual Machines Work
A program called a hypervisor divides one physical server into several virtual machines. Each VM has its own operating system and thinks it has its own hardware. This lets cloud providers rent out parts of large servers to many customers.
VM vs Container vs Physical Server
| Physical server | Virtual machine | Container | |
|---|---|---|---|
| Own operating system | Yes | Yes | No, shares the host's |
| Start-up time | Minutes to hours | Minutes | Seconds |
| Size | A whole machine | Gigabytes | Megabytes |
| Best for | Special hardware needs | Full OS control, legacy apps | Packaging and scaling apps |
VMs in the Cloud
Cloud VMs include AWS EC2, Azure Virtual Machines, and Google Compute Engine. They are the IaaS layer of cloud computing. Students can also run VMs locally with VirtualBox or Hyper-V to practise Linux without changing their main system.
Related terms
- Container: a lighter alternative to VMs.
- Server: a VM is a virtual server.
- Cloud Computing: VMs are the basic IaaS building block.
- AWS: provides VMs through EC2.
Previous term: Version Control | Next term: Weaknesses
Related guides
- Azure Interview Questions Test
- DevOps Interview Questions Test
- Which Technology Should I Learn for an IT Internship?
Frequently asked questions
What is a virtual machine?
A virtual machine is a software-based computer with its own operating system, running on a physical server.
What is the difference between a VM and a container?
A VM includes a full operating system. A container shares the host's kernel and is much lighter.
What is a hypervisor?
Software that creates and runs virtual machines on a physical server, such as Hyper-V, VMware ESXi, or KVM.
How can students practise with VMs?
Use VirtualBox or Hyper-V locally, or a small free-tier VM on a cloud provider with a budget alert.
Explore more internship terms
The IT Internship Glossary explains 199 terms you will hear before and during your internship, with simple definitions and real examples.
Browse all 199 terms