Book Image

Citrix XenServer 6.0 Administration Essential Guide

By : Daniele Tosatto
Book Image

Citrix XenServer 6.0 Administration Essential Guide

By: Daniele Tosatto

Overview of this book

Virtualization helps an organization reduce costs and achieve low maintenance. It is fast becoming an important skill for all administrators. Citrix's XenServer is one of the leading virtualization solutions for enterprises and helps companies reduce costs while allowing them to integrate, automate and easily manage their datacenters. It comes with a steep learning curve, but the results are well worth the effort. This practical guide on XenServer administration shows you how to manage XenServer pools; create, configure and manage virtual machines and a datacenter. With the help of real-world examples in this book, you will be able to apply these concepts directly in your everyday life. Packed with author's tips and helpful advice; the book is your best choice for anything related to XenServer administration. This is the only book that focuses on the most vital aspect of XenServerñadministration. You don't have to struggle through the lesser-documented tasks anymore, this book will provide all the information you need to create and run a perfectly designed datacenter using XenServer.You will begin your journey towards becoming an expert XenServer administrator by configuring XenServer pools and managing role-based user authentication. Your next step is to create and manage virtual machines. In the following chapters you will learn to configure storage. The book discusses some of the more difficult tasks like configuring and managing VM memory. In the end you will be capable of handling your datacenter and virtual machines through a network, and you will learn how to monitor and backup your XenServer setup. All through the book, the author adds his helpful tips and advice that will help you choose the best options for your setup.
Table of Contents (18 chapters)
Citrix XenServer 6.0 Administration Essential Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Licensing XenServer


XenServer is available in four editions but you can move towards virtualization (if you have not yet done this in your enterprise) with just the free edition. It can be used without time limits and restrictions. Citrix requires you only to activate the product within 30 days after you have installed it and then renew the free license on an annual basis.

Activating a free edition

To activate the free edition, follow this procedure:

  1. Request an activation key from Citrix using XenCenter.

  2. Click on the Tools menu and select License Manager.

  3. Select one or more hosts that you wish to activate. Click on Activate Free XenServer and then select Request Activation Key, as shown in the following screenshot:

  4. XenCenter opens a web browser and takes you to the Citrix XenServer Activation page as shown in the following screenshot:

    If XenCenter is unable to connect to the activation page (because the Internet connection is down, for example), then XenCenter gives you the option to save a .txt file locally with the activation request information.

    Note

    You can upload the .txt file to https://activate.vmd.citrix.com at a later date.

  1. Enter your details in the activation form, and then click on Submit. An e-mail with the activation key (.xslic file extension) will be sent to you shortly afterwards.

  2. Save the attached activation key to a known location on the computer running XenCenter or xe CLI.

  3. Apply the activation key to your XenServer host using XenCenter or xe CLI.

To apply an activation key using XenCenter:

  1. Click on the Tools menu and select License Manager.

    Note

    You can also launch the XenCenter License Manager by double-clicking the activation key file in Windows Explorer.

  2. Select the host you wish activate (you can only activate one host at a time). Click on Activate Free XenServer, and then select Apply Activation Key as shown in the following screenshot:

  3. Browse to and select the activation key file, and select Open as shown in the following screenshot:

  4. The information shown in the XenCenter License Manager will be updated as shown in the following screenshot:

  5. To install an activation key using xe CLI, open a console on the host and run the following command:

xe host-license-add [license-file=<<path/license_filename>>]

Activating a non-free edition

XenServer Advanced, Enterprise, and Platinum editions use the same licensing model as other Citrix products.

XenServer Advanced editions and higher require a license for each XenServer host you use. All XenServer editions licenses must be added to and managed from a Citrix Licensing Server. If you are familiar with other Citrix products, you know this is the standard approach for licensing them. Citrix License Server stores licenses for all Citrix products and allocates them per users or devices.

Each XenServer host requires a license, but this does not limit the number of users that may connect to VMs on that host. While licensing must be configured for each XenServer host, the XenCenter License Manager allows you to apply the same settings to multiple hosts at once.

To license XenServer Advanced editions and higher:

  1. Install the Citrix License Server and console on a Microsoft Windows Server machine.

    Note

    XenServer 6.0 requires Citrix Licensing 11.6.1 or higher. Refer to Citrix license server documentation for setup available at http://support.citrix.com/proddocs/topic/technologies/lic-library-node-wrapper.html.

  2. Obtain your XenServer license files and load them onto the Citrix License Server.

  3. Configure licensing for each XenServer host using XenCenter or xe CLI.

To configure licensing for XenServer hosts using XenCenter:

  1. Click on Tools menu | License Manager.

  2. Select one or more host(s) that you wish to assign a license to. Click on Assign License.

  3. The Apply License dialog box opens.

  4. In the Apply License dialog box, choose the XenServer license edition and then enter the Citrix Licensing Server details. 27000 is the port that the licensing server uses by default for communication with Citrix products. If you changed the default port on the licensing server, enter the new number in the Port number box as shown in the following screenshot:

XenCenter contacts the specified license server and checks out a license for the specified host(s). The information shown in the XenCenter License Manager will be updated.

To release a license (to set a licensed host to the free XenServer edition) from the License Manager, select a host, and then click on Release License.

You can use the CLI to configure licensing for XenServer hosts as well.

To assign a license, execute the following command:

xe host-apply-edition edition=advanced|enterprise|platinum|enterprise-xd license-server-address=<license_server_address> host-uuid=<uuid_of_host> license-server-port=<license_server_port>

where:

  • The edition parameter is the edition of XenServer you have bought

  • The license-server-address parameter is the IP address of the license server

  • The host-uuid parameter is the unique identifier/object reference of the XenServer host

  • The license-server-port parameter is the port number you have set on the license server configuration

We will run following command to assign a Platinum license to xenserver1:

xe host-apply-edition edition=platinum license-server-address=192.168.1.3 host-uuid=bdced52b-2228-4fb4-b02e-211f9aef1db6 license-server-port=27000

You only need to supply the license server IP address and port number parameters the first time you assign a license. The values are stored and used automatically if you do not specify the license server parameters in the future.

If no host UUID is specified, the license will be applied to the host that you are running the command on.