What is the difference between a virtual machine and a container?
Virtual machines are part of virtualization environments. A container, on the other hand, is a specific kind of virtualization strategy that offers its own benefits and disadvantages in different kinds of virtualization platforms, including hosted networks and cloud computing systems.
Virtualization experts talk about 'container virtualization’ or 'operating system virtualization’ as an alternative to what some call traditional hypervisor-based virtualization. What’s the difference? In hypervisor-based virtualization, the system emulates the hardware; a software system creates individual computers instead of networking physical computers together. One way that experts talk about this is that hypervisor-based systems require communications to work just like they would between physical machines; in other words, these virtual hardware pieces don’t share anything that a physical machine wouldn’t share with another, except for a generalized resource environment.
With container virtualization, virtualization is done at the operating system level instead of at the hardware level. Individual instances share parts of the kernel and so data gets routed differently.
Lots of IT people are looking at container virtualization because of its ability to provide denser environments than hypervisor virtualization. Some talk about it as a 'cheap’ way of doing host environments. Engineers can choose to deploy containers in various ways, for example, through open-source platforms such as Open Stack. However, some contend that container virtualization is sometimes less scalable or flexible than traditional methods.
Have a question? Ask us here.
Written by Techopedia Staff
At Techopedia, we aim to provide insight and inspiration to IT professionals, technology decision-makers and anyone else who is proud to be called a geek. From defining complex tech jargon in our dictionary, to exploring the latest trend in our articles or providing in-depth coverage of a topic in our tutorials, our goal is to help you better understand technology - and, we hope, make better decisions as a result.Full Bio