Virtual machines vs Containers Flashcards
Define virtualisation
The process of presenting a system resource as multiple resources.
What do VM’s and Containers virtualise?
VMs virtualise entire system stacks down to the hardware level.
Containers virtualise software from the OS and above.
What is a container?
Containers are lightweight software packages holding software at the OS level and above.
Multiple containers can be hosted on the same physical machine.
What are the pros and cons of using Containers?
Pros:
- Speed
- Lightweight
- Pre-made containers for rapid set-up
- Microservice compatibility
Cons:
- Shared hosting system. If issue effects hardware all client containers are effected.
What is a VM?
A VM is an entire computation system shipped as software that a client can use.
Virtualisation of an entire system.
VMs are barebones systems and can be reconfigured at low levels as per the client need.
What are pros and cons of VMs?
Pros:
- Each VM is independent from one another at the OS level, as opposed to containers that share a host OS.
- Great customisation due to barebones system being delivered.
Cons:
- Being a full system stack reduces speed
- Large VMs take up memory on hosting machine.
- More complicated set-up