Q:1 What is Virtualization ?
Ans: Virtualization is a technique for creating virtual resources (rather than the actual) such as server, storage device, network and Operating system. Virtualization is dis-associating the tight bond between software and hardware.
Q:2 What are the different types of Virtualization ?
- Server Virtualization
- Network Virtualization
- Hardware virtualization
- Application virtualization
- Desktop virtualization
- User virtualization
Q:3 What is the difference between full virtualization & para virtualization ?
Ans: Full virtualization & para virtualization both comes under the Hardware virtualization. Some of the difference between them are listed below :
Full Virtualization : It is a virtualization in which guest machine(virtual machines) is unware that it is in virtualized environment therefore hardware is virtualized by the host operating system so that the guest can issue commands to what it thinks is actual hardware but really are just simulated hardware devices created by the host
Para Virtualization : It is a virtualization in which guest machine is aware that it is in virtualized environment . If guest machine require resources like memory & cpu , it issues command to guest operating system instead of directly communication with actual hardware.
Q:4 What is hypervisor ?
Ans: Hypervisor is a peace of a software that is being install on the physical machine , which then further creates and run virtual machines. Virtual machine are known as guest machines and host machine is the hypervisor on which different virtual machines are created.
Q:5 What are different hypervisors available in Linux ?
Ans: Xen & KVM are two hypervisor available in linux.
Q:6: What is the difference between Xen & KVM ?
Ans: For Xen hypervisor first we have to install Xen kernel and have to boot the machine with Xen kernel where as KVM is kernel based Virtualization , we don’t need any extra kernel for KVM. KVM is a module in Kernel. Xen hypervisor by default doesn’t support full virtualization whereas KVM supports Full virtualization.
Q:7 What is Type-1 and Type-2 hypervisor ?
Ans: Type-1 hypervisor is bare metal hypervisor runs on bare metal of hardware. Hyper-V and ESXI Server are the examples of type-1 hypervisor. Type-2 hypervisor is hosted by operating system. Examples of type-2 hypervisor are Microsoft Virtual Server & VMware Server.
Q:8 What is Dom0 in Xen ?
Ans: Dom0 or Domain0 is the initial domain started by xen hypervisor. It has the special rights like to start new domain and access the hardware directly. Dom0 is responsible for running all of the device drivers for the hardware.
Q:9 How to verify Virtualization Technology (VT) is enabled in your server’s BIOS or not ?
Ans : grep -E ‘svm|vmx’ /proc/cpuinfo
- vmx is for Intel processors
- svm is for AMD processors
Q:10 What is the use of virsh command ?
Ans: virsh is the interface or command for managing the virtual machines based on KVM & Xen hypervisor. On virsh interface virtual machines are identified by their domain names , so virsh is generally used to list current domains , to create , pause & shutdown domains.
Q:11 How to identify the KVM version ?
Ans: To find the KVM version use the command ‘virsh version’
Q:12 Which command is used to list all virtual machine running on the KVM hypervisor ?
Ans: Using the command ‘virsh list –all’ we can list all virtual machines irrespective of their states.
Q:13 How to forcefully shutdown the KVM based virtual machine from the command line ?
Ans: We can forcefully shutdown the VM using the command ‘virsh destroy machine_name’.This command should only be used in a case where VM is in Hung state because forcefully shutdowm may cause filesystem corruption.
Q:14 What are the basic requirements of VM live migration in KVM ?
Ans: Some of the basic requirements are listed below :
- The guest image or virtual machine image must be located on a shared storage and it must be accessible using iSCSI, NFS, GFS2 or Fibre Channel.
- The shared storage must be mounted on the same path on both the hypervisors / hosts.
- Both hypervisors / hosts must run the same version of KVM.
- Both guests or VMs must have the same network configuration & bridging configuration (their IPs must be different)
Q:15 Which command is used in KVM for VMs live migration ?
Ans: ‘virsh migrate –live machine_name qemu+ssh://destination_server/system’
Q:16 What are the different states of a VM in Xen hypervisor ?
Ans: A VM can have different states like
- r – Running
- b – Blocked
- c – crashed
- s – Shutdown
- p – Paused
Q:17 How to get the console of guest or virtual machine in Xen ?
Ans: xm console <domain-id>
Q:18 How to shutdown,reboot & start VMs ( domain-ids) in Xen ?
Ans: Use xm command :
# xm shutdown [domain-id] # xm reboot [domain-id] # xm start [domain-id]
Q:19 How to get hardware information of KVM guest machine ?
Ans: Use the command ‘virsh dominfo <domain-name / VM Name>’
Q:20 How to connect a particular VM using virt-viewer ?
Ans: virt-viewer -c qemu:///system <VM_Name>