Skip to content

Latest commit

 

History

History
173 lines (101 loc) · 7.62 KB

NimbusStart.md

File metadata and controls

173 lines (101 loc) · 7.62 KB

Nimbus Virtual Machine Setup

~ 2019 Craig Duncan

These notes help getting started on a Nimbus instance, if you already have an account and login for Pawsey.

  1. Use your allocation to setup an instance, configure OS image and data drives.
  2. Start instance (launch through web dashboard for Nimbus)
  3. Gather your login information (IP address, image type etc)
  4. Setup your private keys and ssh login
  5. Login

General Pawsey Resources:

Pawsey Nimbus Docs

Pawsey_UsingNimbus

Pawsey_SecurityGroup

Pawsey_LaunchNimbusInstance

Pawsey_AttachingStorage

PawseySupportDocs

PawseySupport_CreateInstance

PawseySupport_AccessInstance

PawseySupport_Network

"You will (usually) use a Secure Shell (SSH) connection to run jobs and do work on your virtual machine. Meanwhile, you will use the Nimbus dashboard, a website we maintain, to manage your virtual machine/s (instances). This is shown below"

key aspects:

  • nimbus website (administration)
  • SSH connection (to your 'virtual machine' (cloud instance) on the Nimbus server)

Pawsey Nimbus Instance Glossary

Term Definition
Allocation the infrastructure specifications you have been allocated for a specific project (# of instances, RAM, memory, etc.)
Instance a virtual machine (located on Nimbus servers, you access via the SSH)
Instance Flavor the size of your instance (RAM, VCPUs, root disk, ephemeral disk)
Key Pair this is a key you generate which allows you to login to your instance
Security Groups these are the incoming/outgoing permissions you allow for your instance (IP addresses, ports, etc.). You must allow at least allow ssh connections to access your instance!
IP Address the virtual address of your instance
Snapshot & Image a snapshot is a copy of your Root Disk storage you create before terminating your instance. You can launch this image later as a new instance (useful for booting a fully configured virtual machine with all required applications pre-installed)
Volume & Object Storage similar to an external hard drive you attach and detach to one or multiple instances (useful for big and important data or fully configured virtual machines).

Nimbus Supercomputer portal

The Nimbus dashboard is accessed through the main Nimbus login page. It is an example of the 'OpenStack' HPC administration system. Once you are familiar with this, working with Nimbus instances in the future will be easier.

Nimbus Login

Open this URL now in a browser window, you will see the login window.

For “domain”, enter ‘pawsey’ and your user name and password.

PEM file

The VM doesn't set up passwords. However, you will secure with a public [lock] and private [key] system. The private key is a .pem file.

Privacy enhanced mail file. It's one of the encrypted formats. it may contain some or all of the key chain and/or several certificates.

RFC1421-4 define it. RFC1421

"This document defines message encryption and authentication procedures, in order to provide privacy-enhanced mail (PEM) services for electronic mail transfer in the Internet."

See WhatIsAPEMfile

"Store your private key in a safe place! Losing your private key means losing every access to your instances. Not even the Nimbus support can give you access to your instances if you have lost your private key."

Setting up the Instance

Specifications to launch the Nimbus instance (OpenStack)

Each instance needs an instance name, an area (e.g. "nova") and if you want, you can create multiple instances with the same setup. Probably not needed initially.

Each instance needs an operating system. 2019 - Pawsey support Ubuntu LTS 16.04 and Centos 7 as options.

Other options require more support from your own team.

Security group for the instance

The 'openstack' web-based administration for Nimbus is used to set up security groups.

"To make a security group, you will go to the Network / Security Groups section and hit “Create Security Group”"

Some of the further setup includes options for having one or more ports for data input and output to the instance (ingress and egress).

The instance configuration option 'SSH Access' will automatically connect the privileges for the instance with the external login user group.

Each virtual instance (VI) will be given a unique IP address and PORT address on that IP machine.

Each SSH (secure shell connection) is for a virtual machine, over port 22, so SSH login details ensure security of the machine.

Do not share logins.

Nimbus Instance "Flavor" (flavour is an OpenStack concept)

There's a 5GB default storage area, which relates to the virtual machine running an operating system, rather than the storage device for data work. The secondary storage will be setup once the instance is live, so just choose a defalt option for now.

The 2019 setup by Pawsey includes image sizes up to 48GB by default (jumbo, xlarge etc)

Since Pawsey appears to be using OpenStack, this is also a bit of background on what Flavor is about : OpenStackFlavor Pawsey_OpenStack

The web based setup is hiding some of the CLI commands from users.

Network and login information

You may need to login to the web portal, and choose 'networks' from instance to see the public IP allocation.

There is a private network option.

(Public networking is not local, and the setup is in the background so do not concern yourself with this)

Go to Nimbus web portal for administration.
You may later need to login to your data, so choose 'networks' from the Instance menu to see the public IP allocation that you will use for your login.

e.g. Network shows this: Public external

public-external-subnet 1.2.3.0/21 IPv4 1.2.3.1 (gateway)

Routers shows gateway for you project public IP address:

1.2.3.245

Public/private keys and using them to SSH login

SSH Login on the terminal (in general).

A keypair is essential to start.

The login is the linux OS image you chose, not you as a user! Like this:

ssh -i ~/.ssh/keypairname.pem ubuntu@###.###.##.##

(the -i flag is for 'identity file') If your list of identities is empty, check with this:

ssh-add -l

You may also need to do this: ssh-add ~/.ssh/keypairname.pem

if you are adding an identity, from a locally generated key, you just add the filename with the private key name.

Data Storage setup - mount volumes ready for use on a running instance.

Three steps:

  • Create volume (web interface handles this: an fdisk command)
  • Format (command line mkfs command : sudo fdisk -l /dev/vdc)
  • Mount (two steps: mkdir data and then sudo mount /dev/vdc)

Stage 3 - install applications, libraries etc

Optional

Use docker containers to make setup/maintenance easier

Stage 4 - take a snapshot of image as setup