Top Banner

of 37

SUN Virtualization Training Document

Jun 03, 2018

Download

Documents

Venkatramaiah
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/12/2019 SUN Virtualization Training Document

    1/37

    SUN Virtualization Techonologies

    Training Document

    Document Version: 1.0

    Document Date : 30-06-2009

    re!are" #$: D %lement Titus

    ur!ose: SUN Virtualization Training

    &m!lemente" #$: 'ccel (rontline )t"

  • 8/12/2019 SUN Virtualization Training Document

    2/37

  • 8/12/2019 SUN Virtualization Training Document

    3/37

    Arc"iver ?.......................................................................................................................................1#

    4dater?.........................................................................................................................................1#Solaris # Container?.......................................................................................................................1#Procedure for creating Solaris # Zone......................................................................................1%

    Solaris10 ,D;8S................................................................................................................................../113 ,D;8S D;8AI@ Concets......................................................................................................../1

    a3 =Control Do$ain =................................................................................................................./13 ='uest Do$ain =.................................................................................................................../1

    /3 Setting 4 ,D;8S......................................................................................................................./1a3 Create Default Services........................................................................................................//(3 Set 4 t"e Control Do$ain..................................................................................................//c3 Configure t"e -irtual Sitc"................................................................................................/

    d3 Create and Start a 'uest Do$ain........................................................................................./3 ,D;8S Installation......................................................................................................................./2A3 S4PP;RI@' BARD!AR............................................................................................./23 ;S R4IR8@............................................................................................................./2C3 FIR8!AR 4grade........................................................................................................../2D3 I@SA,,AI;@ ;F ,;'ICA, D;8AI@ 8A@A'R 1.0............................................/5D3 -RIF I@SA,,AI;@ ;F ,;'ICA, D;8AI@ 8A@A'R 1.0.........................../5

    S4@ 9-8 ............................................................................................................................................../5!"at is S4@ 9-8............................................................................................................................./6

    a3 Sun 9-8 Server.................................................................................................................../63 Sun 9-8 -irtualo9.........................................................................................................../6

    C3 Sun 9-8 ;s Center.........................................................................................................../6D3 Sun 9-8 -DI....................................................................................................................../7A3 9-8 Server.................................................................................................................................../7

    A3 -irtual 8ac"ine es........................................................................................................./73 !" Sun 9-8 versus -8are or ,inu9Een.................................................................../7C3 !indos P on Sun 9-8.................................................................................................../#D3 Fedora# on Sun 9-8........................................................................................................../#3 Bo to install Sun 9-8 ..................................................................................................../#'3 Do$4 Startu Config........................................................................................................../%B3 Stes to clone do$4 ;S using &fs....................................................................................../%

    3 9-8 -irtualo9............................................................................................................................0-irtualo9 Features ......................................................................................................................0

    Installation of -irtualo9 on Solaris < ;enSolaris Bost................................................................14n=Installation of -irtualo9 on Solaris < ;enSolaris Bost........................................................../Creating -irtualo9 'uests...............................................................................................................

    Reference?...............................................................................................................................................2Sa$le Solaris 10 Configuration..............................................................................................2Sa$le Solaris # Configuration ...............................................................................................5Reference ,in)s........................................................................................................................6

  • 8/12/2019 SUN Virtualization Training Document

    4/37

  • 8/12/2019 SUN Virtualization Training Document

    5/37

    Preface

    "e Solaris 10 ;erating nviron$ent fro$ S4@ introduced lots of netec"nologies li)e t"e ZFS File=sste$3 Solaris10 Zones < Containers3 DtraceSste$ ;(servation < Analsis tool3 Predictive Self Bealing3 S8F services.

    Additionall t"e Solaris Code as $ade ;en Source and a ne

    develo$ent $odel evolved t"e ;enSolaris ;S3 "ic" included oen sourcetec"nologies and t"e latest develo$ents in -irtuali&ation.

    So$e of t"ese tec"nologies "ic" are related to -irtuali&ation areintroduced (elo.

    ZFS

    ZFS servers t"e role of a Softare -olu$e 8anager and File=sste$ co$(ined. "e differentRAID levels t"at can (e created are

    RAID 1 * RAID 8irror +

    RAID Z * Single Parit RAID +

    RAID /Z * Dou(le Parit RAID +

    RAID 1E0

    PROCEDUREFORCREATINGZFS RAID Z

    1. Create t"e RAIDZ Dataset "ic" ill "old t"e $eta=data for t"e &fs filesste$sG&ool create Hglo(al="ostna$e raid& c1t/d0 c1td0 c1t2d0 c1t5d0

    /. Create a Cac"e for faster read and rite oerations. * ;nl Alica(le for t"e sste$s"ic" co$e it" Flas" Dis)s +G&ool add Hglo(al="ostna$e cac"e c/t0d0 c/t1d0

  • 8/12/2019 SUN Virtualization Training Document

    6/37

    @ote? "is functionalit ill (e onl availa(le in Solaris10 4date# "en it (eco$es

    availa(le.. Create t"e ZFS file sste$s as er t"e re:uired Server Instances.G&fs create Hglo(al="ostna$eJdev01G&fs create Hglo(al="ostna$eJdev0/G&fs create Hglo(al="ostna$eJdev0G&fs create Hglo(al="ostna$eJdev02G&fs create Hglo(al="ostna$eJdev052. Set t"e Dis) restrictions as er t"e Server Instances.G &fs set :uotaK125g( Hglo(al="ostna$eJdev01

    G &fs set :uotaK125g( Hglo(al="ostna$eJdev0/G &fs set :uotaK1/5g( Hglo(al="ostna$eJdev0G &fs set :uotaK1/5g( Hglo(al="ostna$eJdev02G &fs set :uotaK1/5g( Hglo(al="ostna$eJdev05

    5. Create t"e ZFS file sste$s as er t"e re:uired Server filesste$sG&fs create Hglo(al="ostna$eJdev01JH&one="ostna$eG&fs create Hglo(al="ostna$eJdev01Jfs1G&fs create Hglo(al="ostna$eJdev01Jfs/G&fs create Hglo(al="ostna$eJdev01Jfs...

    G&fs create Hglo(al="ostna$eJdev0/JH&one="ostna$eG&fs create Hglo(al="ostna$eJdev0/Jfs1G&fs create Hglo(al="ostna$eJdev0/Jfs/G&fs create Hglo(al="ostna$eJdev0/Jfs...

    Solaris10 Zones

    ZONESFEATURES

    Namespace isolation

    Virtualized OS

    Sharing for better utilization

    Application fault containment

  • 8/12/2019 SUN Virtualization Training Document

    7/37

    ZONESADVANTAGES

    The OS is virtualized, not the machine.

    Runs on any hardare Solaris supports.

    !rivate name, "! address and port range

    !rivate process lists and authentication #file, N"S, $%A!,...&

    'an boot, reboot a zone, run rc.N scripts, S() services

    'an create a ne zone in a fe minutes

    !rivate file systems, ith to flavors * hole root + sparse root

    Separate security, resource management, and failure scopes

    lobal zone administrator can give devices, -)S mount points, loopbac

    filesystems, etc, to zone for its dis assets

    ZONESCONCEPTS

    SPARSEROOTZONE

  • 8/12/2019 SUN Virtualization Training Document

    8/37

    WHOLEROOTZONE

    ZONESTATES

    'onfigured/ 'onfiguration completely specified and committed to stable storage

    "nstalled/ !acages have been installed under the zone0s root file system

    Ready/ Virtual platform has been established

    Running/ -ser processes are e1ecuting in the zone application environment

    ZONECOMMANDS

    2one 'onfiguration * zonecfg

    'reates and removes configuration

    2one Access * zlogin

    "nteractive and Non3interactive access'onsole access

    2one Administration * zoneadm

  • 8/12/2019 SUN Virtualization Training Document

    9/37

    "nstall, 4oot, Restart, Stop, $ist, Verify, -ninstall

    ZONESCONFIGURATION

    ZONECFGGLOBALPROPERTIES

    zonepath/ path in global zone to root directory under hich zone ill be installed

    autoboot/ to boot or not to boot hen global zone boots

    pool/ hich resource pool zone should be bound to

    ZONECFGRESOURCES

    fs/ file system

    inherit3pg3dir/ directory hich should have its associated pacages 5inherited6 from the

    global zone

    net/ netor interface

    device/ device

    rctl/ resource control

    attr/ generic attribute

    INHERITEPAC!AGEIRECTORIES

    )our default inherit3pg3dir resources provided

    7lib

    7platform

    7sbin

    7usr

    "mplemented via a read3only loopbac file system

    mount hich provides security as ell as storage andvirtual memory efficiencies

    7opt is good to add to this list, unless it ill be configured

    differently than in the global zone

  • 8/12/2019 SUN Virtualization Training Document

    10/37

    ZONEA"INISTRATION

    zoneadm#8(& is used by the global zoneadministrator to

    install a ne root file system for a configured zone

    list zones and optionally their state

    verify hether the configuration of an installed zone is semantically complete and

    ready to be booted

    boot or ready an installed zone

    halt or reboot a running zone

    uninstall the root file system of an installed zone

    CONFIGUREZONE(SPARSE)

    global9 zonecfg 3z orzone8zone8/ No such zone configured-se 0create0 to begin configuring a ne zone.zonecfg/zone8: createzonecfg/zone8: set zonepath;7e1port7home7zones7zone8zonecfg/zone8: set autoboot;falsezonecfg/zone8: add net

    zonecfg/zone8/net: set physical;e8

  • 8/12/2019 SUN Virtualization Training Document

    11/37

    'reating list of files to copy from the global zone.

    'opying E>8: files to the zone."nitializing zone product registry.%etermining zone pacage initialization order.!reparing to initialize [email protected]?@.>.8

  • 8/12/2019 SUN Virtualization Training Document

    12/37

    inherit3pg3dir/

    dir/ 7usrnet/address/ 8=>.8?@.>.8.8?@.>.>.8?@.>.>

  • 8/12/2019 SUN Virtualization Training Document

    13/37

    Non3interactive mode

    A lot lie rshglobal9 zlogin 3l Gpb orzone8 ps 3efC1it status preserved, so useful for shell scripting

    5Safe6 mode

    Very minimal mode useful for repairing badly mis3configured zonesglobal9 zlogin 3S orzone8

    ZONECONSOLE2one pseudo3console available for each zone

    (imics a hardare console

    Accessible via zlogin 3'

    Available prior to zone boot

    global9 zlogin 3' orzone8H'onnected to zone 0orzone80 consoleItilight9J.

    H'onnection to zone 0orzone80 console closedI

    !ublishes zone state change messagesHNotice/ zone haltedI

    #OOTAZONE$ INITIAL%

    Open another terminal indoglobalK su 3global9 zlogin 3' orzone8H'onnected to zone 0orzone80 consoleI

    "n original indoglobal9 zoneadm 3z orzone8 boot"n zone8 indo, select terminal type #1terms, 8>&,no name service, timezone, and root passord.

  • 8/12/2019 SUN Virtualization Training Document

    14/37

    Solaris10 Containers

    1, SETTINGTHECPU CONSTRAINTSINTHEZONE

    A, ENABLETHEPOOLSFACILITYPERMANENTLYINSOLARIS10.

    Gsvcad$ ena(le sste$Jools?default

    C"ec) t"e activitationGoolcfg =c info

    @ote t"e folloing....

    pool poolLdefault # default pool created&pset psetLdefault # default pset created&

    B, COMMITTHESETTINGSTOADEFAULT CONFIGURATIONFILE.

    Goolad$ =sGoolad$ =c JetcJoolad$.cfgC"ec) c"anges..Goolad$

    C, CREATEANEWPOOLSCONFIGURATIONFILE, WHICHDEFINESTHECPUALLOCATEDFOREACHPOOL.

    *@ote for ransaction Intensive Alications use LSM CP4 Sc"eduler3 for ot"er lessintensive Alications use LFSSM Sc"eduler.+

    Gvi Jool."ost

    create sste$ "ost

    create set H&one="ostna$eNset *uint set.$in K /O uint set.$a9 K 2+create set H&one="ostna$eNset *uint set.$in K /O uint set.$a9 K 2+create set H&one="ostna$eNset *uint set.$in K /O uint set.$a9 K 2+create set H&one="ostna$eNset *uint set.$in K /O uint set.$a9 K 2+create set H&one="ostna$eNset *uint set.$in K /O uint set.$a9 K 2+

  • 8/12/2019 SUN Virtualization Training Document

    15/37

    create ool H&one="ostna$eNool *string ool.sc"edulerKS+create ool H&one="ostna$eNool *string ool.sc"edulerKS+create ool H&one="ostna$eNool *string ool.sc"edulerKS+create ool H&one="ostna$eNool *string ool.sc"edulerKS+create ool H&one="ostna$eNool *string ool.sc"edulerKS+

    associate ool H&one="ostna$eNool *set H&one="ostna$eNset+associate ool H&one="ostna$eNool *set H&one="ostna$eNset+associate ool H&one="ostna$eNool *set H&one="ostna$eNset+associate ool H&one="ostna$eNool *set H&one="ostna$eNset+associate ool H&one="ostna$eNool *set H&one="ostna$eNset+

    D, USETHECONFIGURATIONFILETOSETUPPOOLS

    Goolcfg =f Jool."ost

    E, ACTIVATETHEPOOLSANDSAVEIT

    Goolad$ =c JetcJoolad$.conf

    F, CHECKTHESTATUSOFTHENEWPOOLSCONFIGURATION

    G oolad$ Q $ore

    G, ADDTHEPOOLINTOTHEZONECONFIGURATION.

    G&onecfg =& H&one="ostna$eset oolKH&one="ostna$eNool

    verife9it

    G&onead$ =& H&one="ostna$e re(oot

  • 8/12/2019 SUN Virtualization Training Document

    16/37

    H, CHECKTHECPU'SAVAILABLEINSIDETHEZONE.

    G&login H&one="ostna$esol#srinfo0 on=line since 05J/5J/00% 01?/5?211 on=line since 05J/5J/00% 01?/5?25* s"os / CP4s as er t"e $in CP4s set +

    , SETTINGTHEMEMORYCONSTRAINTS

    A, ENABLETHERCAP (DAEMON) SERVICESPERMANENTLY.

    G rcaad$ =*C"ec) service availa(ilit+Gsvcs =a Q gre rcasvc?Jsste$Jrca?defaultGs =ef Q gre rcad

    * S"o rca ara$eters+Grcaad$ $e$or ca enforce$ent t"res"old? 0

    rocess scan rate *sec+? 15

    reconfiguration rate *sec+? 60

    reort rate *sec+? 5

    RSS sa$ling rate *sec+? 5

    B, SETTINGPHYSICALMEMORYCONSTRAINTSINTOTHEE!ISTINGZONE( RSSANDSWAP)

    *SS+6, S/'+12

    *@ote? "e "sical roert of t"e caed=$e$or resource is used ( rcad as t"e $a9=rssvalue for t"e &one. ie, after 6GB limit paging will take place+

  • 8/12/2019 SUN Virtualization Training Document

    17/37

    G &onecfg =& solarisNsrv1

    add caed=$e$orset "sicalK6,endadd rctlset na$eK&one.$a9=saadd value *rivKrivileged3li$itK56#70%1/3actionKden+endadd rctlset na$eK&one.$a9=loc)ed=$e$or

    add value *rivKrivileged3li$itK/6#252563actionKden+end

    C, SETADDITIONALSHAREDMEMORYTUNABLESPERZONE. ( FORDATABASERE"UIREMENTSLIKEORACLE# SYBASE)

    G &onecfg =& H&one="ostna$eadd rctlset na$eK&one.$a9=se$=idsadd value *rivKrivileged3li$itK/563actionKden+

    endadd rctlset na$eK&one.$a9=s"$=idsadd value *rivKrivileged3li$itK1003actionKden+endadd rctlset na$eK&one.$a9=s"$=$e$oradd value *rivKrivileged3li$itK2/%2%67/%63actionKden+end

  • 8/12/2019 SUN Virtualization Training Document

    18/37

    Et&'e ( Solaris) Zones

    BRANDEDZONES

    randed Zones are Zones "ic" can install secial rands of ;erating Sste$s on seciall$odified Zones. randed Zones as introduced fro$ Solaris 10 udate 2 * Solaris10 0#J07 +

    "e rands can include ot"er ;erating Sste$s seciall orted * $odified + to run on t"eseZones li)e so$e versions of ,inu9 on #6 Servers. "e rands can also include t"e older versions ofSolaris ;erating Sste$s orted to run on SPARC Servers. Since t"e introduction of randed Zones

    t"e 'lo(al Zone ;S is )non as t"e LnativeM rand.

    PRO$ECTETUDE

    "e Solaris # 8igration Assistant * S#8A + is a tool for $igration )non as Pro>ect tude."e Solaris # and Solaris % "ic" "as reac"ed nd ;f ,ife "as to (e $igrated to Solaris 103 instead ofdirect $igration "ic" $ig"t re:uire $ore s)ill3 S4@ rovides a indirect $igration at" using Pro>ecttude. Pro>ect tude is t"e $igration of Solaris # < Solaris % on to secial randed Zones onl forS4@ SPARC servers.

    There are 3 software components associated with this tool:

    ARCHI*ER+

    The Archiver tool is a P2V (physical to virtual) tool which archives the Solaris 8 image

    and moves it to the target Solaris 10 system.

    ,PATER+

    The Updater tool "massages" the Solaris 8 images to run in the Solaris 8 Container

    SOLARIS) CONTAINER+

    The environment which runs the Solaris 8 environment as if it were still on the original

    system

  • 8/12/2019 SUN Virtualization Training Document

    19/37

    "e S#8A or)s (est for $igrating user=land alications. ernel level alications cannot (e runon t"e Solaris# Containers.

    There are three basic steps in S@(A

    8. On the Solaris @ host, create a system archive using flarcreate, or another preferred method,such as cpio, ufsdump, etc.

    >. 'opy the archive to a Solaris 8< host.

    M. On the Solaris 8< host, configure and install a Solaris @ 'ontainer using the archive.

    PROCEDUREFORCREATINGSOLARIS% ZONE

    Note: uses the actual assigned Zones !hostname" uses the actual glo#al Zones !hostname"

    1. Install t"e Solaris# Container softare.Ggun&i s#containers=(undle.tar.g&

    Gtar =9vf s#containers=(undle.tarGcd s#containers=(undleJ1.0JProductG)gadd =d .

    /. Create t"e Solaris# rand ZoneG&onecfg =& H&one="ostna$eH&one="ostna$e? @o suc" &one configured

    4se create to (egin configuring a ne &one.

    &onecfg?server1 create -t SUN/solaris

    &onecfg?server1 set &oneat"KHglo(al="ostna$eJdev01J H&one="ostna$e&onecfg?server1 set auto(ootKtrue&onecfg?server1 info&onena$e? server1&oneat"? JHglo(al="ostna$eJdev01JH&one="ostna$e(rand? solaris#auto(oot? true(ootargs?ool?

  • 8/12/2019 SUN Virtualization Training Document

    20/37

    li$itriv?

    sc"eduling=class?i=te? s"ared&onecfg?server1 verif&onecfg?server1 e9it

    . C"ec) t"e configured ZoneG &onead$ list =cv

    ID @A8 SA4S PAB RA@D IP0 glo(al running J native s"ared= H&one="ostna$e configured JHglo(al="ostna$eJ dev01JH&one="ostna$e

    solaris# s"ared

    2. Install t"e Solaris#ZoneG&onead$ =& H&one="ostna$e =a Jte$Jsolaris#.flar

    5. oot and c"ec) t"e created ZoneG&onead$ =& H&one="ostna$e (ootG &onead$ list =cv

    ID @A8 SA4S PAB RA@D IP

    0 glo(al running J native s"ared1 H&one="ostna$e running JHglo(al="ostna$eJdev01JH &one="ostna$esolaris# s"ared

    6. Add ZFS file sste$sG&onecfg =& H&one="ostna$e&onecfg?s#=&one add fs&onecfg?s#=&one?fs set teK&fs&onecfg?s#=&one?fs set secialK Hglo(al="ostna$eJdev01Jfs1&onecfg?s#=&one?fs set dirKJusrJlocal&onecfg?s#=&one?fs end

    7. Add @etor) InterfacesG&onecfg =& H&one="ostna$e&onecfg?s#=&one set i=te? e9clusive&onecfg?s#=&one add net&onecfg?s#=&one?net set "sicalKn9ge1&onecfg?s#=&one?net end

  • 8/12/2019 SUN Virtualization Training Document

    21/37

    #. Set t"e BostID to (e t"e "ostid of t"e source sste$

    G&onecfg =& H&one="ostna$e&onecfg?s#=&one add attr&onecfg?s#=&one?attr set na$eK"ostid&onecfg?s#=&one?attr set teKstring&onecfg?s#=&one?attr set valueK#/5f12d&onecfg?s#=&one?attr end

    Solaris10 LO"S

    1, LDOMS DOMAIN CONCEPTS

    A, &CONTROLDOMAIN&

    "e ,ogical Do$ains 8anager is used to create and $anage logical do$ains. "ere can (e onl onelogical do$ain er server. "e ,ogical Do$ain 8anager $as logical do$ains to "sical resources.

    Do$ain in "ic" t"e logical do$ains $anager runs alloing ou to create and $anage ot"er logicaldo$ain and allocate virtual resources to ot"er do$ains. "ere can (e onl one control do$ain erserver. t"e initial do$ain created "en installing . ,ogical Do$ains softare is a control do$ain andis na$ed ri$ar.

    B, &GUESTDOMAIN&

    Do$ains t"at is $anaged ( t"e control Do$ain.

    ,SETTINGUPLDOMS

  • 8/12/2019 SUN Virtualization Training Document

    22/37

    A, CREATEDEFAULTSERVICES

    8. 'onnect to the console for the operating system,if you are not already connected. #console -f

    >. Verify the ldmd service is enabled.#svcs -a | grep ldmd

    M. "f needed,enable the ldmd service. #svcadm -v enale ldmd

    . -se the ldm command to list the current configuration. #ldm l!s"

    . 'reate a virtual dis server #vds to allo importing virtual diss into a $ogical %omain. #ldmadd-vds pr!mar-vds$ pr!mar

    ?. 'reate a virtual console concentrator service #vcc for use by the virtual netor terminal serverdaemon #vntsd and as a concentrator for all $ogical %omain consoles. #ldm add-vcc por"-range%&$$'-&'$$ pr!mar-vcc$ pr!mar

    . 'reate a virtual sitch service #vs to enable netoring beteen virtual netor #vnet devices in$ogical %omains. Assign a netor adapter to the virtual sitch if each of the $ogical %omainsneeds to communicate outside the bo1 through the virtual sitch. #ldm add-vs( ne"-dev%e'$$$g'pr!mar-vs($ pr!mar

    @. Verify the services have been created by using the list3services subcommand. #ldm l!s"-serv!cespr!mar

    B,SETUPTHECONTROLDOMAIN

    8. Assign cryptographic resources to the 'ontrol %omain. #ldm se"-ma) ' pr!mar

    >. Assign four virtual '!-s to the 'ontrol %omain. #ldm se"-vcp) * pr!mar

    M. Assign bytes of memory to the 'ontrol %omain. #ldm se"-memor *G pr!mar

    . Add a $ogical %omain machine configuration to the service processor called initial #ldm add-conf!g !n!"!al

    . Verify that the configuration is ready to be used at the ne1t reboot. #ldm l!s"-conf!g

    ?. Pou must reboot the 'ontrol7Service %omain for the preceding changes to tae effect and theserver resources to be released for other $ogical %omains to use. #s+)"do(n - -g $ -! ,

  • 8/12/2019 SUN Virtualization Training Document

    23/37

    C, CONFIGURETHEVIRTUALSWITCH

    8. !rint out the addressing information for all interfaces. #!fconf!g -a

    >. !lumb the virtual sitch vs(4 #depends on the guest OS&.

    Pou need VT capable processor to run unmodified OS on DV(. Refer to the !rocessor manufacturer

    typical config/ A laptop ith "ntel centrino core > duo, T84 RA(, 8?

  • 8/12/2019 SUN Virtualization Training Document

    30/37

    B,!VM VIRTUALBO!

    -irtualo9 is a general=urose full -irtuali&er for 9#6 "ardare. argeted at server3 des)to3 latoand e$(edded use.

    It is no t"e onl rofessional=:ualit virtuali&ation solution t"at is also ;en SourceSoftare.

    *IRT,AL#O.FEAT,RES

    o"ularit$.-irtualo9 "as an e9tre$el $odular design it" ell=defined internal

    rogra$$ing interfaces and a clientJserver design. "is $a)es it eas to control it fro$several interfaces at once? for e9a$le3 ou can start a virtual $ac"ine in a tical virtual$ac"ine '4I and t"en control t"at $ac"ine fro$ t"e co$$and line3 or ossi(l re$otel.-irtualo9 also co$es it" a full Softare Develo$ent it? even t"oug" it is ;en SourceSoftare3 ou dont ha$eto "ac) t"e source to rite a ne interface for -irtualo9.

    Virtual machine "escri!tions in 5)."e configuration settings of virtual $ac"ines are

    stored entirel in 8, and are indeendent of t"e local $ac"ines. -irtual $ac"ine definitionscan t"erefore easil (e orted to ot"er co$uters.

    ,uest '""itions or /in"o7s an" )inu8.-irtualo9 "as secial softare t"at can (einstalled inside !indos and ,inu9 virtual $ac"ines to i$rove erfor$ance and $a)eintegration $uc" $ore sea$less. A$ong t"e features rovided ( t"ese 'uest Additions are$ouse ointer integration and ar(itrar screen solutions *e.g. ( resi&ing t"e guest indo+.

    Share" ol"ers.,i)e $an ot"er virtuali&ation solutions3 for eas data e9c"ange (eteen

    "osts and guests3 -irtualo9 allos for declaring certain "ost directories as s"ared folders3"ic" can t"en (e accessed fro$ it"in virtual $ac"ines.

    A nu$(er of e9tra features are availa(le it" t"e full -irtualo9 release

    Virtual US %ontrollers.-irtualo9 i$le$ents a virtual 4S controller and allos ou toconnect ar(itrar 4S devices to our virtual $ac"ines it"out "aving to install devicesecific drivers on t"e "ost.

    *emote Desto! rotocol.4nli)e an ot"er virtuali&ation softare3 -irtualo9 full

    suorts t"e standard Re$ote Des)to Protocol *RDP+. A virtual $ac"ine can act as an RDPserver3 alloing ou to run t"e virtual $ac"ine re$otel on so$e t"in client t"at $ereldislas t"e RDP data.

    US oer *D.!it" t"is uni:ue feature3 a virtual $ac"ine t"at acts as an RDP server can still

  • 8/12/2019 SUN Virtualization Training Document

    31/37

    access ar(itrar 4S devices t"at are connected on t"e RDP client. "is a3 a oerful

    server $ac"ine can virtuali&e a lot of t"in clients t"at $erel need to disla RDP data and"ave 4S devices lugged in.

    INSTALLATIONOFVIRTUALBO!ONSOLARIS# OPENSOLARISHOST

    After donloading and e9tracting t"e contents of t"e tar.g& file erfor$ t"e folloing stes?

    1. ,ogin as root using t"e su co$$and.

    /. Install t"e ac)ages *in t"is order+?

    First3 t"e -irtualo9 )ernel interface ac)age?

    )gadd =' =d -irtualo9ern=.0.0=Sun;S=r2%15.)g

    @e9t3 t"e $ain -irtualo9 ac)age?

    )gadd =d -irtualo9=.0.0=Sun;S=r2%15.)g

    . For eac" ac)age t"e installer ould as) ou to Select ac)age*s+ ou is" to rocess

    For t"is te 1 or all.

    2. "en te "en as)ed a(out continuing it" t"e installation.

    @o all t"e necessar files ould (e installed on our sste$. Start -irtualo9 ( ting

    -irtualo9 fro$ t"e ter$inal or fro$ t"e Des)to icon.

  • 8/12/2019 SUN Virtualization Training Document

    32/37

    UN&INSTALLATIONOFVIRTUALBO!ONSOLARIS# OPENSOLARISHOST

    o re$ove -irtualo9 fro$ our sste$ erfor$ t"e folloing stes?

    1. ,ogin as root using t"e su co$$and.

    /. Run t"e co$$and?

    )gr$ S4@!v(o9

    o re$ove t"e -irtualo9 )ernel interface $odule run t"e co$$and?

    )gr$ S4@!v(o9)ern

  • 8/12/2019 SUN Virtualization Training Document

    33/37

    CREATINGVIRTUALBO!GUESTS

  • 8/12/2019 SUN Virtualization Training Document

    34/37

    Reference+

    SAMPLESOLARIS10 CONFIGURATION

    G &onecfg =& s10=&oneset &oneat"KJ&oolJ&onesJsol10&oneset set auto(ootKfalseset oolKsol10Noolset sc"eduling=classKFSSset i=teKs"aredadd fs

    set dirKJe9ortJs"aredset secialK&oolJvol1Js10=&oneset teK&fsendadd fsset dirKJ$ntset secialKJcdro$set teKlofsadd otions roadd otions nodevicesend

    add netset addressK10.1.1.1/set "sicalK(ge0endadd rctlset na$eK&one.$a9=saadd value *rivKrivileged3li$itK56#70%1/3actionKden+endadd rctlset na$eK&one.$a9=loc)ed=$e$oradd value *rivKrivileged3li$itK/6#252563actionKden+

    endadd rctlset na$eK&one.cu=s"aresadd value *rivKrivileged3li$itK23actionKnone+endadd rctlset na$eK&one.$a9=se$=idsadd value *rivKrivileged3li$itK/563actionKden+end

  • 8/12/2019 SUN Virtualization Training Document

    35/37

    add rctl

    set na$eK&one.$a9=s"$=idsadd value *rivKrivileged3li$itK1003actionKden+endadd rctlset na$eK&one.$a9=s"$=$e$oradd value *rivKrivileged3li$itK2/%2%67/%63actionKden+endadd caed=$e$orset "sicalK6'end

    SAMPLESOLARIS% CONFIGURATION

    G &onecfg =& s#=&oneset &oneat"KJ$oolJ&onesJsol#&oneset (randKsolaris#set auto(ootKfalseset oolKH&one="ostna$eNoolset sc"eduling=classKFSSset i=teKs"ared

    add fsset dirKJe9ortJs"aredset secialK$oolJvol1Js#=&oneset teK&fsendadd fsset dirKJ$ntset secialKJcdro$set teKlofsadd otions roadd otions nodevices

    endadd netset addressK10.1.1.1/set "sicalK(ge0endadd rctlset na$eK&one.$a9=saadd value *rivKrivileged3li$itK56#70%1/3actionKden+end

  • 8/12/2019 SUN Virtualization Training Document

    36/37

    add rctl

    set na$eK&one.$a9=loc)ed=$e$oradd value *rivKrivileged3li$itK/6#252563actionKden+endadd rctlset na$eK&one.cu=s"aresadd value *rivKrivileged3li$itK23actionKnone+endadd rctlset na$eK&one.$a9=se$=idsadd value *rivKrivileged3li$itK/563actionKden+end

    add rctlset na$eK&one.$a9=s"$=idsadd value *rivKrivileged3li$itK1003actionKden+endadd rctlset na$eK&one.$a9=s"$=$e$oradd value *rivKrivileged3li$itK2/%2%67/%63actionKden+endadd attrset na$eK"ostidset teKstring

    set valueK#/5f12dendadd caed=$e$orset "sicalK6'end

    REFERENCELINKS

    6ore !nforma"!on on S)n 786

    9 S)n 786 Bl)ePr!n"9 S)n 786 Presen"a"!on

    9 Open 786 :es!"e

    9 OpenSolar!s 786 :es!"e

    9 786 Cl)s"erAgen"

    9 Ones"op 786 Ops Cen"er

  • 8/12/2019 SUN Virtualization Training Document

    37/37

    9 +""p;00opensolar!s1org0os0comm)n!"07en0docs0specs09 +""p;00opensolar!s1org0os0comm)n!"07en0docs0v!r"!ns"all0

    9 +""p;00opensolar!s1org0os0comm)n!"07en0docs0(!ndo(sg)es"0

    9 +""p;00opensolar!s1org0os0comm)n!"07en0docs0c+ang!ng-oo"-flags0