Hardware Virtualization in Layman’s terms

In this post I will explain as simple as possible what is hardware virtualization. One of the enabling technologies in Cloud Computing is Hardware Virtualization. It is a technique to make it seems that there are more hardware in a system than the actual number of hardware is. For example, in a system where we have one CPU, by hardware virtualization, we can make it like there are more than one CPU.

Use Cases:

  1. Personal. For example, I only have one computer, but I want to run Windows, Ubuntu, CentOs and other operating systems at the same time. With hardware virtualization, I can pretend that I have more than one computer (hardware), and run each operating system in virtual hardware.
  2. Enterprise. One big super fast server. All employees are connected to this server to do their works instead of buying expensive computer for each of them.
  3. Infrastructure as Service. You can sell a portion of your servers to costumers. For example, a web hosting company.

Advantages:

  1. Efficient: Some hardware are not utilized 100% at all time. Like in my computer right now, I only use around 5% of my CPU. By sharing the hardware resources, the efficiency is improved and the cost of buying hardware is decrease.
  2. Flexible: Did you just buy a new computer? You must hate that you need to re-install all software that you already have from your previous computer into your new computer. A system running virtual machine is easily moved from one computer to another, no need to reinstall them.
  3. Reliable: If one of the software breaks the hardware, it is easily restarted without turning off all systems.
  4. Highly Available: Because it can move easily, your website/OS can run all the time even when you are upgrading components in your servers.
  5. Recoverable: The operating system running on virtual hardware can be saved as backup.

Disadvantages:

  1. Slower: Compare to using physical hardware, it is always slower to use virtual hardware. But the current technology can push virtual hardware to have performance near to physical hardware. As in it is only slower by 2-5%[1].
  2. Security/Reliability threat: Since there are more than one operating systems running on the same hardware, if the isolation is not secure, malicious operating system can wreak havoc the whole things.

references

[1] https://major.io/2014/06/22/performance-benchmarks-kvm-vs-xen/

Leave a Reply

Your email address will not be published. Required fields are marked *