e07 virtualization

Upload: mohan-khedkar

Post on 02-Jun-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/10/2019 e07 virtualization

    1/4

    Experiment No.7

    Aim :Virtualization on Linux

    Theory:

    Introduction

    1Linux virtualization refers to running one or more virtual machines on a physical computer that's

    operated by the Linux open source operating system.Linux virtualizationcan be used for isolatingspecific apps, programming code or even an operating system itself, as well as for security and

    performance testing purposes.

    2oday's more powerful computers and hardware have made virtualization more practical and feasible

    for both des!top and server environments, helping to save power by consolidating several wor!spaces

    on one system as well as maximizing the wor!load that the compute can handle. "opular Linux

    virtualization solutions include #en, $V%, &%(, Virtual)ox and V%ware.By default, Linux Operating system provides within the kernel virtualization capabilities i.e. Kernelirtual !achine "kvm#. Before enabling the kvm feature, you will first need to ensure that you meetthe hardware and software re$uirements.

    Verifying that CPU support virtualization

    Before installing any virtualization software, you might want to ensure that you have a cpu withhardware assisted virtualization. %ntel&' cpu and (!)& are cpu type that support hardwarevirtualization. %n this $uite old post,we were already describing the way to check for virtualizationsupport.

    'o check that your computer support virtualization, you can issuse one of the following commands *

    egrep -c (vmx |svm !proc!cpuinfo

    Chec"ing the CPU architecture (#$-%it or &'-%it

    +e would recommend to run a -&bit version of buntu /0.1- simply because you will be able to host20&bit and -&bit virtual machines. Knowing that the new !icrosoft Operating system only support -&bit, this would make sense. 'o check this, you can simply try to install ubuntu -&bit on your system, ifthe -&bit architecture is not supported, you will get an error message and the installation process willbe stopped.

    (nother way "if you have already installed buntu# would be to issue the following command

    egrep -c lm !proc!cpuinfo

    Verifying that perating system version

    sing the system monitor interface, you can easily check that the operating system you are running is20&bit or -&bit. +hatever the desktop interface you are running, type in the dash3activities, systemand select system monitor. %n the sytem tab, you can see the version of the operating system.

    http://www.webopedia.com/TERM/L/Linux.htmhttp://www.webopedia.com/TERM/O/open_source.htmlhttp://www.webopedia.com/TERM/O/operating_system.htmlhttp://www.webopedia.com/TERM/O/operating_system.htmlhttp://www.webopedia.com/TERM/V/virtualization.htmlhttp://www.webopedia.com/TERM/V/virtualization.htmlhttp://c-nergy.be/blog/?p=29http://c-nergy.be/blog/?p=29http://www.webopedia.com/TERM/O/open_source.htmlhttp://www.webopedia.com/TERM/O/operating_system.htmlhttp://www.webopedia.com/TERM/V/virtualization.htmlhttp://c-nergy.be/blog/?p=29http://www.webopedia.com/TERM/L/Linux.htm
  • 8/10/2019 e07 virtualization

    2/4

    Installating )V* pac"ages

    %f you reach this section, we assume that you meet the basic re$uirements in order to have K!software running. %t4s time to download and install the kvm packages. +ith buntu, this is $uite easy.5ou can use the buntu software 6% based interface or you can use the command line

    %f you prefer to use the 6%,

    Launch the buntu 7oftware 8enter, and in the search box type +emu-"vm. 8lick on the

    package.'he package is highlighted and you will see two buttons * more and %nstall. 8lick onmore %utton,

    7croll down and select the $ additional dd-ons

    5ou are ready to install the package. 9ress the %nstall button "scroll up to see it#

    8heck that the .ridge-utilspackage has been installed as well. :rom the ubuntu 7oftware

    8enter, type in the search box bridge&utils and you should see it already installed. %f not, installit

    sudo apt-get install +emu-"vm li%virt-%in %ridge-utils

    Installating *anagement Interface

    'here are different management tools available with K! virtualization solution. :or this post, wewill simply install the ;de facto4 standard virtual *achine *anager (V**. 'o perform theinstallation, you can use the buntu software 8enter. %n the search box, type virt and you should see inthe list the !! package. click on it and press the install button

    5ou can perform the same installation operation using the command line by issuing the followingcommand

    sudo apt-get install virt-manager

    (fter the installation complete, you can try to connect to the management interface "by typing in the)ash3activities search box virtual. the application icons will be displayed

    'o add your user account "for example griffon# into the group libvirtd, you would type

    sudo adduser griffon li%virtd

    5ou will need to logoff and loginagain in order to have the changes applied. 'ry to launch the virt&manager application again, and you should be able to have it started. 5ou are now ready to create yourfirst virtual machine using K! as

  • 8/10/2019 e07 virtualization

    3/4

    to this one

    click on the highlighted computer icon and the =ew virtual machine wizard starts.

    9rovide the information and Press /or0ard.

    %n the following screen, select the installation source and the type of virtual machine that you want toinstall. 9ress /or0ard

    %n the next screen, simply specify 89 and !emory information. 9ress /or0ard

    %n the next screen, provide the information about the virtual disk to created and Press /or0ard

    %n the final screen, provide the information about the irtual networking and Press /inish

    Click on picture for Better resolution

    (t this stage, you will need to perform the installation of your operating system.

  • 8/10/2019 e07 virtualization

    4/4

    8onclusion* 'hus we have studied how virtual machine is created in buntu.