Access a VM
You can access a VM through the console to install or configure the operating system, view the boot process, or troubleshoot issues when the VM is unreachable over the network. For a Linux VM with network connectivity and the SSH service enabled, you can use SSH for routine command-line administration.
You can also configure console access methods and operating system login authentication to meet your access needs.
Access a VM by Using the Console
Use the console to quickly access a VM and perform operations such as installing the operating system, configuring the operating system, running commands, and starting applications.
Before you begin
- The VM must be running.
- (Optional) Configure the console mode and console password as needed. For more information, see Configure Remote Access.
- (Optional) Set a proxy address to access the VM console through the proxy address. For more information, see Console Proxy Management.
Procedure
Access a VM by Using SSH
Use SSH to access a VM.
Before you begin
- Your local computer, as the login client, has network connectivity and root access to the target VM.
- (Optional) Configure SSH key-based password-free login and the VM password as needed. For more information, see Configure Login Authentication.
Procedure
Configure Remote Access
Before you begin
Procedure
Configure Login Authentication
Before you begin
- Before setting an SSH public key, install VMTools (cloud-init). Recommended versions are 0.7.9, 17.1, 19.4, or later.
- Before changing a VM password, make sure the VM is running and QEMU Guest Agent (QGA) is installed and running properly.
Procedure
Console Proxy Management
The console proxy is used to access VM consoles through a proxy address. By default, the proxy address is the management node IP address. When the management node is deployed in a NAT, public network access, or domain-name access scenario, modify the console proxy address and port according to the actual access path.
If a VM console fails to open, reconnect the console proxy first. After the status changes back to Connected, open the VM console again.
Common Entry
In the navigation pane, choose to go to the Console Proxy page.
Common Operations
| Operation | Description |
|---|---|
| View Proxy Address | View the console proxy address. The default proxy address is the IP address of the management node. |
| Reconnect Console Proxy | If a VM console fails to open, click Reconnect on the Console Proxy page. After the status changes to Connected, you can open the console normally. |
| Modify Proxy Address | Click Modify Proxy Address to modify the address and port as needed. You can enter the public IP address of the management node, a NAT address, or a domain name as the console proxy address. The change takes effect immediately and does not require a management node restart. |
