YouTube Icon

Interview Questions.

Top 19 Linux Virtualization Interview Questions - Jul 24, 2022

fluid

Top 19 Linux Virtualization Interview Questions

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

Xm console <domain-id>

Q2. Which Command Is Used To List All Virtual Machine Running On The Kvm Hypervisor ?

Using the command ‘virsh listing –all’ we are able to listing all digital machines no matter their states.

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

A VM can have distinct states like

r – Running

b – Blocked

c – crashed

s – Shutdown

p – Paused

Q4. What Are The Different Types Of Virtualization ?

Virtualization may be utilized in exclusive approaches  and  can take many extraordinary bureaucracy.

Some of them are indexed below :

Server Virtualization

Network Virtualization

Hardware virtualization

Application virtualization

Desktop virtualization

User virtualization

Q5. What Is The Difference Between Xen & Kvm ?

For  Xen hypervisor  first we must install Xen kernel and should boot the system with Xen kernel where as KVM is kernel based totally Virtualization , we don’t need any greater kernel for KVM. KVM is a module in Kernel. Xen hypervisor via default does no longer help complete virtualization whereas KVM helps Full virtualization.

Q6. What Is Dom0 In Xen ?

Dom0 or Domain0 is the initial area started through xen hypervisor. It has the unique rights like to start new area and get right of entry to the hardware immediately. Dom0 is chargeable for walking all of the device drivers for the hardware. 

Q7. What Is Virtualization ?

Virtualization is a way for creating virtual sources (as opposed to the real) which include server, garage device, network  and Operating device. Virtualization is dis-associating the tight bond between software and hardware.

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

Some of the primary requirements are listed underneath :

The guest image or digital system photograph  need to be located on a shared storage and it need to be on hand using iSCSI, NFS, GFS2 or Fibre Channel.

The shared storage must be established at the equal route on each the hypervisors / hosts.

Both hypervisors / hosts have to run the equal model of KVM.

Both guests or VMs have to have the same community configuration & bridging configuration (their IPs have to be one of a kind)

Q9. What Are Different Hypervisors Available In Linux ?

Xen & KVM are  hypervisor to be had in linux.

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

Use xm command :

# xm shutdown [domain-id]

# xm reboot   [domain-id]

# xm begin    [domain-id]

Q11. What Is The Difference Between Full Virtualization & Para Virtualization ?

Full virtualization & para virtualization each comes under the Hardware virtualization.

Some of the difference between them are listed under :

Full Virtualization : It is a virtualization wherein guest gadget(digital machines) is unaware that it's miles in virtualized surroundings therefore hardware is virtualized with the aid of the host working machine so that the guest can issue instructions to what it thinks is real hardware however honestly are simply simulated hardware devices created by using the host

Para Virtualization : It is a virtualization in which guest gadget is conscious that it's far in virtualized surroundings . If visitor system require sources like reminiscence & cpu , it problems command to guest running machine  in preference to immediately communication with real hardware.

Q12. Which Command Is Used In Kvm For Vms Live Migration ?

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

Q13. What Is Hypervisor ?

Hypervisor is a bit of a software this is being set up at the physical machine , which then further creates and run digital machines.  Virtual device are known as visitor machines and host system is the hypervisor on which unique virtual machines are created.

Q14. How To Forcefully Shutdown The Kvm Based Virtual Machine From The Command Line ?

We can forcefully shutdown the VM the usage of the command ‘virsh ruin machine_name’.This command ought to simplest be used in a case where VM is in Hung country due to the fact forcefully close down may additionally reason filesystem corruption.

Q15. What Is Type-1 And Type-2 Hypervisor ?

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

Q16. How To Get Hardware Information Of Kvm Guest Machine ?

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

Q17. How To Identify The Kvm Version ?

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

Q18. What Is The Use Of Virsh Command ?

Virsh is the interface or command for handling the digital machines based on KVM & Xen hypervisor. On virsh interface virtual machines are recognized by means of their domains , so virsh is usually used to list modern domain names , to create , pause & shutdown domains.

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

Virt-viewer -c qemu:///machine <VMName>




CFG