A virtual machine is a software-based emulation of a physical computer. It runs an operating system and applications just like a real computer, but it's hosted on a physical machine called the host.