# Virtualization vs Containerization

### Virtualization

![Virtualization source baeldung.com](https://3550763689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLmPdoBONhckxJWWSmjo5%2Fuploads%2FFxZ4ocUPLmInrhRII05q%2Fimage.png?alt=media\&token=f818aa1f-f2e3-4d93-8648-f3afaa9e014e)

* The server is the physical server that is used to host multiple virtual machines.
* The Host OS is the base machine such as Linux or Windows.
* The Hypervisor is either VMWare or Windows Hyper V that is used to host virtual machines.
* You would then install multiple operating systems as virtual machines on top of the existing hypervisor as Guest OS.
* You would then host your applications on top of each Guest OS.

### Containerization

![Containerization source baeldung.com](https://3550763689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLmPdoBONhckxJWWSmjo5%2Fuploads%2Fnc4SaJTctcczrtTC0keU%2Fimage.png?alt=media\&token=d83c345b-fb14-4612-bf77-7d13d28e8cfc)

* The server is the physical server that is used to host multiple virtual machines. So this layer remains the same.
* The Host OS is the base machine such as Linux or Windows. So this layer remains the same.
* Now comes the new generation which is the Docker engine. This is used to run the operating system which earlier used to be virtual machines as Docker containers.
* All of the Apps now run as Docker containers.

<br>
