Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Citrix XenServer 6.0 Administration Essential Guide

You're reading from   Citrix XenServer 6.0 Administration Essential Guide Deploy and manage XenServer in your enterprise to create, integrate, manage and automate a virtual datacenter quickly and easily with this book and ebook.

Arrow left icon
Product type Paperback
Published in Jun 2012
Publisher Packt
ISBN-13 9781849686167
Length 364 pages
Edition 1st Edition
Concepts
Arrow right icon
Author (1):
Arrow left icon
Daniele Tosatto Daniele Tosatto
Author Profile Icon Daniele Tosatto
Daniele Tosatto
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Citrix XenServer 6.0 Administration Essential Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Introducing XenServer Resource Pools FREE CHAPTER 2. Managing User Authentication 3. Managing Storage Repositories 4. Creating Virtual Machines 5. Managing Virtual Machines 6. Managing XenServer and Virtual Machine Memory 7. Managing XenServer Networking 8. Managing High Availability and Snapshots 9. Protecting and Monitoring XenServer Supported Guest Operating Systems and Virtual Machine Templates Applying Updates and Hotfixes Index

Creating a XenServer resource pool


After we have introduced the resource pool concept and requirements, we can start discussing how to create a resource pool in XenServer.

Resource pools can be created using either the XenCenter management console or the xe command-line interface (CLI). When you join a new host to a resource pool, the joining host synchronizes its local database with the pool-wide one, hosted and managed by the pool master, and inherits some settings from the pool:

  • VM, local, and remote storage configuration is added to the pool-wide database.

  • The joining host inherits existing shared storage repositories in the pool and appropriate PBD (Physical Block Devices) records are created, so that the new host can access existing shared storage automatically.

  • Networking information is partially inherited by the joining host: The structural details of NICs, VLANs, and bonded interfaces are all inherited, but policy information is not. This policy information, which must be re-configured, includes:

    • The IP addresses of management NICs, which are preserved from the original configuration.

    • The location of the primary management interface, which remains the same as the original configuration. For example, if the other pool hosts have their primary management interfaces on a bonded interface, then the joining host must be explicitly migrated to the bond once it has joined.

    • Dedicated storage NICs, which must be re-assigned to the joining host from XenCenter or the CLI, and the PBDs re-plugged to route the traffic accordingly.

Concepts related to storage and networking will be discussed in Chapter 2, Managing User Authentication, and Chapter 5, Managing Virtual Machines.

Note

Best Practice: Create a pool before adding shared storage.

Now, we are ready to create a XenServer resource pool. Two hosts will be part of this pool, xenserver1 and xenserver2.

Host xenserver1 is configured with IP address 192.168.0.1 and host xenserver2 is configured with IP address 192.168.0.2.

We will configure the resource pool using XenCenter and CLI.

Usually XenCenter is a faster and user-friendly method for doing this task, so we will create the resource pool using XenCenter first:

  1. Start XenCenter:

  2. Click on Server | Add to add the xenserver1 host to the console.

  3. Type the IP address of xenserver1 and password for the user root.

    The first time you add a new host, the Save and Restore Connection State dialog box appears. This enables you to set your preferences for storing your host connection information and automatically restoring server connections.

  4. Now, the xenserver1 host is visible on the XenCenter console:

  5. Repeat the previous steps to add the xenserver2 host.

  6. Click on Pool | New Pool.

  7. Type a name for the pool and, optionally, a description. Select the master and click on the servers that will be joined. In this example, we named the pool XenPool and the master xenserver1.

  8. Click on Create Pool. The new pool will be created and configured:

If you want to check if a XenServer host is the pool master for a pool, look at the Pool Master property available on the General tab of the host in XenCenter. If the value is Yes in the Pool Master property the host is acting as the pool master for the pool. Also, when you connect to a XenServer pool, the first host displayed is the pool master. For example, if xenserver2 is the pool master of the pool, xenserver2 will be displayed first in XenCenter.

Now it is time to discover how to designate a pool master using the xe command-line interface. You can open the xe CLI from XenCenter by clicking on the Console tab or from a computer with XenCenter installed executing the xe.exe command from the path C:\Program Files\Citrix\XenCenter:

xe -s <server> -u <username> -pw <password> [-p <port>] <command> <arguments>
 

where:

  • The server parameter is used to specify the hostname or IP address

  • The username and password parameters are used to specify credentials for logging in

  • An optional port parameter can be used to specify the agent port on the remote XenServer Host (defaults to 443)

  • The command parameter is the xenserver command you want to execute

  • The arguments parameter is the argument related to the xenserver command you want to execute

In the following example, we use the xe CLI from XenCenter:

  1. From XenCenter, select xenserver1 and click on the Console tab:

  2. Press Enter to log in to the console.

  3. XenServer hosts belong to an unnamed pool by default. To create your first resource pool, rename the existing nameless pool using the following command:

    xe pool-param-set name-label=<"New Pool"> uuid=<pool_uuid>
    

    where name-label is the name to assign to the pool and uuid is the the unique identifier/object reference for the pool. To find the UUID for the pool, press the Tab key on your keyboard.

  4. We will run following command to create the pool named XenPool:

    xe pool-param-set name-label="XenPool" uuid=8eaa281f-c7ae-20d3-f37d-00e8596e4bc4
    
  5. Now we have to join the xenserver2 host to the pool. To do this, we will open the console on xenserver2 and execute the following command:

    xe pool-join master-address=<host1> master-username=<administrator_username> master-password=<password>
    

    where master-address is the fully-qualified domain name or IP address of the pool master, master-username is the name of the master's administrator (root), and master-password must be the administrator password set when the XenServer host acting as master was installed.

  6. We will run the following command to join xenserver2 to the XenPool:

    xe pool-join master-address=192.168.0.1 master-username=root master-password=xenserver
    
  7. Host xenserver2 will join the pool, as shown in the following screenshots:

    Note

    You can use a program such as "PuTTY" to connect to XenServer hosts and execute console commands. You can download it from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html.

In the real world, virtual infrastructure grows according to the needs of the enterprise. It is often difficult to acquire multiple servers with the exact same CPUs and so minor variations are permitted. If you have a XenServer host in your environment with a different CPU you can join it to the pool by forcing the operation using the following xe command:

xe pool-join master-address=<host1> master-username=<administrator_username> master-password=<password> --force

where:

  • master-address is the fully-qualified domain name or IP address of the pool master

  • master-username is the name of the master's administrator (root)

  • master-password is the administrator password set when the XenServer host acting as master was installed

You have been reading a chapter from
Citrix XenServer 6.0 Administration Essential Guide
Published in: Jun 2012
Publisher: Packt
ISBN-13: 9781849686167
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image