YouTube Icon

Interview Questions.

Top 100+ Linux Virtualization Interview Questions And Answers - May 31, 2020

fluid

Top 100+ Linux Virtualization Interview Questions And Answers

Question 1. What Is Virtualization ?

Answer :

Virtualization is a method for developing virtual assets (in preference to the actual) including server, garage tool, community  and Operating gadget. Virtualization is dis-associating the tight bond between software program and hardware.

Question 2. What Are The Different Types Of Virtualization ?

Answer :

Virtualization may be utilized in exceptional ways  and  can take many exceptional bureaucracy.

Some of them are indexed under :

Server Virtualization
Network Virtualization
Hardware virtualization
Application virtualization
Desktop virtualization
User virtualization
Linux Embedded structures Interview Questions
Question 3. What Is The Difference Between Full Virtualization & Para Virtualization ?

Answer :

Full virtualization & para virtualization both comes beneath the Hardware virtualization.

Some of the difference between them are indexed under :

Full Virtualization : It is a virtualization wherein visitor gadget(virtual machines) is unaware that it's far in virtualized surroundings consequently hardware is virtualized by the host operating machine so that the visitor can difficulty commands to what it thinks is real hardware however actually are simply simulated hardware devices created by means of the host

Para Virtualization : It is a virtualization in which visitor device is conscious that it is in virtualized environment . If guest device require resources like reminiscence & cpu , it troubles command to guest operating gadget  instead of directly conversation with actual hardware.

Question four. What Is Hypervisor ?

Answer :

Hypervisor is a bit of a software program that is being set up on the physical gadget , which then in addition creates and run digital machines.  Virtual system are known as guest machines and host gadget is the hypervisor on which exceptional virtual machines are created.

Linux Embedded structures Tutorial
Question 5. What Are Different Hypervisors Available In Linux ?

Answer :

Xen & KVM are two hypervisor to be had in linux.

Red Hat Linux Essentials Interview Questions
Question 6. What Is The Difference Between Xen & Kvm ?

Answer :

For  Xen hypervisor  first we need to install Xen kernel and need to boot the machine with Xen kernel wherein as KVM is kernel based totally Virtualization , we don’t want any extra kernel for KVM. KVM is a module in Kernel. Xen hypervisor by means of default does not aid complete virtualization while KVM helps Full virtualization.

Question 7. What Is Type-1 And Type-2 Hypervisor ?

Answer :

Type-1 hypervisor is bare metal hypervisor runs on naked steel  of hardware. Hyper-V and ESXI Server are  the examples of type-1 hypervisor. Type-2 hypervisor is hosted with the aid of operating device. Examples of kind-2 hypervisor are Microsoft Virtual Server & VMware Server.

Red Hat Linux System Administration Interview Questions
Question 8. What Is Dom0 In Xen ?

Answer :

Dom0 or Domain0 is the preliminary domain started via xen hypervisor. It has the unique rights like to start new area and access the hardware directly. Dom0 is liable for strolling all of the tool drivers for the hardware. 

Question nine. How To Verify Virtualization Technology (vt) Is Enabled In Your Server’s Bios Or Not ?

Answer :

grep -E ‘svmdealing with the digital machines based on KVM & Xen hypervisor. On virsh interface digital machines are identified with the aid of their domains , so virsh is usually used to list contemporary domain names , to create , pause & shutdown domains.

Question 11. How To Identify The Kvm Version ?

Answer :

To locate the  KVM model use the command ‘virsh version’

Linux Device Drivers Interview Questions
Question 12. Which Command Is Used To List All Virtual Machine Running On The Kvm Hypervisor ?

Answer :

Using the command ‘virsh list –all’ we can listing all digital machines regardless of their states.

Linux Embedded systems Interview Questions
Question 13. How To Forcefully Shutdown The Kvm Based Virtual Machine From The Command Line ?

Answer :

We can forcefully shutdown the VM using the command ‘virsh smash machine_name’.This command must best be used in a case where VM is in Hung kingdom because forcefully shut down may additionally reason filesystem corruption.

Question 14. What Are The Basic Requirements Of Vm Live Migration In Kvm ?

Answer :

Some of the simple requirements are listed beneath :

The visitor photograph or virtual gadget photo  should be located on a shared garage and it need to be on hand the usage of iSCSI, NFS, GFS2 or Fibre Channel.
The shared storage need to be hooked up on the identical path on both the hypervisors / hosts.
Both hypervisors / hosts have to run the identical version of KVM.
Both visitors or VMs have to have the equal network configuration & bridging configuration (their IPs should be exceptional)
Question 15. Which Command Is Used In Kvm For Vms Live Migration ?

Answer :

‘virsh migrate –stay machine_name qemu+ssh://destination_server/gadget’

Question sixteen. What Are The Different States Of A Vm In Xen Hypervisor ?

Answer :

A VM can have specific states like

r – Running

b – Blocked

c – crashed

s – Shutdown

p – Paused

Question 17. How To Get The Console Of Guest Or Virtual Machine In Xen ?

Answer :

xm console <domain-id>

Question 18. How To Shutdown,reboot & Start Vms ( Domain-ids) In Xen ?

Answer :

Use xm command :

# xm shutdown [domain-id]

# xm reboot   [domain-id]

# xm begin    [domain-id]

Red Hat Linux Essentials Interview Questions
Question 19. How To Get Hardware Information Of Kvm Guest Machine ?

Answer :

Use the command ‘virsh dominfo <domain-name / VM Name>’

Question 20. How To Connect A Particular Vm Using Virt-viewer ?

Answer :

virt-viewer -c qemu:///device <VMName>




CFG