xenserver labs

95
L 07� . .. Implementing Citrix XenSeer™ Enterprise Edition 5.0 CXS-200-11 Lab Guide CITRIX®

Upload: patrick-kaak

Post on 24-Apr-2015

184 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Xenserver Labs

• • •

� �,t L1j

0.}7� (,{

. .. Implementing Citrix XenServer™

• • • Enterprise Edition 5.0

CXS-200-11

Lab Guide

• CITRIX®

Page 2: Xenserver Labs

CITRIX® •

Implementing Citrix XenServer™ Enterprise Edition 5.0

Exercise Workbook

Citrix Course CXS-200-11

October 2008

• CITRIX" authorized -. ----

Courseware

Page 3: Xenserver Labs

NOTICE

Citrix® Syste ms, I nc. (Citrix) makes no rep resentations or warranties with respect to the content o r u se o f th is pub l ication. Citrix specifi ca l ly d iscla ims any expressed o r i m p l ied warranties, merchantabi l ity, or fitness fo r any part icu l ar pu rpose. Citrix reserves the r ight to make any changes i n specifications and oth e r i nformat ion conta ined in t h is pub l icat ion without pr ior notice and without ob l igati o n to notify any person o r entity of such revisions or changes.

© Copyr ight 2008 Citrix Systems, I nc . All Rights Reserved.

No part of th is p u b l ication m ay be re p rod uced or transm itted in any form or by any means, e lectro nic or mechan ical, i n c l u d i n g photocopying, record i ng, or info rmat ion storage and retrieval system s, for any p u rpose other than the pu rchaser's personal use, without express written pe rm ission of:

Citrix Systems, Inc. 851 W. Cypress Creek Road

Ft. Lauderdale, FL 33309 http : //www.citrix.com

The fol lowing marks are service mar ks, trademarks or registered t radem arks of their respective owners i n the U n ited States and other countries.

Mark Owner

Active DirectorY', Microsoft", Microsoft Microsoft Corporation Access", Microsoft Internet Explorer", Microsoft Office", Visio", Windows", Windows NT'''', Win32T'"

Adobe"', Acrobat", Flash", Photoshop", Adobe Systems, Inc. I Reader"

AMD'" Advanced Micro Devices, Inc. I Bull Bull,S.A.5.

cuteFTpTM GlobalSCAPE Texas, LP

Debian™ Software in the Public Interest, Inc.

Dell", EquaILogic'" Dell, Inc.

Fujitsu" Fujitsu Limited Corporation

; Google Google, Inc.

GNU" Free Software Foundation

HP" Hewlett-Packard Development Company, LP.

IBM" International Business Machines Corporation

, Intel", XEON" Intel Corporation

! ISO Recorder™ Alex Feinman

i Linux" Linus Torvalds

NetApp" Network Appliance, Inc.

Novell"', SUSETM Novell, Inc.

, Oracle" Oracle Corporation

Realtek™ Realtek Semiconductor Corporation

© Copyright 2008 Citrix Systems, Inc.

Page 4: Xenserver Labs

Mark Owner

I Red Hat'" Red Hat, Inc.

SGI'" Silicon Graphics, Inc.

Sun'" Sun Inc.

Toolwire'" Toolwire

UNIX'" The Open Group

Other p roduct and company names mentioned herein m ight be the service marks, trademarks or registered tradem arks of their respective owners in the U n ited States and othe r cou ntries.

© Copyright 2008 Citrix Systems, Inc. 3

Page 5: Xenserver Labs

Conventions

This co u rseware u ses the followi ng typograph i c conventions to emphas ize informat ion .

. , .. ' .... ..... " .' .. c:ollvention Usage , . , " .": . UPPERCASE • Di rectory names and paths such as DESKTO P and

W I N NT\SYSTEM32

• D rive letters such as A: and C:

• UNC paths such as \\1 NSTRUCTOR\SCR I PTS

Case sens it ive ite m s are the only exception to the usage listed.

l owe rcase • Com mand l ine parameters such as Iw and -r

• URL add resses such as http://finance.ya hoo.com

• I nternet addresses such as www.citr ix.com

• Domain n ames such as edu cation.ctxs

• Emai l addresses such as tra in [email protected]

Case sens itive items are the on ly exception to the usage l i sted.

Bold I nitial • Interface items t hat are sel ected, desel ected, typed, c l icked,

Capitalization doub le-c l icked or r ight-cl icked such as options and menu items i n lab exercises

Case sens it ive items are the on ly exception to the u sage listed.

italic lowercase • Variab l e d rive letters such as z: and x:

• Variab le d i rectory names such as %systemroot% and dir_name Case sens itive items are the only exception to the u sage l i sted.

monospaced font • Com mands that are u sed in the command l i n e inte rface.

4 © Copyright 2008 Citrix Systems. Inc.

Page 6: Xenserver Labs

This courseware uses the fo l l owing icons.

Icon

�.'.' .. E..' .. . ' .' . . ' .. . '. '.'.'."" " .;. �

� .. ' \lY � . .

.• .•.... , .•.. �

Explanation

The note ico n identifies add itional re levant information.

The important ico n ide ntifies prerequi site informatio n for a give n task.

The tip icon identifies i nformati o n that can save t ime and effort.

The warn ing icon ide ntifies i nformatio n that must be heeded in order to preve nt harm to syste ms or users.

Credits

Instructional Designers: Er in Shatara, Geo rge Komoto, Roxan ne Balolong, Hung Ha, Beth Goodwi n

Graphic Artist: G i no Po lese l lo, Nat han jackson

Manager: G i n a Al esse

Translation Coordinator: Francine Chiaver in i

Subject Matter Experts: Thom Ba i ley, Matt Fairbanks, Tyler Carter, Roger Klorese, Gordon Stretch, Alan Oe hler, ju l ie Al len, An i l Madhavapeddy, jam es B u l pin, Ewan Mel lor, Peter B l u m, Chr isto ph Ber l i n, B i l l Carovano, Joe l Stocker, Adam Lotz, james West, Vadim Lebedev, Bria n Feh l i ng, Tarkan Kocog lu , O l ivier Withoff, Sam Ware, Chaitanya U pad hyay, DeeLayna Hu rst, Shan non Snowde n and Michael De lagu ard ia

© Copyright 2008 Citrix Systems. Inc, 5

Page 7: Xenserver Labs

6 © Copyright 200S Citrix Systems, Inc.

Page 8: Xenserver Labs

Table of Contents

Exercises for Module 3: Installing XenServer Enterprise Edition 5.0 . . . . . . . . . . . . . . . 9 Exercise: I nsta l l i ng XenServe r E nterprise Ed it ion 5.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Exe rcise : Step-by-Step . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

Exercises for Module 4: Windows Virtual Machines . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Exercise: Creat ing W indows Vi rtua l Mac h i n es . . . . . . . . . . . . . .. . . .. .. . . . . . . . . .. . . . . . . . . . . . 21

Exercise: Step by Step .. . . . . . . . .. . . . . . . . . . . . . . .. . . . . . . . . .. . . . . .. . . . . . . . . ... . . . . . . . 22

Exercises for Module 5: Linux Virtual Machines . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . 27 Exe rcise: Creati ng L inux Vi rtu al Mach i nes . .. . . . . . . . . . . . . .. .... . .. . . . .. . . . . . . . . . . . . . . . . . 29

Exercise: Step by Step . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . .. . 30

Exercises for Module 6: Templates and life-Cycle Operations . . . . . . . . . . . . . . . . . 35 Exercise: Us ing Tem plates . . . . . . . . . . . . . . , ............................................. 37

Exercise: Step by Step . . .. . . . . . .. . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . ..... 38 Exercise: Con d u ct i ng L ife Cyc le O perat ions . . . . . . . .. . . . . . . . . . . . . .. . . .. . . . . . . . . . . .. . . . . . 41

Exercise: Step by Step . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....................... 42

Exercises for Module 8: Resource Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45 Exe rcise: Manag i ng Resou rces . . . ... . . . . . . . . . .. . . . . . .. . . . . . . .. . ... . . . .. . .. . .. . ....... 47

Exercise: Ste p by Step . . . . . . . . . . . . . .. . . . .. . . . . . .. . . .. . . . . . . . . . . .. . . . . . . . . . .. . . ... . 48

Exercises for Module 9: Networking . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . 53 Exe rcise: Manag i n g N etworks . . . . . . . . ... . .. . . . . . . . . . . . . . . .. . . . . . . . . . . . .............. 55

Exercise: Step by Step . . . . ... . . . . .. . . . . . . . . .. . . . . . .. .. . . . . . .... . . . . .. . . .. . . . . . . . . . 56

Exercises for Module 11: Remote Storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Exercise: Managi n g L inux Storage . . . . . . . . . . . . . . . . . . . . . .. . . . . . . .. . . . . . . . . . .. . . .. . . . . .. . 63

Exercise: Step by Step . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . .. .. . . . . . 64

Exercises for Module 12: Understanding Resource Pools . . . . . . . . . . . . . . . . . . . . . . 67 Exercise: Manag i n g Resou rce Pool s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . .. . . . . . . . 69

Exercise: Step by Step . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70

Exercises for Module 14: Command line Interface . . . . . . . . . . . . .. . . . . . . . . . . . . . 77 Exercise: Us ing the Com mand L ine I nterface . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . .. . . . . . . . 79

Exercise : Step by Step . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . .. . .. . . . . 80

© Copyright 2008 Citrix Systems, I nc. 7

Page 9: Xenserver Labs

Exercises for Module 15: Upgrades and Troubleshooting . . . . . . . . . . . . . . . . . . . . . . 85 Exe rc ise: Trou ble shoot ing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87

Exercise: Step by Step . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88

8 © Copyright 2008 Citrix Systems, Inc.

Page 10: Xenserver Labs

Exer«:ises for Module 3: Installing XenServer Enterprise Edition 5.0

CITRIX® •

Page 11: Xenserver Labs

Exercises for Module 3: Insta l l ing XenServer Enterprise Edition 5.0

10 © Copyright 2008 Citrix Systems, Inc.

Page 12: Xenserver Labs

Exercises for Module 3: Installing XenServer Enterprise Edition 5.0

Exercise: Installing XenServer Enterprise Edition 5.0

Overview XenServer E nterprise Ed ition 5.0 has two parts:

• XenServe r, co ns isti n g of:

• The Xe n platfo rm

• The control domain, a management and d river v i rtual machine (VM)

• The m anagement age nt

• Su pport fo r a variety of Wi ndows and Li nux VMs

• XenCe nter, a remote Wi ndows .Net c l ient appl ication

Xe nCe nter m u st be i nsta l led on a remote Windows mach ine that can co nnect to the Xe nServe r host through the network; it cannot run on the same mach i ne as the XenServe r host.

System Requirements Xe nServe r m u st be instal led on a dedicated 64-bit x86 server with no existi ng ope rat ing system.

Objectives

The XenCe nter m ust be i n stal led on a remote Windows m achine that can connect to the Xen Server through the netwo rk. XenCe nte r cannot run o n the same m achi n e as the XenSe rver.

In th is lab, you wi l l create a XenServe r host by i n sta l l i ng the XenServe r software o n a server located i n the Toolwire lab. You wi l l perform a l l the i n stal lat ion steps of a new insta l l and experie nce fi rst hand the "Te n m i n utes to Xen" story.

In th i s l ab, you w i l l :

• I nstal l XenServer E nterprise Edition 5.0. • Create a Xe nServer.

• I nstal l XenCenter.

The target server for XenServe r is accessed us ing t he De l l Remote Access Console (RAC). A shortcut to the RAC is located on the student desktop with in Toolwire.

© Copyright 2008 Citrix Systems, Inc. 1 1

Page 13: Xenserver Labs

Exercises for Module 3: Installing XenServer Enterprise Edition 5.0

Exercise: Step-by-Step

Exercise 1: Connect to Use the fol lowin g proced u re to instal l XenServe r on you r server. the Host Server

Exercise 1 Troubleshooting

1 2

1 Dou bl e-cl ick the RAC desktop icon . A Secu rity Alert appears.

2 Cl ick OK. Another Secu rity A lert comes up .

3 Cl ick Yes.

4 Log i n with Username: root

5 Enter myxenpw i n the Password f ie ld.

6 Cl i c k OK.

7 Select the Console tab.

8 Scro l l down and c l ick Connect. If an I nternet Explore r Secu rity Warn i ng appears to insta l l the De l l Virtual Keyboard Video Mon itor, c l ick Install. A win dow showi n g the server boot ing appears.

9 Cl ick i nto the XenServer Window. Afte r the in itial boot messages, the fi rst Xe nServer insta l lation screen, Select Keym ap, appears. Cont inue with Exercise 2: I n sta l l XenServe r.

Note: If the XenServer i n stal l at ion screen does not appear, refe r to the fol lowi n g sect ion on t ro u b leshooti ng.

I f the fi rst i n stal lation screen and the XenSe rver Configurat ion screen do n ot appear, then pe rform the fo l low ing steps before conti n u i ng.

1

2

3

Cl ick the Power Management tab in the RAC web i nte rface.

Se lect Power Cycle System and cl ick Apply.

P ress F12 to i n it iate a PXE boot when the startup screen appears and start the next exercise.

© Copyright 2008 Citrix Systems, Inc.

Page 14: Xenserver Labs

Exercise 2: Install XenServer

Exercises for Module 3: Installing XenServer Enterprise Edition 5.0

If the fi rst i n stal l at ion screen d oes not appear and XenServer is a l ready i nstal led, then perform the fo l lowing steps before cont i n u i ng.

I

2 leet Reboot or Shutdown and press Enter.

3 Se l ect Reboot Server and press Enter. A login p rompt appears.

4 Type myxenpw i n the Password fie ld and p ress Enter. A pro m pt appears as king if you want to reboot the server.

5 Press F8 to restart the server. The XenServer splash screen i appears as the server reboots and the server s h uts down.

6 Press F12 to i n it iate a PX E boot when the startup screen appears and start the next exercise.

U se the fol lowi ng proced u re to instal l XenServer on you r server.

Step Action

1 Cl ick i nto the XenServer Window. After the i n it ia l boot messages, the first instal l at ion screen Select Keymap appears.

N ote: Navigat ion in these screens ut i l izes the fo l lowi n g keys :

• Keys: Tab, Alt-Tab, and U p, Down, Left and Right Arrows Resu lt : Move between elements

• Key: Space Res u lt: Se lect

• Key: F12 Resu lt: Accept the entered val ues and m ove to the next screen

2 Accept the d e fa u lt keymap [qwerty] us and se lect OK. The I n stallat ion Type screen appears.

3 Accept t he defa u lt option Install or upgrade XenServer Host and choose OK. The Welcome to XenServer Setup scree n appears, warn ing that data wi l l be overwritte n .

4 Choose OK. The XenServer E nd U ser License Agreement (EU LA) appears.

5 Read the E U LA and choose Accept EULA. The I nstal lat ion Type screen appears.

© Copyright 2008 Citrix Systems. Inc. 13

Page 15: Xenserver Labs

Exercises for Module 3: Installing XenServer Enterprise Edition 5.0

6 Choose Perform clean installation and choose OK.

7 Sel ect HTIP or FrP as the instal l ation source. Ch oose OK to proceed. The Verify I nsta l l at ion Source screen appears.

8 Se lect the ethO network interface card (N I C) and choose OK. The N etworking configu ration screen appears.

9 Select Static configuration and record the fo l l owin g values from the desktop_fil e and enter them in the static configu ration fie lds :

• Xen Serve r EthO I P Address : ____ _____ _ _ • S u bnet mask: 255.255.0.0

• Defau lt Gateway: ______________ _ Leave the NameSe rve r fie ld empty and choose OK. The Specify Repository screen ap pears.

10 Enter the product installation URllocated in the desktop_file.

Leave the Username and Password fie lds empty and choose OK. The Verify I nsta l lation Sou rce screen appears.

11 Accept the default option Skip verification and choose OK. The Set Password scree n appears, prompting fo r the root password.

12 E nte r Password myxenpw and confirm. Choose OK. The Networking fo r management inte rface adapter screen appears.

13 Select network interface ethO and choose OK. The N etworking for manage ment interface configu ration screen appears.

14 Leave static configu ration selected and choose OK. The Hostname and DNS Configu ration screen appears.

15 E nte r XenServer-student# in the H ostname Configuration fie l d .

Re p lace student#with you r assigned student n u m ber.

16 Enter the DNS server IP address from the des ktop_file (for exam ple: 10.20.8.2) in the DNS Server 1 fie ld and choose OK. The Select Time Zone screen appears.

17 Se lect the nearest geograp h ical area for you r location and choose OK. The S e lect Time Zone scree n appears.

18 Select the nearest city or area for you r location and choose OK. T he System Time scre e n appears.

14 © Copyright 2008 Citrix Systems, Inc.

Page 16: Xenserver Labs

Exercises for Module 3: Installing XenServer Enterprise Edition 5.0

Exercise 3: Install XenCenter

19 Select Using NTP and choose OK. The NTP Configu rat ion screen appears.

20 Accept the default and leave the server add ress fie l d s e mpty. Choose OK. The Co nfi rm I nstal lation screen appears.

21 Choose Install XenServer. A progress bar d isp lays as i nstal l at ion com m ences. A com plet ion message d isp lays when installatio n f in is hes.

Note: Whi le the server instal l s, you may begin instal lation of the XenCenter adm i n console (Exercise 2).

22 Choose OK when the I nstallat ion Co mplete scree n appears. The system re boots. W h i le the system reboots, s ig nal w i l l temporari ly be lost. U po n reaching a l o g i n prompt, the system i s ready to be managed us ing the Xe nCenter Management C l ient.

23 Close the Re mote Access co ntro l ler window.

Use the fol lowing procedure to i n stal l XenCe nte r on you r workstation.

Step Action

1 Go to Start> My Computer.

2 Browse to C:\xenserver\dienCinstall.

3 Dou b le-click XenCenter. msi. The Xe nCenter setup wizard appears. -

4 Cl ick Next. The Select I n stal lation Fo lder scree n ap pears.

5 Accept the defa u lt i n stal l at ion d i rectory C:\Program Files\Citrix\XenCenter and c l ick Next. The Conf i rm

, I nsta l l at ion scree n appears.

I 6 Cl ick Install to beg i n i n stalli ng XenCe nter. The I n stal lat ion Co mplete screen appears.

7 Cl ick Finish. Xen Center is n ow i nstal led.

8 Close Wi ndows Exp lorer.

© Copyright 2008 Citrix Systems, Inc.

I

15

Page 17: Xenserver Labs

Exercises for Module 3: Installing XenSelVer Enterprise Edition 5.0

Exercise 4: Launch XenCenter

Exercise 5: Update the XenServer License

1 6

!

U se the fo l lowing proced u re to lau nch XenCente r on you r wo rkstation .

Step Action

1 Go to Start> All Programs> XenCenter 5.0. Xen Cente r lau nches. It is not con nected to any Xe nServers. A XenCe nter pro m pt appears as king if you wo u l d l i ke to check fo r XenCenter u pdates.

2 Cl ick No. XenCenter is not con nected to any XenServers. A s i m p l e Home page appears in the r ight pane and an em pty f i le tree in the left pane.

3 Click Add your XenServer in the right pane on the Home tab. The Con nect New Server d ia log box appears, p ro m ptin g fo r a XenServer Server to con nect to.

Note : If you started this sectio n before f in is h i n g the serve r i n stal l ation, return and fin ish the remai n i n g steps to get the I P address o f you r server.

4 Enter the fo l lowi ng values:

• H ost name (XenServer EthO I P Add ress):

• User name: root (defau lt)

• Password: myxenpw

5 Cl ick Connect. XenCenter connects to the specified XenServer, which appears as the fi rst object on the fi le t re e in the l eft pane of the applicat ion window.

6 Sel ect you r xenserver from the l eft pane f i le tree. The Xen Server Management Client is d isp layed in the right pane.

Use the fo l lowi ng proced u re to u pdate the Xe nServer l i cense us ing XenCe nter.

1

2

3

4

Select your XenSe rver i n the l eft hand tree pane l .

Se lect the General tab . Scro l l d own on the right hand s ide and view the cu rrent l icense information. Notice the SKU shows Citrix XenServer Express Edition .

Se lect the Server d ropdown m e n u from the top of XenCenter. Se lect Install License Key.

Browse to the desktop and select the Citrix_Xenserver.xslic f i l e and cl ick Open. A l ice nse key d ia log opens.

!

© Copyright 2008 Citrix Systems, Inc.

Page 18: Xenserver Labs

6

© Copyright 2008 Citrix Systems, Inc.

Exercises for Module 3: Installing XenServer Enterprise Edition 5.0

Go back to the General tab and review the u pdated l icense i nformation.

1 7

Page 19: Xenserver Labs

Exercises for Module 3: Installing XenServer Enterprise Edition 5.0

1 8 © Copyright 2008 Citrix Systems. Inc.

Page 20: Xenserver Labs

Exercises for Mod ule 4: Windows Vi rtual Machi nes

CITRIX® •

Page 21: Xenserver Labs

Exercises for Module 4: Windows Virtual Machines

20 © Copyright 2008 Citrix Systems, Inc.

Page 22: Xenserver Labs

Exercises for Module 4: Windows Virtual Machines

Exercise: Creating Windows Virtual Machines

Overview

Objectives

Prerequisites

The s im plest way of i nsta l l i n g a VM on a system is from a network ISO l ib rary used to store v i rtual CDs. After sett ing up a network ISO l i brary, an adm in i strator can create a Windows VM on a Xen5erver us ing a VM te mplate. It is recom mended that ad m i n istrators instal l Xen5erver Too l s o nto Win dows VMs. Xen5e rver Too ls inc ludes a package t o rep lace the i n itial e m u lated storage and network drivers with h igh-speed parav irtual ized d rivers.

In this l ab, you wi l l:

• Create a network ISO l ibrary.

• Create a Windows VM.

• I nsta l l Xen5erver too ls.

Before you begin, you m ust have:

• I n stal l ed XenCenter on a Wi ndows com puter

• I nstal led Xen5erver on another com puter

• Obtai ned the IP address from the local Xen5erver h ost

• Used XenCenter to co n nect to a Xe n5erve r

© Copyright 2008 Citrix Systems. Inc. 21

Page 23: Xenserver Labs

Exercises for Module 4: Windows Virtual Machines

Exercise: Step by Step

Exercise 1: Create a Network ISO Library

22

U se the fo l lowi ng p rocedure to create a new I SO l ib rary.

Step Action

1 Go to Start> Run.

Ente r C:\xenserver i n the O pe n field and c l ick OK. C:\xe nserver appears.

2 Right-cl ick the ISO directory and select Properties.

3 Open XenCenter.

4 Cl ick the Sharing tab and review the Network sharing secu rity options. Confirm Share this fo lder on the network is checked.

5 Cl ick Permissions. The Pe rmiss ions for I SO d ia log opens.

6 Confirm the grou p Everyone i s l i sted in the G ro u ps or user n ames l i st and c l i ck OK to cl ose the Pe rm iss ions for ISO d ial og.

7 Select the Security tab and confi rm that Everyone is l isted i n the G ro u p or u ser n ames section.

I 8 Cl ick OK to c lose the [SO Pro pe rties d ialog.

9 Double-cl ick the ISO d irectory. Confi rm that it contai ns WINDOWS_2003_STD_SP1.iso.

10 Close Windows Explorer and return to XenCente r.

11 Se lect you r XenServer host from the left pane fi le tree.

12 Click the Storage tab in the r ight pane and c l ick New SR. The New Storage Repository wizard appears, requesting storage type.

13 Select Windows File Sharing (CIFS) u nder [SO Libra ry and c l ick Next. The Locat ion screen appears, as k ing for storage name and path.

14 Enter the fol lowing val ues:

• Name: ISO-Library

• Share N ame: \Vnternal/P\ISO

Re place InternaflP with the I nte rnal l P add ress for the hosted WinXP c l ient from the des ktop_fi le .

© Copyright 2008 Citrix Systems, Inc.

Page 24: Xenserver Labs

Exercise 2: Create a Windows VM

Exercises for Module 4: Windows Virtual Machines

Click Finish. Your share with ISO image attaches to the Xenserver, and a new IsO�Library entry appears under your Xenserver.

16 Select ISO-Library from the left pane file tree.

17 Click the Storage tab in the right pane. The Storage panel displays a list of ISO images that are on the file share, including an entry for WINDOWS_2003_sTD_sP1.iso. You can copy new ISO images to this share and the Xenserver will find them automatically.

Use the following procedure to create a new Windows VM using the ISO in the ISO�Library.

1 Select your XenServer Host from the left pane file tree of the XenCenter client.

2 Select New VM from the toolbar. The New VM wizard appears, asking for the template of the operating system of the new Virtual Machine.

3 Select Windows Server 2003 and click Next. The Name screen appears, asking for a machine name and description.

4 Enter WindowsServer in the Name field and click Next. The Location screen appears, asking where installation media is located.

5 Select ISO I mage. Select WIN DOWS_2003_STD_SP1.iso from the drop-down list and click Next. The CPU & Memory screen appears.

6

7

8

9

Accept the default Number of CPUs (1). Change Initial Memory to 256 MO and click Next. The Virtual Disks screen appears, asking for the virtual machine's drive information.

Highlight the first disk and clkk the Edit button. The Disk Settings screen appears.

Change Size to 10.0 GO and click OK. Window focus returns to the New VM wizard.

Click Next. The Virtual Interfaces screen appears, asking for network interfaces.

© Copyright 2008 Citrix Systems, Inc. 23

Page 25: Xenserver Labs

Exercises for Module 4: Windows Virtual Machines

24

Select interface 1 and click Delete. The interface 1 entry is removed.

11 Confirm interface 0 is connected to Network 0 and click Next. The Finish screen appears.

12 Confirm Start VM Automatically is checked.

13 Click Finish. The New VM Wizard disappears and the installation begins.

14

15

16

17

18

When VM creation completes, the progress indicator in the lower-right corner of XenCenter disappears and the new VM starts automatically. The name you provided appears in the list under the XenServer.

Return to XenCenter.

Select WindowsServer from the left pane file tree and click the Console tab in the right pane. A console appears, displaying the VM booting from the Windows install CD image into the Windows Server 2003 Setup program.

Click into the Console window and press Enter. The Windows installation begins and the Windows License Agreement is displayed.

Press F8 to accept the Windows Licensing Agreement. The Partition Setup screen appears.

Select the 10 GO Unpartitioned space virtual drive you created and press Enter. The File Format screen appears.

© Copyright 2008 Citrix Systems. Inc .

Page 26: Xenserver Labs

Exercise 3: I nstall the XenServer tools in a WindowsVM

Exercises for Module 4: Windows Virtual Machines

Select Format the partition using the NTFS file system and press Enter. The Wi ndows setup prog ram formats the v i rtual d isk, copies over the i nsta l l at ion fi les and i n stal l s Windows.

20 Enter t he followi ng val ues when pro m pted d u ri ng the Windows Setup process:

• Regio nal and La nguage Options: Accept defau lt

• Perso nal i ze You r Software: Enter you r name and organ ization

• Your Prod uct Key: VXPDH-6BKMC-GMCM9-7MBQ6-9Q63J

• Licens i ng Mod es: Acce pt defau lt

• Compute r Name: Accept defau lt (or perso nal ize)

• Ad mi n istrator Password: myxenpw

• Date and Time Sett ings: Accept defau lt (or personal ize)

• Netwo rk Sett ings: Accept default

• Workgroup: Accept default

Windows reboots auto m atical ly when the instal l completes.

Use the fol lowi ng p roced ure to i nsta l l the Xe nServer tool s on t he new Win dows virtual mach ine.

2

6

7

8

Cl ick Send Ctrl-Alt-Del in the lower-l eft corner of the tab.

Click the Hardware tab.

Cl ick Device Manager. Device Manager

Expand the IDE ATAiATAPI controllers and ctio ns.

© Copyright 2008 Citrix Systems, Inc. 25

Page 27: Xenserver Labs

Exercises for Module 4: Windows Virtual Machines

Step Action

9 Co nfi rm that emulated IDE and network controllers are active. The e m u l ated I D E and network contro l l ers are active un less a ye l l ow exclamat ion mark appears by the co ntro l lers.

10 Close the Device Manager.

11 Close the System Properties.

12 Right-cl i ck WindowsServer in the left pane fi le tree of the XenCe nter c l ient and select Install XenServer Tools. I nstal l XenServer Too ls appears, te l l i ng you that the XenServer Too l s insta l ler w i l l start i n the VM.

13 Cl ick OK. Citrix Tools for Virtual Mach ines Setu p appears i n t h e WindowsServer Co nsole.

14 Check I accept the terms in the License Agreement and c l ick Next.

15 Accept the d efau lt i n stal latio n dest ination and c l ick Install. The XenServer h igh-speed d rive rs are i n stal led in the VM.

16 CI ick Finish. The VM reboots.

17 Cl ick Send Ctrl-Alt-Oel near the bottom of the Console tab when the reboot i s com plete.

18 Enter Password: myxenpw and cl ick OK. Windows detects the I

XenServer PV Network device and i n stal l s the drive r. The VM i s now runn ing with the Xe nServer h igh-speed parav irtu al ized drivers.

26 © Copyright 2008 Citrix Systems, Inc.

Page 28: Xenserver Labs

Exercises for Module 5: Linux Virtual Machines

CITRIX® •

Page 29: Xenserver Labs

Exercises for Module 5: Linux Virtual Machines

28 © Copyright 2008 Citrix Systems. inc.

Page 30: Xenserver Labs

Exercises for Module 5: Linux Virtual Machines

Exercise: Creating Linux Virtual Machines

Overview

Objectives

Prerequisites

Administrators can use a XenServer VM template to install VMs other than Windows, such as Linux. XenServer provides full Debian templates that administrators can use to directly create a VM running Debian Sarge or Debian Etch Linux distributions without the need for vendor media or performing a physical to virtual (P2V) conversion of an existing physical server.

In this lab, you will create:

• A Debian Linux VM, which will function as an FTP server.

• A CentOS 5 VM, which will function as a DHCP server.

Before you begin, you must have:

• Installed XenCenter on a Windows computer

• Installed XenServer on a different computer

• Obtained the IP address from the local display of a X en Server

• Used XenCenter to connect to a XenServer

© Copyright 2008 Citrix Systems, Inc. 29

Page 31: Xenserver Labs

Exercises for Module 5: Linux Virtual Machines

Exercise: Step by Step

Exercise 1: I nstall a DebianVM

Use the fol lowing p roce d u re to i nsta l l Debian v i rtual m achine u s i n g XenCenter.

Select the you r XenServer host from the left pane fi le tree i n Xe nCente r.

2 Click New VM on the tool bar. The New VM wizard launches, ask i ng for the tem plate of the ope rat ing system of the new VM.

3 Select Debian Sarge 3.1 and dick Next. The N ame screen appears, as k i n g for a mach ine name and descript ion.

4 Enter LinuxFTPServer i n the Name field and dick Next. The CPU & Memory screen appears, ask ing for the n u mber of CPUs and memory a l l ocation.

5 Accept the defau lt N u m ber of CPUs (1). Accept the defau lt I n it ial Memory (256 MB) and dick Next. The Virtual Disks screen appears, as k ing for the d rive i nformatio n of the VM.

6 Accept the defau lt v i rtual d i sk setup and dick Next. The Virtual I nte rfaces scree n appears, ask ing for netwo rk i nterfaces.

7 Select interface 1 and dick Delete. The i nterface 1 entry i s removed.

8 Confirm i nterface 0 is con nected to Network 0 and dick Next. The Fi n ish screen appears.

9 Cl ick Finish. The N ew VM Wizard disappears, and the i nsta l lat ion begins. When VM creation com pletes, the progress i n d i cator in the bottom r ight of XenCente r disappears and t h e new VM starts automatical ly. T he name you p rovided appears i n the l ist u nder the Xe nServer.

10 Retu rn to Xe nCe nte r.

11 Select LinuxFTPServer from the left pane f i le tree and dick the Co nsole tab i n the r ight pane. A console appears , disp lay ing the VM booti n g.

12 Cl ick into the Console window. A prompt to set the root password and hostname is d isp layed. The P lease specify a root password prom pt appears .

30 © Copyright 2008 Citrix Systems, Inc.

Page 32: Xenserver Labs

Exercises for Module 5: Linux Virtual Machines

14 Retype the new UNIX password myxenpw and press Enter. The Please specify a VNC password prompt appears.

15 Enter VNC password myxenpw and press Enter.

16 Retype V NC password myxenpw and press Enter.

17 Enter LinuxFTPServer in the Hostname field and press Enter. The VM is booted and ready to use.

Exercise 2: Connect to Use the following procedure to connect to the Debian VM X console. the Debian VM X Console

2 Enter the username root and password myxenpw to login to the LinuxFTPServer.

3 Click Switch to Graphical Console in the upper-right portion of the Console tab. The Please enter your password prompt appears.

4 Enter myxenpw and click OK. You connect to the Graphical X Console, and the Debian graphical login prompt is displayed.

5 Enter root in the Username field and press Enter.

6 Enter myxenpw in the Password field and press Enter. You are logged into the LinuxFTPServer VM as the root user.

7 Click Undock in the lower-right portion of the Console tab. A separate LinuxFTPServer window appears, containing the console for this VM.

8 Move the undocked Console around the desktop.

9 Click Redock. The Console retu rns to the XenCenter Console tab.

10 Click Fullscreen in the lower-right corner of the Console tab. The Console expands to fill the entire desktop.

11 Press Ctrl-Alt. The Console returns from fullscreen view to XenCenter.

© Copyright 2008 Citrix Systems, Inc. 31

Page 33: Xenserver Labs

Exercises for Module 5: Linux Virtual Machines

Exercise 3: Install a CentOS 5 Lin ux VM

Use the following procedure to install a CentOS 5 Linux virtual machine.

1 Select you r XenServer host from the left pane file tree.

2 Click New VM on the tool bar. The New VM wizard launches, asking for the template of the operating system of the new VM.

3 Select CentOS 5.0 and click Next. The Name screen appears, asking for a machine name and description.

4 Enter CentOSLinuxServer in the i'lame field and click Next. The Location screen appears, asking where the install repository is located.

5 Enter the Install repository U RL located in the desktop_tile.txt in the Install repository URL field and click Next. The CPU & Memory screen appears, asking for the number of CPUs and memory allocation.

6 Accept the default Number of CPUs (1). Accept the default Initial Memory (256 MB) and click Next. The Virtual Disks screen appears, asking for the virtual machine's drive information.

7 Accept the default virtual disk setup and click Next. The Virtual Interfaces screen appears, asking for network i nte rfaces.

8 Select interface 1 and click Delete. The interface 1 entry is removed.

9 Confirm interface 0 is connected to Network 0 and click Next. The Finish screen appears.

10 Click Finish. The New VM Wizard disappears, and the installation begins. When VM creation completes, the progress indicator in the bottom right of XenCenter disappears and the new VM starts automatically.

11 Return to XenCenter.

12 Select CentOSLinuxServer from the left pane file tree and click the Console tab in the right pane. A console appears, showing the VM booting into the Cent OS 5 Setup program.

32 © Copyright 2008 Citrix Systems, Inc.

Page 34: Xenserver Labs

Exercises for Module 5: Linux Virtual Machines

Step Action

13 Click into the Console window.

Note: Navigation in these screens utilizes the following keys (Key I Result):

• Keys: Tab, Alt-Tab, and Up, Down, Left and Right Arrows Result: Move between elements

• Key: Space Result: Select

• Key: F1 2 Result: Accept the entered values and move to the next screen

Accept the entered values and move to the next screen. The Choose a Language screen appears.

14 Accept the default language English and choose OK. The Configure TCP/IP screen appears.

15 Accept the default Dynamic IP configuration (DHCP) under Enable IPv4 support.

16 Select Enable IPv6 support and press Space to disable this option. Choose OK. The Missing Nameserver screen appears.

17 Choose OK. The Welcome to CentOS! screen appears.

18 Choose OK. A Warning screen appears informing you that drive initialization will overwrite data.

19 Choose Yes. The Partitioning Type screen appears.

I 20 Accept the defaults and choose OK. A Warning s.creen

appears, informing you that you have chosen to remove all Linux partitions.

!

21 Choose Yes. The Review Partition Layout screen appears. .

I 22 Accept the default partitioning layout and choose No. The Network Configuration for ethO screen appears.

23 Accept the defaults and choose OK. The Hostname

I Configuration screen appears.

24 Press the Down arrow then Space to select manually.

25 Press the Right arrow to enter CentOSLinuxServer.

26 Choose OK. The Time Zone Selection screen appears.

© Copyright 2008 Citrix Systems, Inc. 33

Page 35: Xenserver Labs

Exercises for Module 5: Linux Virtual Machines

27 Select the nearest region or time zone for your location and choose OK. The Root Password prompt appears.

28 Enter myxenpw in the Password field and myxenpw in the Confirm Password field.

29 Choose OK. The Package Selection screen appears.

30 Accept the default desktop (Gnome) and choose OK. The Dependency Check screen appears, and the installer checks dependencies. The Installation to begin screen appears, telling the location of the install log.

31 Choose OK. Installation of CentOS 5 on the VM begins. As the CentOS 5 installs, progress indicators appear.

34 © Copyright 2008 Citrix Systems, Inc.

Page 36: Xenserver Labs

Exer(:ises for Mod ule 6: Templates and Life-Cy(:le Operation s

CITRIX® •

Page 37: Xenserver Labs

Exercises for Module 6: Templates and Life-Cycle Operations

36 © Copyright 2008 Citrix Systems, Inc.

Page 38: Xenserver Labs

Exercises for Module 6: Templates and Life-Cycle Operations

Exercise: Using Templates

Overview

Objectives

Prerequisites

XenServer p rovides tem plates that enable ad m i n istrators to p rovis ion serve rs in m i n utes. Ad m i n istrators can also defi ne their own tem pl ates tai lored to their specific needs.

I n this lab, you w i l l :

• Create a L inux template.

• Create a new VM from the te mplate.

• I mport a VM clone through Xe nCenter.

• Copy a VM.

Before you begin, you m ust have:

• I nstal led Xe nCente r on a Windows com puter

• Instal led XenServer o n another com puter

• Created the LinuxFTPServer VM

© Copyright 2008 Citrix Systems. Inc. 37

Page 39: Xenserver Labs

Exercises for Module 6: Templates and Life-Cycle Operations

Exercise: Step by Step

Exercise 1: Create a VM Template

Exercise 2: Create a VM from a New VM Template

38

Use the following procedure to create a VM template using the LinuxFTPServer VM.

1 Select LinuxFTPServer from the left pane file tree.

2 Click the General tab in the right pane.

3 Click Properties. The Properties dialog appears.

4 Change Name: LinuxFTPServer to Debian Sarge User Template.

5 Click OK.

Note: I f the VM is running, click Shut Down from the tool bar.

6 Right-dick Debian Sarge User Template in the left pane file tree and select Convert to Template. The Confirm dialog appears.

7 Click OK. Debian Sarge User Template appears in the bottom of the left pane file tree. The VM has been converted to a template (indicated by the blue icon), and you can no longer start this VM.

Use the following procedure to create a VM from the Debian Sarge User template just created.

2

3

4

5

Select New VM from the tool bar or right-click context menu. The New VM wizard appears, asking for the Template of the operati ng system of the new Vi rtual Machi ne.

Select Debian Sarge User Template.

Click Next. The Name screen appears, asking for a machine name and description.

Enter Lin uxFTPServer in the Name field and leave the optional description for the VM in the Description field blank.

© Copyright Zo08 Citrix Systems. Inc.

Page 40: Xenserver Labs

Exercises for Module 6: Templates and Life-Cycle Operations

Step Action

Click Next. The CPU & Memory screen appears, asking for the number of CPUs and memory allocation.

Accept the default Number of CPUs (1) and default Initial Memory (256 MB) and click Next. The Virtual Disks screen appears, asking for the virtual machine's drive information.

8 Click Next to accept the default virtual disk setup. The Virtual Interfaces screen appears, asking for network interfaces.

9 Click Next to accept the default virtual network interface configuration.

10 Click Finish when the Finish screen appears. The New VM Wizard disappears, and the installation begins.

When VM creation completes, the progress indicator in the bottom right of the XenCenter client disappears and the new VM starts automatically.

11 Return to XenCenter. A Debian Sarge VM named LinuxFTPServer appears under XenServer in the left pane file tree and starts automatically.

Select LinuxFTPServer from the left pane file tree.

13 Click the Console tab in the right pane. A console appears, showing the VM booting.

14 When the VM is booted and ready to use, click into the Console and login using Username: root and Password: myxenpw.

Exercise 3: Import an Use the following procedure to import an existing XenServer VM. Existing XenServer VM

1

2

3

4

5

© Copyright 2008 Citrix Systems, Inc.

Select your XenServer host from the left pane file tree.

Right-click the XenServer host name and select Import VM. The Import dialog appears.

Click Browse. Import VM from dialog appears.

Browse to C:\xenserver.

Select LinuxDH CPServer.xva and click Open. This is a compressed file that contains a VM including its virtual disk drives and settings.

39

Page 41: Xenserver Labs

Exercises for Module 6: Templates and Life-Cycle Operations

6 Click Next. The Home Server screen appears.

7 Click Next to accept the defaults. The Storage screen appears.

8 Click Import The Configure virtual network interfaces for the new VM screen appears.

9 Click Next. The Complete the import screen appears.

10 Click Finish to accept the defaults. LinuxDHCPServer now appears in the left pane file tree.

Exercise 4: Copy an Use the following procedure to copy an existing XenServer VM. Existing XenServer VM

40

1 Select the LinuxFTPServer VM from the left pane file tree.

2 Click Shut Down from the tool bar. The Confirm dialog appears.

3 Click O K. Wait until the VM has completely shutdown.

4 Right-click linuxFTPServer VM and select Copy VM. The Copy Virtual Machine dialog appears.

5 Click Copy to accept the defaults.

This lab is now complete. Continue to the next lab.

© Copyright 2008 Citrix Systems, Inc.

Page 42: Xenserver Labs

Exercises for Module 6: Templates and life-Cycle Operations

Exercise: Conducting Life Cycle Operations

Overview

Objectives

The commands fo r managi ng a VM are found i n the fol l owi ng l ocat ions:

• Tool bar (when a VM is selected i n the left pane fi le t ree)

• VMs m e n u

• Context menu (appears when right-cl ick ing an object i n the l eft pane fi le t ree)

The b utto ns and menu opt ions shown depend on the state of the VM. An ad m i n i strator can suspend a VM, sav i ng its state and memory i mage to a fi l e. This a l lows an adm in istrator to s h ut down the physical serve r and later retu rn the VM to its or igi nal ru n n ing state after the p hysical serve r i s rebooted . When a VM i s suspended, it wi l l no lo nger cons u m e C P U or memory resou rces o n t h e XenServe r.

I n t h is lab, you wi l l :

• View d river and perform ance i nform at ion .

• Su spend and resu m e a VM.

• Autostart on reboot.

© Copyright 2008 Citrix Systems, Inc. 4 1

Page 43: Xenserver Labs

Exercises for Module 6: Templates and Life-Cycle Operations

Exercise: Step by Step

Exercise 1: View the High-Speed Drivers in the Windows Device Manager

42

Use the fo l lowi ng procedure to view the parav i rtual ized drivers in the W i ndows Device Manager.

Step Action

1 Select Win dowsServer from the left pane fi le tree. C l ick Start on t he tool bar if th is VM is not ru n n i ng. Wait for the VM to start.

2 Cl ick the Console tab i n the right pane.

3 Cl ick Send Ctrl-Alt-Del in the bottom-left co rner of the Console tab.

� Cl ick i n the Console window.

Enter myxenpw in the Password fie ld.

6 Cl ick OK.

7 Go to Start when the desktop is ful ly loaded.

8 Right-cl ick My Computer and se lect Properties. System Pro perties appears.

9 Select the Hardware tab and c l ick Device Manager. Device Manager appears.

10 Expand the SCSI and RAID contro l l e rs section.

11 Confi rm that the Citrix XenServer PV SCSI Host Adapter d rivers are active.

12 Expand the Network adapters section.

13 Confirm that the Citrix XenServer PV Ethernet Adapte r d river is active.

14 Right-cl ick Citrix XenServer PV Ethernet Adapter and se lect Properties. Citrix XenServer PV Ethernet Adapte r Properties appears.

15 Select the Driver tab.

© Copyright 2008 Citrix Systems, Inc.

Page 44: Xenserver Labs

Exercise 2: Suspend a VM

Exercise 3: Resume a VM

Exercises for Module 6: Templates and Life-Cycle Operations

Step Action

16 Observe that the driver is digitally signed by Microsoft, indicating the Citrix XenServer PV drivers have been certified and signed by Microsoft's driver testing process.

17 Click the Performance tab in XenCenter. Performance data for this VM is displayed.

Use the following procedure to suspend a VM.

1 Select Win dowsServer from the left pane file tree if it is not already selected.

2 Select Suspend from the VM menu, tool bar or right-click context menu. A confirm dialog appears.

3 Click OK. WindowsServer is suspended and the VM status indicator changes to a blue Pause icon.

Note: It may take a few minutes for the VM to suspend.

4 Click the Performance tab in XenCenter. Note that the pause icon is displayed in the performance graphs.

Use the following procedure to resume a VM.

1

2

3

Select Win dowsServer from the left pane file tree (if it is not already selected).

Select Resume from the VM menu, tool bar or right-click the VM. The status indicator initially displays an orange icon indicating the VM is being resumed, followed by a green icon indicating the VM has resumed.

Click the Console tab in the right pane. The WindowsServer VM resumes.

© Copyright 2008 Citrix Systems. Inc. 43

Page 45: Xenserver Labs

Exercises for Module 6: Templates and Life-Cycle Operations

Exercise 4: View Performance Information

Exercise 5: Autostart on Reboot

44

Use the following procedure to view performance information in XenCenter.

1 Select LinuxFTPServer from the left pane file tree.

2 Select Start from the VM menu, tool bar or right-click context menu_

3 Click the Console tab in the right pane.

4 Click in the Console Window.

5 Enter root in the LinuxFTPServer login field. Press Enter.

6 Enter myxenpw in the Password field. Press Enter.

7 Type the following command at the command prompt and press Enter to generate memory and disk load in the VM.

tar -cvf jtmpjtest.tar jusr

8 Wait 15 seconds and select the Performance tab. Time-trend performance data is displayed.

9 Select your XenServer host from the left pane file tree.

10 Click the Performance tab in the right pane. The total load for the server, which includes all the VMs, is displayed.

Use the following procedure to configure the VM auto restart feature in XenCenter.

1 Select LinuxFTPServer from the left pane file tree.

2 Right-click LinuxFTPServer and select Properties.

3 Click the Startup Options tab.

4 Select Auto-start on server boot.

5 Click OK.

© Copyright 2008 Citrix Systems, Inc.

Page 46: Xenserver Labs

Exerci ses for Mod ule 8: Resou rce Management

CITRIX® •

Page 47: Xenserver Labs

Exercises for Module 8: Resource Management

46 © Copyright 2008 Citrix Systems, Inc.

Page 48: Xenserver Labs

Exercises for Module 8: Resource Management

Exercise: Managing Resources

Overview

Objectives

XenServer provides tools to manage system resources inside VMs. Some resources can be provisioned while the VM is running, while others can only be provisioned while the VM is halted.

In this lab, you will:

• Add an additional virtual CPU and more memory to a halted Linux VM.

• Add a new disk drive to a running Windows VM.

• Add startup and edit options.

• Obtain performance statistics and metrics.

© Copyright 2008 Citrix Systems. Inc. 47

Page 49: Xenserver Labs

Exercises for Module 8: Resource Management

Exercise: Step by Step

Exercise 1: View and Change VM Resource Settings

Exercise 2: View Storage Configuration

48

Use the fo l lowing proce d u re to create an i nternal-on ly network on a XenSe rver.

1 Select the yo u r XenServer host from the left pane fi le t ree.

2 Select LinuxFTPServer from the left pane fi le t ree. Shut down the VM if it is c u rrent ly ru n n i ng.

3 Cl ick t h e General tab in the r ight pane.

4 Cl ick Properties. The P roperties d ialog appears.

5 Cl ick t h e Memory and VCPUs tab.

6 Adjust the v i rtua l mach ine memory and t h e nu mber of VCPUs for a VM.

• Lower VM Memory to 196 MR.

• Raise N u m be r of VCPUs to 2.

7 Click OK.

8 Select LinuxFTPServer from the left pane fi le t ree.

9 Select Start from the VM m e n u, tool bar or r ight-c l ick context m e n u. The VM boots with the new resource setti ngs.

Use the fo l lowin g proce d u re to view the cu rrent storage configu rati on of a VM in XenCenter.

3

4

Se lect WindowsServer from the left pane fi l e t ree. VM if it not cu rrent ly r u n n in g.

C l ick the Console tab in the r ight pane.

Cl ick i nto the Console window.

Cl ick Start when the desktop is fu l ly loaded.

© Copyright 2008 Citrix Systems, Inc.

Page 50: Xenserver Labs

Exercise 3: Create and Attach a New Virtual Disk Drive

Exercise 4: Configure a New Virtual Disk Drive

Exercises for Module 8: Resource Management

5 Right-click My Computer and select Manage. The Computer Management window appears.

6 Go to Storage > Disk Management in the left pane fil e tree. I The disk management application displays the current disk

setup for Windows Server. Notice that only a single disk drive is currently displayed.

Click the Storage tab in XenCenter. The disk drive allocation shows a single disk.

Use the fol lowing procedure to add a virtual disk drive to a VM in XenCenter.

Select WindowsServer in the left pane and click the Storage tab in the right pane.

2 Click Add at the top of the Storage tab. The Add New Disk wizard launches.

3 Enter Disk 2 in the Name field.

4 Enter Secondary Disk in the Description field.

5 Accept the default virtual disk size 5 GB.

6 Click Add. A new virtual disk drive is created, and the Disk Management application in the Consol e tab shows a new disk drive.

Use the following procedure to configure a new virtual disk drive for a Windows VM.

2

3

C lick the Console tab in the right pane.

Right-click the new U nallocated disk and select Initialize Disk. The I nitialize Disk dialog appears.

© Copyright 2008 Citrix Systems, Inc. 49

Page 51: Xenserver Labs

Exercises for Module 8: Resource Management

Exercise 5: Edit VM Startup Options

50

5 Right-cl ick the new Unallocated disk and sel ect New Partition. The N ew Partit ion Wizard l au n ches.

6 Cl i ck Next. The Se lect Part it ion Type screen appears.

7 Accept the defau lts and c l ick Next. The Specify Partition S ize screen appears.

8 Accept the defau lts and cl ick Next. The Ass ign Drive Letter o r Path screen appears.

9 Accept the defau lts a n d c l ick Next. The Format Partitio n screen appears.

10 Sel ect Perform a quick format and cl ick Next. The last screen ! appears.

11 Click Finish. The newly added d i s k begins formatt ing as Wi ndows NTFS.

12 Stay in the Console window and go to Start > My Computer t o pe n Windows Exp lorer.

13 Ve rify the new d i s k is active and v is ib le wit h i n Windows.

Use the fo l lowi ng procedu re to edit the startup o ptio ns of a VM.

1

2

3

4

5

6

7

8

Select WindowsServer from the left pane fi le tree.

C l ick the General tab in the r ight pane.

C l i c k Properties. The Prope rties d ia log appears.

C l i c k the Startup Options tab.

S e lect Auto-start on server boot.

Select DVD-Drive. Cl ick Move Down. The Boot O rder i s changed.

C l ick OK.

Ve rify i n the General tab under Boot Options that the boot o rder has been changed.

© Copyright 2008 Citrix Systems. Inc.

Page 52: Xenserver Labs

Exercises for Module 8: Resource Management

Exercise 6: Obtain Performance Statistics and Metrics

Use the fo l lowi ng p rocedure to edit the start u p opt ions of a VM.

1 Select WindowsServer from the left pane f i le tree.

2 Cl ick the Performance tab in the r ight pane.

3 Se lect Last Hour. The statics for the Win dowsServe r VM d u ri n g the l ast h o u r appear.

4 Se lect Reboot from the VM m e n u or the r ight-cl ick context m e n u .

5 Cl ick OK.

6 Cl ick Last Ten Minutes. The statistics for the l ast 1 0 m i n utes appear in the graphs. Observe the re boot ico n in the graphs.

7

8

9

10

Cl ick Configure Graphs. Select d ata sou rces to receive from the serve r in the Data Sources tab.

C l ick the Layout tab. Select any data sou rces from the l ist. C l ick Add Graph.

Cl ick OK.

Scro l l down in the Performance tab to v iew the data of the newly added g raphs.

© Copyright 2008 Citrix Systems, Inc. 51

Page 53: Xenserver Labs

Exercises for M odule B: Resource Management

52 © Copyright 200B Citrix Systems, Inc.

Page 54: Xenserver Labs

Exercises for Module 9: Networking

CITRIX® •

Page 55: Xenserver Labs

Exercises for Modu le 9: Networking

54 © Copyright 2008 Citrix Systems. Inc.

Page 56: Xenserver Labs

Exercises for Module 9: Networking

Exercise: Managing N etworks

Overview Xe nServe r p rovides tools to manage network resources for VMs.

Objectives In th i s lab, you wi l l :

• Add a v i rtual N I C to a VM.

• Create an inte rnal-o n ly network.

• Attach VMs to both i nternal and external networks.

© Copyright 2008 Citrix Systems, Inc. 55

Page 57: Xenserver Labs

Exercises for Module 9: Networking

Exercise: Step by Step

Exercise 1: Create an Internal-Only Network on a Server

Exercise 2: Add an Internal Virtual Network I nterface to a

VM

56

U se the fol lowing procedure to create an inte rnal-only network on a XenSe rver.

2 Cl ick the Network tab i n the right pane. The cu rre nt configu rat ion is d i sp layed, s howin g only physical networks.

3 Cl ick Add Network. The New Network screen appears wit h the Type opt ion selected.

4 Select I nternal Network and c l ick Next. The Name screen appears, as k ing for a netwo rk name and descript ion.

5 Ente r I nternal Network 0 i n the Name field and c l ick Next. The Location screen appears.

6 Accept the defau lts and c l ick Finish.

7 Retu rn to the Network tab of XenCe nter. A new I nternal N etwo r k entry is d isp layed.

U se the fo l lowing proced ure to add an i nternal v i rtual network i nte rface to a VM.

Step Action

1 Select linuxDHCPServer from the left pane f i le tree. C l ick S h ut Down on the too l bar i f th i s VM is r u n n i ng. C l ick OK i n the confirmation dia log a n d wait for t h e V M t o shut down.

2 Click the Network tab i n the r ight pane.

3 Cl ick Add I nterface . N ew Vi rtual N etwork I nterface appears, with the Locat ion and Sett i n gs opt ion selected.

4 Se lect Internal Network 0 from the Network d rop-down m e n u.

5 Accept Auto-generate (defau lt) fo r the MAC add ress configu rat ion and c l ick Fin ish .

© Copyright 2008 Citrix Systems. Inc.

Page 58: Xenserver Labs

Exercise 3 : Enable a Second I nterface and Start a DHCP Server

!

I

7

Exercises for Module 9: Networking

Return to the Network tab of XenCenter. displayed.

Click Start on the tool bar. The LinuxDHCPServer VM starts with the newly added internal network interface.

Use the following procedure to enable a second interface and start a DHCP server.

Step Action

1 Select LinuxDHCPServer from the left pane file tree.

2 Click the Console tab in the right pane. A console is displayed, showing the VM booting.

3 Click into the Console window.

4 Login to LinuxDHCPServer:

• LinuxDHCPServer login: root and press Enter .

• Password: myxenpw (no text appears) and press Enter .

S List the active network interfaces.

ifconf ig

A list of the active network interfaces is displayed. If you get an error, recheck the spelling of the command.

6 Enable the new network interface.

ifup ethl

The new network interface is now enabled.

7 List the active network interfaces.

ifconf ig

The new interface is now shown with a static IP address. Note the I P address assigned to t his interface.

8 Start the DHCP Service.

service dhcpd start

The DHCP server starts and begins using this new virtual network interface to send I P addresses to other systems as it was originally configured.

© Copyright 2008 Citrix Systems, Inc. 57

!

Page 59: Xenserver Labs

Exercises for Module 9: Networking

Exercise 4: Connect a Windows VM to an Internal Network

58

Use the following procedure to connect a Windows VM to an internal­only network.

Step Action

1 Select WindowsServer from the left pane file tree. Verify the VM is started before performing the following action. Click Start on the tool bar if this VM is not running.

2 Click the Console tab in the right pane. A console is displayed, showing the VM booting.

3 Click Send Ctrl�AltwDel in the lower-left corner of the Console tab.

4 Click into the Console window.

5 Enter myxenpw in the Password field and click OK.

6 Go to Start > All Programs > Accessories > Command Prompt. The Command Prompt appears.

7 Display the network configuration information.

ipconfig

Network configuration information is displayed. Note the current IP address. If you get an erro r, recheck the spelling of the command.

8 Return to XenCenter and select the Network tab. :

i 9 Verify only one virtual NIC exists and it is selected.

10 Click Add Interface. The New Virtual Network Interface WindowsServer dialog appears.

11 Select Internal Network 0 f rom the Network drop-down menu. This is the internal virtual network interface created previously in this lab.

12 Click Finish. The new network interface configuration is saved.

13 Return to the Console tab and click into the Console window.

14 Display the network configuration information.

ipconfig

Network configuration information is displayed. Note the current IP address. Compare the two IP addresses. The LinuxDHCPServer VM has provided a new IP address through DH CP over the internal network interface.

© Copyright 2008 Citrix Systems, Inc.

Page 60: Xenserver Labs

Exercises for Module 9: Networking

Exercise 5: View Use the fo l lowi ng procedure to view the network configuration. Network Configuration

1 Select the yo u r XenServer from the left pane fi l e tree.

2 Cl ick the NICs tab in the r ight pane. I nformation about the p hysical network i nterface cards on the v i rtual ization server is d isp layed.

3 Cl ick the Console tab i n the r ight pane.

4 Click into the Console window.

5 Press Enter to log in to the console. If the menu-d riven text

cd / e t c / sysconf i g / network - s cr ip t s

Change you r working d irectory.

7 List the network and bridge configu rat ion fi les.

Is i f c fg *

The network and br idge configu rat ion f i les are l isted. The phys ical network i nterfaces are cal led eth and a n umber (example: ifcfg-ethO). The b ridges or v i rtual switches are cal led xenbr and a n umber (exam ple: ifdg-xen brO) .

8 Display the contents for the ethO fi l e.

nano i f c fg - ethO

The contents are d isp layed for the configurat ion fi le t hat contains the phys ical n etwork configu rat ion of the fi rst network inte rface.

9 Press Ctrl-x. The ed itor exits without sav ing changes.

10 Disp lay the contents for the xenbrO fi le.

nano i f c fg -xenbrO

© Copyright 2008 Citrix Systems, Inc. 59

Page 61: Xenserver Labs

Exercises for Module 9: Networking

60 © Copyright 200B Citrix Systems. Inc.

Page 62: Xenserver Labs

Exercises for Module 1 1 : Remote Storage

CITRIX® •

Page 63: Xenserver Labs

Exercises for Modu le 1 1 : Remote Storage

62 © Copyright 2008 Citrix Systems, I nc.

Page 64: Xenserver Labs

Exercises for Modu Ie 1 1 : Remote Storage

Exercise: Managing Linux Storage

Overview

Objectives

XenServer p rovides tools to manage storage resou rces. The p roced u res fo r managi n g Li nux storage are d ifferent from the proce d u res fo r m an ag i ng Windows storage.

In th is l ab, you wi l l :

• Add a v i rtual d i s k to a VM.

• Configure bas ic storage.

© Copyright 2008 Citrix Systems. Inc. 63

Page 65: Xenserver Labs

Exercises for Module 1 1 : Remote Storage

Exercise: Step by Step

Exercise 1: View the Current Disk Configuration

Exercise 2: Add a Virtual Disk

64

Use the fo l lowin g proce d u re to view the existin g d i s k configu ration of a Li n u x VM.

1 Dou bl e-cl ick the XenCenter desktop icon. XenCenter lau nches.

2 Select LinuxFTPServer from the left pane fi le tree. Cl ick Start o n the tool bar if th is VM is n ot runn ing and wait for the VM to start.

3 Cl ick the Console tab i n the r ight pane and c l ick i nto the Console wi ndow.

4 E nter the fol lowi ng L in uxFTPServer login credentials and press Enter:

• User name: root

• Password: myxenpw (no text ap pears)

5 Type the fo l lowi n g com mand and press Enter:

fdisk - 1

Th e cu rrent d i s k configu rat ion i s d isp layed. Two separate d isk dr ives, /dev/xvda and /dev/xvdb, are l isted.

Use the fo l l owi ng proced u re to add a v i rtual d i sk to a L inux VM.

Step Action

1 Return to Xe nCente r and se lect the Storage tab for Lin uxFTPSe rver. Two d i s k drives are cu rrently al located to th i s VM.

2 Cl ick Add. The Add N ew D i s k Wizard lau nches.

3 E nte r Disk 3 i n the Name fie l d . Leave the Description field b lank. Accept the 5 GB defau l t v i rtual d isk s ize. Accept the default Storage Repository.

4 C l ick Add. A new v i rt u al d i s k d rive is created, and the D i s k Management appl ication i n the Console tab shows a n e w d i s k dr ive.

© Copyright 2008 Citrix Systems, Inc.

Page 66: Xenserver Labs

Exercise 3: Partition and Format a Virtual Disk

Exercises for Module 1 1 : Remote Storage

the Console window.

6 List the partit ions on a l l avai lable hard d i sks.

fdisk - 1

A new d rive, /dev/xvdc, is v is ib le in the VM, but is not partitioned.

Use the fo l lowi ng proced u re to partit ion and format a virtual d i s k.

1 Remai n in t he Console window in the Console tab fo r L inuxFTPServer.

2 List the partitio n tab le of the xvdc d isk.

fdisk / dev /xvdc

A message stat i ng that d i sk /dev/xvdc does not contain a val id partitio n tabl e appears.

menu of options.

4 Type n and press Enter to create a new partit ion .

5 Type p and press Enter to create a primary partit ion.

6 Type 1 and press Enter to assign a parti tion n u mber.

7 Press Enter to accept the defau lt fi rst cyl inder.

8 Press Enter to accept the defau lt last cyl i nder.

9 Type p and press E nter to d isp lay information about the new i partition.

10 Type w and press Enter to permanently write t he new partit ion tab le to d i s k

11 Type the fo l lowi ng comm and and press Enter:

mkfs - t ext3 -j -L datal /dev/xvdcl

A status message is d is played.

© Copyright 2008 Citrix Systems. Inc. 65

Page 67: Xenserver Labs

Exercises for Module 1 1 : Remote Storage

Exercise 4: Mount a Virtual Disk

66

U s e the fol lowing proced u re to mou nt a v i rtua l d isk.

1 Remai n in the Console wi ndow in the Console tab for Li n uxFTPServer.

2 Type the fo l lowi ng com mand and press Enter:

mkdir /mnt /datal

A d i rectory to serve as m o u nt poi nt for the new file system is created.

3 Type the fol lowi ng command and press Enter:

mount /dev/xvdcl front /datal

The new fi l e system is mou nted.

4 Type the fo l lowi ng command and press Enter:

df -h

The mou nted f i le syste ms are l i sted. Verify that fi le system / dev/xvdc1 is mou nted on Im ntldata1 .

© Copyright 2008 Citrix Systems, Inc.

Page 68: Xenserver Labs

Exercises for Module 1 2: Understanding Resource Pools

CITRIX® •

Page 69: Xenserver Labs

Exercises for Module 1 2 : Understanding Resource Pools

68 © Copyright 2008 Citrix Systems. Inc.

Page 70: Xenserver Labs

Exercises for Module 1 2: Understanding Resource Pools

Exercise: Managing Resource Pools

Overview

Objectives

Prerequisites

Xe nServer resou rce pool s make manag ing and deploying VMs eas ier. Once resou rce pools are configu red, adm in istrators can use Xen Moti o n t o manage w h i c h physica l server hosts a VM, a s we l l a s to move VMs between p hysical servers without serv ice i nterrupt ion.

I n th is lab, you wi l l :

• Create a resou rce p o o l a n d a serve r.

• Create shared storage and network configurations .

• Convert a loca l ly stored VM to shared storage.

• Have a VM automatical ly p laced o n a server with free resou rces.

• Move a VM from o ne phys ical server to another us ing Xe nMotion.

Choose a partner from the c lass. Determine whose XenServer wi l l be A and whose Xe nServer wi l l be B for th i s exerci se. Before starting the lab, record the fo l lowing informatio n from the desktop_fi l e for both Xe nServe r A and XenServer B.

• Xe nServe r A

• N FS share: __________ _________ _ • I P add ress for Eth 1 storage traffic: _________ _

• XenServer B

• XenServer host IP address: ____ .. _____ _ • N FS share: __________________ __ _ • I P address for Eth 1 storage traffic: _________ _

© Copyright 2008 Citrix Systems, Inc. 69

Page 71: Xenserver Labs

Exercises for Module 1 2: Understanding Resource Pools

Exercise: Step by Step

Exercise 1: Configure Management Network Inte rfaces (XenServer A and XenServer B)

Exercise 2: Convert a Server into a Master and a Pool (XenServer A Only)

70

Use the fol lowi ng proced u re to configu re the manage m e nt N I C o n both XenServers before jo in i n g a resou rce poo l .

V iew the c u rrent management i nterfaces that are configured on the XenSe rver. In XenCe nter:

a. Right-c l ick you r xenserver.

b. Select Management interfaces. The Management i nterfaces d ialog opens.

c. Confirm that t he re is on ly o ne i nterface, the Pr imary i nterface.

2 Cl i c k N ew I nterface i n the Managem ent i nterface d i alog. A new tab for the i nterface appears.

3 Type Storage Interface in the Name fie ld.

4 Ve rify Network 1 is se lected in the Networ k fie ld .

5 Type the StorageTraffic_IP �ddress i n the IP address field i n t h e I P setti ngs section.

Re p l ace StorageTraffic_IP_Address with the storage traffic I P add ress informat ion from the desktop_fi le .txt fi le .

6 Type 255.255.255.0 i n the S u bnet mask field .

7 Cl ick OK. The Management i nterfaces d ialog c loses.

Use the fo l l owin g proced u re to co nvert a XenServer i nto a master and a resou rce pool .

1

2

3

Se lect your XenServer from the left pane fi le tree.

Cl ick Shut Down on the tool bar for any VMs are run n i ng and wait for the VMs to shut d own.

Click New Pool from the tool bar. The New Pool d i alog appears.

© Copyright 2008 Citrix Systems, Inc.

Page 72: Xenserver Labs

Exercise 3: Prepare a Server for Addition to a Pool (Part A)

Exercise 3: Prepare a Se rver for Addition to a Pool (Part B)

Exercises for Module 1 2: Understanding Resource Pools

! servers screen appears.

5 Accept t h e default maste r serve r and c l ick Finish. The Xe nServe r i s converted to the master of a pool. A new level, named Resou rce Pool, is added to the left pane fi le tree. The pool co ntains a s i ng le XenServer, and the I SO-Library preViou s ly created is a shared resou rce for the pool .

U se the fo l lowing proce d u re to p repare XenServer A before adding m e m bers to the resource poo l .

Step Action

1 I n Xe nCenter with the newly created master and pool, cl ick Connect New Server o n the tool bar. The Con n ect N ew Se rver wi ndow appears.

2 Enter the fo l lowi ng credentials :

• H ostname: IP _Address_XS2 Replace IP _Address_XS2 with the I P address of the second Xe n Se rver.

• User name: root (defau lt)

• Password : myxenpw

3 Click Connect. The second XenServer is now attached to XenCenter and appears as an object in the l eft pane fi le tree.

Use the fol lowi ng proced ure to p repare XenServer B for add ition to a resou rce pool .

2

3

Cl ick S h ut D own on the too l bar for any r u n n i ng VMs. Wait for the VMs to s h ut down.

Remain in XenCenter with the newly created m aster and pool .

R ight-c l ick ISO l ib rary i n the left pane f i le tree and select Detatch Storage Repository. The Add New Server d ialog appears.

© Copyright 2008 Citrix Systems, Inc. 71

Page 73: Xenserver Labs

Exercises for Module 1 2: Understanding Resource Pools

Exercise 4: Add a Server to a Pool (XenServer A Only)

Exercise 5: Create a Shared Storage Configu ration (XenServer A Only)

72

Use the fo l lowi ng p roced ure to add a Xen Server to a Poo!'

Step Action

1 Right-cl ick the second XenServer in the left pane fi l e t ree and select Add to Pool> Resource Pool. The Confirm wi ndow appears.

2 Cl ick OK. The second XenServer is added to Resource Poo l . Once t h e pool jo in operation i s complete, t h e icon t urns green and the reso u rce pool conta ins two servers.

Use the fo l lowi ng p roced u re to create a s hared storage confi g u rat ion.

1

2

3

4

5

6

7

8

Select Resource Pool from the left pane fi le tree.

Click the Storage tab in the right pane and cl ick New SR. The New Storage Repository window appears.

Select NFS u nd e r Vi rtual d isk storage and cl ick Next. The Location scre e n appears, asking for the N FS storage name and path .

Enter N FS�SR i n the Name fie ld .

Open the desktop_file.txt fi le on the desktop and find the N FS Share i nformation.

Ente r the share name g ive n in the fi le i n the S hare Name fie ld and click Scan.

Click Finish. The remote N FS share is attached to the resou rce pool, and a n ew entry with a storage icon appears u n d e r Resou rce Pool .

Retu rn t o XenCente r a n d c l ick t h e Storage tab o n each o f the Xen Serve rs. The N FS-SR remote storage con nection has been automatical l y added to a l l servers i n t he reso u rce poo l .

© Copyright 2008 Citrix Systems, Inc.

Page 74: Xenserver Labs

Exercise 6: Create a Shared Network Configuration (XenServer A Only)

Exercises for Module 1 2: Understanding Resource Pools

Use the following procedure to create a shared network configuration.

2 Click the Network tab in the right pane and Network. The New Network wizard appears.

3 Select External Network and click Next. The appears.

4 Enter VLAN 30 in the Name field and click screen appears.

5 Select N IC 0 for the physical network interface.

6 Enter 30 for the VLAN and click Finish. A new External VLAN connected network is created, and a new entry for the VLAN connected network is displayed.

7 Return to XenCenter and click the Network tab on each of the XenServers. The network configuration has been automatically made to all the servers in the resource pool.

Exercise 7: Copy a VM Use the following procedure to copy a VM to a remote storage repository to a Remote Storage Repository (XenServer A Only)

Remain in XenCenter and select WindowsServer from the left pane file tree. If this VM is running, click Shut Down on the tool bar and wait for the VM to shut down.

2 Select Copy VM from the right-click context menu. The Copy Virtual Machine window appears.

3 Enter WindowsServer2 in the Name field.

4 Select Ful l Copy.

5 Select N FS-SR as the VM's destination storage repository.

6 Click Copy. The VM is copied to the remote storage repository.

7 Select the Resource Pool in the left pane file tree.

k the Logs tab to view the status of the copy. Wait for ing to complete.

© Copyright 2008 Citrix Systems, Inc. 73

Page 75: Xenserver Labs

Exercises for Module 1 2 : Understanding Resource Pools

Exercise 8: Start a VM on an Automatically­Chosen Serve r with Free Resources (XenServer A Only)

Exercise 9: Start a VM on a Particular Server in a Resource Pool (XenServer A Only)

74

Se lect the WindowsServer2 VM in the left tree panel and select the Storage tab. The Storage Repos ito ry i s NFS-SR.

10 Sel ect t he NFS-SR object at the bottom of the left tree panel and select the Storage tab. The WindowsServer2 VM is d isp layed in th is tab.

U se the fol lowing procedu re to start a VM us ing automatic placeme nt.

1 Sel ect WindowsServer2 from the left pane fi le tree. This VM is not run ning and is not attached to any particu lar XenServer.

2 Cl ick Start on the tool bar. The VM is automatical ly p laced o n o n e of t h e s e rvers a n d starts.

Use the fo l lowing proce dure to start a VM on a particu lar s e rver in the resou rce pool.

1 Select WindowsServe r2 from the left pane fi le tree.

2 Cl i c k Shut Down on the tool bar. The Confi rm window appears.

3 Cl ick OK. The VM s h uts down and moves back to the resou rce pool leve l.

4

5

S e lect Start on Se rver from the r ight-c l ic k context m e n u .

S e lect t h e seco n d XenServer from t h e s u b m e n u . T h e VM starts on the XenServer t h at h as been selected from this l ist.

© Copyright 2008 Citrix Systems. Inc.

Page 76: Xenserver Labs

Exercise 1 0 : live Migrate a VM from One Server to another Using XenMotion (XenServer A Only)

Exercises for Module 1 2: Understanding Resource Pools

Use the fo l l owing proced ure to move a l ive VM from server to another i n a resource pool.

1 Select WindowsServer2 from the left pane fi le tree.

2 Select Migrate from the VM pu l ldown menu or on the right­c l ick menu .

Note: A VM can a lso be l ive m igrated by dragging and d ropping it onto another server.

3 Select the other XenServer from the submenu. The VM is moved to the other server with no service inte rru ptio n .

Note: I f an erro r appears or t h e l ive migrat ion does n ot work, check the netwo rk setti ngs for the Windows VM. It m ay sti l l have an internal-on ly n etwork that need s to b e removed.

This lab is com plete. Leave the pool configu ration i ntact for the remain ing l abs.

© Copyright 2008 Citrix Systems. Inc. 75

Page 77: Xenserver Labs

Exercises for Module 1 2: Understanding Resource Pools

76 © Copyright 2008 Citrix Systems, Inc.

Page 78: Xenserver Labs

Exercises for Module 1 4: Com mand Line I nterface

CITRIX® •

Page 79: Xenserver Labs

Exercises for Module 1 4: Command Line Interface

78 © Copyright 2008 Citrix Systems, Inc.

Page 80: Xenserver Labs

Exercises for Module 1 4: Command Line Interface

Exercise: Using the Command line Interface

Overview

Objectives

Prerequisites

The Com mand L ine I nterface (CLI) is used for scripted automat ion of XenServer and resou rce pool operat ions. Most operat ions that can be performed with Xen Ce nte r can also be perfo rmed t h rough the C LI . The CLI is a b i nary executable that r u n s on remote Windows or L in u x compute rs. You c a n a l s o r u n the com m and l i ne on the XenServe r itself.

In th is lab, you wi l l :

• View XenSe rve r config u rat ion information.

• Manage a VM.

Before you begin, you mu st have:

• I nsta l led XenCenter on a Windows comp uter

• Obta i ned the IP address from the local d isp lay of you r XenServer Reso u rce Poo l Maste r

• Created a L inuxFTPServer Debian VM

• Created a WindowsServe r Windows 2003 VM

C>. V Do not d isso lve the resource pool . Keep the pool i ntact fo r the remain ing labs and work with yo u r partner from Lab 9 to e n s u re you do not mod ify the sam e VMs in th is l a b. I f you d i sso lve the pool , a l l of the VMs and data for XenServer B wi l l be lost.

© Copyright 2008 Citrix Systems, Inc. 79

Page 81: Xenserver Labs

Exercises for Module 1 4: Command Line Interface

Exercise: Step by Step

Exercise 1: List Properties of a XenServer Using the Menu-Driven Text Console

Exercise 2 : list Properties of a XenServer Using the Remote CLI

80

Use the fo l lowi ng proced u re to p roperties of a X en Serve r us ing the menu-d riven text console .

1 Select you r XenServer from the l eft pane f i le t ree.

2 Cl ick the Console tab in the r ight pane.

3 Cl ick i nto the Console window.

4 Press Enter to log in to the serve r console.

5 Type the fo l lOWi ng comm and and press Enter:

xsconsole

The XenServer men u-d riven text co nsole is d i sp layed.

6 Press the down arrow key to select Network and Management Interface.

7 Review the informat io n for the cu rrent management interface.

Use the fo l lowing proced u re to v iew p ro pert ies of a XenServe r us ing the Windows remote CLI.

1 Go to Start > All Programs > Accessories > Command Prompt on the Trai n i n g Desktop.

2 Typ e the fol lowi ng com mand and p ress Enter:

cd c : \xenserver

3 Type the fol lowin g com mand and press Enter:

4

5

xe - s IP_Address -u root -pw myxenpw ho st - l i s t

Rep lace I P _Address with the I P add ress of the Xen Serve r h ost.

XenServe r pool info rmat ion is d isplayed.

Confirm that yo u r xenserver is shown in the l ist.

Close the Com mand Prom pt wi ndow.

© Copyright Z008 Citrix Systems. Inc.

Page 82: Xenserver Labs

Exercise 3: List Properties of a XenServer Using the Server CLI

Exercises for Module 1 4: Command Line Interface

Use the fol l owi ng proce d u re to v iew p roperties of a X en Serve r us ing the CLi located in XenCenter.

2 Select yo ur XenServer from the l eft pane f i le tree.

C l ick the Console tab in the right pane.

4 Cl ick i nto the Console w i ndow.

If the m e n u -drive n text console i s sti l l open, select Quit and p ress Enter.

If the men u-driven text console is not open, press Enter to log in to the server co nsole.

Type the fol lowin g com mand and press Enter:

xe host - l ist

Xen Server h ost i nformation i s disp layed.

6 Confirm that you r xenserver is s hown i n the res u lts.

7 Type the fo l lowing command and press Enter:

xe hos t - l i st params =all

Al l parameters of the selected host are d isp layed.

Exercise 4: List All VMs Use the fol lowing procedu re to view a l l the VMs in a resou rce pool . in a Resource Pool

1 Remai n in the Co nsole Window of the XenServe r Console tab.

2 Type the fol lowi ng command and press Enter:

xe vm - l i s t

A l l the VMs i n the resource pool are d isplayed.

3 Type the fol lowin g com mand and press Enter:

© Copyright 2008 Citrix Systems. Inc.

xe vm- l i s t i s - control - domain= f a l s e

Al l the ru nn ing VMs that are n ot control domains are disp layed.

81

Page 83: Xenserver Labs

Exercises for Module 1 4: Command Line Interface

Exercise 5: List Specific U se the fo l l owi ng proced u re to create a shared network co nfiguration . VMs in a Resource Pool

Exercise 6: Halt a VM

82

2 Type the fo l lowi n g com mand and pre ss Tab twice:

xe vrn - s tart vrn=

All the poss ib le VMs that can be used with th i s com mand are d isp layed .

3 Type WindowsServer and p ress Enter.

4 Type the fo l lowi n g command and press Enter:

xe vrn - l i s t power - s tate=running

A l l run n in g VMs, inc l u d i ng the control domain, are d isp layed. Note the U U I O of the WindowsServer VM.

Use the fo l l owing proced ure to s h ut down a VM us ing the CL I .

2 Type the fo l lowin g com mand and press Tab:

xe vrn - shutdown uuid = UUID6

Re place UUID6 with the fi rst s ix characters of the VM from the previous exercise. The U U I O is automatica l ly com pleted.

3 Press Enter to s h ut the VM d own if it is ru n n i ng.

4 Type the fo l l owing com mand and press Tab:

5

xe vrn- l i s t uui d= UUID6

Replace UU 1D6 with the fi rst s ix characters of the VM fro m the previous exercise. The U U 1 0 is automatical ly completed.

Press Enter to d isp lay the power-state parameter.

© Copyright 2008 Citrix Systems. Inc.

Page 84: Xenserver Labs

Exercise 7: Rename a VM

Exercises for Module 1 4: Command Line Interface

U se the fol lowing procedu re to start a VM us ing automatic p laceme nt.

2 Type the fo l l owing com m an d and press Tab:

xe vm- l i s t uuid= UUID6

Replace UUID6 wit h the fi rst s ix characters of the VM from t he previous exercise. The U U I D is automatica l ly completed.

3 Press Enter to d isp lay i nformation about the VM.

4 Observe t he va l ue of the name-labe l field.

5 Type the fo l lowi ng co mm and and p ress Tab:

xe vm -pararn - set uui d=UUID6

Rep lace UUID6 with the fi rst s ix characters of the VM from the previous exercise. The U U I D is automatica l ly comp leted.

6 Append the fol lowing parameter to the prev ious command and press Enter.

narne - l abel = ChangedVMName

Replace ChangedVMName with a name you choose.

The name of the VM is changed.

7 Type the fo l l owing command and press Tab:

xe vm- l i s t uuid= UUID6

Replace UUID6 with the f irst s ix characters of the VM from the previous exercise. The U U I D i s automatica l ly comp leted .

8 Press Enter to d isp lay information about the VM.

9 Observe that the new name is a lso �t>tlt>rtt>rl

© Copyright 2008 Citrix Systems, Inc. 83

Page 85: Xenserver Labs

Exercises for Module 1 4: Command Line Interface

S4 © Copyright ZOOS Citrix Systems. Inc.

Page 86: Xenserver Labs

Exercises for Mod ule 1 5: Upgrades and Troubleshooti ng

CITRIX® •

Page 87: Xenserver Labs

Exercises for Module 1 5: Upgrades and Troubleshooting

86 © Copyright 2008 Citrix Systems, Inc.

Page 88: Xenserver Labs

Exercises for Module 1 5: Upgrades and Troubleshooting

Exercise: Tro u b l esh ooti ng

Overview

Objectives

Prerequisites

Xe nServer logs eve nt i nformation that can be he lpful fo r adm i n istrators d iagnos i n g problems. I t a lso provides a ut i l ity to gather system informatio n to provide to Xen Se rver techn ical support.

In th is lab, you wi l l :

• View logs.

• Generate a di agn ostic fi le.

Before you begin, you m u st have:

• I n sta l l ed XenCe nte r on a Windows comp uter

• Obtai ned the IP address from the local d isp lay of your XenSe rver

Do not disso lve the reso urce pool. Keep the pool i ntact fo r the remai n i n g labs and wo rk with yo ur partner fro m Lab 9 to e n s u re yo u do not mod ify the same VMs in th i s lab . If yo u d i sso lve the poo l , a l l of the VMs and data for XenServer B wi l l be lost.

© Copyright 2008 Citrix Systems, Inc. 87

Page 89: Xenserver Labs

Exercises for Module 1 5: Upgrades and Troubleshooting

Exercise: Step by Step

Exercise 1: Validating Xe nServer Installation

Exercise 2: log in to the Server Console Usin g an SSH client

88

Use the fo l lowing p roce d u re to va l idate a XenServe r i n stal l at ion us ing the men u-d rive n text console.

2 Cl ick the Console tab in the right pane.

3 Cl ick i nto Console window. Press Enter to log i n . You are logged i nto the server console (control domain) .

4 Type the fol lowi n g com mand and press Enter:

xsconsole

The XenServer menu-driven text console is d isp layed.

5 Se lect Technical Support and press Enter.

6 Se lect Validate Server Configuration and p ress Enter.

7 Enter login and password i nformat ion and press Enter.

8 Review the val idation res u lts and press Enter.

Use the fol lowi n g proce d u re to access the XenServer conso l e u s i ng an SSH c l ient.

2 Type the fol l ow i n g command in the Open fie ld and c l ick OK:

3

4

C : \XenSever\putty root@IP_Address

Replace IP_Address with the I P add ress of t he XenServe r host.

A Putty Secu rity Alert appears.

Cl ick Yes. A password prompt appears.

Enter myxenpw (no text appears) and press Enter. You are l ogged into the server co nsole (control domain) re motely.

© Copyright 2008 Citrix Systems, Inc.

Page 90: Xenserver Labs

Exercise 3: View the XenServer Log File

Exercise 4: Restart a VM using XenCenter

Exercises for Module 1 5: Upgrades and Troubleshooting

Use the fol lowing proced u re to add a XenServer to a Pool .

Step Action

1 Remai n i n t he Putty SSH c l ient.

Note: This Exercise can be completed in either the XenCenter or Putty SSH c l ient.

Type the fo l lowing com mand and press Enter:

l es s /var/ l og /xensource . log

Note: The XenServer log fi l e is d isp layed.

2 U se the com mands in the fo l l owing table to navigate through the log fi le. Com mand Function

• d = Page d own

• b Page up

• G Go to e n d of fi l e

• g = Go to start of f i le

• lexample Search forward for the text exam ple

• ?example = Search backward for the text example

• n = F ind n ext occurre nce of search str ing

• q = Q u it

3 Type q to exit the fi l e v iewer.

4 Type the fo l lowing com mand and press Enter:

t a i l - f

Updates to t h e l og fi l e a re com mand r u n ning wh i l e n<=>,rtn lr m ;, na

Use the fo l l owing p rocedu re to restart a VM and v iew the output from the previous exercise.

1 Return to XenCenter.

2 Select WindowsServer from the left pane fil e tree and cl ick Start o n the tool bar to start the VM.

3 Wait for the VM to start.

4 Cl ick Shut Down on the tool ba r with WindowsServer st i l l sel ected.

© Copyright 2008 Citrix Systems. Inc. 89

Page 91: Xenserver Labs

Exercises for Module 1 5: Upgrades and Troubleshooting

Exercise 5: Generate Diagnostic File for Submission to Technical Support

Exercise 6: Securely Copy Diagnostic File to a Windows client

90

5 Wait for the VM to s h ut down.

6 Switch back to the Putty SSH c l ient and view the output from the tai l -f com mand.

7 Press Ctrl-C to term i nate the tai l -f com mand.

Use the fo l lowin g p roce d u re to gen erate a XenServer d iagnostic fi l e.

1 Remain in the Putty SSH c l ient.

2 Type the fo l lowin g command and press Enter

xen-bugtool - -yestoa l l

Note: I f both dashes are not p laced before yestoal l , you wi l l be prom pted for each repo rt ind iv idual ly.

3 Record the f i le name created at the end of th is process. The fi l ename is of the form "bug-repo rt-datestam p.tar.bz2" where datestam p ind icates the date the d iagn ostic f i le was created.

Use the fo l l owing proced u re to copy a XenServer d iagnostic fi le to a Windows cl ient.

1 Go to Start > All Programs > Accessories > Command Prompt on the Train i n g Desktop. The Com mand Prompt appears.

2 Type the fo l l ow i n g command and p ress Enter:

cd c : \xenserver

© Copyright 2008 Citrix Systems, Inc.

Page 92: Xenserver Labs

Exercises for Module 1 5: Upgrades and Troubleshooting

Step Action

3 Type the fo l lowing com mand and press Enter:

pscp root@IP_Address : !var!opt !xen!bug - report!bug ­

report - da te s t amp . t a r . bz 2 .

Replace:

• IP_Address with the I P address of the Xe nServer host

• datestamp with the date stamp of the fi le ge ne rated i n the previous Exe rcise

Note: There i s a space before the last period in the com mand. Be careful to inc l ude the period at the end of the command. This refers to the cu rre nt di rectory o n the Wi ndows m ach ine .

The pscp command starts.

4 Type root@ IP_Address password : myxenpw (no text appears) and p ress Enter. The d iagnostic f i le is t ransferred to the local Wi ndows machi ne.

Replace IP _Address with the I P address of the XenServer host.

Note: The eLi also i nc l u des t he xe host-bug report-up load command. This com m and ru ns xe n-bugtool and automatical ly up loads the resu lt ing f i le to XenSe rver s u pport. For example: xe h ost-bugreport-up load host= TRNSRV-A-04

© Copyright 2008 Citrix Systems, Inc. 9 1

Page 93: Xenserver Labs

Exercises for Module 1 5: Upgrades and Troubleshooting

92 © Copyright 2008 Citrix Systems, Inc.

Page 94: Xenserver Labs
Page 95: Xenserver Labs

CITRIX® •

851 West Cyp ress Cree k Road Fort Lauderdale, FL 33309 USA (954) 267 3000 www.citrix.com

Rhei nweg 9 8200 Schaffhausen Switzerland +41 (0) 52 63577 00 www. citrix.com

©Copyr ight 2008 Citr ix Systems, I n c. All r ights reserved.

1 1111111 11111111111 11 111111 1'111 11111 1111 111111 111111 111 1111111 111 1111111 111 11111111 1111 III!II II 1111 * c x s - 2 0 0 - 1 I - E W 8 - M A N *