KVM Virtualization: Sometimes we have confusion regarding difference between dual booting & virtualization. In both, we can load many operating systems on the same hardware. But the problem with dual booting is that at a time, only one operating system can be accessed while in the case of virtualization, you can access all the operating systems at same time. The major virtualization software are
– Vmware (can be installed both on windows & linux)
– Virtual Box (can be installed both on windows & linux)
– Xen (on linux)
– KVM (kernel-based virtual machine) (on linux)
Advantages of Virtualization
– Optimization of resources
– Reduced power consumption
– Better manageability
– Testing & development
Here we will be implementing virtualization with “KVM”
Components of Virtualization: 3 components are host operating system, hypervisor & guest operating system.
Host Operating System: On which we are going to install our virtualization software. In our case we will be installing kvm on linux. ie “linux” will be act as host os.
Guest Operating System: is the os we are going to install in the virtualization software. We can install linux as well windows as guest os.
Hypervisor: also called virtual machine manager is used to manage virtualized guests. It allows guests to use single physical host & provides access to cpu, memory, hard disk etc.
Types of Virtualization
Para Virtualization: In this the kernel of guest operating system is modified to run on hypervisor. Since there are few os (linux is one) whose source code is available & can be modified. So in this case, the guest mostly is linux. The main benefit is better performance.
Full Virtualization: Provides support for unmodified guest operating systems. It means full hardware emulation thus affecting performance. In this we can install any os (operating system). For this we need special hardware with support for virtualization such as intel VT or AMD SVM.