Difference between revisions of "Archive/XCP Beginners Guide"

From Xen
m
Line 9: Line 9:
 
* [[Xen Overview|Xen Hypervisor]]: providing the low level virtualization
 
* [[Xen Overview|Xen Hypervisor]]: providing the low level virtualization
 
* [[XAPI]]: the XCP toolstack which is used internally to manage the hypervisor
 
* [[XAPI]]: the XCP toolstack which is used internally to manage the hypervisor
* [[XCP_Command_Line_Interface|xe(1)]]: the command-line tool to configure and operate the XCP plattform
+
* [[XCP_Command_Line_Interface|xe]]: the command-line tool to configure and operate the XCP plattform
* [[xsconsole]]: a text-based UI to do basic tasks and configurations
+
* [[XCP_xsconsole|xsconsole]]: a text-based UI to do basic tasks and configurations
  +
The OS hosting all those components is based on CentOS (see [[XCP_Release_Features]] for current versions in use.
   
 
=Requirements=
 
=Requirements=
Line 16: Line 17:
 
* 64bit x86 computer with at least 1GB of RAM
 
* 64bit x86 computer with at least 1GB of RAM
 
* Storage (HDD) with at least 40(?)GB to install XCP and some basic VMs (XCP itself will take a 4GB chunk)
 
* Storage (HDD) with at least 40(?)GB to install XCP and some basic VMs (XCP itself will take a 4GB chunk)
* DVD-Drive (netboot is possible, but not covered here)
+
* CD/DVD-Drive (netboot is possible, but not covered here)
 
==Software==
 
==Software==
* The XCP ISO, see [http://xen.org/download/xcp/index.html Downloads] for the latest build
+
* The XCP ISO, see [http://xen.org/download/xcp/index.html Downloads] for the latest build. The ISO is ~450MB (1.6-release)
 
* Any guest OS (ISO-image suffices) you want to install
 
* Any guest OS (ISO-image suffices) you want to install
   
 
=Installation=
 
=Installation=
  +
Just boot from the burned CD and follow the steps. For a quick trial&play installations, the defaults are fine.
  +
For a full explanation please refer to [[XCP_Installation]].
  +
  +
=First steps=
  +
==Local terminals==
  +
While the system is coming up, you'll see the XCP logo with a progess bar. After loading and initializing the system has finished XCP will show [[XCP_xsconsole|xsconsole]] on screen including some basic information about the status of the system.
  +
  +
The second screen (Alt+F2) will get you a system log, which is usually empty after a clean boot.
  +
  +
On the third screen (Alt+F3) you get a login page with additional info about how to connect with externals tools (e.g. [[Using_XenCenter_to_manage_XCP|XenCenter]]) including the IP-address and the SSL certificate fingerprint.
  +
  +
To return to the xsconsole screen, press Alt+F1.
  +
  +
==xsconsole==
  +
To gather basic information about the running XCP system and doing basic tasks like start/stop VMs, creating [[Storage_Repository|Storage Repositories]]. See [[XCP_xsconsole|xsconsole]] for a full list of possibilities.
  +
  +
==Command Line==
  +
Choose 'Local Command Shell' from xsconsole, or type Alt+F3 and log into XCP. If you open a shell via xsconsole, type 'exit' to return and do not start xsconsole on your own again.
  +
  +
The main tool to manage XCP on this level is [[XCP_Command_Line_Interface|xe]]. A short overview of possible sub-commands can be listed by "xe help". A second tool availble on this level is xl(1), as before "xl help" to get a glimpse on possibilities.
  +
  +
Both tools are leveraged by TAB-completion, for xe not only sub-commands are expandable, but also parameters and possible values.
  +
  +
=xe=
  +
==Basic concept==

Revision as of 13:29, 25 February 2013

Welcome!

By following this beginners guide, you will learn the outline concept of XCP by installing it and doing basic tasks without prior knowledge of XCP. Some basic knowledge about Linux, virtualization, networks and working on the command-line is necessary.

This guide also includes daily tasks like creating a new VM, which are being used explaining XCP and it's components.

What is XCP all about

By installing XCP from a single ISO-image, you get a ready-to-use virtualization plattform that consists from:

  • Xen Hypervisor: providing the low level virtualization
  • XAPI: the XCP toolstack which is used internally to manage the hypervisor
  • xe: the command-line tool to configure and operate the XCP plattform
  • xsconsole: a text-based UI to do basic tasks and configurations

The OS hosting all those components is based on CentOS (see XCP_Release_Features for current versions in use.

Requirements

Hardware

  • 64bit x86 computer with at least 1GB of RAM
  • Storage (HDD) with at least 40(?)GB to install XCP and some basic VMs (XCP itself will take a 4GB chunk)
  • CD/DVD-Drive (netboot is possible, but not covered here)

Software

  • The XCP ISO, see Downloads for the latest build. The ISO is ~450MB (1.6-release)
  • Any guest OS (ISO-image suffices) you want to install

Installation

Just boot from the burned CD and follow the steps. For a quick trial&play installations, the defaults are fine. For a full explanation please refer to XCP_Installation.

First steps

Local terminals

While the system is coming up, you'll see the XCP logo with a progess bar. After loading and initializing the system has finished XCP will show xsconsole on screen including some basic information about the status of the system.

The second screen (Alt+F2) will get you a system log, which is usually empty after a clean boot.

On the third screen (Alt+F3) you get a login page with additional info about how to connect with externals tools (e.g. XenCenter) including the IP-address and the SSL certificate fingerprint.

To return to the xsconsole screen, press Alt+F1.

xsconsole

To gather basic information about the running XCP system and doing basic tasks like start/stop VMs, creating Storage Repositories. See xsconsole for a full list of possibilities.

Command Line

Choose 'Local Command Shell' from xsconsole, or type Alt+F3 and log into XCP. If you open a shell via xsconsole, type 'exit' to return and do not start xsconsole on your own again.

The main tool to manage XCP on this level is xe. A short overview of possible sub-commands can be listed by "xe help". A second tool availble on this level is xl(1), as before "xl help" to get a glimpse on possibilities.

Both tools are leveraged by TAB-completion, for xe not only sub-commands are expandable, but also parameters and possible values.

xe

Basic concept