A virtual machine (VM) is a software implementation of a hardwarelike architecture, which executes predefined instructions in a fashion similar to a physical central processing unit (CPU). VMs can be used to create a cross-platform computing environment that loads and runs on computers independently of their underlying CPUs and operating systems.