Managing Virtual Machines
TOC
Reset PasswordProcedureUpdate KeyProcedureUpdate SpecificationsLive MigrationUpdate NAT Network ConfigurationProcedureUpdate Tags and AnnotationsAdd ServiceReinstall Operating SystemProcedureConfigure IPProcedureReset Password
Reset the root user password. This password also serves as the login password for the virtual machine when logging in using a password.
Procedure
-
Access the Container Platform.
-
In the left navigation bar, click Virtualization > Virtual Machines.
-
Locate the virtual machine and select ⋮ > Reset Password.
-
Set the password.
-
Click Reset.
Note: Please keep your password safe. To ensure environment security, the platform encrypts and stores your password, and you will not be able to see the plaintext password again.
Update Key
Update the SSH keys.
Procedure
-
Access the Container Platform.
-
In the left navigation bar, click Virtualization > Virtual Machines.
-
Locate the virtual machine and select ⋮ > Update Key.
-
Select one or more associated keys, or Create Key.
-
Choose whether to restart immediately; updating keys requires a restart of the virtual machine to take effect.
-
Click Update.
Update Specifications
-
Access the Container Platform.
-
In the left navigation bar, click Virtualization > Virtual Machines.
-
Locate the target virtual machine and click ⋮ > Update Specifications.
-
Modify the relevant resources based on the platform's recommended scenarios or custom needs.
-
Choose whether to Restart Immediately; the configuration will take effect after restarting.
-
Click Update.
Live Migration
Note: If you need documentation regarding live migration operations, please contact the administrator for assistance.
-
Access the Container Platform.
-
In the left navigation bar, click Virtualization > Virtual Machines.
-
Locate the target virtual machine and click ⋮ > Live Migration.
-
Click Confirm.
Update NAT Network Configuration
When using NAT network mode, the platform by default opens port 22 for SSH services, and you can open other ports as needed.
Procedure
-
Access the Container Platform.
-
In the left navigation bar, click Virtualization > Virtual Machines.
-
Click Virtual Machine Name.
-
In the Basic Information section, click the icon to the right of Open Port.
-
Enter the port number and press the Enter key to confirm.
-
Choose whether to Restart Immediately; the configuration will take effect after restarting.
-
Click Update.
Update Tags and Annotations
-
Access the Container Platform.
-
In the left navigation bar, click Virtualization > Virtual Machines.
-
Click Virtual Machine Name.
-
In the Basic Information section, click the icon to the right of Tags or Annotations.
-
Configure as needed and click Update.
Add Service
-
Access the Container Platform.
-
In the left navigation bar, click Virtualization > Virtual Machines.
-
Click Virtual Machine Name.
-
In the Login Information section, click the icon to the right of Internal Route.
-
Refer to the Create Service page for quick addition of internal routes for the virtual machine.
-
Click Confirm.
Reinstall Operating System
It is strongly recommended to back up data before reinstalling the operating system to prevent data loss.
Note: This operation will clear all data in the virtual machine's system disk, as well as all snapshots, and is irreversible. Please proceed with caution!
Procedure
-
Access the Container Platform.
-
In the left navigation bar, click Virtualization > Virtual Machines.
-
Locate the virtual machine and select ⋮ > Reinstall Operating System.
-
In the Reinstall Operating System window, configure the following parameters.
-
Provisioning Method: Currently supports public images.
-
Select Image: By default, the current operating system image will be used for reinstallation. If you wish to reinstall a new operating system, first select the operating system of the virtual machine image, then choose the virtual machine image that belongs to that operating system.
-
-
Click Reinstall.
Configure IP
Assign an IP to the virtual machine using dynamic allocation (DHCP) or bind a fixed IP to the virtual machine; the new IP will take effect after the virtual machine is restarted.
Procedure
-
Access the Container Platform.
-
In the left navigation bar, click Virtualization > Virtual Machines.
-
Locate the target virtual machine and click ⋮ > Configure IP.
-
Configure the IP Address.
-
Fill in an available IP: binding a fixed IP means that even after restarting, the virtual machine will consistently use this IP address.
-
Leave the option blank: this will use dynamic allocation (DHCP) to acquire an IP, assigning the IP when the virtual machine starts and releasing it when the virtual machine stops.
-
-
Choose whether to Restart Immediately; the configuration will take effect after restarting.
-
Click Configure.