You are on page 1of 95

, L1

0.7 (
. .. Implementing Citrix XenSerer


Enterprise Edition 5.0
CXS-200-11
Lab Guide

CITRIX


CITRIX

Implementing Citrix XenServer
Enterprise Edition 5.0
Exercise Workbook
Citrix Course CXS-200-11
October 2008

CITRIX" authorized

Courseware
NOTICE
Ci tri x Systems, I nc. (Ci tri x) makes no representati ons or warranti es wi th respect to the content or
use of thi s publ i cati on. Ci tri x specifi cal l y discl ai ms any expressed or i mpl i ed warranties,
merchantabi l ity, or fitness for any parti cul ar purpose. Ci tri x reserves the ri ght to make any changes
i n speci fi cati ons and other i nformati on contai ned i n t his publ icati on wi thout pri or noti ce and
wi thout obl igati on to notify any person or entity of such revi si ons or changes.
Copyri ght 2008 Citri x Systems, I nc. All Ri ghts Reserved.
No part of thi s publ i cati on may be reproduced or transmitted in any form or by any means,
el ectroni c or mechani cal , i ncl udi ng photocopyi ng, recordi ng, or i nformati on storage and retrieval
systems, for any purpose other than the pu rchaser's personal use, without express written
permi ssi on of:
Citrix Systems, Inc.
851 W. Cypress Creek Road
Ft. Lauderdale, FL 33309
http: //ww .citrix.com
The fol l owi ng marks are servi ce mar ks, trademarks or registered t rademarks of thei r respective
owners i n the United States and other countri es.
NlK LW00l
Active DirectorY, Microsoft", Microsoft Microsof 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.
cuteFTp
TM GlobalSCAPE Texas, LP
Debian Softare in the Public Interest, Inc.
Dell", EquaILogic' Dell, Inc.
Fujitsu" Fujitsu Limited Corporation
;
Google Google, Inc.
GNU" Free Software Foundation
HP" Hewlett-Pckard Development Company,
IBM" International Business Machines Corporation
, Intel", XEON" Intel Corporation
! ISO Recorder Alex Feinman
Linux" Linus Torvalds
NetApp" Netork Appliance, Inc.
Novell", SUSETM Novell, Inc.
,
Oracle" Oracle Corporation
Realtek Realtek Semiconductor Corporation
Copyright 2008 Citrix Systems, Inc.
NlK LWu0l
I Red Hat Red Hat, Inc.
SGI' Silicon Graphics, Inc.
Sun' Sun Inc.
Toolwire' Toolwire
UNIX' The Open Group
Other product and company names menti oned herei n mi ght be the servi ce marks, trademarks or
regi stered trademarks of thei r respective owners i n the Uni ted States and other cou ntri es.
Copyright 2008 Citrix Systems, Inc. 3
Conventions
Thi s courseware uses the followi ng typographi c conventi ons to emphas i ze i nformati on .

. ....
.....

. .
colvention Usage , .
. .
UPPERCASE
Di rectory names and paths such as DESKTOP and
WI NNT\SYSTEM32
Drive letters such as A: and C:
UNC paths such as \1 NSTRUCTOR\SCRI PTS
Case sensiti ve items are the only excepti on to the usage listed.
l owercase
Command l i ne parameters such as Iw and -r
URL addresses such as http://fi nance.yahoo. com
I nternet addresses such as www.ci tri x.com
Domai n names such as educati on.ctxs
Emai l addresses such as trai ni ng@ci tri x.com
Case sensiti ve items are the onl y excepti on to the usage l i sted.
Bold I nitial
Interface items t hat are sel ected, desel ected, typed, cl i cked,
Capitalization
doubl e- cl i cked or ri ght-cl i cked such as opti ons and menu i tems
i n l ab exerci ses
Case sensiti ve items are the onl y excepti on to the usage li sted.
italic lowercase
Vari abl e d rive letters such as Z. and X.
Vari abl e di rectory names such as %systemroot% and dir_name
Case sensiti ve items are the only excepti on to the usage l i sted.
monospaced font
Commands that are used in the command l i ne i nterface.
4 Copyright 2008 Citrix Systems. Inc.
Thi s courseware uses the fol l owi ng i cons.
Icon

.
' .
.
E. . .
.

. .


..

\



Explanation
The note icon i dentifies addi ti onal rel evant i nformati on.
The i mportant icon i dentifies prerequi site i nformation for a given task.
The tip icon identifi es i nformati on that can save ti me and effort.
The warni ng i con i dentifi es i nformati on that must be heeded in order to prevent
harm to systems or users.
Credits
Instructional Designers: Er i n Shatara, George Komoto, Roxanne Bal ol ong, Hung Ha, Beth Goodwi n
Graphic Artist: Gi no Pol esel l o, Nat han jackson
Manager: Gi na Al esse
Translation Coordinator: Franci ne Chiaveri ni
Subject Matter Experts: Thom Bai l ey, Matt Fairbanks, Tyl er Carter, Roger Klorese, Gordon Stretch,
Alan Oehl er, jul ie Al l en, Ani l Madhavapeddy, james Bul pi n, Ewan Mel l or, Peter Bl um,
Chri stoph Berl i n, Bi l l Carovano, Joel Stocker, Adam Lotz, james West, Vadi m Lebedev,
Brian Fehl i ng, Tarkan Kocogl u, Ol ivi er Wi thoff, Sam Ware, Chaitanya Upad hyay, DeeLayna Hu rst,
Shannon Snowden and Mi chael Del aguardi a
Copyright 2008 Citrix Systems. Inc, 5
6 Copyright 200S Citrix Systems, Inc.
Table of Contents
Exercises for Module 3: Installing XenServer Enterprise Edition 5.0 e e e e e e e e e e e e e e 9
Exerci se: I nstal l i ng XenServer Enterprise Editi on 5.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Exerci se: Step-by-Step = = v 12
Exercises for Module 4: Windows Virtual Machines e e e e e e e e e e e e e e e e e e e e e e e e e 19
Exercise: Creati ng Wi ndows Vi rtual Machi nes . . . . . . . .. . . 21
Exerci se: Step by Step . . . . . u . . . .. + ... . ... 22
Exercises for Module 5: Linux Virtual Machines e e e e e e e .e e e e ..e e e e e e e e e e e e e e e e 27
Exerci se: Creati ng Li nux Vi rtual Machi nes . . . . . . ... .. .. . . 29
Exerci se: Step by Step .e . . . e . . . u . . . . . . . . . 30
Exercises for Module 6: Templates and life-Cycle Operations e e e e e e e e e .e e e e e e e 35
Exercise: Usi ng Templates . . . , ............................................. 37
Exerci se: Step by Step . .. . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . ..... 38
Exerci se: Conduct i ng Life Cycl e Operati ons . . .. . .. .. . .. 41
Exerci se: Step by Step . + . . . . . . a . . . ....................... 42
Exercises for Module 8: Resource Management e e e e e e e e e e e e e e e e e e e e e e e e e e e .45
Exercise: Managi ng Resources . . ... . . . . . . . . . .. . . . . . .. . . . . . . .. . ... . . . .. . .. . .. . ....... 47
Exerci se: Step by Step . .. .. .. e .. . v . . u . . .. . . . u . . . .. . .. 48
Exercises for Module 9: Networking e e e e e e e e e e e e e e e .e e e e e e e e e e e e e e e e e e e e e e e 53
Exerci se: Managi ng Networks . .. . . . u .. u . . . .............. 55
Exerci se: Step by Step n . ... . . .. . . . . . .... .. . . . u 56
Exercises for Module 11: Remote Storage e e e e e e .e e e e e e e e e e e e e e e e e e e e e e e .e 61
Exercise: Managi ng Li nux Storage . . + . . .. n . . . . .. . . . . 63
Exerci se: Step by Step . . . . . . . . . . . . . + .. . . 64
Exercises for Module 12: Understanding Resource Pools e e e e e e e e e e e e e e e e e e e e e 67
Exerci se: Managi ng Resou rce Pool s . . . . . . . . . + .. . e . . 69
Exerci se: Step by Step . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Exercises for Module 14: Command line Interface e e e e e e e e .e e ..e e .e e e e e e e e e 77
Exercise: Usi ng the Command Li ne I nterface . . . . . .. . .. . . + 79
Exerci se: Step by Step . . . . . . u .. . . u . . . 80
Copyright 2008 Citrix Systems, I nc. 7
Exercises for Module 15: Upgrades and Troubleshooting = 85
Exerci se: Trou bleshooti ng + e e u u 87
Exerci se: Step by Step a + 88
8 Copyright 2008 Citrix Systems, Inc.
Exerises for Module 3: Installing
XenServer Enterprise Edition 5.0

CITRIX

Exercises for Modul e 3: Instal l i ng XenServer Enterprise Edi ti on 5.0
10 Copyright 2008 Citrix Systems, Inc.
Exercises for Module 3: Installing XenServer Enterprise Edition 5.0
Exercise: Installin
g
XenServer Enterprise
Edition 5.0
Overview XenServer Enterpri se Editi on 5.0 has two parts:
XenServer, consi sti ng of:
The Xen pl atform
The control domai n, a management and dri ver vi rtual machi ne
(VM)
The management agent
Support for a variety of Wi ndows and Li nux VMs
XenCenter, a remote Wi ndows . Net cl i ent appl i cati on
XenCe nter must be i nstal l ed on a remote Wi ndows machi ne that can
connect to the XenServer host through the network; it cannot r un on the
same machi ne as the XenServer host.
System Requirements XenServer must be i nstal l ed on a dedicated 64-bit x86 server with no
exi sti ng operati ng system.
Objectives
The XenCenter must be i nstal l ed on a remote Wi ndows machi ne that can
connect to the XenServer through the network. XenCenter cannot run
on the same machi ne as the XenServer.
In thi s lab, you wi l l create a XenServer host by i nstal l i ng the XenServer
software on a server located i n the Toolwire l ab. You wi l l perform al l the
i nstal l ati on steps of a new i nstal l and experi ence fi rst hand the "Ten
mi nutes to Xen" story.
In thi s l ab, you wi l l :
I nstal l XenServer Enterpri se Edi ti on 5.0.
Create a XenServer.
I nstal l XenCenter.
The target server for XenServer i s accessed usi ng t he
Del l Remote Access Consol e (RAC). A shortcut to the
RAC i s located on the student desktop withi n Tool wi re.
Copyright 2008 Citrix Systems, Inc. 1 1
Exercises for Module 3: Installing XenSerer Enterprise Edition 5.0
Exercise: Step-by-Step
Exercise 1: Connect to Use the fol l owi ng procedure to i nstal l XenServer on your server.
the Host Server
Exercise 1
Troubleshooting
1 2
1 Dou bl e-cl i ck the RAC desktop i con. A Secu rity Al ert appears.
2 Cl i ck OK. Another Securi ty Al ert comes up.
3 Cl i ck Yes.
4 Logi n with Username: root
5 Enter myxenpw i n the Password fi el d.
6 Cl i ck OK.
7 Sel ect the Console tab.
8 Scrol l down and cl i ck Connect.
If an I nternet Expl ore r Security Warni ng appears to i nstal l the
Del l Vi rtual Keyboard Vi deo Moni tor, cl i ck Install. A wi ndow
showi ng the server booti ng appears.
9 Cl i ck i nto the XenServer Window.
After t he i ni ti al boot messages, the fi rst XenServer i nstal l ati on
screen, Sel ect Keymap, appears. Conti nue wi th Exerci se 2:
I nstal l XenServer.
Note: If the XenServer i nstal l ati on screen does not appear,
refe r to the fol l owi ng secti on on t roubl eshooti ng.
I f the fi rst i nstal l ati on screen and the XenServer Conf i gurati on screen do
not appear, then perform the fol l owi ng steps before conti nui ng.
1
2
3
Cl i ck the Power Management tab in the RAC web i nterface.
Sel ect Power Cycle System and cl i ck Apply.
Press F12 to i nitiate a PXE boot when the startup screen
appears and start the next exerci se.
Copyright 2008 Citrix Systems, Inc.
Exercise 2: Install
XenServer
Exercises for Module 3: Installing XenSerer Enterprise Edition 5.0
I f the fi rst i nstal l ati on screen does not appear and XenServer is al ready
i nstal l ed, then perform the fol l owi ng steps before cont i nui ng.

2 l eet Reboot or Shutdown and press Enter.


3 Sel ect Reboot Server and press Enter. A l ogi n prompt
appears.
4 Type myxenpw i n the Password fiel d and press Enter. A
prompt appears as ki ng if you want to reboot the server.
5 Press F8 to restart the server. The XenServer spl ash screen
i appears as the server reboots and the server s huts down.
6 Press F12 to i ni ti ate a PXE boot when the startup screen
appears and start the next exerci se.
Use the fol l owi ng procedure to i nstal l XenServer on your server.
Step Action
1 Cl i ck i nto the XenServer Window. After the i niti al boot
messages, the fi rst i nstal l ati on screen Sel ect Keymap appears.
Note: Navi gati on in these screens uti l izes the fol l owi ng keys:
Keys: Tab, Al t-Tab, and Up, Down, Left and Ri ght Arrows
Resu l t : Move between el ements
Key: Space
Res ult: Sel ect
Key: F12
Resul t: Accept the entered val ues and move to the next
screen
2 Accept the default keymap [qwerty] us and sel ect OK. The
I nstall ati on Type screen appears.
3 Accept t he default opti on Install or upgrade XenServer Host
and choose OK. The Wel come to XenServer Setup screen
appears, war ni ng that data wi l l be overwritten.
4 Choose OK. The XenServer End User Li cense Agreement
( EU LA) appears.
5 Read the E ULA and choose Accept EULA. The I nstal l ati on
Type screen appears.
Copyright 2008 Citrix Systems. Inc. 13
Exercises for Module 3: Installing XenServer Enterprise Edition 5.0
6 Choose Perform clean installation and choose OK.
7 Sel ect HTP or FP as the instal l ation source. Choose OK to
proceed. The Verify I nstal l ation Source screen appears.
8 Sel ect the ethO network interface card (NI C) and choose OK.
The Networ king configuration screen appears.
9 Sel ect Static configuration and record the fol l owing val ues
from the desktop_fil e and enter them in the static
configuration fiel ds:
XenServer EthO I P Address: _,__,_,__
Subnet mask: 255.255.0.0
Defaul t Gateway: ._.,_.,_.=.=.
Leave the NameServe r fiel d empty and choose OK. The
Specify Repository screen appears.
10 Enter the product installation URllocated in the desktop_file.
Leave the Username and Password fiel ds empty and choose
OK. The Verify I nstal l ation Source screen appears.
11 Accept the defaul t option Skip verification and choose OK.
The Set Password screen appears, prompting for the root
password.
12 Enter Password myxenpw and confirm. Choose OK. The
Networking for management interface adapter screen
appears.
13 Sel ect network interface ethO and choose OK. The
Networking for management interface configu ration screen
appears.
14 Leave static configu ration sel ected and choose OK. The
Hostname and DNS Configu ration screen appears.
15 Enter XenServer-student in the Hostname Configuration
fiel d.
Repl ace student#with your assigned student number.
16 Enter the DNS server IP address from t he des ktop_fil e (for
exampl e: 10.20.8.2) in the DNS Server 1 fiel d and choose OK.
The Sel ect Time Zone screen appears.
17 Sel ect the nearest geographical area for your l ocation and
choose OK. The Sel ect Time Zone screen appears.
18 Sel ect the nearest city or area for you r l ocation and choose
OK. The System Time screen appears.
14 Copyright 2008 Citrix Systems, Inc.
Exercises for Module 3: Installing XenServer Enterprise Edition 5.0
Exercise 3: Install
XenCenter
19 Sel ect Usi ng NTP and choose OK. The NTP Confi gurati on
screen appears.
20 Accept the defaul t and l eave the server address fi el ds empty.
Choose OK. The Confi rm I nstal l ati on screen appears.
21 Choose Install XenServer. A progress bar di spl ays as
i nstal l ati on commences. A compl eti on message di spl ays
when i nstallati on fi ni s hes.
Note: Whi l e the server i nstal l s, you may begi n i nstal l ati on of
the XenCenter admi n consol e ( Exerci se 2).
22 Choose OK when the I nstallati on Compl ete screen appears.
The system reboots. Whi le the system reboots, si gnal wi l l
temporari l y be l ost. Upon reachi ng a l ogi n prompt, the
system i s ready to be managed usi ng the XenCenter
Management Cl i ent.
23 Cl ose the Remote Access control l er wi ndow.
Use the fol l owi ng procedure to i nstal l XenCenter on your workstati on.
Step Action
1 Go to Start> My Computer.
2 Browse to C:\xenserver\dienCinstall.
3 Doubl e-click XenCenter. msi. The XenCenter setup wizard
appears. .
4 Cl i ck Next. The Sel ect I n stal l ati on Fol der screen appears.
5 Accept the default i nstal l ati on di rectory C:\Program
Files\Citrix\XenCenter and cl i ck Next. The Confi rm

I nstal l ati on screen appears.


I
6 Cl i ck Install to begi n i nstal li ng XenCenter. The I nstal l ati on
Compl ete screen appears.
7 Cl i ck Finish. XenCenter is now i nstal l ed.
8 Cl ose Wi ndows Expl orer.
Copyright 2008 Citrix Systems, Inc.
I
15
Exercises for Module 3: Installing XenSelVer Enterprise Edition 5.0
Exercise 4: Launch
XenCenter
Exercise 5: Update the
XenServer License
1 6

Use the fol l owi ng procedure to l au nch XenCenter on you r workstati on.
Step Action
1
Go to Start> All Programs> XenCenter 5.0. XenCenter
l aunches. It is not connected to any XenServers. A XenCenter
prompt appears as ki ng if you woul d l i ke to check for
XenCenter u pdates.
2 Cl i ck No. XenCenter is not connected to any XenServers. A
si mpl e Home page appears in the ri ght pane and an empty fi l e
tree i n the left pane.
3 Cli ck Add your XenServer in the ri ght pane on the Home tab.
The Connect New Server dial og box appears, prompti ng for a
XenServer Server to connect to.
Note: If you started thi s secti on before fi n ishi ng the server
i nstal l ati on, return and fi ni sh the remai ni ng steps to get the I P
address of you r server.
4 Enter t he fol l owi ng values:
Host name ( XenServer EthO I P Address):
User name: root (default)
Password: myxenpw
5 Cl i ck Connect. XenCenter connects to the speci fi ed
XenServer, which appears as the fi rst object on the fi l e t ree i n
the l eft pane of the appl i cati on wi ndow.
6 Sel ect your xenserver from the l eft pane fi l e tree. The
XenServer Management Client is di spl ayed in the ri ght pane.
Use the fol l owi ng procedu re to u pdate the XenServer l i cense usi ng
XenCenter.
1
2
3
4
Sel ect your XenServer i n the l eft hand tree panel .
Sel ect the General tab. Scrol l down on the ri ght hand si de
and vi ew the current l icense i nformati on. Noti ce the SKU
shows Citrix XenServer Express Edi ti on.
Sel ect the Server dropdown menu fr om the top of XenCenter.
Sel ect Install License Key.
Browse to the desktop and select the Citrix_Xenserver.xslic
fi l e and cl i ck Open. A l icense key di al og opens.
!
Copyright 2008 Citrix Systems, Inc.
6
Copyright 2008 Citrix Systems, Inc.
Exercises for Module 3: Installing XenSerer Enterprise Edition 5.0
Go back to the General tab and review the updated l i cense
i nformati on.
1 7
Exercises for Module 3: Installing XenSerer Enterprise Edition 5.0
1 8 Copyright 2008 Citrix Systems. Inc.
Exerci ses for Module 4: Wi ndows
Vi rtual Machi nes

CITRIX

Exercises for Module 4: Windows Virtual Machines
20 Copyright 2008 Citrix Systems, Inc.
Exercises for Module 4: Windows Virtual Machines
Exercise: Creating Windows Virtual
Machines
Overview
Objectives
Prerequisites
The si mpl est way of i nstal l i ng a VM on a system is from a network I SO
l i brary used to store vi rtual CDs. After setti ng up a network I SO l i brary,
an admi ni strator can create a Wi ndows VM on a Xen5erver usi ng a VM
templ ate. It is recommended that admi nistrators i nstal l Xen5erver Tool s
onto Wi ndows VMs. Xen5erver Tool s i ncl udes a package t o repl ace the
i niti al emulated storage and network dri vers with hi gh-speed
paravi rt ual ized drivers.
I n this l ab, you wi l l :
Create a network ISO l i brary.
Create a Wi ndows VM.
I nstal l Xen5erver tool s.
Before you begi n, you must have:
I nstal l ed XenCenter on a Wi ndows computer
I nstal l ed Xen5erver on another computer
Obtai ned the I P address from the l ocal Xen5erver host
Used XenCenter to connect to a Xen5erver
Copyright 2008 Citrix Systems. Inc. 21
Exercises for Module 4: Windows Virtual Machines
Exercise: Step by Step
Exercise 1: Create a
Network ISO Library
22
Use the fol l owi ng procedure to create a new I SO l i brary.
Step Action
1 Go to Start> Run.
Enter C: \xenserver i n the Ope n fi el d and cl ick OK.
C: \xenserver appears.
2 Ri ght-cl i ck the ISO directory and sel ect Properties.
3 Open XenCenter.
4 Cl i ck the Shari ng tab and revi ew the Network shari ng secu rity
opti ons. Confi rm Share this fol der on the network is checked.
5 Cl i ck Permissions. The Permi ssi ons for I SO dial og opens.
6 Confi rm the grou p Everyone i s l i sted in the Groups or user
names l i st and cl i ck OK t o cl ose the Permi ssi ons for I SO
di al og.
7 Sel ect the Security tab and confi rm that Everyone is l isted i n
the Group or u ser names secti on.
I
8 Cl i ck OK to cl ose the [SO Properti es di al og.
9 Doubl e-cl i ck the ISO di rectory. Confi rm that it contai ns
WINDOWS_2003_STD_SP1.iso.
10 Cl ose Wi ndows Expl orer and retur n to XenCenter.
11 Sel ect your XenServer host from the l eft pane fi l e tree.
12 Cl i ck the Storage tab i n the ri ght pane and cl i ck New SR. The
New Storage Reposi tory wizard appears, requesti ng storage
tpe.
13 Sel ect Windows File Sharing (CIFS) u nder [SO Li brary and
cl i ck Next. The Locati on screen appears, as ki ng for storage
name and path.
14 Enter the fol l owi ng val ues:
Name: ISO-Library
Share Name: \VnteralPISO
Repl ace Interafl P with the I nternal l P add ress for the hosted
Wi nXP cl i ent from the des ktop_fi l e.
Copyright 2008 Citrix Systems, Inc.
Exercise 2: Create a
Wi ndowsVM
Exercises for Modul e 4: Windows Virtual Machi nes
Click Finish. Your share with ISO image attaches to the
Xenserver, and a new IsOLibrary entry appears under your
Xenserver.
16 Select I SO-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 ISOLibrary.
1 Select your XenServer Host from the left pane file tree of the
XenCenter client.
2 Select New VMfrom 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 I SO I mage. Select WI NDOWS_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
Exercises for Module 4: Wi ndows Vi rtual 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 wi ndow 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. I nc.
Exercise 3: I nstall the
XenServer tools in a
WindowsVM
Exercises for Module 4: Windows Virtual Machines
Sel ect Format the partition usi ng the NTFS file system and
press Enter. The Wi ndows set up program formats the vi rtual
di sk, copi es over the i nstal l ati on fi l es and i nstal l s Wi ndows.
20 Enter t he foll owi ng val ues when prompted du ri ng the
Wi ndows Setup process:
Regi onal and Language Opti ons: Accept default
Personal i ze Your Software: Enter you r name and
organizati on
Your Product Key: VXPDH-6BKMC-GMCM9-7MBQ6-9Q63J
Li cens i ng Modes: Accept defaul t
Computer Name: Accept defaul t ( or personal i ze)
Admi ni strator Password: myxenpw
Date and Ti me Sett i ngs: Accept defaul t (or personal ize)
Network Setti ngs: Accept defaul t
Wor kgroup: Accept defaul t
Wi ndows reboots automati cal l y when the i nstal l compl etes.
Use the fol l owi ng proced ure to i nstal l the XenServer tool s on t he new
Wi ndows vi rtual machi ne.
2
6
7
8
Cl i ck Send Ctrl-Alt-Del in the lower-l eft corner of the
tab.
Cli ck the Hardware tab.
Cl i ck Device Manager. Devi ce Manager
Expand the IDE ATAiATAPI controllers and
cti ons.
Copyright 2008 Citrix Systems, Inc. 25
Exercises for Module 4: Windows Virtual Machines
Step Action
9 Confi rm that emulated IDE and network controllers are active.
The emul ated I DE and network control l ers are active unl ess a
yel l ow excl amati on mark appears by the control l ers.
10 Cl ose the Devi ce Manager.
11 Cl ose the System Properti es.
12 Ri ght-cl i ck WindowsServer i n the l eft pane fi l e tree of the
XenCenter cl i ent and sel ect Install XenServer Tools. I nstal l
XenServer Tool s appears, tel l i ng you that the XenServer Tool s
i nstal l er wi l l start i n the VM.
13 Cl i ck OK. Ci tri x Tool s for Vi rtual Machi nes Setu p appears i n
t he Wi ndowsServer Consol e.
14 Check I accept the terms in the License Agreement and cl i ck
Next.
15 Accept the default i nstal l ati on desti nati on and cl i ck Install.
The XenServer high-speed d rivers are i nstal l ed in the VM.
16 CI i ck Finish. The VM reboots.
17 Cl i ck Send Ctrl-Alt-Oel near the bottom of the Consol e tab
when the reboot i s compl ete.
18 Enter Password: myxenpw and cl i ck OK. Wi ndows detects the

XenServer PV Network devi ce and i nstal l s the driver. The VM


i s now r unni ng wi th the XenServer hi gh-speed paravi rtual ized
dri vers.
26 Copyright 2008 Citrix Systems, Inc.
Exercises for Module 5: Linux Virtual
Machines

CITRIX

Exercises for Module 5: Linux Virtual Machines
28 Copyright 2008 Citrix Systems. inc.
Exercises for Modul e 5: Linux Virtual Machines
Exercise: Creatin
g
Linux Virtual Machines
Overview
Objectives
Prerequisites
Administrators can use a XenServer VMtemplate to install VMs other
than Windows, such as Linux. XenServer provides full Debian templates
that administrators can use to directly create a VMrunning 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 enServer
Used XenCenter to connect to a XenServer
Copyright 2008 Citrix Systems, Inc. 29
Exercises for Module 5: Linux Virtual Machines
Exercise: Step by Step
Exercise 1: I nstall a
DebianVM
Use the fol l owi ng procedure to i nstal l Debi an vi rtual machi ne usi ng
XenCenter.
Sel ect the you r XenServer host from the left pane fi l e tree i n
XenCenter.
2 Cl i ck New VM on the tool bar. The New VM wizard l aunches,
aski ng for t he templ ate of the operati ng system of the new
VM.
3 Sel ect Debian Sarge 3.1 and di ck Next. The Name screen
appears, as ki ng for a machi ne name and descri pti on.
4 Enter LinuxFTPServer i n the Name fi el d and di ck Next. The
CPU & Memory screen appears, aski ng for the n umber of
CPUs and memory al l ocati on.
5 Accept t he defaul t Number of CPUs (1). Accept the defau l t
I niti al Memory (256 MB) and di ck Next. The Vi rtual Di sks
screen appears, as ki ng for the drive i nformati on of the VM.
6 Accept the defau l t vi rtual di sk setup and di ck Next. The
Vi rtual I nterfaces screen appears, aski ng for network
i nterfaces.
7 Sel ect i nterface 1 and di ck Delete. The i nterface 1 entry i s
removed.
8 Confi rm i nterface 0 is connected to Network 0 and di ck Next.
The Fi ni sh screen appears.
9 Cl i ck Fi nish. The New VM Wizard di sappears, and the
i nstal l ati on begi ns. When VM creati on compl etes, the
progress i ndi cator i n the bottom ri ght of XenCenter
di sappears and t he new VM starts automati cal l y. The name
you provi ded appears i n the l ist under the XenServer.
10 Retu rn to XenCente r.
11 Sel ect LinuxFTPServer from the left pane fi l e tree and di ck the
Consol e tab i n the ri ght pane. A consol e appears , di spl ayi ng
t he VM booti ng.
12 Cl i ck i nto the Console wi ndow. A prompt to set the root
password and hostname i s di spl ayed. The Pl ease specify a
root password prom pt appears.
30 Copyright 2008 Citrix Systems, Inc.
Exercises for Modul e 5: Linux Vi rtual Machi nes
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 VNC password myxenpw and press Enter.
17 Enter Li nuxFTPServer 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 Ci tri x Systems, Inc. 31
Exercises for Modul e 5: Li nux Virtual Machines
Exercise 3: I nstall a
CentOS 5 Linux 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 CentOSLi nuxServer in the i'ame field and click Next.
The Location screen appears, asking where the install
repository is located.
5 Enter the Install repository URL 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, I nc.
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
.
reen
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
Exercises for Modul e 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 VMbegins. As
the CentOS 5 installs, progress indicators appear.
34 Copyright 2008 Citrix Systems, Inc.
Exer(i ses for Module 6: Templ ates
and Life-Cy(l e Operations

CITRIX

Exercises for Module 6: Templates and Life-Cycle Operations
36 Copyright 2008 Citrix Systems, Inc.
Exercises for Module 6: Templates and Life-Cycle Operations
Exercise: Usin
g
Templates
Overview
Objectives
Prerequisites
XenServer provi des templ ates that enabl e admi nistrators to provi si on
servers i n mi nutes. Admi ni strators can al so defi ne thei r own templ ates
tai l ored to thei r speci fi c needs.
I n thi s l ab, you wi l l :
Create a Li nux templ ate.
Create a new VM from the templ ate.
I mport a VM clone through XenCenter.
Copy a VM.
Before you begin, you must have:
I nstal l ed XenCenter on a Wi ndows computer
I nstal l ed XenServer on another computer
Created the Li nuxFTPServer VM
Copyright 2008 Citrix Systems. Inc. 37
Exercises for Modul e 6: Templ ates and Life-Cycl e Operations
Exercise: Step by Step
Exercise 1: Create a VM
Template
Exercise 2: Create a VM
froma NewVM
Template
38
Use the following procedure to create a VM template using the
LinuxFTPServer VM.
1 Select Li nuxFTPServer 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 i s 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 LinuxFTPServer in the Name field and leave the optional
description for the VM in the Description field blank.
Copyright Zo08 Citrix Systems. Inc.
Exercises for Modul e 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 Li nuxDHCPServer.xva and click Open. This is a
compressed file that contains a VM including its virtual disk
drives and settings.
39
Exercises for Modul e 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 OK. 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.
Exercises for Module 6: Templates and life-Cycle Operations
Exercise: Conductin
g
Life Cycle
Operations
Overview
Objectives
The commands for managi ng a VM are found i n t he fol l owi ng l ocati ons:
Tool bar (when a VM i s sel ected i n the l eft pane fi l e t ree)
VMs menu
Context menu (appears when ri ght-cl i cki ng an object i n the l eft pane
fi l e t ree)
The buttons and menu opti ons shown depend on the state of the VM.
An admi ni strator can suspend a VM, savi ng its state and memory i mage
to a fi l e. Thi s al l ows an admi nistrator to shut down the physi cal server
and l ater retu rn the VM to its ori gi nal runni ng state after t he physi cal
server i s rebooted. When a VM i s suspended, i t wi l l no l onger cons ume
CPU or memory resou rces on t he XenServer.
I n t his l ab, you wi l l :
Vi ew d ri ver and performance i nformation.
Suspend and resume a VM.
Autostart on reboot.
Copyright 2008 Citrix Systems, Inc. 41
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 fol l owi ng procedur e to view the paravi rtual ized drivers in the
Wi ndows Devi ce Manager.
Step Action
1 Sel ect WindowsServer from the left pane fi l e tree. Cl ick Start
on t he tool bar if thi s VM is not run ni ng. Wait for the VM to
start.
2 Cl i ck the Console tab i n the ri ght pane.
3 Cl i ck Send Ctrl-Alt-Del in t he bottom-l eft corner of the
Consol e tab.

Cl i ck i n the Console wi ndow.
Enter myxenpw in the Password fie l d.
6 Cl i ck OK.
7 Go to Start when the desktop is ful ly l oaded.
8 Ri ght-cl i ck My Computer and sel ect Properties. System
Properti es appears.
9 Sel ect the Hardware tab and cl i ck Device Manager. Devi ce
Manager appears.
10 Expand the SCSI and RAID control l ers secti on.
11 Confi rm that the Citrix XenServer PV SCSI Host Adapter
dri vers are active.
12 Expand the Network adapters secti on.
13 Confi rm that the Ci tri x XenServer PV Ethernet Adapter driver
is active.
14 Ri ght-cl ick Citrix XenServer PV Ethernet Adapter and sel ect
Properties. Ci tri x XenServer PV Ether net Adapter Properti es
appears.
15 Sel ect the Driver tab.
Copyright 2008 Citrix Systems, Inc.
Exercise 2: Suspend a
VM
Exercise 3: Resume a
VM
Exercises for Modul e 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 WindowsServer 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 WindowsServer 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
Exercises for Modul e 6: Templ ates and Life-Cycle Operations
Exercise 4: View
Performance
Information
Exercise 5: Autostart on
Reboot
4
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 Ci tri x Systems, Inc.
Exerci ses for Modul e 8: Resource
Management

CITRIX

Exercises for Modul e 8: Resource Management
46 Copyri ght 2008 Ci tri x Systems, I nc.
Exercises for Module 8: Resource Management
Exercise: Mana
g
in
g
Resources
Overview
Objecives
XenServer provides tools to manage system resources inside VMs. Some
resources can be provisioned while the VM is running, whi le 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
Exercises for Module 8: Resource Management
Exerci se: Step by Step
Exercise 1: View and
Change VM Resource
Settings
Exercise 2: View
Storage Configuration
48
Use the fol l owi ng procedure to create an i nternal -onl y network on a
XenServer.
1 Sel ect the you r XenServer host from the left pane fi l e t ree.
2 Sel ect LinuxFPServer from t he left pane fi l e t ree. Shut down
the VM if it i s currentl y ru nni ng.
3 Cl i ck t he General tab in the r i ght pane.
4 Cl i ck Properties. The Properti es di al og appears.
5 Cl i ck t he Memory and VCPUs tab.
6 Adjust the vi rtual machi ne memory and t he nu mber of VCPUs
for a VM.
Lower VM Memory to 196 MR.
Rai se Number of VCPUs to 2.
7 Cl i ck OK.
8 Sel ect LinuxFPServer from t he left pane fi l e t ree.
9 Sel ect Start from the VM menu, tool bar or ri ght-cl i ck context
menu. The VM boots with the new resource setti ngs.
Use the fol l owi ng procedure to vi ew the cu rrent storage confi gu rati on of
a VM in XenCenter.
3
4
Sel ect WindowsServer from the left pane fi l e t ree.
VM if i t not currentl y r unni ng.
Cl i ck the Console tab in t he ri ght pane.
Cl i ck i nto the Console wi ndow.
Cl i ck Start when t he desktop i s fu l l y l oaded.
Copyright 2008 Citrix Systems, Inc.
Exercise 3: Create and
Attach a New Virtual
Disk Drive
Exercise 4: Configure a
New Virtual Disk Drive
Exercises for Modul e 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 currentl y displayed.
Cl ick the Storage tab in XenCenter. The disk drive allocation
shows a single disk.
Use the fol l owing procedure to add a virtual disk drive to a VM in
XenCenter.
Sel ect WindowsServer in the l eft 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 fiel d.
4 Enter Secondary Disk in the Description field.
5 Accept the default virtual disk size 5 GB.
6 Cl ick 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
Cl ick the Console tab in the right pane.
Right-click the new Unal located disk and select I nitialize Disk.
The I nitialize Disk dialog appears.
Copyright 2008 Citrix Systems, Inc. 49
Exercises for Module 8: Resource Management
Exercise 5: Edit VM
Startup Options
50
5 Ri ght-cl i ck t he new Unallocated disk and sel ect New Partition.
The New Parit i on Wizard l aunches.
6 Cl i ck Next. The Sel ect Parti ti on Type screen appears.
7 Accept t he defau l ts and cl i ck Next. The Specify Parti ti on S ize
screen appears.
8 Accept t he defaul ts and cl i ck Next. The Ass i gn Drive Letter or
Path screen appears.
9 Accept the defaul ts and cl i ck Next. The Format Parti ti on
screen appears.
10 Sel ect Perform a quick format and cl i ck Next. The l ast screen !
appears.
11 Cl i ck Finish. The newl y added di s k begi ns formatt i ng as
Wi ndows NTFS.
12 Stay in the Console wi ndow and go to Start > My Computer t
ope n Wi ndows Expl orer.
13 Verify the new di s k is active and vi si bl e wit hi n Wi ndows.
Use the fol l owi ng procedure to edi t the startup opti ons of a VM.
1
2
3
4
5
6
7
8
Sel ect WindowsServer from the l eft pane fi l e tree.
Cl ick the General tab i n the r i ght pane.
Cl i ck Properties. The Properti es di al og appears.
Cl i ck the Startup Options tab.
Sel ect Auto-start on server boot.
Sel ect DVD-Drive. Cl i ck Move Down. The Boot Order i s
changed.
Cl i ck OK.
Verify i n the General tab under Boot Options that the boot
order has been changed.
Copyright 2008 Citrix Systems. Inc.
Exercises for Module 8: Resource Management
Exercise 6: Obtain
Performance Statistics
and Metrics
Use the fol l owi ng procedure to edit the start up opti ons of a VM.
1 Sel ect WindowsServer from the left pane fi l e tree.
2 Cl i ck t he Performance tab in t he ri ght pane.
3 Sel ect Last Hour. The statics for the Wi ndowsServe r VM
du ri ng t he l ast hour appear.
4 Sel ect Reboot from t he VM menu or t he ri ght-cl i ck context
menu.
5 Cl i ck OK.
6 Cl i ck Last Ten Minutes. The stati sti cs for the l ast 1 0 mi nutes
appear in the graphs. Observe the reboot icon i n the graphs.
7
8
9
10
Cl i ck Configure Graphs. Sel ect data sources to receive from
the server in the Data Sources tab.
Cl i ck the Layout tab. Sel ect any data sources from the l i st.
Cl i ck Add Graph.
Cl i ck OK.
Scrol l down in the Performance tab to vi ew the data of the
newl y added graphs.
Copyright 2008 Citrix Systems, Inc. 51
Exerci ses for Modul e B: Resource Management
52 Copyright 200B Citrix Systems, Inc.
Exerci ses for Modul e 9: Networki ng

CITRIX

Exercises for Modul e 9: Networking
54 Copyright 2008 Citrix Systems. I nc.
Eercises for Module 9: Networking
Exercise: Manag
in
g Networks
Overview XenServer p rovi des tool s to manage network resources for VMs.
Objectives In thi s l ab, you wi l l :
Add a vi rtual NI C to a VM.
Create an i nternal -onl y network.
Attach VMs to both i nternal and external networks.
Copyright 2008 Citrix Systems, Inc. 55
Exercises for Module 9: Networking
Exerci se: Step by Step
Exercise 1: Create an
I nternal-Only Network
on a Server
Exercise 2: Add an
Internal Virtual
Network I nterface to a
VM
56
Use the fol l owi ng procedure to create an i nternal -onl y network on a
XenSe rver.
2 Cl i ck t he Network tab i n the ri ght pane. The current
confi gu rati on is di spl ayed, s howi ng onl y physi cal networks.
3 Cl i ck Add Network. The New Network screen appears wit h
the Type opt i on sel ected.
4 Sel ect I nternal Network and cl i ck Next. The Name screen
appears, as ki ng for a network name and descri pti on.
5 Enter I nternal Network 0 i n the Name fi el d and cl i ck Next. The
Location screen appears.
6 Accept t he defaul ts and cl i ck Finish.
7 Retu rn to the Network tab of XenCenter. A new I nternal
Networ k entry i s di spl ayed.
Use the fol l owi ng procedure to add an i nternal vi rtual network i nterface
to a VM.
Step Action
1 Sel ect linuxDHCPServer from t he left pane fi l e tree. Cl i ck
Shut Down on the t ool bar i f t hi s VM i s r unni ng. Cl i ck OK i n
t he confi rmati on di al og and wait for t he VM t o shut down.
2 Cl i ck t he Network tab i n the ri ght pane.
3 Cl i ck Add I nterface. New Vi rtual Network I nterface appears,
wi th the Locati on and Sett i ngs opti on sel ected.
4 Sel ect Internal Network 0 from t he Network drop-down
menu.
5 Accept Auto-generate ( defau l t) for the MAC address
confi gu rati on and cl i ck Fi n i sh.
Copyright 2008 Citrix Systems. Inc.
Exercise 3 : Enable a
Second I nterface and
Start a DHCP Server
!
I
7
Exercises for Modul e 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.
ifconfig
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 dcpd 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, I nc. 57
!
Exercises for Modul e 9: Networking
Exercise 4: Connect a
Windows VM to an
I nternal 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 CtrlAltwDel in the lower-left corner of the Console
tab.
4 Click intothe 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 error, recheck the spelling of
the command.
8 Return to XenCenter and select the Network tab.
:
i
9 Verify only one virtual NI C exists and it is selected.
10 Click Add I nterface. 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 i s 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.
Exercises for Module 9: Networking
Exercise 5: View Use the fol l owi ng procedure to vi ew the network confi gurati on.
Network Configuration
1 Sel ect the your XenServer from the l eft pane fi l e tree.
2 Cl i ck t he NI Cs tab in the ri ght pane. I nformati on about the
physi cal network i nterface cards on the vi rtual izati on server i s
di spl ayed.
3 Cl i ck the Console tab i n t he ri ght pane.
4 Cl i ck i nto the Console wi ndow.
5 Press Enter to l og in to t he consol e. If the menu-dri ven text
cd /etc/ sysconfig/network-scripts
Change your worki ng di rectory.
7 Li st the network and bri dge confi gu rati on fi l es.
Is i fcfg*
The network and bri dge confi gurati on fi l es are l i sted. The
physi cal network i nterfaces are cal l ed eth and a number
(exampl e: ifcfg-ethO). The bri dges or vi rt ual switches are
cal l ed xenbr and a n umber (exampl e: ifdg-xenbrO) .
8 Di spl ay the contents for t he ethO fi l e.
nano ifcfg- ethO
The contents are di spl ayed for the confi gurati on fi l e t hat
contai ns the phys ical network confi gurati on of t he fi rst
network i nterface.
9 Press Ctrl-x. The editor exi ts wi thout savi ng changes.
10 Di spl ay the contents for the xenbrO fi l e.
nano ifcfg-xenbrO
Copyright 2008 Citrix Systems, Inc. 59
Exercises for Module 9: Networking
60 Copyright 200B Citrix Systems. Inc.
Exerci ses for Module 1 1 : Remote
Storage

CITRIX

Exercises for Modul e 1 1 : Remote Storage
62 Copyright 2008 Ci tri x Systems, I nc.
Exercises for Modu Ie 1 1 : Remote Storage
Exercise: Mana
g
ing Linux Storage
Overview
Objectives
XenServer provi des tool s to manage storage resou rces. The procedu res
for managi ng Li nux storage are different from the procedures for
managi ng Wi ndows storage.
In thi s l ab, you wi l l :
Add a vi rtual di sk to a VM.
Confi gure basi c storage.
Copyright 2008 Citrix Systems. Inc. 63
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 fol l owi ng procedure to vi ew t he exi sti ng di sk confi gu ration of a
Li nux VM.
1 Dou bl e-cl i ck t he XenCenter desktop i con. XenCenter
l aunches.
2 Sel ect LinuxFTPServer from the left pane fi l e tree. Cl i ck Start
on the tool bar i f thi s VM is not r unni ng and wait for the VM to
start.
3 Cl i ck the Console tab i n the ri ght pane and cl i ck i nto the
Console wi ndow.
4 Enter t he fol l owi ng Li n uxFTPServer l ogi n credenti al s and
press Enter:
User name: root
Password: myxenpw ( no text appears)
5 Type the fol l owi ng command and press Enter:
fdisk - 1
The current di s k confi gurat i on i s di spl ayed. Two separate di sk
drives, /dev/xvda and /dev/xvdb, are l i sted.
Use the fol l owi ng procedure to add a vi rt ual di sk to a Li nux VM.
Step Action
1 Return to XenCenter and sel ect the Storage tab for
Li nuxFTPServer. Two di sk dri ves are currentl y al l ocated to thi s
VM.
2 Cl i ck Add. The Add New Di sk Wizard l aunches.
3 Enter Disk 3 i n the Name fi el d. Leave the Descri pti on fi el d
bl ank. Accept the 5 GB defaul t vi rtual di sk s ize. Accept the
defaul t Storage Reposi tory.
4 Cl ick Add. A new vi rt ual di sk drive is created, and the Di sk
Management appl icati on i n the Consol e tab shows a new di sk
drive.
Copyright 2008 Citrix Systems, Inc.
Exercise 3: Partition
and Format a Virtual
Disk
Exercises for Module 1 1 : Remote Storage
the Console wi ndow.
6 Li st the partiti ons on al l avai l abl e hard di sks.
fdisk J
A new drive, /dev/xvdc, is vi si bl e i n the VM, but i s not
partiti oned.
Use the fol l owi ng procedure to parti ti on and format a vi rtual di sk.
1 Remai n in t he Console wi ndow in the Console tab for
Li nuxFTPServer.
2 Li st the partition tabl e of the xvdc di sk.
fdisk / dev/xvdc
A message stat i ng that di sk /dev/xvdc does not contai n a val id
parti ti on tabl e appears.
menu of opti ons.
4 Type n and press Enter to create a new partiti on.
5 Type p and press Enter to create a pri mary partiti on.
6 Type 1 and press Enter to assi gn a parti ti on n umber.
7 Press Enter to accept the defau lt fi rst cyl i nder.
8 Press Enter to accept the default l ast cyl i nder.
9 Type p and press Enter to di spl ay i nformati on about the new
i partition.
10 Type wand press Enter to permanentl y write t he new parti ti on
tabl e to di sk
11 Type the fol l owi ng command and press Enter:
mkfs -t ext3 -j L datal /dev/xvdcl
A status message i s dis pl ayed.
Copyright 2008 Citrix Systems. Inc. 65
Exercises for Module 1 1 : Remote Storage
Exercise 4: Mount a
Virtual Disk
66
Us e the fol l owi ng procedure to mount a vi rtual di sk.
1 Remai n in the Console wi ndow in the Console tab for
Li nuxFTPServer.
2 Type the fol l owi ng command and press Enter:
mkdir /mnt/datal
A di rectory to serve as mount poi nt for the new fi l e system i s
created.
3 Type the fol l owi ng command and press Enter:
mount /dev/xvdcl frnt/datal
The new fi l e system i s mou nted.
4 Type the fol l owi ng command and press Enter:
df -h
The mounted fi l e systems are l i sted. Verify that fi l e system /
dev/xvdc1 is mounted on Imntldata1 .
Copyright 2008 Citrix Systems, Inc.
Exercises for Module 1 2:
Understanding Resource Pools

CITRIX

Exercises for Module 1 2: Understanding Resource Pools
68 Copyright 2008 Citrix Systems. Inc.
Exercises for Module 1 2: Understanding Resource Pools
Exercise: Managing Resource Pools
Overview
Objectives
Prerequisites
XenServer resou rce pool s make managi ng and depl oyi ng VMs easi er.
Once resource pool s are confi gu red, admi nistrators can use XenMoti on
t o manage whi ch physi cal server hosts a VM, as wel l as to move VMs
between physi cal servers without servi ce i nterrupti on.
I n thi s l ab, you wi l l :
Create a resou rce pool and a server.
Create shared storage and network confi gurati ons.
Convert a l ocal l y stored VM to shared storage.
Have a VM automati cal l y pl aced on a server wi th free resou rces.
Move a VM from one physi cal server to another usi ng XenMoti on.
Choose a partner from the cl ass. Deter mi ne whose XenServer wi l l be A
and whose XenServer wi l l be B for thi s exerci se. Before starti ng the l ab,
record the fol l owi ng i nformation from the desktop_fi l e for both
XenServe r A and XenServer B.
XenServer A
NFS share:
I P address 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
Exercises for Module 1 2: Understanding Resource Pools
Exercise: Step by Step
Exercise 1: Configure
Management Network
I nterfaces (XenServer A
and XenServer B)
Exercise 2: Convert a
Server into a Master
and a Pool (XenServer
A Only)
70
Use the fol l owi ng procedure to confi gu re the management N I C on both
XenServers before j oi ni ng a resource pool .
Vi ew the current management i nterfaces that are confi gured
on the XenSe rver. I n XenCenter:
U Ri ght-cl i ck your xenserver.
b. Sel ect Management interfaces. The Management
i nterfaces di al og opens.
4- Confi rm that t here i s onl y one i nterface, the Pri mary
i nterface.
2 Cl i ck New I nterface i n the Management i nterface di al og. A
new tab for t he i nterface appears.
3 Type Storage Interface in the Name fi el d.
4 Verify Network 1 is sel ected in the Networ k fiel d.
5 Type t he StorageTrafic_IPddress i n the IP address fi el d i n
t h e I P setti ngs secti on.
Repl ace StorageTraffic_IP_Address wi th the storage traffic I P
address i nformati on from the desktop_fi l e.txt fi l e.
6 Type 255.255.255.0 i n the Subnet mask fi el d.
7 Cl i ck OK. The Management i nterfaces dial og cl oses.
Use the fol l owi ng procedure to convert a XenServer i nto a master and a
resource pool .
1
2
3
Sel ect your XenServer from the left pane fi l e tree.
Cl i ck Shut Down on the tool bar for any VMs are r unni ng and
wait for the VMs to shut down.
Cl i ck New Pool from the tool bar. The New Pool di al og
appears.
Copyright 2008 Citrix Systems, Inc.
Exercise 3: Prepare a
Server for Addition to a
Pool (Part A)
Exercise 3: Prepare a
Server for Addition to a
Pool (Part B)
Exercises for Module 1 2: Understanding Resource Pools
! servers screen appears.
5 Accept t he defaul t master server and cl ick Finish. The
XenServer i s converted to the master of a pool . A new l evel ,
named Resou rce Pool , i s added to the l eft pane fi l e tree. The
pool contai ns a s i ngl e XenServer, and the I SO-Li brary
preVi ousl y created is a shared resou rce for the pool .
Use the fol l owi ng procedure to prepare XenServer A before addi ng
members to the resource pool .
Step Action
1 I n XenCenter with t he newl y created master and pool , cl i ck
Connect New Server on the tool bar. The Connect New
Server wi ndow appears.
2 Enter t he fol l owi ng credenti al s:
Hostname: IP AddressXS2
Repl ace IP_Address_XS2 wi th t he I P address of t he second
XenServer.
User name: root (defau lt)
Password: myxenpw
3 Cl i ck Connect. The second XenServer is now attached to
XenCenter and appears as an obj ect in the l eft pane fi l e tree.
Use the fol l owi ng procedure to prepare XenServer B for additi on to a
resou rce pool .
2
3
Cl i ck Shut Down on the tool bar for any r unni ng VMs. Wait
for the VMs to s hut down.
Remai n i n XenCenter wi th the newl y created master and pool .
Ri ght-cl i ck I SO l i brary i n the left pane fi l e tree and sel ect
Detatch Storage Reposi tory. The Add New Server dial og
appears.
Copyright 2008 Citrix Systems, Inc. 71
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 fol l owi ng proced ure to add a XenServer to a Poo!'
Step Action
1 Ri ght-cl i ck the second XenServer in the left pane fi l e t ree and
sel ect Add to Pool> Resource Pool. The Confi rm wi ndow
appears.
2 Cl i ck OK. The second XenServer is added to Resource Pool .
Once t he pool j oi n operati on i s compl ete, t he i con t urns
green and t he resource pool contai ns two servers.
Use the fol l owi ng procedu re to create a s hared storage confi gurati on.
1
2
3
4
5
6
7
8
Sel ect Resource Pool from the left pane fi l e tree.
Cl i ck the Storage tab i n the ri ght pane and cl i ck New SR. The
New Storage Repository wi ndow appears.
Sel ect NFS u nder Vi rt ual di sk storage and cl i ck Next. The
Locati on screen appears, aski ng for the NFS storage name and
path.
Enter NFSSR i n the Name fi el d.
Open the desktop_file.txt fi l e on the desktop and fi nd the
NFS Share i nformati on.
Enter the share name given i n the fi l e i n the Share Name fi el d
and cl i ck Scan.
Cl i ck Finish. The remote NFS share i s attached to the resource
pool , and a n ew entry wi th a storage i con appears under
Resource Pool .
Retu rn t o XenCenter and cl i ck t he Storage tab on each of the
XenServers. The NFS-SR remote storage connecti on has been
automati cal l y added to al l servers i n t he resource pool .
Copyright 2008 Citrix Systems, Inc.
Exercise 6: Create a
Shared Netork
Configuration
(XenServer A Only)
Exercises for Modul e 1 2: Understanding Resource Pool s
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 NI C 0 for the physical network interface.
6 Enter 30 for the VLN and click Finish. A new External VLN
connected network i s created, and a new entry for the VLN
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 NFS-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, I nc. 73
Exercises for Module 1 2: Understanding Resource Pools
Exercise 8: Start a VM
on an Automatically
Chosen Server with
Free Resources
(XenServer A Only)
Exercise 9: Start a VM
on a Particular Server
in a Resource Pool
(XenServer A Only)
74
Sel ect the WindowsServer2 VM i n the left tree panel and
sel ect the Storage tab. The Storage Reposi tory i s NFS-SR.
10 Sel ect t he NFS-SR obj ect at t he bottom of the l eft tree panel
and sel ect the Storage tab. The Wi ndowsServer2 VM i s
di spl ayed i n thi s tab.
Use the fol l owi ng procedure to start a VM usi ng automati c pl acement.
1 Sel ect WindowsServer2 from the left pane fi l e tree. Thi s VM i s
not r un ni ng and i s not attached to any particu l ar XenServer.
2 Cl i ck Start on the tool bar. The VM is automatical l y pl aced on
one of t he servers and starts.
Use the fol l owi ng procedure to start a VM on a parti cu l ar server in the
resou rce pool .
1 Sel ec WindowsServer2 from the l ef pane fi l e tree.
2 Cl i ck Shut Down on the tool bar. The Confi rm wi ndow
appears.
3 Cl i ck OK. The VM s huts down and moves back to the
resource pool l evel .
4
5
Sel ect Start on Server from the ri ght-cl ick context menu.
Sel ect t he second XenServer from t he submenu. The VM
starts on the XenServer t hat has been sel ected from thi s l i st.
Copyright 2008 Citrix Systems. Inc.
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 fol l owi ng procedure to move a l ive VM from server to another i n
a resource pool .
1 Sel ect WindowsServer2 from the left pane fi l e tree.
2 Sel ect Migrate from the VM pul l down menu or on t he ri ght
cl i ck menu.
Note: A VM can al so be l ive mi grated by draggi ng and
droppi ng it onto another server.
3 Sel ect the other XenServer from the submenu. The VM i s
moved to the other server with no servi ce i nterru ption.
Note: I f an error appears or t he l i ve mi grati on does not work,
check the network setti ngs for the Wi ndows VM. I t may sti l l
have an i nternal -onl y network that needs to b e removed.
Thi s l ab i s compl ete. Leave the pool confi gu rati on i ntact for the
remai ni ng l abs.
Copyright 2008 Citrix Systems. Inc. 75
Exercises for Module 1 2: Understanding Resource Pools
76 Copyright 2008 Citrix Systems, Inc.
Exerci ses for Module 1 4: Command
Li ne I nterface

CITRIX

Exercises for Modul e 1 4: Command Li ne I nterface
78 Copyri ght 2008 Citrix Systems, I nc.
Exercises for Module 1 4: Command Line Interface
Exercise: Usi ng the Command line
Interface
Overview
Objectives
Prerequisites
The Command Li ne I nterface ( CLI ) is used for scri pted automati on of
XenServer and resou rce pool operati ons. Most operat i ons that can be
performed wi th XenCenter can al so be performed t hrough the CLI . The
CLI i s a bi nary executabl e that r uns on remote Wi ndows or Li nux
compute rs. You can al so r un the command l i ne on the XenServer itsel f.
I n thi s l ab, you wi l l :
View XenServer configurati on i nformati on.
Manage a VM.
Before you begi n, you must have:
I nstal l ed XenCenter on a Wi ndows computer
Obtai ned the I P address from the l ocal di spl ay of your XenServer
Resou rce Pool Master
Created a Li nuxFTPServer Debi an VM
Created a Wi ndowsServer Wi ndows 2003 VM
C
V
Do not di ssolve the resource pool . Keep t he pool i ntact
for the remai ni ng l abs and wor k with your partner from
Lab 9 to ensure you do not modify the same VMs in thi s
l ab. I f you di ssolve the pool , al l of the VMs and data for
XenServer B wi l l be l ost.
Copyright 2008 Citrix Systems, Inc. 79
Exercises for Module 1 4: Command Line Interface
Exercise: Step by Step
Exercise 1: List
Properties of a
XenServer Usi ng the
Menu-Driven Text
Console
Exercise 2: list
Properties of a
XenServer Usi ng the
Remote CLI
80
Use the fol l owi ng procedu re to properti es of a X en Server usi ng the
menu-driven text consol e.
1 Sel ect you r XenServer from the l eft pane fi l e t ree.
2 Cl i ck the Console tab in the ri ght pane.
3 Cl i ck i nto the Console wi ndow.
4 Press Enter to l og in to the server consol e.
5 Type the fol l OWi ng command and press Enter:
xsconsole
The XenServer menu-dri ven text consol e is di spl ayed.
6 Press the down arrow key to sel ect Network and Management
Interface.
7 Revi ewthe i nformat ion for the cu rrent management i nterface.
Use the fol l owi ng proced u re to vi ew properti es of a XenServer usi ng the
Wi ndows remote CLI .
1 Go to Start > All Programs > Accessories > Command Prompt
on the Trai ni ng Desktop.
2 Type the fol l owi ng command and press Enter:
cd c : \xenserver
3 Type the fol l owi n g command and press Enter:
4
5
xe - s Jt_OOIOSS -u root -pw myxenpw host - list
Repl ace I P _Address with the I P address of the XenServer host.
XenServer pool i nformat ion i s di spl ayed.
Confi rm that your xenserver is shown i n the l i st.
Cl ose the Command Prompt wi ndow.
Copyright Z008 Citrix Systems. Inc.
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 procedure to vi ew properti es of a X en Server usi ng the
CLi l ocated i n XenCenter.
2 Sel ect your XenServer from the l eft pane fi l e tree.
Cl i ck the Console tab i n the ri ght pane.
4 Cl i ck i nto the Console wi ndow.
If the menu-driven text consol e i s sti l l open, sel ect Quit and
press Enter.
I f the menu-dri ven text consol e is not open, press Enter to l og
i n to the server consol e.
Type the fol l owi ng command and press Enter:
xe host - l ist
XenServer host i nformati on i s di spl ayed.
6 Confi rm that your xenserver is s hown i n the res ul ts.
7 Type the fol l owi ng command and press Enter:
xe host- list params=all
Al l parameters of the sel ected host are di spl ayed.
Exercise 4: List All VMs Use the fol l owi ng procedure to vi ew al l the VMs in a resou rce pool .
i n a Resource Pool
1 Remai n in the Consol e Wi ndow of the XenServer Consol e tab.
2 Type the fol l owi ng command and press Enter:
xe vm- list
Al l the VMs i n the resource pool are di splayed.
3 Type the fol l owi ng command and press Enter:
Copyright 2008 Citrix Systems. Inc.
xe vm- list is- control-domain= false
Al l the ru nni ng VMs that are not control domai ns are
di spl ayed.
81
Exercises for Module 1 4: Command Line Interface
Exercise 5: List Specific Use t he fol l owi ng proced ure to create a shared network confi gurati on.
VMs in a Resource Pool
Exercise 6: Halt a VM
82
2 Type the fol l owi ng command and press Tab twice:
O v- start v=
Al l the possi bl e VMs that can be used wi th thi s command are
di spl ayed.
3 Type WindowsServer and press Enter.
4 Type the fol l owi ng command and press Enter:
O v- l ist power- state=running
Al l run n i ng VMs, i ncl udi ng the control domai n, are di spl ayed.
Note the UUI O of the Wi ndowsServer VM.
Use the fol l owi ng proced ure to shut down a VM usi ng the CLI .
2 Type the fol l owi ng command and press Tab:
O v- shutdown uuid=UID6
Repl ace UUID6 wi th the fi rst s ix characters of the VM from the
previ ous exerci se. The UUI O i s automati cal ly compl eted.
3 Press Enter to shut the VM down i f it is ru nni ng.
4 Type the fol l owi ng command and press Tab:
5
O v- li st uui d=UID6
Repl ace UU 1D6 wi th the fi rst si x characters of the VM from the
previ ous exerci se. The UU 1 0 i s automati cal l y compl eted.
Press Enter to di spl ay the power-state parameter.
Copyright 2008 Citrix Systems. Inc.
Exercise 7: Rename a
VM
Exercises for Module 1 4: Command Line Interface
Use the fol l owi ng procedu re to start a VM usi ng automati c pl acement.
2 Type the fol l owi ng command and press Tab:
xe vm- list uuid=UID6
Repl ace UUID6 wit h the fi rst si x characters of the VM from t he
previ ous exerci se. The UUI D is automati cal l y compl eted.
3 Press Enter to di spl ay i nformati on about the VM.
4 Observe t he val ue of the name-l abel fi el d.
5 Type the fol l owi ng command and press Tab:
xe v-parar- set uuid=UID6
Repl ace UUID6 with t he fi rst s ix characters of the VM from the
previ ous exerci se. The UUI D i s automati cal l y compl eted.
6 Append the fol l owi ng parameter to the previ ous command
and press Enter.
nare - label=ChangedVame
Repl ace ChangedVMName with a name you choose.
The name of the VM i s changed.
7 Type the fol l owi ng command and press Tab:
xe vm- list uuid= UID6
Repl ace UUID6 wi th the fi rst si x characters of the VM from the
previ ous exerci se. The UUI D i s automati cal l y completed.
8 Press Enter to di splay i nformati on about the VM.
9 Observe that the
new name i s al so P1CC!t
Copyright 2008 Citrix Systems, Inc. 83
Exercises for Modul e 1 4: Command Li ne Interface
S4 Copyright ZOOS Citrix Systems. I nc.
Exerci ses for Module 1 5: Upgrades
and Troubleshooti ng

CITRIX

Exercises for Module 1 5: Upgrades and Troubleshooting
86 Copyright 2008 Citrix Systems, Inc.
Exercises for Module 1 5: Upgrades and Troubleshooting
Exerci se: Troubl eshooti ng
Overview
Objectives
Prerequisites
XenServer logs event i nformati on that can be hel pful for admi nistrators
di agnos i ng probl ems. I t al so provi des a uti l ity to gather system
i nformati on to provi de to Xen Server techni cal support.
In thi s l ab, you wi l l :
View l ogs.
Generate a di agn ostic fi l e.
Before you begi n, you must have:
I nstal l ed XenCenter on a Wi ndows computer
Obtai ned the I P address from the l ocal di spl ay of your XenServer
Do not di ssol ve the resource pool. Keep the pool i ntact
for the remai ni ng l abs and work with your partner from
Lab 9 to ens ure you do not modify the same VMs in thi s
l ab. I f you di ssolve the pool , al l of the VMs and data for
XenServer B wi l l be l ost.
Copyright 2008 Citrix Systems, Inc. 87
Exercises for Module 1 5: Upgrades and Troubleshooting
Exercise: Step by Step
Exercise 1: Validating
XenServer Installation
Exercise 2: log in to the
Server Console Using
an SSH client
88
Use the fol l owi ng procedure to val i date a XenServer i nstal l ati on usi ng
t he menu-dri ven text consol e.
2 Cl i ck the Console tab in t he ri ght pane.
3 Cl i ck i nto Console wi ndow. Press Enter to l ogi n. You are
l ogged i nto the server consol e (control domai n) .
4 Type t he fol l owi ng command and press Enter:
xsconsole
The XenServer menu- dri ven text consol e i s di spl ayed.
5 Sel ect Technical Support and press Enter.
6 Sel ect Validate Server Configuration and press Enter.
7 Enter l ogi n and password i nformati on and press Enter.
8 Revi ew the val i dati on res ults and press Enter.
Use t he fol l owi ng procedure to access t he XenServer consol e us i ng an
SSH cl i ent.
2 Type the fol l owi ng command in the Open fi el d and cl i ck OK:
3
4
C : \XenSever\putty root@IP_Address
Repl ace IP_Address wi th the I P address of t he XenServer host.
A Putty Secu rity Al ert appears.
Cl i ck Yes. A password prompt appears.
Enter myxenpw ( no text appears) and press Enter. You are
l ogged i nto the server consol e (control domai n) remotely.
Copyright 2008 Citrix Systems, Inc.
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 l owi ng proced ure to add a XenServer to a Pool .
Step Action
1 Remai n i n t he Putty SSH cl i ent.
Note: Thi s Exerci se can be compl eted i n ei ther the
XenCenter or Putty SSH cl i ent.
Type the fol l owi ng command and press Enter:
less /var/ log/xensource . log
Note: The XenServer l og fi l e is di spl ayed.
2 Use the commands in the fol l owi ng tabl e to navigate through
the l og fi l e. Command Funci on
d " Page down
b Page up
G Go to end of fi l e
g " Go t o start of fi l e
lexampl e Search forward for the text exampl e
? exampl e Search backward for the text exampl e
n " Fi nd n ext occur rence of search str i ng
q " Quit
3 Type q to exi t t he fi l e vi ewer.
4 Type the fol l owi ng command and press Enter:
tail - f
Updates to t h e l og fi l e are
command r unni ng whi l e OOf1C|O rO
Use the fol l owi ng procedu re to restart a VM and vi ew the output from
the previ ous exerci se.
1 Retur n to XenCenter.
2 Sel ec WindowsServer from the left pane fil e tree and cl i ck
Start on the tool bar to start the VM.
3 Wait for the VM to start.
4 Cl i ck Shut Down on the tool bar with Wi ndowsServer st i l l
sel ected.
Copyright 2008 Citrix Systems. Inc. 89
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 shut down.
6 Switch back to the Putty SSH cl i ent and vi ew the output from
the tai l -f command.
7 Press Ctrl-C to termi nate the tai l -f command.
Use t he fol l owi ng procedure to generate a XenServer diagnosti c fi l e.
1 Remai n in the Putty SSH cl i ent.
2 Type t he fol l owi ng command and press Enter
xen-bugtool - -yestoal l
Note: I f both dashes are not pl aced before yestoal l , you wi l l
be prompted for each report i ndi vi dual ly.
3 Record the fi l ename created at the end of thi s process. The
fi l ename is of the form "bug-report-datestamp.tar.bz2" where
datestamp i ndicates the date the di agnostic fi l e was created.
Use the fol l owi ng procedure to copy a XenServer di agnosti c fi l e to a
Wi ndows cl i ent.
1 Go to Start > All Programs > Accessories > Command Prompt
on the Trai ni ng Desktop. The Command Prompt appears.
2 Type t he fol l owi ng command and press Enter:
cd c : \xenserver
Copyright 2008 Citrix Systems, Inc.
Exercises for Module 1 5: Upgrades and Troubleshooting
Step Action
3 Type the fol l owi ng command and press Enter:
pscp root@IP_Address : !var!opt !xen!bug- report!bug
report- da testamp. tar . bz2 .
Repl ace:
IP_Address wi th the I P address of the XenServer host
datestamp wi th the date stamp of the fi l e generated i n the
previ ous Exerci se
Note: There i s a space before the l ast peri od i n the
command. Be careful to i ncl ude the peri od at the end of t he
command. Thi s refers to t he cu rrent di rectory on the
Wi ndows machi ne.
The pscp command starts.
4 Type root@I_Address password: myxenpw ( no text appears)
and press Enter. The di agnosti c fi l e i s transferred to the l ocal
Wi ndows machi ne.
Repl ace IP _Address wi th the I P address of the XenServer host.
Note: The eLi al so i ncl udes t he xe host-bug report-upl oad
command. Thi s command ru ns xen-bugtool and
automati cal l y upl oads the resul ti ng fi l e to XenServer s upport.
For exampl e: xe host-bugreport-upl oad host= TRNSRV-A-04
Copyright 2008 Citrix Systems, Inc. 91
Exercises for Module 1 5: Upgrades and Troubleshooting
92 Copyright 2008 Citrix Systems, Inc.

CITRIX

851 West Cypress Creek Road Fort Lauderdal e, FL 33309 USA (954) 267 3000 www. ci tri x.com
Rhei nweg 9 8200 Schafhausen Switzerl and +41 (0) 52 63577 00 www. ci tri x. com
Copyri ght 2008 Citri x Systems, I nc. Al l ri ghts reserved.
1 1111111 11111111111 11 111111 1'111 11111 1111 111111 111111 111 1111111 111 1111111 111 11111111 1111 III!II II 1111
* I X 5 T L L W U N A N *