Updated on 2024-10-29 GMT+08:00

Updating a Notebook Instance

Changing an Image

ModelArts allows you to change images on a notebook instance to flexibly adjust its AI engine. Images can be changed for only stopped notebook instances.

  1. Log in to the ModelArts management console. In the navigation pane on the left, choose Development Workspace > Notebook.
  2. In the notebook list, click More in the Operation column of the target notebook instance and select Change Image.
  3. In the Change Image dialog box, select a new image and click OK. After the modification, you can view the new image on the notebook list page.

Changing the Specifications of a Notebook Instance

ModelArts allows you to change the node specifications for a notebook instance. Specifications of a notebook instance can be modified only when the notebook instance is in the Stopped, Running, or Startup failed state.

  1. Log in to the ModelArts management console. In the navigation pane on the left, choose Development Workspace > Notebook.
  2. In the notebook instance list, locate the target notebook instance and choose More > Modify Specifications in the Operation column. In the displayed Modify Specifications dialog box, select the required specifications.
    Figure 1 Selecting specifications

    The specifications can be changed only when there are other options in the cluster. If no other specifications are available, the change cannot be performed.

Modifying the SSH Configuration for a Notebook Instance

ModelArts allows you to modify the SSH configuration only when the notebook instance is stopped.

If remote SSH connection is not configured when you create the notebook instance and you want to enable it after the instance is created, go to the notebook instance details page, and enable SSH configuration. If a whitelist is configured for remote connection and you need to use another IP address, modify the IP addresses in the whitelist on the instance details page. If an IAM user needs to start a notebook instance of another user's, change the key pair.

  1. Log in to the ModelArts management console. In the navigation pane on the left, choose Development Workspace > Notebook.
  2. Click the target notebook instance. Enable remote SSH and change the key pair and whitelist.

    For manually enabled remote SSH, see Figure 2. After the SSH configuration is updated, the remote SSH function cannot be disabled.

    For remote SSH enabled by default in the selected image, see Figure 3.

    Figure 2 Updating SSH configuration
    Figure 3 Changing the whitelist and key pair
    • Click and choose an existing key pair, or click Create to create one.
    • After you change the IP addresses, the existing links are still valid. After the links are released, the new links only from the changed IP addresses can be set up.
    • Ensure that public IP addresses are set. If your source device and the Huawei Cloud ModelArts are isolated from each other in network, obtain the public IP address of your source device using a mainstream search engine, for example, by entering "IP address lookup", but not by running ipconfig or ifconfig/ip locally.