Skip to main content

Logging into an Instance Without a Public IP

The OpenStack dashboard provides a method of logging into a running instance before it becomes accessible over the network, e.g. a fresh install from an ISO, or if network access is lost.

This is done with the virtual serial console (noVNC). A virtual serial console imitates attaching a serial cable to a physical server. What you will see when you log in with the serial console is a standard Linux command prompt, as if you have logged in with SSH. The only significant limitation is that files cannot be copied to the server e.g. with rsync or SCP. However, text can be copied and pasted as normal.

Logging into the server using the console requires that a password is configured on the new instance when it is created. This is done using the Post-Creation tab of the Instance Creation dialogue box.

The following screen cap shows:

  1. The location of the Post-Creation tab.
  2. The drop down menu where Direct Input must be selected.
  3. The script that must be copied and pasted (shown below the image) into the box.

The password is set using the following code which is pasted into the Direct Input text field:

#cloud-config 
hostname: hostname 
fqdn: fullhostname.extention
ssh_pwauth: False
password: TEMP_PASS

This code will set the password for the default user to be TEMP_PASS. The default users for the Memset images are as follows:

Users:
Ubuntu = ubuntu
CentOS = centos

Password: TEMP_PASS

After the instance has been started the console is found by:

  1. Clicking on the Instances tab.
  2. Clicking on the name of the running instance.

Once you are on the Instance Details page you need to:

  1. Click on the Console tab.
  2. Click on the """ link.

It is advisable to click on the "Click here to show only console" as there are issues with some browsers using the embedded console.

Once you have the console opened to full screen you will be able to log into the server using the username and password listed above. You will be prompted to change the password when you log in for the first time.

Please use your browser's back button to exit the full-screen console.

Last updated 13 June 2016, 10:06 GMT