This guide describes running HNN on Amazon Web Services (AWS). An image containing HNN pre-installed is available as a Community AMI.
-
First, log into the AWS Console with your user credentials. Then navigate to "EC2" -> "Launch Instance" or select Launch a virtual machine.
-
Search for the HNN image "hnn-1.1.2" or the key "ami-0251f4f931bb63795" for us-east-1 Virginia or "ami-0dacc67d076b2c133" for us-east-2 Ohio. Press "Select"
-
Choose an instance type. The image is compatible with "free tier eligible" types. The t2.micro free tier instance will be noticeably slower than a desktop, so if performance is important, choose an instance with more cores. The amount of memory, storage type, and network performance do not have a significant impact. Select "Review and Launch".
-
You will be prompted with a dialog similar to below asking you whether to boot from SSD. This is a good idea and is part of the free tier. It's recommended to select, "Make General Purpose (SSD) the boot volume for this instance." Click "Next.
-
Press "Launch" and select your private key for logging into the instance.
-
After the instance state changes to "running", press the "Connect" button. Modify the ssh command given in the dialog box in the two ways below. The command should look something like this:
ssh -X -i "mykey.pem" [email protected]
Notes:
- Use the user
ubuntu
- Add
-X
to enable X11 forwarding over ssh (to display the GUI)
- Use the user
-
Type
yes
to continue connecting and add this host to the list of known hosts. -
Type
hnn
at the prompt and the HNN GUI should show up.hnn
-
You can now proceed to the tutorials at https://hnn.brown.edu/index.php/tutorials/. Some things to note:
- The directory
/home/ubuntu/hnn_out
is where the results from your simulations (data and param files) will be stored. - The "Model Visualization" button will not work on the AWS virtualization hardware.
- The directory
The script used to create the AMI referenced above on Ubuntu 18.04 can be found here: aws-build.sh. This script can be run in an instance, and then in-turn an image can be created from the instance.
If you run into other issues with the installation, please open an issue on our GitHub. Our team monitors these issues and will be able to suggest possible fixes.
For other HNN software issues, please visit the HNN bulletin board