Skip to content

Commit

Permalink
Merge pull request #69 from matelakat/readme-updates
Browse files Browse the repository at this point in the history
Update documentation
  • Loading branch information
matelakat committed Feb 5, 2014
2 parents ae0bc73 + 1debb0a commit 9e89441
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
37 changes: 18 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ Like this:
--flavor "performance1-8" \
--key-name matekey instance

After it's done, get the IP address of your instance:
After it's done, get the IP address of your instance. Some convenience scripts
can be found in the `bin` directory to do this, so set your `PATH` to include
the bin directory.

IP=$(xitc-get-ip-address-of-instance instance)

Expand All @@ -37,37 +39,34 @@ Make a directory to hold the scripts:
$SSH_PARAMS \
root@$IP mkdir -p /opt/xenapi-in-the-cloud

Copy the `convert_node_to_xenserver.sh` script to that directory:
Copy the files from the `scripts/` directory to that directory:

scp \
$SSH_PARAMS \
convert_node_to_xenserver.sh root@$IP:/opt/xenapi-in-the-cloud/
scripts/* root@$IP:/opt/xenapi-in-the-cloud/

And execute that script with the following parameters:

ssh \
$SSH_PARAMS \
root@$IP bash /opt/xenapi-in-the-cloud/convert_node_to_xenserver.sh XENSERVER_PASSWORD [APPLIANCE_URL]
root@$IP bash /opt/xenapi-in-the-cloud/convert_node_to_xenserver.sh \
$XENSERVER_PASSWORD $APPLIANCE_URL $APPLIANCE_NAME_LABEL

Where:
- `XENSERVER_PASSWORD` is a mandatory parameter, this will be the password
of your XenServer.
- `APPLIANCE_URL` is an optional parameter. It should be an url, specifying
an XVA file, that will be configured to listen on the public IP. The appliance
could be created with the help of [these scripts](
https://github.com/citrix-openstack/openstack-xenapi-testing-xva)
- `XENSERVER_PASSWORD` will be your XenServer's password.
- `APPLIANCE_URL` is an url, specifying an XVA file, that will be configured
to listen on the public IP. The appliance could be created with the help of
[these scripts](https://github.com/citrix-openstack/openstack-xenapi-testing-xva)
- `APPLIANCE_NAME_LABEL` is the name-label to be given to the appliance.

Now, you have to monitor the public IP with ssh, and look for a stamp file. To
get the name of the stamp file, execute `xitc-print-stamp-path`. Whenever you
successfully logged in, and the file exists, the transformation finished:
successfully logged in, and the file exists, the transformation finished. A
helper script is provided, that will block until the stamp file has been found:

xitc-wait-until-done $IP matekey.priv

If you specified `APPLIANCE_URL`, that VM will be listening on the public IP
address, the XenServer will be accessible on the IP address: `192.168.33.2`.

If no appliance was given, you will be able to access dom0 through the public
IP.
XenServer will be accessible on the IP address: `192.168.33.2`.

## Testing

Expand All @@ -84,6 +83,6 @@ setup script works, and the instance could be used in a cloud environment.

## How Does it Work?

The idea is to have a single script (to make it easy to deploy), that is able
to convert an instance to a XenServer. Look at the [convert_node_to_xenserver.sh](convert_node_to_xenserver.sh)
file, the main function implements the state machine.
Look at the [convert_node_to_xenserver.sh](convert_node_to_xenserver.sh) file,
the main function implements a state machine, that's executed by both Ubuntu
and XenServer's dom0.
4 changes: 2 additions & 2 deletions scripts/convert_node_to_xenserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

# Installation
# ~~~~~~~~~~~~
# 1.) Start an Ubuntu HVM instance in the Rackspace cloud
# 2.) Copy this scipt to the instance's filesystem
# 1.) Start an Ubuntu HVM instance in the Rackspace cloud.
# 2.) Copy the files from this directory to the instance.
# 3.) Execute this script on the instance with 3 parameters:
# - First parameter is the password for the XenServer
# - Second parameter is a URL to an xva appliance to be installed. For
Expand Down

0 comments on commit 9e89441

Please sign in to comment.