A virtual machine is an operating system that is installed on special software that imitates dedicated hardware. By using a virtual machine, you can run multiple operating systems on a single machine and divide your hardware resources between multiple virtual machines.
Virtualization also provides additional security since each virtual machine is running in an isolated environment independent of your operating system. The virtual machine also allows you to save the current machine state to a file and easily restore it or copy it to a different system.
Virtual machines have few disadvantages and most of them are related to hardware usage. Each virtual machine utilizes the host’s hardware, and if there are multiple machines running, and not sufficient hardware power performance issues can occur.