Monday, October 17, 2016

Virtualization


1.            What is virtualization?
                Virtualization allows multiple operating system instances to run concurrently on a single computer;it is a means            of separating hardware from a single operating system. Each “guest” OS is managed bya Virtual Machine           Monitor (VMM), also known as a hypervisor. Because the virtualization system sitsbetween the guest and the      hardware, it can control the guests’ use of CPU, memory, and storage,even allowing a guest OS to migrate from       one machine to another.
2.            What are types of virtualizations available in Linux?
                                                RHEL - 5 :                                                                                               RHEL - 6  &  7 :
                                                xen                                                                                                          kvm
                                                64 bit                                                                                                      64 bit
                                                VT-Enabled                                                                                            VT-Enabled
                                                Intel/AMD                                                                                              Intel/AMD
                                                2 GB   RAM                                                                                            2 GB    RAM          
                                                6 GB   Hard disk                                                                                    6 GB    Hard disk
3.            What are the packages of virtualization  and  how to install the packages?
                (i)            qemu                      (It is used to provide user level   KVM    virtualization  and  disk image also)
                (ii)  virt                    (It is used to provide virtualization software)
                (iii)  libvirt                              (It is used to provide the libraries for virtualization software)
                (iv)  python            (This package provides the host  and  server libraries for interacting with Hypervisor  and                                                                                                                                                                                              Host system)
                # yum  install  qemu*     virt*    libvirt*     python*   -y                                          (to install the virtualization softwares)
4.            How to start the virtualization manager  and  how to create a new virtual machine?
                (i)            Go to Applications   ----->   System Tools   ----->   Virtual  Machine  Manager
                (ii)           Vitual  Machine  Manager is used to check  and  displays the available virtual machines.  It is also used to       create the new virtual machines.
                (iii) To create a new virtual machine  first  click  on  monitor  icon,  then enter the virtual machine name,  Select               Local  and  Select  Forward.
                (iv) Click on  Browse  Local, Select  the  guest  O/S    " . iso "  image file  and  Select  Forward.
5.            What are the packages of Virtualization  Hypervisor  and  how to install the packages?
                (i)            "virtualization  hypervisor"                 (provides the foundation to host virtual machines includes the  libvirt  and                                                                                                                                                                                          qemu- kvm  package)
                (ii)           "virtualization  client"                          (provides the support to install  and  manage virtual machines includes                                                                                  virsh,  virt-install,  virt-manager,  virt-top  and  virt-viewer  packages)
                (iii) "virtualization  tools"                    (provides tools for offline management of virtual machines includes the                                                                                                                                                                             libguestfs  package)
                (iv) "virtualization platform"              (provides an interface to access  and  control virtual machines includes the                                                                                                                                       libvirt,  libvirt-client  and  virt-who  packages)
                Installation  of  Virtualization  Hypervisor :                  
                # yum  group  install   "virtualization  hypervisor"    "virtualization  client"    "virtualization  tools"                                                                                                                                                                               "virtualization  platform"     -y

6.            How to create a storage pool  and  volume  using virsh tool?
                (i)            View all the available storage pools  by   # virsh   pool-list     command.
                (ii)           Create a  storage pool directory  by   # mkdir    /var/lib/libvirt/    command.
                (iii)          Define the storage pool directory  by   # virsh  pool-define-as     dir ----/var/lib/libvirt/    command.
                (iv) Start the virtual storage pool  by   # virsh  pool-start       command.
                (v)           To see the specified storage pool information  by   # virsh  pool-info       command.
                (vi)          Create the storage pool volume with specified size  by   # virsh  vol-create-as       command.
                (vii) To see the list of all available storage pool volumes  by   # virsh  vol-list       command.
                               
                Other  useful  commands :
                # lscpu                                                                                    (to list the  CPU  information)
                # cat   /proc/cpuinfo                                                            (to display the  CPU  information)
                # virsh   start                            (to  start  the  virtual  machine)
                # virsh   shutdown   (to  shutdown  the  virtual  machine)
                # virsh   destroy                       (to  delete  the  virtual  machine)
                # virsh   suspend     (to  pause  the  virtual  machine)
                # virsh   resume                                    (to  start  the  paused  virtual  machine)
                # virsh  net-list                                                                      (to see all the available virtual machines)
                # virsh  net-define   /root/            (to define a virtual network using  xml  file)
                # virsh   net-autostart                         (to set the virtual network autostart at reboot)
                # virsh  net-start                  (to start the virtual network)
                # rht-vmctl   fullreset  all                                                      (to  reset  all  the  virtual  machines  as  new  machines)
                # rht-vmctl  reset  server                                                      (to  reset  the  server  virtual  machine)
                # rht-vmctl  reset  client                                                       (to  reset  the client  virtual  machine)

                # pushcourse   all                             (to  send  the  server  and  client  virtual  machines  to the                                                                                                                                                                                            specified  system)

No comments:

Linux, CCNA and MCSE Questions: User Managment

Linux, CCNA and MCSE Questions: User Managment