Jetstream 2 tutorial
How to get a gpu powered virtual machine vis NSF's ACCESS Program
Last updated
How to get a gpu powered virtual machine vis NSF's ACCESS Program
Last updated
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.
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.
Go to https://jetstream2.exosphere.app/exosphere/home
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.
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.
Start an instance and wait for allocation.
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:
Input the commands:
You should observe an output concluding with details resembling:
The final URL with the IP address (e.g., 149.165.xxx.xxx
) is the link you'll require for your browser.
SSH Access to the virtual machine
To SSH into an Exosphere instance:
Obtain the public IP address of your instance from the Exosphere dashboard.
Use your terminal or SSH client with the command:
Using the Virtual Desktop
Exosphere provides a virtual desktop option for a more interactive experience. To utilize the virtual desktop:
Navigate to your Exosphere dashboard.
Select your active instance and click on the "Web Desktop" option.
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.