Containers vs Virtual Machines - BRS MEDIA TECHNOLOGIES
containers vs virtualmachines

Containers vs Virtual Machines

Maintaining a large software application is not an easy task since it may contains lots of dependencies and Operating System related configurations. What if you can create an OS image which already contains required libraries and configuration that needs to run you application? Then that would be really easy for software deployer to deploy their application easily on a cloud without doing a tedious task of setting up an OS environment. One possible solution to overcome this problem is to use a Virtual Machine. You can install all libraries, setting up configurations and take an image. When you need to deply the application you can simply start the machine with that image. A VM provide complete low level machine to run an Operating System. But it does not perform faster due to VM’s operational overhead. In this case Container technology comes to rescue.

VM is nothing more than a computer that executes a program. VM is running on top of software which is called Hypervisor. Here the physical computer is known as the Host Machine and the VM that running top of Hypervisor known Guest Machine, Containers act the same as the VM, but the difference is that Containers use host machine OS instead of hardware virtualization to run as a VM. Each containers has its own userspace and runs on top of host OS. This makes container much faster than VMs.

Hypervisors TechnologyContainers Technology
Kernel Virtual Machine (KVM)Type 1Docker
VirtualBoxType 2Podman
Hyper-VType 2CRI-O
BoxesType 2rktlet
Red Hat Enterprise Virtualization (RHEV)Type 1Containerd
XCP-ngType 1LXC
VMware vSpher / ESXiType 1
Xen / Citrix XenServerType 1

Type-1: A bare-metal hypervisor (Type 1) is a layer of software we install directly on top of a physical server and its underlying hardware. The physical machine the hypervisor is running on serves virtualization purposes only.

Type-2: This type of hypervisor runs inside of an operating system of a physical host machine. This is why we call type 2 hypervisors – hosted hypervisors.



Key Terms:

  • azure
  • ,
  • containers
  • ,
  • Kubernetes
  • ,
  • Open Source Software
  • ,
  • open-source virtualization platform
  • ,
  • Virtual machines

Related Article

MySQL

MySQL Error: : Access denied for user

MySQL Error: : ‘Access denied for user ‘root’@’localhost’ Open & Edit /etc/my.cnf or /etc/mysql/my.cnf, depending on your distro. Add skip-grant-tables […]

migrate vm

How to convert QCOW2 image to OVA format on Windows

Question: I have downloaded a virtual appliance packaged in QCOW2 format. I want to convert the QCOW2 image to OVA […]

ispconfig3

Automated ISPConfig 3 Installation on Debian 10 and Ubuntu 20.04

Log in to the server Configure the hostname and hosts The hostname of your server should be a subdomain like […]