Duke IEEE X ACCESS
  • 🖥️Intro to Supercomputing 25 - Duke IEEE
  • ⏳Schedule
  • Join Duke IEEE Emails
  • Food Menu
  • Workshops
    • RAG Tutorial
    • ACCESS INTRO: NSF Computing Resources Overview
    • Jetstream 2 tutorial
    • Introduction to Supercomputing Architecture, Linux and job scheduling (SLURM)
    • ACCESS PEGASUS
    • Containers for HPC
    • Dask on HPC
Powered by GitBook
On this page
  • Jetstream 2
  • login to Jetstream
  • Launching Jupyter on Jetstream2
  1. Workshops

Jetstream 2 tutorial

How to get a gpu powered virtual machine vis NSF's ACCESS Program

PreviousACCESS INTRO: NSF Computing Resources OverviewNextIntroduction to Supercomputing Architecture, Linux and job scheduling (SLURM)

Last updated 8 months ago

Requires a Duke NetID and registration with the Duke Campus Champions allocation. Registration for the Intro to Supercomputing workshop will automatically give you access to the allocation.

Jetstream 2

Jetstream2 is a cloud-based infrastructure designed to support research, education, and scientific computing. It provides virtual machines and storage resources, allowing users to easily access and manage customized computing environments for a wide range of applications. Jetstream2 is particularly useful for those who need flexible and scalable computing resources without the complexity of traditional high-performance computing (HPC) systems. It supports projects in various fields such as data analysis, modeling, and research collaboration, making advanced computing more accessible to the academic community.

login to Jetstream

click add allocation

click add ACCESS account

select Duke as the provider

Registering for the intro to supercomputing workshop should have added you to the Duke Campus Champion allocation. Email sanjeev.chauhan@duke.edu if you are not part of it.

Create a new instance, add a name, pick ubuntu 22.04 and pick the smallest parameters as shown below.

Wait for your instance to build and then click connect to and web terminal to connect to it.

Launching Jupyter on Jetstream2

Using Web Desktop in Exosphere

For a seamless experience with Jupyter notebooks on Jetstream2, initiate an instance through Exosphere, ensuring the web desktop option is activated.

  1. Start an instance and wait for allocation.

  2. Launch a web terminal or ssh into the machine.

Accessing Jupyter through Web Shell or SSH Session

Given that a virtual machine is generally unaware of its public IP, Jetstream2 provides a script that retrieves your VM’s IP and integrates it into the URL provided by Jupyter.

To remotely initiate Jupyter via web shell or SSH:

  1. Input the commands:

    module load anaconda
    jupyter-ip.sh
  2. You should observe an output concluding with details resembling:

    To access the notebook, open this file in a browser:
        file:///home/exouser/.local/share/jupyter/runtime/nbserver-100997-open.html
    Or utilize one of these URLs:
        http://neatly-trusting-chow-gui:8888/?token=723fa5a01f6dc27b0ec655846572513757e921aaf247cbb7
    or http://149.165.154.8:8888/?token=723fa5a01f6dc27b0ec655846572513757e921aaf247cbb7
  3. The final URL with the IP address (e.g., 149.165.xxx.xxx) is the link you'll require for your browser.

Managing and Accessing Instances

SSH Access to the virtual machine

To SSH into an Exosphere instance:

  1. Obtain the public IP address of your instance from the Exosphere dashboard.

  2. Use your terminal or SSH client with the command:

    ssh [username]@[instance_IP_address]

Using the Virtual Desktop

Exosphere provides a virtual desktop option for a more interactive experience. To utilize the virtual desktop:

  1. Navigate to your Exosphere dashboard.

  2. Select your active instance and click on the "Web Desktop" option.

  3. This will open a new window with a full desktop environment accessible via your browser.

Managing Instance Credits

To optimize your ACCESS credits:

  • Shelving: When not using an instance, you can "shelve" it. This action temporarily suspends the instance, preserving its state but not consuming credits.

  • Resizing: Exosphere allows resizing of instances based on your needs. If you require more or fewer resources, navigate to the instance settings and select a different size. This flexibility ensures you only consume credits based on your actual resource requirements.

Go to

https://jetstream2.exosphere.app/exosphere/home