Note:

TASK 2: Connect to a VM Instance from VS Code

In this task you will connect to a remote VM host in Oracle Cloud where you will perform the lab. You will use the Visual Studio Code (VS Code) editor. VS Code is preinstalled in the desktop together with tools for remote development.

Estimated Time: 10 minutes

Step 1: Connect to a VM Instance

When you start the lab, all necessary compute resources are provisioned in the background, including the Compute Instance with the Oracle Linux 8 pre-built image.

  1. Go to the Luna Lab page opened in the browser, and click the Resources.

  2. Scroll down to Setup and copy the text from the Open VSCode and Connect text box. You many need to click on View Details. This script will setup the environment needed for the lab and launch VS Code. You can use the Copy to clipboard button on the far right that appears when you hover over the box.

  3. Click the Applications menu and open a Terminal Emulator.

  4. Place your cursor in the Terminal window and paste the lab init script you copied (Shift+Ctrl+V). A dialog box will warn you that you are pasting multiple lines which looks suspicious, but click Paste to proceed.

  5. A VS Code window will open and automatically connect to the VM instance that has been provisioned for you. Click Continue to accept the machine fingerprint.

  6. The green box at the lower left corner of VS Code will display SSH: <REMOTE VM IP ADDRESS> to indicate you are connected over SSH.

You may now proceed to the next task.

Learn More