Configure and interact with resources (using the web interface)

Configure resources

Once your lease is started, you are almost ready to start an instance. But first, you need to make sure that you will be able to connect to it by setting up a key pair. This only has to be done once per user per project.

Go to Project > Compute > Access & Security, then select the Key Pairs tab.

Here you can either ask OpenStack to create an SSH key pair for you (via the "Create Key" Pair button), or, if you already have an SSH key pair on your machine and are happy to use it, click on "Import Key Pair".

If you chose to import a key pair, you will be asked to enter a name for the key pair, for example laptop. In the "Public Key" box, copy the content of your SSH public key. Typically it will be at ~/.ssh/ On Mac OS X, you can run in a terminal:  cat ~/.ssh/ | pbcopy
It copies the content of the public key to your copy/paste buffer. Then you can simply paste in the "Public Key" box.

Then, click on the blue "Import Key Pair" button. This should show you the list of key pairs, with the one you just added.

For those already familiar with OpenStack, note that Security Groups are not functional on bare-metal. All instances ports are open to the Internet and any security group rule you add will not be respected.


Now, go to the "Instances" panel.

Click on the "Launch Instance" button in the top right corner. A dialog will open with multiple steps, some of which are required, as indicated by the "*" in the tabs to the left. The first required step is "Details." Enter an instance name that is unique to your project, and select the reservation that you created from the dropdown list.

The next required step is to select a "Source" image for the instance. Select "CC-CentOS7" by finding the image in the "Available" list and clicking the "Up" arrow. The "CC-CentOS7" image should move to the "Allocated" list, and can be removed by clicking the "Down" arrow if you wish to select a different image.

The final required step is to select a "Flavor". The only flavor available is "baremetal". Click the "Up" arrow next to it. If you are familiar with Openstack, other implementations allow for the selection of flavors based on machine disk size and RAM. On Chameleon, the only flavor available is "baremetal" because hardware selection is performed in reservations.

An optional step is to select a "Key pair". If you only have one key pair associated with your account, then it is selected by default. However, it is a good idea to make sure that the instance is launching with the key pair of your choice, or you will not be able to access your instance. In addition, you may also import or create key pairs directly through this step of the "Launch Instance" dialog.

An additional optional step is to use "Scheduler hints". This is useful if you would like to launch an instance on a specific node in your multi-node reservation by UUID. In the "Custom" textbox, type "query" and click on the "+" button. This should add a scheduler hint to the right hand column.

You may fill in the textbox for this scheduler hint with:


Be sure to replace <node_uuid> with the UUID of the specific node in your reservation that you would like to use.

Click on the "Launch Instance" button in the lower right corner.  The instance will show up in the instance list, at first in Build status. It takes a few minutes to deploy the instance on bare-metal hardware and reboot the machine.

After a few minutes the instance should become in Active status and the Power State should be Running.

At this point the instance might still be booting: it might take a minute or two to actually be accessible on the network and accept SSH connections. In the meantime, you can attach a floating IP to the instance. Click on the "Associate Floating IP" button. You should get a screen like the one below:

If there are no unused floating IP already allocated to your project, click on the + button. In the window that opens, select the ext-net pool if not already selected by default and click on the blue Allocate IP button.

You will be returned to the previous window. The correct value for "Port to be associated" should already be selected, so you only have to click on "Associate".

This should send you back to the instance list, where you can see the floating IP attached to the instance (you may need to refresh your browser to see the floating IP).

Interact with resources

Now you should be able to connect to the instance via SSH using the cc account. In a terminal, type ssh cc@<floating_ip>, in our example this would be ssh cc@

SSH will probably tell you:

The authenticity of host ' (' can't be established.
RSA key fingerprint is 5b:ca:f0:63:6f:22:c6:96:9f:c0:4a:d8:5e:dd:fd:eb.
Are you sure you want to continue connecting (yes/no)?

Type yes and press Enter. You should arrive to a prompt like this one:

[cc@my-first-instance ~]$

If you notice SSH errors such as connection refused, password requests, or failures to accept your key, it is likely that the physical node is still going through the boot process. In that case, please wait before retrying. Also make sure that you use the cc account. If after 10 minutes you still cannot connect to the machine, please open a ticket with our help desk.

You can now check whether the resource matches its known description in the resource registry. For this, simply run: sudo cc-checks -v

The cc-checks program prints the result of each check in green if it is successful and red if it failed.

You can now run your experiment directly on the machine via SSH. You can run commands with root privileges by prefixing them with sudo. To completely switch user and become root, use the sudo su - root command.

Connect to the serial console

Chameleon now allows you to connect to the serial console of your bare-metal nodes via the web interface. Once your instance is deployed, click on the Console button in the instance contextual menu.

This should open a screen showing an interactive serial console (it could take some time to show up, give it 30 seconds or so).

Our latest images are configured to auto-login into the cc account. Other images may show you a login prompt. In this case, when connected via SSH, you can set a password on the cc account by using the command `sudo passwd cc`, and then use this password to connect to the console.

Snapshot an instance

All instances in Chameleon, whether KVM or bare-metal, are running off disk images. The content of these disk images can be snapshotted at any point in time, which allows you to save your work and launch new instances from updated images later.

While OpenStack KVM has built-in support for snapshotting in the Horizon web interface and via the command line, bare-metal instances require a more complex process. To make this process easier, we developed the cc-snapshot tool, which implements snapshotting a bare-metal instance from command line and uploads it to Glance, so that it can be immediately used to boot a new bare-metal instance. The snapshot images created with this tool are whole disk images.

For ease of use, cc-snapshot has been installed in all the appliances supported by the Chameleon project. If you would like to use it in a different setting, it can be downloaded and installed from the github repository.

Once cc-snapshot is installed, to make a snapshot of a bare-metal instance, run the following command from inside the instance:

sudo cc-snapshot <snapshot_name>

You can verify that it has been uploaded to Glance by running the following command:

glance image-list

If you prefer to use a series of standard Unix commands, or are generally interested in more detail about image management, please refer to our image management guide.


Consult the dedicated page if you would like to use the FPGAs available on Chameleon.

Next Step

Now that you have created some resources, it is time to interact with them! You will find instructions to the next step by visiting the following link: