Tencent Cloud Lighthouse

Tencent Cloud Lighthouse
Operation Guide
Product Documentation©2013-2022 Tencent Cloud. All rights reserved.

Page 1 of 275

Tencent Cloud Lighthouse

Copyright Notice©2013-2024 Tencent Cloud. All rights reserved.
Copyright in this document is exclusively owned by Tencent Cloud. You must not reproduce, modify, copy or distributein any way, in whole or in part, the contents of this document without Tencent Cloud's the prior written consent.
Trademark Notice

All trademarks associated with Tencent Cloud and its services are owned by Tencent Cloud Computing (Beijing)
Company Limited and its affiliated companies. Trademarks of third parties referred to in this document are owned bytheir respective proprietors.
Service Statement
This document is intended to provide users with general information about Tencent Cloud's products and services
only and does not form part of Tencent Cloud's terms and conditions. Tencent Cloud's products or services are
subject to change. Specific products and services and the standards applicable to them are exclusively provided for in
Tencent Cloud's applicable terms and conditions.

©2013-2022 Tencent Cloud. All rights reserved.

Page 2 of 275

Tencent Cloud Lighthouse

Contents
Operation Guide
Logging In to Linux Instances
Logging in to Linux Instance via Tencent Cloud OrcaTerm
Logging in to Linux Instance via Remote Login Software
Logging in to Linux Instance via SSH Key
Logging in to Linux Instance via VNC
Logging in Windows Instance
Logging in to Windows Instance via VNC
Logging in to Windows Instance via Remote Desktop Connection
Managing Instances
Resetting the instances passwords
Password Reset Operation Instruction
Troubleshoot the Issue That the Password Fails To Be Reset Online or Is Invalid
Troubleshoot the Issue That the Password Reset Fails To Be Reset Offline or Is Invalid for The
Windows Instance
Binding Key
Viewing Instance Information
Shutting down Instance
Restarting InstanceTerminating InstanceRenewing Instance
Reinstalling System
Upgrading Instance Package
Managing Instance Tag
Changing Instance Public IP
Batch Operations
Working with Cloud Disks
Creating Cloud Disks
Attaching Cloud Disks
Initializing Cloud Disks
Renewing Cloud Disks
Detaching Cloud Disks
Terminating Cloud DisksManaging KeysManaging Firewall
Manage instance firewall©2013-2022 Tencent Cloud. All rights reserved.

Page 3 of 275

Tencent Cloud Lighthouse

Managing Snapshot
Managing Image
Working with Custom Images
Replicating Custom Images Across Regions
Share Custom Images
Tencent Cloud Support for Lighthouse Images
Private Network Interconnection
OPS and Monitoring
Instance Monitoring
Access Management
CAM Overview
Authorizable Resource Types
Authorization Policy Syntax
Transfering File
Uploading Local Files to Lighthouse
Uploading File from Windows to Linux Lighthouse Instance via WinSCP
Uploading File from Windows to Lighthouse Instance via FTP
Uploading File from Windows to Windows Lighthouse Instance via Remote Desktop Connection
Uploading File from Linux or macOS to Linux Lighthouse Instance via SCP
Uploading File from Linux or macOS to Lighthouse Instance via FTP
Uploading File from Linux to Windows Lighthouse Instance via rdesktop
Uploading File from macOS to Windows Lighthouse Instance via MRD©2013-2022 Tencent Cloud. All rights reserved.

Page 4 of 275

Tencent Cloud Lighthouse

Operation Guide
Logging In to Linux Instances
Logging in to Linux Instance via Tencent
Cloud OrcaTerm：

Last updated 2023-08-03 17:46:01

Overview
OrcaTerm is a login method recommended by Tencent Cloud. You can use it to directly log in to a Linux instancequickly. It has the following strengths:
Supports copy and paste.
Supports scrolling with mouse wheel.
Note:
When you create a Linux Lighthouse instance, it will be bound to a key by default. The username of the key islighthouse , which has the root privileges.
When you use OrcaTerm to log in to a Linux instance, the system will use the key of the lighthouse username
for login by default.

Supported Systems
Windows, Linux, or macOS.

Prerequisites
Before login, confirm that the firewall of the instance has passed port 22 (which has been enabled by default when the
instance was created).

Directions
1. Log in to the Lighthouse console.
2. Find the target instance in the server list and select a login method as desired.

©2013-2022 Tencent Cloud. All rights reserved.

Page 5 of 275

Tencent Cloud Lighthouse

Click Log in in the instance card in the server list.

Click the instance card to enter the instance details page and click Log In in Remote Login or in the top-right cornerof the page.

For an instance created by using an application image, select Pre-installed application on the instance details pageand click Log in in the top-right corner of the page.

©2013-2022 Tencent Cloud. All rights reserved.

Page 6 of 275

Tencent Cloud Lighthouse

The page for successful login is as shown below:

After successful login, you can set up low-load lightweight applications with a moderate number of access requests,
such as small and middle-sized websites, web applications, blogs, forums, mini games, ecommerce, cloud storage,
image hosting, and cloud-based development, testing, and learning environments as instructed in Best Practices.
The OrcaTerm has a variety of features. You can use the virtual keyboard on the mobile client to change the
OrcaTerm appearance, upload/download files, start self-service instance detection, enable multi-session, split thescreen, and get the prompts as instructed in More OrcaTerm features.

Related Operations
Enabling/Disabling OrcaTerm-based quick login
Note:©2013-2022 Tencent Cloud. All rights reserved.

Page 7 of 275

Tencent Cloud Lighthouse

After a Lighthouse instance is created successfully, the OrcaTerm-based quick login feature will be enabled bydefault. You can disable or enable it again in the following steps:
1. Log in to the Lighthouse console.
2. Find the target instance in the server list and enter the instance details page.
3. In Quick login in Remote login, you can enable or disable OrcaTerm-based quick login as needed:
Close: If you don't need to use quick login, you can disable it.
Note:
After quick login is disabled, you can still use the local SSH client to remotely log in to the instance. You can alsoenable quick login again.
After quick login is disabled, the public key (stored under the lighthouse user of the operating system by default)of the default system key won't be deleted at the same time. You can delete the public key by yourself. However, if it isdeleted, quick login will not take effect after being enabled again.
Enable: After quick login is enabled, you can use the default system key to quickly log in to the instance through
OrcaTerm in a browser.
Note:
Confirm that the public key (stored under the lighthouse user of the operating system by default) of the default
system private key is not deleted; otherwise, the quick login feature won't work after being enabled.

More OrcaTerm features
OrcaTerm offers a variety of features to ensure a satisfactory user experience.
OrcaTerm features are described as follows:
Multiple keyboard shortcuts
OrcaTerm supports
multiple keyboard shortcuts, which can be viewed on the UI as instructed below:
1. Log in to the instance as instructed in Logging in to Linux Instance via OrcaTerm.
2. On the OrcaTerm UI, open the Keyboard shortcuts window to view the supported shortcuts.
If your local computer uses macOS: Press ⌘ + / .
If your local computer uses Windows: Press Ctrl + / .
Viewing instance monitoring data
You can view the instance monitoringdata in real time on the OrcaTerm UI as instructed below. Currently, the data is refreshed once every 10 seconds.
1. Log in to the instance as instructed in Logging in to Linux Instance via OrcaTerm.
2. At the bottom of the OrcaTerm UI, view the instance monitoring data.
Changing the username

You can specify the user to log©2013-2022 Tencent Cloud. All rights reserved.

Page 8 of 275

Tencent Cloud Lighthousein via OrcaTerm as instructed below:
1. Log in to the instance as instructed in Logging in to Linux Instance via OrcaTerm.
2. In the Log in pop-up window, the default username is lighthouse , which can be changed as needed.
3. Then click Log in
Quickly installing TencentCloud Automation Tools
You need to use TencentCloud Automation
Tools to implement quick passwordless login via OrcaTerm. If the tool is not installed for your instance, you can install
it upon login as instructed below:
1. Log in to the instance as instructed in Logging in to Linux Instance via OrcaTerm.
2. In the Log in pop-up window, select the installation method as needed if you are prompted that TencentCloud
Automation Tools is not installed for your instance.
Quick installation (reboot required): Read the notes, select Installation requires your agreement to a forced
shutdown, and click Quickly install TencentCloud Automation Tools.
Manual installation (no reboot required): Perform the installation as instructed in Installing TAT Agent.
3. After the installation is completed, the instance can be quickly logged in to via OrcaTerm.
Using the command block mode
You can use the command blockmode on the OrcaTerm UI. After the mode is enabled, every executed command will be displayed as a module foreasy use of OrcaTerm. You can also disable the mode as needed as instructed below:
1. Log in to the instance as instructed in Logging in to Linux Instance via OrcaTerm.
2. On the OrcaTerm UI, enable or disable the command line mode.
Enable the command line mode: Selecton the toolbar of the OrcaTerm UI to enable the command block mode. After it is enabled, a command will be
executed as follows:

Disable the command line mode: Select©2013-2022 Tencent Cloud. All rights reserved.

Page 9 of 275

Tencent Cloud Lighthouseon the toolbar of the OrcaTerm UI to disable the command block mode. After it is disabled, a command will be
executed as follows:

Note:
If the command block mode is disabled and enabled again, you need to reconnect to OrcaTerm.
Viewing the release note
You can view the latest release
note of OrcaTerm, including the new features, bugfixes, and features coming soon, as instructed below:
1. Log in to the instance as instructed in Logging in to Linux Instance via OrcaTerm.
2. Select

in the bottom-right corner of the OrcaTerm UI.
3. View the latest release note in the pop-up window.
Selecting an instance to log in

You can select any instanceto log in on the OrcaTerm UI as instructed below:
1. Log in to the instance as instructed in Logging in to Linux Instance via OrcaTerm.
2. Select

on the toolbar of the OrcaTerm UI.
3. For the first time, the Select the instance to be displayed window will pop up. Select the target instance andclick OK.
4. Select> Add instance to add instances as needed.
Note:
Currently, up to ten instances can be added.
5. After the instances are added successfully, you can select any instance to log in.

©2013-2022 Tencent Cloud. All rights reserved.

Page 10 of 275

Tencent Cloud Lighthouse

Uploading/Downloading files
You can upload local files tothe instance or download files from the instance to your local file system as instructed below:
1. Log in to the instance as instructed in Logging in to Linux Instance via OrcaTerm.
2. Select

on the toolbar of the OrcaTerm UI.
3. In the pop-up menu, select Upload or Download.
The detailed steps are as follows:
Upload a file:
3.1.1 In the Select the file and directory for upload pop-up window, select Local upload or Upload via URL as
needed.
3.1.2 If you select Local upload, click Click to upload and then select a local file. If you select Upload via URL,
enter the file URL in URL.
3.1.3 Select the target upload directory and click OK.
Note:Currently, files can be uploaded only to the `home > lighthouse` directory.
3.1.4 Clickin the bottom-right corner of the page and view the operation result in the pop-up window. If the file is uploaded
successfully, the result will be displayed.
Download a file:
3.2.1 In the Download file pop-up window, open the directories and select the target file.
3.2.2 Click OK and select the local directory in the pop-up window.
3.2.3 Clickin the bottom-right corner of the page and view the operation result in the pop-up window. If the file is downloaded
successfully, the result will be displayed.
Using self-service instance detection
If you encounter any
problem when logging in to or using the instance, you can perform self-service instance detection as instructed below:
1. Log in to the instance as instructed in Logging in to Linux Instance via OrcaTerm.
2. Select©2013-2022 Tencent Cloud. All rights reserved.

Page 11 of 275

Tencent Cloud Lighthouseon the toolbar of the OrcaTerm UI.
3. In the Self-service instance detection pop-up window, click OK.
Enabling the multi-tag window

You can open multiple instanceconnection pages in the form of tags on the OrcaTerm UI as instructed below:
1. Log in to the instance as instructed in Logging in to Linux Instance via OrcaTerm.
2. Select

at the top of the OrcaTerm UI.
3. You can see that the (1) instance ID tag has been created.
Note:
Up to five tags can be opened at the same time.
A tag will be named in the format of (Incrementing number) instance ID .

Enabling screen splitting[](id:splitScreen)
You can split the screen on the OrcaTerm UI to view and execute multiple operation tasks at the same time as
instructed below:
1. Log in to the instance as instructed in Logging in to Linux Instance via OrcaTerm.
2. Select

at the top of the OrcaTerm UI.
3. You can see that the screen has been split into three sections named in the format of (Incrementing number)instance ID :Note:
The screen can be split into up to four sections.
A section will be named in the format of (Incrementing number) instance ID .

©2013-2022 Tencent Cloud. All rights reserved.

Page 12 of 275

Tencent Cloud Lighthouse

Changing the skin

You can change the text size
, font, and color on the WedShell UI as instructed below:
1. Log in to the instance as instructed in Logging in to Linux Instance via OrcaTerm.
2. Select

on the toolbar of the OrcaTerm UI.
3. In the pop-up window, change the text size, font, or color of the OrcaTerm as you like.

©2013-2022 Tencent Cloud. All rights reserved.

Page 13 of 275

Tencent Cloud Lighthouse

Logging in to Linux Instance via Remote Login
Software：Last updated 2022-06-10 10:15:46

Overview
This document takes PuTTY as an example to describe how to log in to a Linux instance from a Windows local
computer by using the remote login software.

Supported Operating Systems
Windows
Note:
If your local computer uses Linux or macOS, use SSH to log in to the Linux instance.

Authentication Method
Password or Key

Prerequisites
You have obtained the username and password (or SSH key) to log in to the instance.
Note:
If it is your first time to log in to a Linux instance through a local remote login application, you need to reset the
password of your username (e.g., root and ubuntu ) or bind your key. For detailed directions, see Resetting
Password and Managing Key.
Make sure the network connection between the local computer and the instance is working, and the port 22 is open in
the firewall policies of the instance (Port 22 is open by default upon the creation of the instance).

Limits©2013-2022 Tencent Cloud. All rights reserved.

Page 14 of 275

Tencent Cloud Lighthouse

For instances created with Ubuntu images, password login is disabled by default for the root account. To enable
it, see Uploading Local Files.

Directions
Password login
SSH key login
1. Download the Windows remote login software: PuTTY.
Download PuTTY
2. Double-click putty.exe to open the PuTTY Client.
3. In the PuTTY Configuration window, enter the following content, as shown below:

Configure parameters as follows:
Host Name (or IP address): The public IP of the Lighthouse instance. You can check this public IP in theLighthouse console.
Port: The port open for remote login on the Lighthouse side. For a Linux instance, it defaults to 22.
Connection type: Select SSH.

©2013-2022 Tencent Cloud. All rights reserved.

Page 15 of 275

Tencent Cloud Lighthouse

Saved Sessions: Enter the session name, such as test .
After configuring Host Name, configure and save Saved Sessions. You can double-click the session name saved
under Saved Sessions to log in to the instance.
4. Click Open to enter the PuTTY page. The login as: command prompt appears.
5. Enter your username after login as: (e.g., root ) and press Enter.
Note:
For all Linux images, except Ubuntu images, you can log in with the root account. For Ubuntu system, the default
username is ubuntu . To log in with the root account, see How do I log in to an instance with root on Ubuntu?﻿
6. Enter your password after Password and press Enter.
The entered password is invisible by default.

Once logged in, you can see the information about the current Lighthouse instance on the left side of the commandprompt.
1. Download the Windows remote login software, PuTTY.
Download both putty.exe and puttygen.exe. To download PuTTY, click here.
2. Double-click puttygen.exe to open the PuTTY Key Client.
3. Click Load, select and open the path where the downloaded private key is saved, as shown below:
For example, select and open the private key file david .

©2013-2022 Tencent Cloud. All rights reserved.

Page 16 of 275

Tencent Cloud Lighthouse

4. ﻿
In the PuTTY Key Generator window,
you can enter the key name and create a password for the key (optional). When finished, click Save private key, as
shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 17 of 275

Tencent Cloud Lighthouse

5. In the pop-up window, select the path to store the key. In the File name field, enter “[Key Name].ppk” and click
Save. For example, save the private key file david as david.ppk .

©2013-2022 Tencent Cloud. All rights reserved.

Page 18 of 275

Tencent Cloud Lighthouse

6. Double-click putty.exe to open the PuTTY Client.
In the left sidebar, select Connection > SSH > Auth to enter the Auth configuration page.
7. Click Browse to select and open the path where the key is saved.

©2013-2022 Tencent Cloud. All rights reserved.

Page 19 of 275

Tencent Cloud Lighthouse

8. Switch to the Session configuration page. Configure the server IP, port, and connection type.

©2013-2022 Tencent Cloud. All rights reserved.

Page 20 of 275

Tencent Cloud Lighthouse

Host Name (IP address): The public IP of the Lighthouse instance. You can check this public IP in the Lighthouseconsole.
Port: The port open for remote login on the Lighthouse side. For a Linux instance, it defaults to 22.
Connection type: Select SSH.
Saved Sessions: Enter the session name, such as test .
After configuring Host Name, configure and save Saved Sessions. You can double-click the session name saved
under Saved Sessions to log in to the instance.
9. Click Open to enter the PuTTY running interface. The login as: command prompt appears.
10. Enter your username after login as: and press Enter.
Note:
For all Linux images, except Ubuntu images, you can log in with the root account. For Ubuntu system, the default
username is ubuntu . To log in with the root account, see How do I log in to an instance with root on Ubuntu?.
If a password is set for the encrypted private key in Step 4, enter the password here and press Enter. The password
is invisible by default.

©2013-2022 Tencent Cloud. All rights reserved.

Page 21 of 275

Tencent Cloud Lighthouse

Once logged in, you can see the information about the current Lighthouse instance on the left side of the commandprompt.

©2013-2022 Tencent Cloud. All rights reserved.

Page 22 of 275

Tencent Cloud Lighthouse

Logging in to Linux Instance via SSH Key：

Last updated 2022-05-12 12:24:11

Overview
This document describes how to use an SSH key to log in to a Linux Lighthouse instance from a Linux, macOS, or
Windows computer.

Supported Operating Systems
Linux, macOS, and Windows (Windows 10 and Windows Server 2019).

Authentication Method
Password or Key

Prerequisites
You have obtained the username (custom username or default username root) and password (or key) to log in to theinstance.
Note:
If it is your first time to log in to a Linux instance through the local SSH client, you need to reset the password of thedefault username (root) or bind your key. For detailed directions, see Resetting Password and Managing Keys.
Make sure the network connection between the local computer and the instance is working, and the port 22 is open in
the firewall policies of the instance (Port 22 is open by default upon the creation of the instance).

Directions
Password login
SSH key login
1. Run the following command to connect to your Linux instance.
Note:
Linux distribution without GUI: Run the following command on the system interface directly.

©2013-2022 Tencent Cloud. All rights reserved.

Page 23 of 275

Tencent Cloud Lighthouse

Linux distribution with GUI or macOS: Open the command line interface that comes with the system (e.g., Terminal on
macOS) before running the following command.
Windows 10 or Windows Server 2019: Open the command prompt (CMD) before running the following command.

ssh <username>@<IP address or domain name>username is the obtained username in Prerequisites, such as root and ubuntu .
IP address or domain name is the public IP address or custom domain of your Linux instance. You can viewthe instance's public IP address in the Lighthouse console.
2. Enter the password you have obtained, and press Enter to log in.

©2013-2022 Tencent Cloud. All rights reserved.

Page 24 of 275

Tencent Cloud Lighthouse

1. Execute the following command to set the private key file readable only to you.
macOS: Open the terminal that comes with the system before executing the following command.
Linux: Directly execute the following command.

chmod 400 <absolute path of the downloaded private key associated with the instance
Windows 10 or Windows Server 2019: Open the command prompt (CMD) first and run the following commands insequence.

©2013-2022 Tencent Cloud. All rights reserved.

Page 25 of 275

Tencent Cloud Lighthouse

icacls <path of the downloaded private key file associated with the instance> /gran©2013-2022 Tencent Cloud. All rights reserved.

Page 26 of 275

Tencent Cloud Lighthouse

icacls <path of the downloaded private key file associated with the instance> /inhe
2. Execute the following command for remote login.

©2013-2022 Tencent Cloud. All rights reserved.

Page 27 of 275

Tencent Cloud Lighthousessh -i <path of the downloaded private key file associated with the instance> <userusername is the obtained username in Prerequisites, such as root and ubuntu .
IP address or domain name is the public IP address or custom domain of your Linux instance. You can viewthe instance's public IP address in the Lighthouse console.
For example, run the ssh -i /Users/macuser/Downloads/test_private_key root@35.222.45.145
command on macOS to remotely log in to the Linux instance.

©2013-2022 Tencent Cloud. All rights reserved.

Page 28 of 275

Tencent Cloud Lighthouse

Logging in to Linux Instance via VNC：

Last updated 2022-05-12 12:24:11

Overview
VNC login allows for remote login of Lighthouse instances by using a web browser. If the remote login client is notavailable and all the other login methods failed, you can log in to an instance via VNC to check the instance status andperform basic management operations.

Usage Limits
VNC does not support copy and paste, and file upload or download.
Use a mainstream browser, such as Chrome, Firefox, and IE 10 or later.
Only one user can log in to an instance by using VNC at a time.

Prerequisites
You must have the admin account and password for logging in to a Linux instance remotely.
Note:
Make sure you’ve set the login password. For more information, see Resetting Password.

Directions
1. Log in to the Lighthouse console.
2. Find the target instance and enter its details page.
3. Select Remote login and click Log in under VNC Login.

©2013-2022 Tencent Cloud. All rights reserved.

Page 29 of 275

Tencent Cloud Lighthouse

4. In the pop-up window, enter the username after login and press Enter.
5. Enter the password after Password and press Enter.
The entered password is invisible by default.

Once logged in, you can see the information of the instance on the left of the command prompt.
Note:
Click Send remote command in the top-left corner and select the command you want.

©2013-2022 Tencent Cloud. All rights reserved.

Page 30 of 275

Tencent Cloud Lighthouse

Logging in Windows Instance
Logging in to Windows Instance via VNC：

Last updated 2022-05-12 12:24:11

Overview
VNC login provided by Tencent Cloud allows you to remotely log in to a Lighthouse instance via a web browser. If
Remote Desktop Connection is not installed or cannot be used, you can log in to an instance via VNC to check the
instance status and perform basic management operations.

Use Limits
VNC currently does not support copy and paste, Chinese input methods, and file upload or download.
When you use VNC to log in to an instance, you must use a mainstream browser, such as Chrome, Firefox, and IE 10
or later.
VNC login is a dedicated terminal, meaning only one user can use VNC login at a time.

Prerequisites
You must have the admin account (Administrator) and password for logging in to a Windows instance remotely.
If you set a login password when creating an instance, use it for login. If you forgot it, you can reset it.
If you choose to generate a random password when creating an instance, you can get it from Message Center.

Directions
1. Log in to the Lighthouse console.
2. Find the target instance in the server list and select a login method as desired.
Click Log in in the instance card of the server list.

©2013-2022 Tencent Cloud. All rights reserved.

Page 31 of 275

Tencent Cloud Lighthouse

On the server details page, select the Overview tab, and click Log In under Remote Login > VNC Login.

After successful login, you can set up low-load lightweight applications with a moderate number of access requests,
such as small and middle-sized websites, web applications, blogs, forums, mini programs, mini games, ecommerce,
cloud storage, image hosting, and cloud-based environments for developing, testing, and learning.

©2013-2022 Tencent Cloud. All rights reserved.

Page 32 of 275

Tencent Cloud Lighthouse

Logging in to Windows Instance via Remote
Desktop Connection：

Last updated 2022-05-12 12:24:11

Overview
This document describes how to log in to a Windows instance through remote desktop software on local Windows,
Linux, and macOS computers.

Supported Operating Systems
Windows, Linux, and macOS.

Prerequisites
You must have the admin account (Administrator) and password for logging in to a Windows instance remotely.
If you set a login password when creating an instance, use it for login. If you forgot it, you can reset it.
If you choose to generate a random password when creating an instance, you can get it from Message Center.
Make sure the network connection between the local computer and the instance is working, and the port 3389 is open
in the firewall policies of the instance (Port 3389 is open by default upon the creation of instance).

Directions
Select one of the following remote desktop applications to log in to your Windows instance based on your local
operating system.
Windows
Linux
macOS
Note:
The following takes Windows 7 as an example.
1. On the local Window server, click©2013-2022 Tencent Cloud. All rights reserved.

Page 33 of 275

Tencent Cloud Lighthouse, enter mstsc in Search programs and files, and press Enter to open the Remote Desktop Connection window.

2. Enter the Windows instance's public IP after Computer and click Connect.
You can get the Window instance's public IP in the Lighthouse console.
3. Enter the instance's admin account/password in the Windows Security pop-up window.
Note:
If the Do you trust this remote connection? window pops up, you can select Don't ask me again forconnections to this computer and click Connect.
4. Click OK.
Note:
We recommend you use rdesktop as the remote desktop client. For more information, see the official introduction tordesktop.
1. Run the following command to check whether rdesktop has been installed.

©2013-2022 Tencent Cloud. All rights reserved.

Page 34 of 275

Tencent Cloud Lighthouse

rdesktop
If yes, perform step 4.
If no, you will be prompted with "command not found". In this case, perform step 2.
2. ﻿Open a terminal window andrun the following command to download rdesktop. This step uses rdesktop v1.8.3 as an example.

©2013-2022 Tencent Cloud. All rights reserved.

Page 35 of 275

Tencent Cloud Lighthouse

wget https://github.com/rdesktop/rdesktop/releases/download/v1.8.3/rdesktop-1.8.3.t
If you want to install the latest version, visit the rdesktop page on GitHub to find it. Then replace the path in thecommand with that of the latest version.
3. In the directory where rdesktop will be installed, run the following commands to decompress and install rdesktop.

©2013-2022 Tencent Cloud. All rights reserved.

Page 36 of 275

Tencent Cloud Lighthouse

tar xvzf rdesktop-<x.x.x>.tar.gz ## Replace x.x.x with the version number of the do
cd rdesktop-1.8.3./configure
makemake install
4. ﻿Run the following command to connect to the remote Windows instance.
Note:©2013-2022 Tencent Cloud. All rights reserved.

Page 37 of 275

Tencent Cloud Lighthouse

Replace the parameters in the example with your own parameters.

rdesktop -u Administrator -p <your-password> <hostname or IP address>
Administrator refers to the admin account mentioned in the prerequisites section.
<your-password> refers to the login password that you set.
If you forgot your password, you can reset it.
<hostname or IP address> refers to the public IP address or custom domain name of your Windows
instance.
Note:©2013-2022 Tencent Cloud. All rights reserved.

Page 38 of 275

Tencent Cloud Lighthouse

The following operations use Microsoft Remote Desktop for Mac as an example. Microsoft stopped providing a link to
download the Remote Desktop client in 2017. Currently, its subsidiary HockeyApp is responsible for releasing the beta
client. Go to Microsoft Remote Desktop Beta to download a Beta version.
The following operations use a Lighthouse instance on Windows Server 2012 R2 as an example:
1. Download and install Microsoft Remote Desktop for Mac on your local computer.
2. Start MRD and click Add Desktop.

3. In the Add PC pop-up window, follow the steps illustrated in the following image to establish a connection to your
Windows instance.

©2013-2022 Tencent Cloud. All rights reserved.

Page 39 of 275

Tencent Cloud Lighthouse

3.1 In the PC name field, enter the instance's public IP.
3.2 Click Add.
3.3 Retain the default settings for the other options and establish the connection.
Your entry has now been saved©2013-2022 Tencent Cloud. All rights reserved.

Page 40 of 275

Tencent Cloud Lighthouse

4. Double-click the new entry. In the pop-up window, enter your admin account and password obtained in"Prerequisites" as prompted and click Continue.
If you forgot your password, you can reset it.
5. In the pop-up window, click Continue to establish the connection.

If the connection is successful, the following Windows instance page will appear:©2013-2022 Tencent Cloud. All rights reserved.

Page 41 of 275

Tencent Cloud Lighthouse©2013-2022 Tencent Cloud. All rights reserved.

Page 42 of 275

Tencent Cloud Lighthouse

Managing Instances
Resetting the instances passwords
Password Reset Operation Instruction：

Last updated 2024-08-14 14:40:44

Overview
Tencent Cloud Lighthouse offers the instance login password reset feature. This feature is mainly applicable to thefollowing scenario:
A remote login to the instance is initiated from a local computer for the first time.
You need to reset the user (root) password before the first remote login or SSH key login of a Linux instance.
Before the initial login to the Windows instance, if you have set the login method to automatically generating apassword during the instance creation, you are advised to perform this operation to reset the password of theadministrator account (such as Administrator), to replace it with a custom login password.
Reset the password if you have forgotten your instance login password.

Notes
The Tencent Cloud Lighthouse Console offers two approaches to reset passwords, including Online Reset andOffline Reset.
If you choose online reset, the server will shut down during the password reset of a running instance. To avoid any
data losses, plan for the operation time in advance. It is recommended that you perform the operation during business
off-peak periods, to minimize impact.
If you choose to reset the password online, please ensure that the status and Tencent Cloud Automation Tools
status of your selected instance are both running.
Instances created using the Ubuntu image, by default, disallow the root user from logging in to the instance throughpassword authentication. To enable this method, see How do I log in to an instance as the root user on Ubuntu?
For enhancing the security of your instance, it is recommended that you log in to the Linux instance using the SSH key
pair method. For further information, see Managing Keys.

Directions©2013-2022 Tencent Cloud. All rights reserved.

Page 43 of 275

Tencent Cloud Lighthouse

1. After you log in to the Tencent Cloud Lighthouse Console, find the corresponding instance in the server list. You can
open the window to reset the instance password as follows:
Instance Card
Instance List
Instance Details Page
Resetting the Single instance password: In the instance card, choose> Reset password.

Resetting the Single instance password: Choose More > Reset Password on the right side of the instance for which
the password needs to be reset.
Resetting Multiple instance passwords: In the instance list, select the instances for which you want to reset the
password, and click Reset Password above.

Enter the details page of the instance, click Reset Password in the upper right corner of the page.

©2013-2022 Tencent Cloud. All rights reserved.

Page 44 of 275

Tencent Cloud Lighthouse

2. In the pop-up window, based on the instance status and Tencent Cloud Automation Tools status, you canchoose to reset the password online or offline. More details as follows:Note:
The online password reset process uses Tencent Cloud Automation Tools to execute the password reset commandwithin the instance. The password reset does not require shutdown, without disrupting the business.
Online Password Reset
Offline Password Reset
Note:
Prerequisites: Ensure the Instance Status and the Tencent Cloud Automation Tools Status of your selected
instance are both Running. Otherwise, the password cannot be reset online.
1. Confirm the Username for which the password need to be reset.
Note:
The default username for the Ubuntu system is ubuntu.
2. Enter a New Password and Confirm Password that meet the complexity requirements.
Note:
When both Linux and Windows machines are selected simultaneously, password complexity requirements must becompliant with the requirements of the Windows system.
3. Click OK to complete the reset.

©2013-2022 Tencent Cloud. All rights reserved.

Page 45 of 275

Tencent Cloud Lighthouse

4. After the password reset is complete, you may proceed to the details page of the target instance to check the
password reset result, choose Run**** Command and click the View execution details on the right side of thecommand line.

Note:
For Linux instances, if in the sshd_config configuration file, the PasswordAuthentication parameter is
set to No , during an online password reset, this parameter will be changed to Yes . In the mean time, the sshd
process within the instance will be restarted, possibly disrupting connected SSH sessions.

©2013-2022 Tencent Cloud. All rights reserved.

Page 46 of 275

Tencent Cloud Lighthouse

For Windows instances, if the user you have chosen to reset the password for is locked or disabled, this user will also
be automatically enabled during online password reset.
If your online password reset fails or does not take effect, see Troubleshoot the Issue That the Password Fails To Be
Reset Online or Is Invalid to investigate the cause.
Note:
If you choose offline password reset, note that servers will be shut down during the reset process for runninginstances. It is recommended that you perform the operation during business off-peak periods, to minimize impact ofservice shutdown.
1. Confirm the Username for which the password need to be reset.
Note:
The default username for the Ubuntu system is ubuntu.
2. Enter a New Password and Confirm Password that meet the complexity requirements.
Note:
When both Linux and Windows machines are selected simultaneously, password complexity requirements must becompliant with the requirements of the Windows system.
3. Read and check the Offline Reset Notice, and click OK to complete the reset.

©2013-2022 Tencent Cloud. All rights reserved.

Page 47 of 275

Tencent Cloud Lighthouse

Note:
If your offline password reset fails or does not take effect, see Troubleshoot the Issue That the Password Reset Fails
To Be Reset Offline or Is Invalid for The Windows Instance.

©2013-2022 Tencent Cloud. All rights reserved.

Page 48 of 275

Tencent Cloud Lighthouse

Troubleshoot the Issue That the Password
Fails To Be Reset Online or Is Invalid：

Last updated 2024-02-21 15:06:42
This document describes the symptoms and solutions when the online password reset operation for Tencent Cloud
Lighthouse instances fails or does not take effect.

Symptom
After the online instance password reset, a message is displayed indicating Password Reset Failure.
After the online instance password reset, the new password does not take effect, and the login password is still theoriginal one.

Possible Causes and Solutions
Linux Instances
Note:
Error messages may differ among different systems.
Cause

Error PromptThe
username
does notexist.

©2013-2022 Tencent Cloud. All rights reserved.

Solution
The enter
does not e
confirm w
entered ucorrect.

Page 49 of 275

Tencent Cloud Lighthouse©2013-2022 Tencent Cloud. All rights reserved.

Page 50 of 275

Tencent Cloud Lighthousechpasswd: line 1: user 'ubuntu' does not existchpasswd:
error detected,changes ignoredThe
chpasswd

If the insta
be loggedcommand is
not found.

normally,
instance acommandtype f"chpass
check whchpasswd
If the insta
be logged
normally,
enter theto check f
in the chp
system fil©2013-2022 Tencent Cloud. All rights reserved.

Page 51 of 275

Tencent Cloud Lighthouse©2013-2022 Tencent Cloud. All rights reserved.

Page 52 of 275

Tencent Cloud Lighthouse-bash: chpasswd: command not foundcannot lock/etc/passwd

Log in to t
and execu
following
recovery.
instance c
logged inis recommyou resta
instance.
rm/etc/parm/etc/sh©2013-2022 Tencent Cloud. All rights reserved.

Page 53 of 275

Tencent Cloud Lighthouse©2013-2022 Tencent Cloud. All rights reserved.

Page 54 of 275

Tencent Cloud Lighthousecannot lock /etc/passwd; try again later.

chpasswd:
cannot open

Log in to t
and execu/etc/shadow+i /etc
for repair.
unable toinstance,
enter theand execu+i /etc
following
repair.

©2013-2022 Tencent Cloud. All rights reserved.

Page 55 of 275

Tencent Cloud Lighthouse©2013-2022 Tencent Cloud. All rights reserved.

Page 56 of 275

Tencent Cloud Lighthousechpasswd: cannot open /etc/shadow

Errors are

Log in to t

related toPAMand go toauthentication
failed andcheck if thcorresponother PAM

configuramodified.

related issues/etc/paknow how
you can b
and thenpublic ima
configuracannot log
instance,
enter thefor repair.

©2013-2022 Tencent Cloud. All rights reserved.

Page 57 of 275

Tencent Cloud Lighthouse©2013-2022 Tencent Cloud. All rights reserved.

Page 58 of 275

Tencent Cloud Lighthouse

PAM authentication failed

Windows Instances
Success Prompt Scenario
Scenario one: the account has already expired, but the prompt for successful password reset is still
displayed.
Error prompt:©2013-2022 Tencent Cloud. All rights reserved.

Page 59 of 275

Tencent Cloud Lighthouse

Solution: Use commands to set it to no expiration.

©2013-2022 Tencent Cloud. All rights reserved.

Page 60 of 275

Tencent Cloud Lighthouse

set-localuser Admin -AccountExpires "2099/6/6 20:53:35"

Failure Prompt Scenario
Scenario one: the username does not exist./entered username is incorrect.
Error prompt:©2013-2022 Tencent Cloud. All rights reserved.

Page 61 of 275

Tencent Cloud Lighthouse

The user name could not be found.
More help is available by typing NET HELPMSG 2221.
Solution: Remind the user to check whether the entered username exists and whether it is correct, and if it is incorrect,
please enter the correct username.
Scenario two: the password does not meet complexity requirements.
Error prompt:©2013-2022 Tencent Cloud. All rights reserved.

Page 62 of 275

Tencent Cloud Lighthouse

The password does not meet the password policy requirements. Check the minimum passMore help is available by typing NET HELPMSG 2245.
Solution:
Run PowerShell as an administrator, enter secpol.msc and press Enter to open Local Security Policy. Expand
Account Policies > Password Policy. Then, you can see that Password must meet complexity requirements is
enabled by default.

©2013-2022 Tencent Cloud. All rights reserved.

Page 63 of 275

Tencent Cloud Lighthouse

Right-click Password must meet complexity requirements and open Properties. The minimum password
requirements are displayed:
The password cannot include the username (account name) string.
The password must contain a minimum of six characters.
The password must include at least three out of the four following categories: uppercase characters, lowercase
characters, digits, and non-alphabetic characters.

©2013-2022 Tencent Cloud. All rights reserved.

Page 64 of 275

Tencent Cloud Lighthouse©2013-2022 Tencent Cloud. All rights reserved.

Page 65 of 275

Tencent Cloud Lighthouse

Troubleshoot the Issue That the Password
Reset Fails To Be Reset Offline or Is Invalid
for The Windows Instance：

Last updated 2024-02-21 15:11:02
This document takes Windows Server 2012 R2 operating system as an example to demonstrate the troubleshooting
methods and solutions for failed or ineffective password resets on Windows Tencent Cloud Lighthouse instances.

Symptom
After the instance password reset, you receive the message **Due to system congestion, your instance password
reset failed (7617d94c)**.
After the instance password reset, the new password does not take effect, and the login password is still the originalone.

Possible Causes
The possible causes for failure or ineffectiveness of instance password reset are as follows:
The cloudbase-init component in Tencent Cloud Lighthouse is damaged, modified, disabled, or not started.
If third-party security software such as 360 Total Security or Huorong Security is installed on Tencent Cloud
Lighthouse, the cloudbase-init component for password reset may be blocked, resulting in instance password
reset failures.
If Tencent Cloud Lighthouse has been invaded and encrypted causing the password to be invalid, it is recommended
that you back up the data and reinstall the system.

Directions
Based on the possible reasons for the unsuccessful password reset, two verification methods are provided:

Checking the cloudbase-init Service
1. ﻿Log in to the Windows instance via VNC.
2. On the operating system interface, right-click©2013-2022 Tencent Cloud. All rights reserved.

Page 66 of 275

Tencent Cloud Lighthouseand choose Run from the pop-up menu.
3. In the Run dialog box, enter services.msc and press Enter to open the Services window.
4. In the Services window, check whether the cloudbase-init service exists. See the following figure:If yes, proceed to the next step.
If no, reinstall the cloudbase-init service. For further instructions, see Installing Cloudbase-Init on Windows.
5. Double-click to open the properties of cloudbase-init . See the following figure:©2013-2022 Tencent Cloud. All rights reserved.

Page 67 of 275

Tencent Cloud Lighthouse

6. Select the General tab and check whether startup type of cloudbase-init is set to Automatic.
If yes, proceed to the next step.
If no, set startup type of cloudbase-init to Automatic.
7. Switch to the Log On tab and check whether the login identity of cloudbase-init has been set to Local
System account.
If yes, proceed to the next step.
If no, set the login identity of cloudbase-init to Local System Account.
8. Select the General tab and click Start under Service Status to manually launch the cloudbase-init service
and check whether there are any errors.
If yes, proceed to Checking the Security Software Installed on Tencent Cloud Lighthouse.
If no, proceed to the next step.
9. On the operating system interface, right-click

and choose Run from the pop-up menu.
10. In the Run dialog box, enter regedit and press Enter to open the Registry Editor window.
11. In the Registry Editor window, in the registry navigation pane on the left, expand the directory of
HKEY_LOCAL_MACHINE > SOFTWARE > Cloudbase Solutions > Cloudbase-Init.

©2013-2022 Tencent Cloud. All rights reserved.

Page 68 of 275

Tencent Cloud Lighthouse

12. Find and double-click all LocalScriptsPlugin registry keys under ins-xxx, and then check whether the value ofLocalScriptsPlugin is 2. See the following figure:If yes, proceed to the next step.
If no, set the LocalScriptsPlugin value to 2.
13. In the operating system interface, click, choose This PC, and check whether the CD drive is loaded in the device and drive. See the following figure:©2013-2022 Tencent Cloud. All rights reserved.

Page 69 of 275

Tencent Cloud Lighthouse

If yes, inspect the security software installed in Tencent Cloud Lighthouse.
If no, start the CD-ROM drive in Device Manager.

Checking the Security Software Installed on Tencent Cloud Lighthouse
Use the installed security software to conduct a full scan, and check whether Tencent Cloud Lighthouse has
vulnerabilities and whether the core components of cloudbase-init are blocked.
If Tencent Cloud Lighthouse has vulnerabilities, rectify them.
If core components are blocked, unblock them.

©2013-2022 Tencent Cloud. All rights reserved.

Page 70 of 275

Tencent Cloud Lighthouse

Binding Key：

Last updated 2022-05-12 12:24:11

Overview
This document describes how to bind the specified key to an instance on the instance details page in the Lighthouseconsole.

Prerequisites
You can bind a key to only a Linux instance.
You have created and saved a key. For more information, see Creating SSH key.

Directions
1. Log in to the Lighthouse console and click the card of the target instance.
2. On the instance details page, select the SSH key pair tab and click Bind Key Pair.
3. In the Bind key pop-up window, perform the following operations based on the instance status:
Running instance
Shutdown instance
1. In the Select a key step, select the target key and click Next as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 71 of 275

Tencent Cloud Lighthouse

2. In the Shutdown instance step, select Agree to a forced shutdown and click OK.
Note:During the binding process, the instance will shut down first and then start up, and the business will be interrupted
momentarily. We recommend you do so during off-peak hours.
If the instance fails to shut down normally, it will be forced to shut down. Forced shutdown may cause data losses orfile system corruption. Therefore, perform forced shutdown with caution.
Forced shutdown may take a while. Please be patient.
1. In the Select a key step, select the target key and click Next as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 72 of 275

Tencent Cloud Lighthouse

2. In the Shutdown instance step, click OK.
Note:
To improve the Lighthouse instance security, after a Linux instance is bound to a key, login to the root accountwith a password will be forbidden by default. If you want to keep the password login method, modify the configuration
as instructed in Modifying SSH configuration.

Related Operations
Unbinding key
1. Log in to the Lighthouse console and click the card of the target instance.
2. On the instance details page, select the SSH key pair tab.
3. Select the target key pair and click Unbind above the list as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 73 of 275

Tencent Cloud Lighthouse

4. In the Unbind key pop-up window, perform the following operations based on the instance status:
Running instance
Shutdown instance
1. In the Select a key step, confirm the target key and click Next as shown below:

2. In the Shutdown instance step, click OK.
1. In the Select a key step, confirm the target key and click Next as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 74 of 275

Tencent Cloud Lighthouse

2. In the Shutdown instance step, click OK.

References
Managing Key
Logging in to Linux Instance via Remote Login Software
Logging in to Linux Instance via SSH Key©2013-2022 Tencent Cloud. All rights reserved.

Page 75 of 275

Tencent Cloud Lighthouse

Viewing Instance Information：

Last updated 2022-06-16 19:07:35

Overview
After creating a Lighthouse instance, you can view its details in the console.

Directions
Viewing instance list information
Log in to the Lighthouse console, and you can view instances in different regions and status on the instance list page
as shown below:

Viewing instance details
In the instance list, find the target instance and enter its details page to view its information.
View "overview" details
On this tab, you can view the basic, monitoring, network, image, application, image, and TencentCloud Automation
Tools information of the instance as detailed below:
Information

Description©2013-2022 Tencent Cloud. All rights reserved.

Page 76 of 275

Tencent Cloud Lighthouse

Category
You can view the following basic instance information:
Name/ID: The instance name can be modified.
Region and availability zone: Instance region and AZ.
Instance
information

Package type: Type of the package used by the instance.
Instance specification: CPU and memory specification.
System disk: Storage space of the system disk.
Traffic package: Bandwidth and traffic package.
Key pair: You can bind/unbind a Linux instance to/from a key.
Tag: You can bind/unbind the instance to/from tags.
You can view the following basic monitoring data of the instance:

Instance

CPU utilization (%).

monitoring

Memory usage (MB).

information

Public network (Mbps).
System disk IO (KB/s).

Remote login

You can select an instance login method as needed.

Resources

You can directly view the instance traffic package and system disk usage.
You can view the following instance network information:
IP: Public IP address (for instance access over the public network) and private IP address

Network
information(for inter-instance communication).
Firewall: You can configure instance firewall rules.
DDoS attack protection: You can view and manage DDoS attack protection in the Anti-DDoS
console.

Image details

You can view the following basic instance image information:
Image name: Specific image name. You can reset the application or create a custom image.
Image type: Specific image type.
Operating system: Image operating system version.

Application
information

You can view the instance application information:
For an instance created by using an application image, you can view the pre-installedsoftware information and manage applications on the application management page.
You can view the following instance billing information and terminate the instance:

Billing
information

Creation time: Instance creation time.
Expiration time: Instance expiration time. To renew the instance, click Renew.
Auto-renewal status: Whether auto-renewal is enabled for the instance. To set auto-renewal,
click Enable.
Upgrade package: You can click Upgrade package to upgrade the instance package.
Terminate instance: You can select Terminate/Return to terminate the instance if you nolonger need it.

©2013-2022 Tencent Cloud. All rights reserved.

Page 77 of 275

Tencent Cloud Lighthouse

TencentCloudYou can view the TencentCloud Automation Tools status information and perform relevant

Automation
Tools

operations on the Run Commands tab.

On this tab, you can perform operations including instance shutdown, restart, password resetting, remote login,application resetting, and image creation.
View "pre-installed application" details
On this tab, you can view the basic application information, such as the application name, version number, andinstance status. You can also reset the application and shut down, restart, or log in to the instance.
In addition, the Pre-installed Application tab also displays the details of the pre-installed software in the application,such as configuration file directory, admin account and password, and application software installation path.
Note:
As custom images don't have a unified template and are created based on your own data, the instances created byusing them don't have the Pre-installed application tab.
View "cloud disk" details
On this tab, you can view and manage instance data disks.
View "firewall" details
On this tab, you can view and manage instance firewall rules.
View "key pair" details
On this tab, you can view and manage key pairs bound to the instance.
View "snapshot" details
On this tab, you can view, manage, and create instance snapshots.
View "monitoring" details
On this tab, you can view instance CPU, memory, public network bandwidth, and disk usage monitoring data.
View "run commands" details
On this tab, you can view the command execution details of TencentCloud Automation Tools and create and run
commands.

©2013-2022 Tencent Cloud. All rights reserved.

Page 78 of 275

Tencent Cloud Lighthouse

Shutting down Instance：

Last updated 2022-05-12 12:24:11

Overview
The instance can be shut down when you need to stop the service, or modify configurations that can be done only inthe shutdown state. Shutting down an instance is like shutting down a local computer.

Notes
You can shut down an instance by using system commands (such as the shutdown command on Windows andLinux) or in the Lighthouse console. We recommend you view the shutdown process in the console to check whether
any problem occurs.
Once shut down, a Lighthouse instance will no longer provide service. Therefore, before the shutdown, make sure thatthe instance has stopped receiving service requests.
During the shutdown, the status of the instance will change from "Shutting down" to "Shutdown". If the shutdown
process takes too long, there may be an exception.
After an instance is shut down, all disk data will be retained, but data in the memory will be lost.
Shutting down an instance does not change its physical attributes, so the instance public and private IPs will remainunchanged.

Directions
Note:
During instance shutdown, soft shutdown will be performed first by default. If the soft shutdown fails, forced (hard)
shutdown will be performed automatically.
1. Log in to the Lighthouse console.
2. Find the target instance in the instance list and select a shutdown method as desired.
In the instance card in the instance list, click> Shut down as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 79 of 275

Tencent Cloud Lighthouse

Enter the instance details page and click Shut down in the bottom-right corner on the page as shown below:

3. In the pop-up window, click OK.
For instances that cannot be shut down, the specific cause will be displayed on the page.

©2013-2022 Tencent Cloud. All rights reserved.

Page 80 of 275

Tencent Cloud Lighthouse

Restarting Instance：

Last updated 2022-05-12 12:24:11

Overview
Instance restart is a common maintenance method for Lighthouse and is similar to restarting the OS on a local
computer.

Notes
Preparing to restart instances: The Lighthouse instance cannot provide services during restart. Make sure before
restarting the instance that it has stopped receiving service requests.
How to restart instances: We recommended you restart an instance by using the restart operations provided byTencent Cloud instead of running the restart command in the instance (such as the relaunch command underWindows and the Reboot command under Linux).
Restart time: Generally, it takes just a few minutes from when the instance starts to execute the restart operation towhen the operating system is completely started.
Physical features of instances: Restarting an instance does not change its physical features. Its public and private
IP addresses as well as stored data will not be changed.

Directions
Note:
During instance restart, soft restart will be performed first by default. If soft restart fails, forced (hard) restart will be
performed automatically.
1. Log in to the Lighthouse console.
2. Find the target instance in the instance list and select a restart method as desired.
In the instance card in the instance list, click> Restart as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 81 of 275

Tencent Cloud Lighthouse

Enter the instance details page and click Restart in the top-right corner on the page as shown below:

3. In the pop-up window, click OK.

©2013-2022 Tencent Cloud. All rights reserved.

Page 82 of 275

Tencent Cloud Lighthouse

Terminating Instance：

Last updated 2022-05-12 12:24:11

Overview
If you no longer need a Lighthouse instance, you can terminate it. Once its status becomes Returned or To be
repossessed, it no longer incurs fees. For instances to be repossessed, you can renew (restore) or completely
terminate them based on different scenarios and needs.
This document describes how to terminate Lighthouse instances in different status in the console.
Note:
Currently, Lighthouse supports the sensitive operation protection feature to effectively protect the security of account
resources. It can be enabled in security settings. Instance termination is a sensitive operation.

Directions
Terminating running/shutdown Lighthouse instances
1. Log in to the Lighthouse console.
2. Find the target Lighthouse instance in the instance list and enter its details page.
3. In the Billing information section on the Overview tab on the instance details page, select Terminate/Return as
shown below:

4. In the pop-up window, if the instance is mounted with data disks, you can select Return data disks mounted tothe instance to terminate the data disks at the same time as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 83 of 275

Tencent Cloud Lighthouse

5. Select Read and agree to refund rules and click OK.
6. Check and confirm the Lighthouse refund information and click OK. After the information is submitted, the system
will refund and terminate the instance. Once terminated, the instance will enter the To be repossessed status.
Note:
If your instance is not renewed within seven (included) days after entering the To be repossessed status, the system
will release it in around 24 hours. After release, all data on the instance will be cleared and cannot be recovered.
Instances in To be repossessed status are unavailable, which indicates that they can neither be managed noraccessed.
If the Lighthouse instance to be terminated contains a renewal order that hasn't taken effect, the order will also be
refunded after instance termination.
After a data disk is terminated, it will enter the To be repossessed status and be retained for seven days. If you
confirm that you don't need to retain the data, you can completely terminate the cloud disk.

©2013-2022 Tencent Cloud. All rights reserved.

Page 84 of 275

Tencent Cloud Lighthouse

Terminating to-be-repossessed Lighthouse instance
Note:
This operation will terminate an instance completely from the account's instance list, and the instance cannot be
restored through renewal or other methods. Therefore, proceed with caution.
1. Log in to the Lighthouse console.
2. Find the target Lighthouse instance in To be repossessed status in the instance list and click More >Terminate/Return as shown below:

3. In the pop-up window, select Read and agree and click OK as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 85 of 275

Tencent Cloud Lighthouse©2013-2022 Tencent Cloud. All rights reserved.

Page 86 of 275

Tencent Cloud Lighthouse

Renewing Instance：

Last updated 2024-08-15 15:43:53

Overview
This document describes how to renew a Lighthouse instance manually or set auto-renewal for it.

Directions
Manual Renewal
The following steps are recommended for you to renew an instance or batch renew multiple instances manually basedon the instance status:
Renewing Running Instances
Renewing To-Be-Repossessed Instances
Renewing one instance
1. Log in to the Lighthouse console.
2. On the Instances page, enter the details page of the target instance.
3. Select Renew in the Billing information section. In the Renew instance pop-up window, select the renewal
period in calendar month as shown below:
Note:
If cloud data disks are mounted to the instance, they will be renewed at the same time. You can also select Align thedata disk expiration time with that of the instance to xxxx to align the instance's and cloud disk's expirationtime.

©2013-2022 Tencent Cloud. All rights reserved.

Page 87 of 275

Tencent Cloud Lighthouse

4. Click OK to enter the renewal order payment page, click Submit order, and make the payment as prompted.
Batch renewing instances
1. Log in to the Tencent Cloud console.
2. Click on Billing Center in the upper right corner to enter the Billing Center, then click on the Renewal
Management tab in the left navigation bar.

©2013-2022 Tencent Cloud. All rights reserved.

Page 88 of 275

Tencent Cloud Lighthouse

3. On the renewal management page, select the target instances and click Batch renewal above the list as shown
below:©2013-2022 Tencent Cloud. All rights reserved.

Page 89 of 275

Tencent Cloud Lighthouse

4. In the Batch Renewal pop-up window, select the renewal period, click OK, and make the payment for the renewal
order.
Renewing a Single Instance
1. On the Instances page, find the target instance.
2. In the instance card found within the server list, select Renew at the bottom right corner, as illustrated below:

3. In the Renew instance pop-up window, select the renewal period and click OK.
Renewing Instances in Batch
1. Log in to the Tencent Cloud console.
2. Click Fees in the top-right corner. On the Fees Center page, click Renewal Management in the left navigationbar.
3. On the Renewal Management page, select the target instances and click Batch Renewal above the list as shown
below:

4. In the Batch Renewal pop-up window, select the renewal period, click OK, and make the payment for the renewal
order.

Automatic Renewal©2013-2022 Tencent Cloud. All rights reserved.

Page 90 of 275

Tencent Cloud Lighthouse

Note:
You can select Auto-renew the device every month if my account has sufficient balance during instancepurchase to enable the auto-renewal feature. After successfully creating an instance, you can modify its auto-renewal
settings in the following steps:
Choose the appropriate operation method based on your actual needs:
Setting Auto-renewal for a Single InstanceSetting Auto-renewal for Multiple Instances
1. Log in to the Lighthouse console.
2. In the instance list, select the target instance to enter its details page.
3. In the Billing information section, you can enable or disable the instance auto-renewal feature as shown below:

4. In the Enable/Disable auto-renewal pop-up window, click OK.
1. Log in to the Tencent Cloud console.
2. Click Fees in the top-right corner and click Renew in the drop-down list box.
3. On the renewal management page, select the target instances and click Set to Auto-Renewal above the list as
shown below:

4. In the Set to Auto-Renewal pop-up window, click OK.
Note:
After auto-renewal is enabled, the instance will be automatically renewed on the expiration date. Make sure that youraccount balance is sufficient on the resource expiration date.

©2013-2022 Tencent Cloud. All rights reserved.

Page 91 of 275

Tencent Cloud Lighthouse

If your instance expires today, manually renew it.
If you manually renew an instance before the expiration date, Tencent Cloud will automatically renew it on the latest
expiration date.
You can set auto-renewal, renew to a certain time, and perform other operations on the renewal management page inthe console.

©2013-2022 Tencent Cloud. All rights reserved.

Page 92 of 275

Tencent Cloud Lighthouse

Reinstalling System：

Last updated 2022-05-12 12:24:12

Overview
OS reinstallation is to reinstall the OS (and pre-installed applications) of a Lighthouse instance to restore it to the initial
status or install a new system. This is a common way to recover the instance in the event of a system failure.
Note:
Currently, Lighthouse supports the sensitive operation protection feature to effectively protect the security of account
resources. It can be enabled in security settings. OS reinstallation is a sensitive operation.

Notes
Cross-OS reinstallation:
Currently, only instances in the Chinese mainland support cross-OS reinstallation, for example, from Linux to Windows
or vice versa. A Linux instance system disk must be at least 40 GB in size as required by the Windows Server image;otherwise, cross-platform reinstallation will fail.
Instances outside the Chinese mainland only support same-OS reinstallation.
Data backup: After OS reinstallation, the system disk will be cleared and reset to the initial status of a new image.
Therefore, you need to back up important data in it before reinstallation.
Instance IP: After OS reinstallation, the instance public IP will remain unchanged.
Forced shutdown: During OS reinstallation, the instance will be automatically shut down (soft shutdown will be
performed first by default, and forced (hard) shutdown will be performed if soft shutdown fails).

Directions
1. Log in to the Lighthouse console.
2. Find the target instance in the instance list and select a reinstallation method as desired.
In the instance card, select> Reinstall system as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 93 of 275

Tencent Cloud Lighthouse

Click the instance card to enter the instance details page. On the Overview tab, click Reset Application in Image
details as shown below:

Click the instance card to enter the instance details page. On the Pre-installed Application tab, click Reset
Application in Application information as shown below:
Note:
If the Lighthouse instance doesn't use an application image, you cannot reinstall the OS in this way.

3. On the Reset Application page, select the target image (you can select a system, application, basic Docker,
custom, or shared image), read the reinstallation notes, select I have read and understand the above notes., andclick OK as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 94 of 275

Tencent Cloud Lighthouse©2013-2022 Tencent Cloud. All rights reserved.

Page 95 of 275

Tencent Cloud Lighthouse

Upgrading Instance Package：

Last updated 2022-05-12 12:24:12

Overview
Tencent Cloud Lighthouse Application Server can quickly and easily adjust instance configurations by upgrading
existing packages, which shows its flexibility. This article introduces the operation method and precautions for
upgrading the package.

Notes
Lighthouse Application Server instance is only supported in upgrading packages, not in downgrading, which means
the selected package's CPU, MEM, SSD system disk, bandwidth/peak bandwidth and monthly traffic should all belarger than the current package.
When upgrading your package, you cannot specify the CPU model of the underlying physical server; Instead, Tencent
Cloud will randomly assign a physical CPU model that meets the selected package specification.
Upgrading package across availability zones are not supported.
We support fixed bandwidth package (which has been taken offline, configured with 1 core, 1GB MEM, 20GB SSD
system disk, 1Mbps bandwidth) to upgrade to traffic package.
Only when the selected package’s CPU, MEM, SSD system disk, bandwidth/peak bandwidth and monthly traffic are
all larger than the current package should cross-type upgrade package be available. That is, there is no package type
restriction when the instance is upgraded to a package. For example, general package could be upgraded to storage
package.
For directions and precautions on instance package upgrade, please refer to Fees for Instance Package Upgrade.

Directions
1. Log in to the Lighthouse console.
2. In the instance list, find and enter the details page of the instance for which to upgrade the package.
3. Select Upgrade Package in “Fee Information”. As shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 96 of 275

Tencent Cloud Lighthouse

4. In the "Upgrade Package" pop-up window, choose the selected package.
5. Read and tick “Instance Upgrade Descriptions” and click on Next step: Shutdown tips. As shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 97 of 275

Tencent Cloud Lighthouse

6. In the "Shutdown tips" step, tick "Agree to force shutdown" and then click on Start upgrade.
Note:
Operating instance in shutdown status is supported. If you need to operate the instance in the power-on status, youneed to confirm a forced shutdown, and it will take effect after restarting.
After upgrading, the current IP address, firewall policy, password/key settings will not be affected.
If the upgrade operation involves the expansion of the system disk of the instance, there is no need to manually
expand the partition and file system operation after the package is successfully upgraded, and the original data will not
be affected.
The current used traffic of the instance will not change, and the monthly traffic pack limit will be adjusted to the traffic
pack limit of the upgraded package.
If the instance is upgraded from a fixed bandwidth to a traffic package, it will obtain a full traffic package limit and startcalculating used traffic immediately after successful operation.
It usually takes 1-5 minutes for instance to finish upgrade. When it is done successfully, you can check the information
about the package in the instance details page.

©2013-2022 Tencent Cloud. All rights reserved.

Page 98 of 275

Tencent Cloud Lighthouse

Managing Instance Tag：

Last updated 2022-05-12 12:24:12

Overview
Tags are key-value pairs provided by Tencent Cloud for easy resource identification. You can use tags to categorize
and manage your Lighthouse resources.
This document describes how to manage instance tags in the Lighthouse console.

Usage Limits
There are certain limits on the tag quantity and naming rules. For more information, see Usage Limits.

Directions
Setting instance tag
1. Log in to the Lighthouse console and select an instance.
2. In Instance information on the overview tab, click

after Tag.
3. In the Edit tag pop-up window, select target instance tags as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 99 of 275

Tencent Cloud Lighthouse

4. Click OK.
5. After a message indicating that the edit was successful is prompted, click OK.

Removing instance tag
1. In Instance information, click

after Tag.
2. In the Edit tag pop-up window, click

after the target tag as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 100 of 275

Tencent Cloud Lighthouse

3. Click OK.
4. After a message indicating that the edit was successful is prompted, click OK.

References
Creating Tags
Querying Resources by Tag©2013-2022 Tencent Cloud. All rights reserved.

Page 101 of 275

Tencent Cloud Lighthouse

Changing Instance Public IP：

Last updated 2022-09-26 11:28:02

Overview
This document describes how to change the instance public IP in the Lighthouse console.

Usage Limits
The public IP can be changed only once for each instance throughout its entire lifecycle.
You can change instance public IPs only three times per day in each region, and this quota is shared with other
Tencent Cloud products using public IPs.
For example, if you have changed the public IP of three CVM instances in the one region under your account, you
cannot change the public IP of any Lighthouse instance on the same day.
If an instance IP is blocked due to DDoS attacks and in the Security Isolated status, you need to wait 2–24 hours
until it is unblocked before changing it.
The public IP cannot be changed when the instance status is Frozen, Blocked, or Pending released.
After the change, the previous public IP is released and cannot be restored.

Directions
1. Log in to the Lighthouse console and select the target instance.
2. On the instance details page, select More > Change public IP.

3. In the Change public IP pop-up window, click OK.

©2013-2022 Tencent Cloud. All rights reserved.

Page 102 of 275

Tencent Cloud Lighthouse

Batch Operations：

Last updated 2022-06-16 19:07:35

Overview
This document describes how to perform batch operations on Lighthouse instances in the same region, such as
starting and shutting down instances and resetting passwords.

Notes
For a batch operation, all instances must be in the same region.
All selected instances must support the operation.
For example, Windows instances don't support SSH keys, so you cannot batch bind SSH keys when Windows andLinux instances are selected at the same time.

Directions
This document describes how to batch shut down instances.
1. Log in to the Lighthouse console and switch to List view.

2. Check the instances to be operated under a certain region.

©2013-2022 Tencent Cloud. All rights reserved.

Page 103 of 275

Tencent Cloud Lighthouse

3. Select Shut down at the top of the page
4. In the Shut down pop-up window, click OK.

©2013-2022 Tencent Cloud. All rights reserved.

Page 104 of 275

Tencent Cloud Lighthouse

Working with Cloud Disks
Creating Cloud Disks：

Last updated 2022-05-13 16:43:39

Overview
You can create a cloud disk and attach it to any Lighthouse instances in the same availability zone to use as a data
disk. This document describes how to create a cloud disk in the Tencent Cloud Lighthouse console.
Note:
The CBS cloud disks used on Lighthouse instances are with the same performance as the ones used on CVM
instances.

Considerations
Cloud disks can be attached only to the instances in the same availability zone (AZ). Cross-AZ attaching is notsupported, and the AZ of cloud disks cannot be changed.
Each region has a quota of 20 cloud disks.

Directions
1. Log in to the Lighthouse console and click Cloud Disk on the left sidebar.
2. On the top of the Cloud Disk page, select a region, and click Create.
3. Configure the following parameters in the pop-up window:
Parameter
Name

Description

Availability
zone

The availability zone where the cloud disk is located.
Cross-AZ attaching is not supported, and the AZ of the cloud disk cannot be changed.

Cloud disk
type

Supports premium and SSD cloud disks. For more information, see Cloud Disk Types.

Capacity

Cloud disk capacity. The adjustment increment is 10 GB. The specifications are as follows:
Premium cloud disks: 10 - 1000 GB
SSD cloud disks: 20 - 1000 GB©2013-2022 Tencent Cloud. All rights reserved.

Page 105 of 275

Tencent Cloud Lighthouse

Disk name

Optional. The name can contain up to 60 characters. When it's left empty, the cloud disk ID isused by default.

Purchasequantity
Purchase
periodAutorenewal

It defaults to 1. Up to 10 cloud disks can be created in a batch.

Valid range: 1 month (default) - 5 years.
When it's enabled, the cloud disk is automatically renewed on a monthly basis upon its expiration
when your account has sufficient balance.

4. Click OK.
You can view the created cloud disks on the Cloud Disk page. New cloud disks are "to be attached".

See Also
Attaching a Cloud Disk

©2013-2022 Tencent Cloud. All rights reserved.

Page 106 of 275

Tencent Cloud Lighthouse

Attaching Cloud Disks：

Last updated 2022-05-13 16:43:39

Overview
This document describes how to attach a cloud disk to any Lighthouse instances in the same availability zone in the
console.
Note:
Up to 5 data disks can be attached to one Lighthouse instance.

Directions
You can attach the cloud disks in the following ways:
Select an instance to associate
Select a cloud disk to attach
1. Log in to the Lighthouse console and click Cloud Disk on the left sidebar.
2. Select a region at the top of the Cloud Disk page, find the target cloud disk, and click More > Attach.

3. Open Attach to the instance > Select an instance.
Select the target instance, and complete the parameters Attaching options.
Unified expiry time with the instance (XXX)
Monthly auto-renewal (recommended)
Attach directly
4. Click Next, and note the following in Subsequent operations:
After attaching the cloud disk, you need to log in to the instance and initialize the disk.
5. Click Attach now.
If the status of the cloud disk changes to Attached, the attachment is successful.

©2013-2022 Tencent Cloud. All rights reserved.

Page 107 of 275

Tencent Cloud Lighthouse

1. Log in to the Lighthouse console and select the target instance and enter the details page.
2. Select the Cloud disk tab, and click Attach cloud disk.

3. In the pop-up window, "select a cloud disk":
Select the cloud disk that needs to be attached, and complete the parameters Attaching options.
Unified expiry time with the instance (XXX)
Monthly auto-renewal (recommended)
Attach directly
4. Click Next,
After attaching the cloud disk, you need to log in to the instance and initialize the disk.

©2013-2022 Tencent Cloud. All rights reserved.

Page 108 of 275

Tencent Cloud Lighthouse

Subsequent Operations
After attaching the cloud disk, you need to log in to the instance and initialize the disk first before using it. For details,
see Initializing a Cloud Disk.

©2013-2022 Tencent Cloud. All rights reserved.

Page 109 of 275

Tencent Cloud Lighthouse

Initializing Cloud Disks：

Last updated 2023-05-10 14:17:34

Overview
This document describes how to initialize a data disk in the Lighthouse console. After creating a cloud disk andattaching it to the Lighthouse instance as a data disk, you need to initialize the disk to use it.

Prerequisites
Attach a cloud disk to your Lighthouse instance. See Attaching a Cloud Disk.

Considerations
Read FAQs about cloud disk usage before working with cloud disks.
Formatting a data disk will erase all data. Make sure that the disk does not contain data, or important data has beenbacked up.
To prevent service exceptions, ensure that the Lighthouse instance.

Directions
Linux instance
Windows instances
Select the initialization method according to your actual use cases:
If the entire disk is presented as one independent partition (there is no logical disks such as vdb1 and vdb2), we
strongly recommend that you not use partition, and directly create the file system on bare devices.
If the entire disk needs to be presented as multiple logical partitions (there are multiple logical disks), you need to firstpartition the disk, and then create the file system on a partition.

Creating file systems on bare devices
Note:This example uses a Lighthouse instance using CentOS 8.0 operating system. Note that the steps may vary according
to the operating system version.
1. Log in to the Lighthouse instance. For details, see Logging in to a Linux instance via WebShell.

©2013-2022 Tencent Cloud. All rights reserved.

Page 110 of 275

Tencent Cloud Lighthouse

2. Run the following command to view the disk name.

sudo fdisk -l
If the returned result is similar to what is shown below, the current Lighthouse instance has two disks, where/dev/vda is the system disk (40 GB) and /dev/vdb is the new data disk (20 GB).

©2013-2022 Tencent Cloud. All rights reserved.

Page 111 of 275

Tencent Cloud Lighthouse

3. Run the following command to create a file system on the /dev/vdb bare device.

©2013-2022 Tencent Cloud. All rights reserved.

Page 112 of 275

Tencent Cloud Lighthousesudo mkfs -t <File system format> /dev/vdb
The partition size supported by different file systems varies. Select an appropriate file system as needed. The following
example takes EXT4 as the file system:©2013-2022 Tencent Cloud. All rights reserved.

Page 113 of 275

Tencent Cloud Lighthousesudo mkfs -t ext4 /dev/vdb
Note:
The formatting takes a while. Please pay attention to the system’s running status and do not exit.
4. Run the following command to create a new mount point. The following example uses /data as the new mountpoint:©2013-2022 Tencent Cloud. All rights reserved.

Page 114 of 275

Tencent Cloud Lighthousesudo mkdir /data
5. Run the following command to mount the device to a new mount point. The following example uses /data as the
new mount point:©2013-2022 Tencent Cloud. All rights reserved.

Page 115 of 275

Tencent Cloud Lighthousesudo mount /dev/vdb /data
6. Run the following command to view the mount result.

©2013-2022 Tencent Cloud. All rights reserved.

Page 116 of 275

Tencent Cloud Lighthousesudo df -TH
If the returned result is similar to what is shown below, /dev/vdb is mounted to /data successfully.

©2013-2022 Tencent Cloud. All rights reserved.

Page 117 of 275

Tencent Cloud Lighthouse

The disk needs to be mounted to the instance every time the instance starts up. To set the disk to be automaticallymounted upon instance start-up, see Auto-Mounting Disk upon Linux Instance Start-up.

Creating a file system on a partition
Note:
This example uses the parted partition tool in the CentOS 8.0 operating system to configure data disk /dev/vdc
as the primary partition. MBR is used as the default partition format, EXT4 format as the file system, and/data/newpart as the mount point. Disk automount at startup is configured. Note that the formatting operation
may vary according to the operating system.
1. Log in to the Lighthouse instance. For details, see Logging In to a Linux instance via WebShell.
2. Run the following command to view the disk name.

©2013-2022 Tencent Cloud. All rights reserved.

Page 118 of 275

Tencent Cloud Lighthousesudo fdisk -l
If the returned result is similar to what is shown below, the current Lighthouse instance has two disks, where/dev/vda is the system disk (40 GB) and /dev/vdb is the new data disk (20 GB).

©2013-2022 Tencent Cloud. All rights reserved.

Page 119 of 275

Tencent Cloud Lighthouse

3. Run the following command to enter the fdisk partition tool and start partitioning the new data disk. The following
example uses /dev/vdb as the newly attached data disk:©2013-2022 Tencent Cloud. All rights reserved.

Page 120 of 275

Tencent Cloud Lighthousesudo fdisk /dev/vdb
The returned information is similar to what is shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 121 of 275

Tencent Cloud Lighthouse

4. Enter n and press Enter to start creating a partition. The following information is returned:

This indicates that the disk has two partition types:
p: Primary partition.
e: Extended partition.
5. Take creating a primary partition as an example. Enter p and press Enter to start creating a primary partition.
The following information is returned:

Partition number indicates the number of the primary partition. Valid range: 1-4.
6. Take partition 1 as an example. Enter the primary partition number 1 and press Enter. The following information isreturned:

First sector indicates the start sector. Valid range: 2048 (default value) - 41943039.
7. Take selecting the default start sector number 2048 as an example. Press Enter. The following information isreturned:

Last sector indicates the end sector. Valid range: 2048 - 41943039 (default value).

©2013-2022 Tencent Cloud. All rights reserved.

Page 122 of 275

Tencent Cloud Lighthouse

8. Take selecting the default end sector number 41943039 as an example. Press Enter. The following information isreturned:

9. The partitioning is complete. A new partition has been created on the 20 GB data disk.
10. Enter p and press Enter to view the details of the new partition /dev/vdb1 .

Note:
If an error occurs during the partitioning operation, enter q to exit the fdisk tool and the prior partition result will not beretained.
11. Enter w and press Enter to write the partition result to the partition table. The returned result is shown below,
indicating that the partition creation is complete.

12. Run the following command to sync the partition table to the operating system.

©2013-2022 Tencent Cloud. All rights reserved.

Page 123 of 275

Tencent Cloud Lighthouse

partprobe
13. Run the following command to set the file system of the new partition to the format required by the system.

©2013-2022 Tencent Cloud. All rights reserved.

Page 124 of 275

Tencent Cloud Lighthousesudo mkfs -t <File system format> /dev/vdb1
The partition size supported by different file systems varies. Select an appropriate file system as needed. The following
example takes EXT4 as the file system:©2013-2022 Tencent Cloud. All rights reserved.

Page 125 of 275

Tencent Cloud Lighthousesudo mkfs -t ext4 /dev/vdb1
Note:
The formatting takes a while. Please pay attention to the system’s running status and do not exit.
14. Run the following command to create a new mount point. The following example uses /data/newpart as the
new mount point:©2013-2022 Tencent Cloud. All rights reserved.

Page 126 of 275

Tencent Cloud Lighthousesudo mkdir /data/newpart
15. Run the following command to mount the new partition to a new mount point. The following example uses
/data/newpart as the new mount point:©2013-2022 Tencent Cloud. All rights reserved.

Page 127 of 275

Tencent Cloud Lighthousesudo mount /dev/vdb1 /data/newpart
16. Run the following command to view the mounting results.

©2013-2022 Tencent Cloud. All rights reserved.

Page 128 of 275

Tencent Cloud Lighthousesudo df -TH
The returned information is similar to what is shown below. This indicates that the partition /dev/vdb1 has been
mounted to /data/newpart .

©2013-2022 Tencent Cloud. All rights reserved.

Page 129 of 275

Tencent Cloud Lighthouse

The disk needs to be mounted to the instance every time the instance starts up. To set the disk partition to be
automatically mounted upon instance start-up, see Auto-Mounting Disk upon Linux Instance Start-up.
Note:This example uses a Lighthouse instance using Windows Server 2016 R2 operating system. Note that the steps mayvary according to the operating system version.
1. Log in to the Lighthouse instance. For more information, see Logging in to a Windows Instance via VNC.
2. On the desktop, right-clickin the lower-left corner and click Disk management in the pop-up menu.
Open the Disk management window to view the data disk information.

©2013-2022 Tencent Cloud. All rights reserved.

Page 130 of 275

Tencent Cloud Lighthouse

Note:
If the new disk is offline (as shown above), continue to Step 3 to make it online. If it’s already online, go to Step 4.
3. ﻿
Right-click in the Disk 1 area
, and click Online.

©2013-2022 Tencent Cloud. All rights reserved.

Page 131 of 275

Tencent Cloud Lighthouse

4. ﻿
Disk 1 changes from Offline to Not Initialized. Right-click in the Disk 1 area and select Initialize Disk.

©2013-2022 Tencent Cloud. All rights reserved.

Page 132 of 275

Tencent Cloud Lighthouse

5. In the Initialize Disk window, select the target disk and the disk partition format, and click OK. In this example,
MBR (Master Boot Record) is used.
Note:
If the disk partition format is changed after the disk is put into use, the original data on the disk will be erased. Please
select an appropriate partition format based on actual needs.

©2013-2022 Tencent Cloud. All rights reserved.

Page 133 of 275

Tencent Cloud Lighthouse

6. Right-click the free space of Disk 1, and select New Simple Volume.

©2013-2022 Tencent Cloud. All rights reserved.

Page 134 of 275

Tencent Cloud Lighthouse

7. In the welcome page of New Simple Volume Wizard pop-up window, click Next.
8. Specify the volume size as needed, which is the maximum value by default. Click Next.
9. Assign a drive letter, and click Next.

©2013-2022 Tencent Cloud. All rights reserved.

Page 135 of 275

Tencent Cloud Lighthouse

10. Select Format this volume with the following settings. Configure the parameters as needed, format the newpartition, and click Next.

©2013-2022 Tencent Cloud. All rights reserved.

Page 136 of 275

Tencent Cloud Lighthouse

11. Click Complete. Wait for a while for the system to complete the initialization. When the volume status becomes"Healthy", the disk initialization is successful.

After the initialization is complete, enter the PC interface to view the new disk.

©2013-2022 Tencent Cloud. All rights reserved.

Page 137 of 275

Tencent Cloud Lighthouse

Related Operations
Auto-mounting disks upon Linux instance start-up
1. Confirm the mounting method and obtain the corresponding information.
Based on business needs, you can use a cloud disk's soft link, file system's UUID (universally unique identifier), or
device name to automatically mount a disk. The descriptions and information acquisition methods are as follows:
Mounting method

Pros and cons

Information acquisition method

Use the soft linkof the cloud disk
(recommended)

Pros: The soft link of a cloud disk is fixed
and unique. It does not change with
operations such as mounting, unmounting,and formatting partitions.
Cons: Only a cloud disk can use the soft
link, which operates imperceptibly for the

Run the following command to obtain thesoft link of the cloud disk.

©2013-2022 Tencent Cloud. All rights reserved.

Page 138 of 275

Tencent Cloud Lighthousepartition formatting operation.

sudo ls -l /dev/disk/by-id

Run the following command to obtain the
UUID of the file system.

Use the UUID of
the file system

Auto-mounting configuration may fail due tochanges in a file system's UUID.For
example, reformatting a file system willchange its UUID.

sudo blkid /dev/vdb

Use device nameAuto-mounting configuration may fail due tochanges in device name.

©2013-2022 Tencent Cloud. All rights reserved.

Run the following command to obtain thedevice name.

Page 139 of 275

Tencent Cloud Lighthousesudo fdisk -l

2. Run the following command to back up the /etc/fstab file to the /home directory, for example:©2013-2022 Tencent Cloud. All rights reserved.

Page 140 of 275

Tencent Cloud Lighthousesudo cp -r /etc/fstab /home
3. Run the following command to use VI editor to open the /etc/fstab file.

©2013-2022 Tencent Cloud. All rights reserved.

Page 141 of 275

Tencent Cloud Lighthousesudo vi /etc/fstab
4. Press i to enter edit mode.
5. Move the cursor to the end of the file and press Enter, then add the following content.

©2013-2022 Tencent Cloud. All rights reserved.

Page 142 of 275

Tencent Cloud Lighthouse<Device information> <Mount point> <File system format> <File system installation o(Recommended) Assume that you need to automatically mount a cloud disk by using a soft link:©2013-2022 Tencent Cloud. All rights reserved.

Page 143 of 275

Tencent Cloud Lighthouse/dev/disk/by-id/virtio-disk-xxxxx /data ext4 defaults 0 0
For mounting the partition, add the following content:©2013-2022 Tencent Cloud. All rights reserved.

Page 144 of 275

Tencent Cloud Lighthouse/dev/disk/by-id/virtio-disk-xxxxx-part1 /data/newpart ext4 defaults 0 2
Note:
If you have multiple cloud disks, you can distinguish them by comparing the xxxxx in virtio-disk-xxxxx
with the cloud disk ID lhdisk-xxxxxx in the console. The cloud disk ID in the console is shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 145 of 275

Tencent Cloud Lighthouse

Take automatic mounting using the UUID of the disk partition as an example. Add the following content:©2013-2022 Tencent Cloud. All rights reserved.

Page 146 of 275

Tencent Cloud Lighthouse

UUID=d489ca1c-5057-4536-81cb-ceb2847f9954 /data

ext4 defaults

00

For mounting the partition, add the following content:©2013-2022 Tencent Cloud. All rights reserved.

Page 147 of 275

Tencent Cloud Lighthouse

UUID=d489ca1c-5057-4536-81cb-ceb2847f9954 /data/newpart

ext4 defaults

02Take automatic mounting using the device name as an example. Add the following content:©2013-2022 Tencent Cloud. All rights reserved.

Page 148 of 275

Tencent Cloud Lighthouse/dev/vdb /data

ext4 defaults

00

For mounting the partition, add the following content:©2013-2022 Tencent Cloud. All rights reserved.

Page 149 of 275

Tencent Cloud Lighthouse/dev/vdb1 /data/newpart /data/newpart ext4 defaults 0 2
6. Press Esc, enter :wq, and press Enter to save the configuration and exit the editor.
7. Run the following command to check whether the /etc/fstab file has been written successfully.

©2013-2022 Tencent Cloud. All rights reserved.

Page 150 of 275

Tencent Cloud Lighthousesudo mount -a
If the command runs successfully, the file has been written. The newly created file system will automatically mountwhen the operating system starts up.

©2013-2022 Tencent Cloud. All rights reserved.

Page 151 of 275

Tencent Cloud Lighthouse

Renewing Cloud Disks：

Last updated 2022-05-13 16:43:39

Overview
This document describes how to manually renew cloud data disks or enable auto-renewal for them in the Lighthouseconsole.

Directions
Manual Renewal
You can choose the following renewal methods according to the cloud disk status:
Pending released instances
Unexpired cloud disks
1. Log in to the Lighthouse console and click Cloud Disk on the left sidebar.
2. Select a region at the top of the "Cloud disk" page, find the target cloud disk, and click Renew under the"Operation" column.

3. In the Renew cloud disk pop-up window, select the renewal period, click OK, and make the payment for the
renewal order.
You can renew an unexpired cloud disk in the following methods:
Renew on the cloud disk page
1. Log in to the Lighthouse console and click Cloud Disk on the left sidebar.
. Select a region at the top of the Cloud disk page, find the target cloud disk, and click Renew under the Operation
column.

©2013-2022 Tencent Cloud. All rights reserved.

Page 152 of 275

Tencent Cloud Lighthouse

2. In the Renew cloud disk pop-up window, select the renewal period, click OK, and make the payment for the
renewal order.
Renew on the instance details page
1. Log in to the Lighthouse console and select the target instance and enter the details page.
2. Select the Cloud disk tab, find the target cloud disk, and click Renew under the Operation column.

3. In the Renew cloud disk pop-up window, select the renewal period, click OK, and make the payment for the
renewal order.

Auto-Renewal
It's recommended that you enable the auto-renewal to prevent the cloud disks from being returned or terminated due
to overdue payment. The methods for enabling the auto-renewal are as follows:
Note:
When the auto-renewal is enabled, the cost of the next billing cycle will be deducted from your sufficient accountbalance upon the expiry date of the cloud disk.
Cloud disk page
Instance details page
1. Log in to the Lighthouse console and click Cloud Disk on the left sidebar.

©2013-2022 Tencent Cloud. All rights reserved.

Page 153 of 275

Tencent Cloud Lighthouse

2. Select a region at the top of the Cloud disk page, find the target cloud disk, and click More > Enable autorenewal under the "Operation" column.

3. Click OK in the pop-up window.
1. Log in to the Lighthouse console and select the target instance and enter the details page.
2. Select the Cloud disk tab, find the target cloud disk, and click More > Enable auto-renewal under the Operation
column.

3. Click OK in the pop-up window.

©2013-2022 Tencent Cloud. All rights reserved.

Page 154 of 275

Tencent Cloud Lighthouse

Detaching Cloud Disks：

Last updated 2022-05-13 16:43:39

Overview
You can detach a cloud disk used as a data disk from a Lighthouse instance and reattach it to another Lighthouseinstance. This document describes how to detach a cloud disk in the Lighthouse console. Note that detaching acloud disk will not clear the disk data.

Considerations
Only cloud disks that are used as data disks can be detached, and the system disks cannot be detached.
It's recommended that you run the umount command (for Linux instances) or make the cloud disk offline (forWindows instances) before detaching the disk. Otherwise, the cloud disk may not be recognized when it's reattachedto the Lighthouse instance.

Directions
Preparations
You need to run the umount command (for Linux instances) or make the cloud disk offline (for Windows instances)
before detaching the disk.
Windows instances
Linux instances
To prevent data loss, we recommend that you suspend read and write operations on all file systems of the disk.
Otherwise, data that has not been read or written will be lost.
When detaching a cloud disk, you must first set the disk to offline status. Otherwise, you may not be able to reattach
the cloud disk unless you restart the Lighthouse instance.
Perform the following operations:
1. Log in to the Lighthouse instance. For more information, see Logging In to a Windows Instance via VNC.
2. Right-clickon the lower left corner of the desktop, and select Disk management in the pop-up menu.
3. In the Disk management window, right-click the Disk 1 area and select Offline from the menu list.

©2013-2022 Tencent Cloud. All rights reserved.

Page 155 of 275

Tencent Cloud Lighthouse

If you detach the disk directly from the console without running the umonut , the problem shown below may occur
upon the instance shutdown or start-up:©2013-2022 Tencent Cloud. All rights reserved.

Page 156 of 275

Tencent Cloud Lighthouse

If you have enabled the auto-attaching, please modify the /etc/fstab file to prevent the disk from being attachedautomatically when the instance starts up again.
Log in to the Lighthouse instance, and run the sudo

umount <mount point> command to detach the clouddisk.
If you have created a Logical Volume Manager (LVM) in aLighthouse instance, detaching the disk directly in the
console without run the umonut command may cause some device data to remain in memory. A system error
occurs when an application inside the instance attempts to traverse or access the device.
Assume that you have created a logical volume /dev/test/lv1 based on /dev/vdb1 and mounted it into the/data directory. Then, do the following:
1.1 Run the following command to unmount the disk mount point.

©2013-2022 Tencent Cloud. All rights reserved.

Page 157 of 275

Tencent Cloud Lighthousesudo umount /data
1.2 Run the following command to remove the Logical Volume (LV). If there are multiple LVs, remove all LVs insequence.

©2013-2022 Tencent Cloud. All rights reserved.

Page 158 of 275

Tencent Cloud Lighthousesudo lvremove /dev/test/lv1
1.3 Run the following command to remove the volume group.

©2013-2022 Tencent Cloud. All rights reserved.

Page 159 of 275

Tencent Cloud Lighthousesudo vgremove test
1.4 Run the following command to remove the physical volume.

©2013-2022 Tencent Cloud. All rights reserved.

Page 160 of 275

Tencent Cloud Lighthousesudo pvremove /dev/vdb1

Detaching the cloud disks in the console
You can detach the cloud disks in the following ways:
Detach on the cloud disk page
Detach on the instance details page
1. Log in to the Lighthouse console and click Cloud Disk on the left sidebar.
2. Select a region at the top of the Cloud disk page, find the target cloud disk, and click More > Detach.

©2013-2022 Tencent Cloud. All rights reserved.

Page 161 of 275

Tencent Cloud Lighthouse

To detach multiple cloud disks at the same time, select the target cloud disks, and click Detach at the top of the page.
3. In the pop-up Detach cloud disks window, confirm the information and click OK.
Once detached, the cloud disks go to To be attached status.
1. Log in to the Lighthouse console and select the target instance and enter the details page.
2. Select the Cloud disk tab, find the target cloud disk, and click More > Detach under the "Operation" column.

To detach multiple cloud disks at the same time, select the target cloud disks, and click Detach at the top of the page.
3. In the pop-up Detach cloud disks window, confirm the information and click OK.
After the detachment is successful, you cannot see the disk in the Cloud disk tab of the instance. You can view thatthe cloud disk status is "To be attached" on the Cloud Disk page.

©2013-2022 Tencent Cloud. All rights reserved.

Page 162 of 275

Tencent Cloud Lighthouse

Terminating Cloud Disks：

Last updated 2022-05-13 16:43:39

Overview
When a cloud disk is no longer in use and important data has been backed up, you can release the virtual resourcesby terminating the cloud disk. You will not be billed for the cloud disk after termination. When the cloud disk isterminated, all data on the cloud disk will be deleted and cannot be restored. Please note that cloud disksthat have been terminated cannot be recovered. This document describes how to terminate the data disks in theLighthouse console.
Cloud disks have different life cycles as system disks and data disks. They can be terminated in the following ways:
Data disk
System disk
The lifecycle of the cloud disk used as a data disk is independent of that of the Lighthouse instance, so the disk can beterminated independently. You can choose to terminate the cloud disk by yourself or enable auto-termination.
Manual termination: The cloud disks can be manually terminated before expiry. After being terminated, the cloud
disks will be kept in the recycle bin for seven days, and they can be permanently terminated in the recycle bin.
Each entity can return one cloud disk within five days without reason. Each account can also do returns for 199 cloud
disks. For more information on refunds, see Refund. When you hit the return limit, you will not be able to manuallyterminate the cloud disks.
Automatic termination A cloud disk in the recycle bin will be automatically terminated if it is not recovered within 7
days. To continue the use, renew the disk within the specified time. For renewal, see Renewing a Cloud Disk.
The lifecycle of a cloud disk used as a system disk is the same as the Lighthouse instance. It can only be terminatedwhen the Lighthouse instance is terminated. For more information, see Terminating an instance.

Prerequisites
The cloud disks are in To be attached status. To terminate the "Attached" cloud disks, you need to detach them first.
See Detaching a Cloud Disk.
The important data has been backed up.

Directions
Terminate unexpired cloud disks manually©2013-2022 Tencent Cloud. All rights reserved.

Page 163 of 275

Tencent Cloud Lighthouse

1. Log in to the Lighthouse console and click Cloud Disk on the left sidebar.
2. Select a region at the top of the Cloud Disk page, find the target cloud disk, and click More > Terminate/Return.

To terminate multiple cloud disks at the same time, select the target disks and click Terminate/Return at the top of
the page.
3. In the Terminate/Return Cloud Disks pop-up window, check I have read and agree to Refund Policy, andclick OK.
4. On the refund information page, confirm the refund information and click Confirm Refund.
Note:
After termination, the cloud disk is in Pending released status and will be kept for seven days. At this time, the cloud
disk is no longer available. If you don't need to retain the disk data, you can completely terminate the disk.

Terminate cloud disks completely
1. On the "Cloud Disk" page, select the cloud disk in "Pending released" status, click More > Terminate/Return
under the operation column.

To terminate multiple cloud disks at the same time, select the target disks and click Terminate/Return at the top of
the page.
2. In the Terminate/Return Cloud Disks pop-up window, click OK to completely terminate the cloud disk.
Note:
When a cloud disk is completely terminated, all data on the disk will be deleted and cannot be recovered. Cloud disksthat have been terminated cannot be restored.

©2013-2022 Tencent Cloud. All rights reserved.

Page 164 of 275

Tencent Cloud Lighthouse

Managing Keys：

Last updated 2022-04-06 14:31:47

Overview
Currently, Lighthouse provides two types of user credentials for remote instance login: password and SSH key pair.
The latter is a more secure and convenient for login authentication. It is a pair of public and private keys generated byan encryption algorithm and can be bound to a created instance. Then, you can use the private key to log in to theinstance.
Note:
The SSH key pair login method is applicable to Linux instances only.

Strengths
An SSH key pair has the following strengths compared with a username and password:
Security: compared with general password login, an SSH key pair has a higher security and cannot be cracked withbrute force. It is generated by using an asymmetric encryption algorithm and encrypted with a public key. Then, it canbe decrypted only with the corresponding private key stored by yourself without being sent over the network.
Convenience: you can quickly log in to a Linux instance remotely by using an SSH key pair without entering the
password each time. In addition, you can also maintain and manage multiple Linux instances more easily in a unified
manner in this way.

Use Limits
Up to ten SSH key pairs can be created in each region under one account.

Directions
Creating SSH key
1. Log in to the Lighthouse console and click Key on the left sidebar.
2. On the key list page, click New.
3. In the Create an SSH key pop-up window, set the key region, select the key creation method, and click OK.
Note:©2013-2022 Tencent Cloud. All rights reserved.

Page 165 of 275

Tencent Cloud Lighthouse

The private key will be automatically downloaded after the creation is completed. Tencent Cloud will not save yourprivate key information. Download and get the private key within 10 minutes after key creation.
You can download the key only once. Keep it confidential.

If you select Create a key pair as the creation method, enter the key name.
If you select Use an existing public key as the creation method, enter the key name and existing public key
information.

Binding/Unbinding key to/from instance
1. Log in to the Lighthouse console.
2. Click Key List on the left sidebar.
3. On the key list page, select the target SSH key and click Bind/Unbind Instances.

©2013-2022 Tencent Cloud. All rights reserved.

Page 166 of 275

Tencent Cloud Lighthouse

4. In the Bind/Unbind Instances pop-up window, select the target Linux instance and click OK.
Note:
When you bind/unbind an instance, if the selected instance is running, pay attention to the following:
During the binding/unbinding process, the instance will shut down first and then start up, and the business will beinterrupted momentarily. We recommend you do so during off-peak hours.
If the instance fails to shut down normally, it will be forced to shut down. Forced shutdown may cause data losses orfile system corruption. Therefore, perform forced shutdown with caution.
Forced shutdown may take a while. Please be patient.
To improve the Lighthouse instance security, after a Linux instance is bound to a key, login to the root accountwith a password will be forbidden by default. If you want to keep the password login method, modify the configuration
as instructed in Modifying SSH configuration.

Deleting SSH key
Note:
If an SSH key is bound to a Linux instance, it cannot be deleted.
1. Log in to the Lighthouse console.
2. Click Key List on the left sidebar.
3. On the key list page, select the target SSH key and click Delete.

4. In the key deletion pop-up window, click OK.

Relevant Operations©2013-2022 Tencent Cloud. All rights reserved.

Page 167 of 275

Tencent Cloud Lighthouse

Modifying SSH configuration
1. Log in to the target Linux instance via WebShell. You can also use other login methods as needed.
2. Run the following command to open the sshd_config configuration file:sudo vi /etc/ssh/sshd_config
3. Press i to switch to the edit mode, find #Authentication , and change the value of the
PasswordAuthentication parameter to yes as shown below:
Note:©2013-2022 Tencent Cloud. All rights reserved.

Page 168 of 275

Tencent Cloud Lighthouse

If the sshd_config configuration file doesn't contain this configuration item, add PasswordAuthentication
yes .

4. Run the following command to restart the SSH service. This document uses CentOS 7 as an example. Run theapplicable command based on your actual operating system.

©2013-2022 Tencent Cloud. All rights reserved.

Page 169 of 275

Tencent Cloud Lighthousesudo systemctl restart sshd
After the restart, you can try logging in with a password.

©2013-2022 Tencent Cloud. All rights reserved.

Page 170 of 275

Tencent Cloud Lighthouse

Managing Firewall
Manage instance firewall：

Last updated 2023-12-06 11:38:46

Overview
A firewall is an important method to protect the Lighthouse instance's network security. Its security protection features
are equivalent to security groups in CVM. You can configure firewall rules to allow or reject access to Lighthouseinstances over the private or public network.
Note:
The firewall can control only the traffic flowing to the instance. All traffic going out from the instance is allowed bydefault.

Concepts
Outbound traffic: Traffic generated when data is transmitted from within the instance to outside the instance throughthe public or private network.
Inbound traffic: Traffic generated when data is transmitted from outside the instance to within the instance through the
public or private network.

Firewall Rule
Quota limits
Up to 100 firewall rules can be created for each Lighthouse instance.

Parameters
A Lighthouse instance firewall can have multiple firewall rules, each of which contains the following parameters:
Parameter

Description

Type

Custom: Specify the protocol and port as needed.
Common templates, such as Windows login (3389) and Linux login (22), are provided. If you
choose a template, the corresponding protocol and port are entered automatically and cannot be
modified.

SourceSpecified IPv4 address or range.

©2013-2022 Tencent Cloud. All rights reserved.

Page 171 of 275

Tencent Cloud Lighthouse

ProtocolProtocol type. You can select TCP, UDP, or ICMP.

PortPort number. You can specify one or multiple ports.

PolicyAllow: Allow traffic to this port
Reject: Discard all data packets going to this port without any response.

Notes

A short description of the rule

Rule priorities
Firewall rules have priorities.
The rule at the top of the list has the highest priority and will take effect first, while the rule at the bottom has the lowest
priority and will take effect last.
If there is a rule conflict, the rule with the higher priority will prevail by default.
When traffic goes into an instance associated with the firewall, the firewall rules are calculated from top to bottom. If arule is hit and takes effect, the subsequent rules do not take effect.
You can adjust the priority of existing firewall rules as instructed in Modifying firewall rule priority.

Directions
Note:
You can add or delete firewall rules as follows, and the modification will take effect immediately.

Adding a firewall rule
1. Log in to the Lighthouse console, select the target instance and enter the details page.
2. On the instance details page, select the Firewall tab, and click Add a rule.

Note:©2013-2022 Tencent Cloud. All rights reserved.

Page 172 of 275

Tencent Cloud Lighthouse

After a Lighthouse instance is created, the ICMP protocol will be allowed and ports 80 (HTTP service), 443 (HTTPS
service), 22 (Linux SSH service), and 3389 (Windows RDP service) will be opened by default.
You can modify the policies of these ports to Reject, or delete the firewall rules as needed on the instance details
page. If the firewall rules are deleted, the port will be disabled by default.
3. In the Create a rule pop-up window, add a rule by referring to the following:This document takes adding a rule of allowing traffic whose source IP is 192.168.1.1 , protocol type is TCP ,and ports are 3306–20000 as an example. Add rules based on your actual conditions. For more information onrule parameters, see Parameters.

Type: To set the protocol type and port, select Custom.
Specified source: To restrict the source IPs, select Enable.
If Enable is not selected, the rule takes effect for all IPv4 source addresses.

©2013-2022 Tencent Cloud. All rights reserved.

Page 173 of 275

Tencent Cloud Lighthouse

Source IP: The firewall rule only takes effect on the specified source IPs. You can enter IP addresses in the following
formats:
Single IP: Such as 192.168.1.1 .
CIDR block: Such as 192.168.1.0/24 .
All IPv4 addresses: 0.0.0.0/0 .
Protocol: You can select TCP, UDP, or ICMP. This document takes TCP as an example.
Port: You can select one or multiple ports ranging from 1 to 65535 and use commas to separate them. You can enter
ports in the following formats:Single port: Such as 80 .
Multiple discrete ports: Such as 80,443 .
Continuous ports: Such as 3306-20000 .
All ports: ALL .
Policy: Allow or Refuse. Allow is selected by default.
Allow: Traffic to this port is allowed.
Reject: Data packets will be discarded without any response.
Notes: A short description of the rule for easier management.
4. Click OK.

Deleting a firewall rule
1. Log in to the Lighthouse console, select the target instance and enter the details page.
2. On the instance details page, select the Firewall tab.
3. On the Firewall tab, select Delete on the right of the target firewall rule.

4. In the pop-up prompt box, click OK.

Modifying a firewall rule
1. Log in to the Lighthouse console, select the target instance and enter the details page.

©2013-2022 Tencent Cloud. All rights reserved.

Page 174 of 275

Tencent Cloud Lighthouse

2. On the instance details page, select the Firewall tab.
3. On the Firewall tab, select Edit on the right of target firewall rule.

4. In the pop-up window, modify the configurations with reference to Parameters. Click OK.
Note:
If the Type is not Custom, the protocols and ports cannot be modified. If you want to modify them, please change theapplication type to Custom.
You do not need to restart the Lighthouse instance after the modification.

Related Operations
Modifying firewall rule priority
1. Log in to the Lighthouse console, select the target instance and enter the details page.
2. On the instance details page, select the Firewall tab, and click Sort.
3. Select

before the target rule, drag the rule to the desired position, and drop it as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 175 of 275

Tencent Cloud Lighthouse

4. Click Save below the list.

©2013-2022 Tencent Cloud. All rights reserved.

Page 176 of 275

Tencent Cloud Lighthouse

Managing Snapshot：

Last updated 2023-07-19 14:54:12

Overview
You can create a snapshot manually to replicate a Lighthouse instance's system disk at a certain time point. Snapshot
is a convenient and efficient data protection service. When a system failure or maloperation occurs in an instance forwhich a snapshot has been created, you can use the snapshot to roll back the application version of the instance.
Lighthouse instance snapshots have the following use cases:
Daily data backup
You can use snapshots to regularly back up important business data to avoid data loss caused by incorrect
operations, attacks, and viruses.
Quick data recovery
You can create snapshots before performing major operations, such as changing operating systems, upgrading
applications, or migrating business data. If any problem occurs, you can use snapshots to restore the business data.

Notes
Snapshot use limits: Snapshots cannot be created for instances on the storage-optimized package.
Snapshot quota limits: The maximum number of free snapshots in each region is the number of created instances(excluding instances to be repossessed and instances on the storage package) multiplied by 2 and cannot exceed 10.
When a Lighthouse instance is terminated, all its created snapshots will also be deleted.

Directions
Creating snapshot
1. Log in to the Lighthouse console.
2. On the instance list page, select the target instance to enter its details page.
3. On the instance details page, select the Snapshot tab.
On this tab, you can click Create Snapshot to create a snapshot or view the list of snapshots created for thisinstance.
4. In the Create Snapshot pop-up window, you can customize the snapshot name and click OK to create thesnapshot as shown below:
Note:©2013-2022 Tencent Cloud. All rights reserved.

Page 177 of 275

Tencent Cloud Lighthouse

Generally, it takes less than five minutes to create a snapshot. Please wait patiently. During the creation, the instancedoesn't need to be shut down.
During snapshot creation, application data saved in the memory may not be persistently stored. As such, snapshots
may not capture the latest and most complete cloud disk data. Refer to Notes to ensure snapshot data consistency.

Using snapshot to roll back instance system disk
Note:
Rolling back the instance system disk with a snapshot is irreversible. It will clear the system disk data generated after
the snapshot creation time. To avoid maloperations, we recommend you create an instance snapshot right before©2013-2022 Tencent Cloud. All rights reserved.

Page 178 of 275

Tencent Cloud Lighthouserollback to back up the latest data.
1. Log in to the Lighthouse console.
2. On the server list page, select the target instance to enter its details page.
3. On the instance details page, select the Snapshot tab.
You can also view the list of snapshots created for this instance on this tab.
4. Select Roll back on the right of the row of the target snapshot. In the Roll Back Disk pop-up window, select Readand agree and click OK as shown below:
Note:
After rollback, the entire instance system disk, rather than a partition or directory, will be restored to the status at thesnapshot creation time point.
If the instance is running, it will be shut down automatically during rollback.

Deleting snapshot
1. Log in to the Lighthouse console.
2. On the server list page, select the target instance to enter its details page.
3. On the instance details page, select the Snapshot tab.
4. Select Delete on the right of the row of the target instance. In the Delete snapshot pop-up window, click OK asshown below:
Note:©2013-2022 Tencent Cloud. All rights reserved.

Page 179 of 275

Tencent Cloud Lighthouse

Deleting a snapshot will also delete all data in the snapshot, and the data cannot be retrieved. Deleted snapshotscannot be restored, so please delete snapshots with caution.

©2013-2022 Tencent Cloud. All rights reserved.

Page 180 of 275

Tencent Cloud Lighthouse

Managing Image
Working with Custom Images：

Last updated 2022-09-26 11:28:02

Overview
You can create a custom image in addition to using Lighthouse application images and system images. The custom
image can be used to quickly create Lighthouse instances with the same configurations as the image in theLighthouse console.

Notes
Up to 20 custom images can be created in each region. To increase the quota limit, submit a ticket for application.
A free tier of five custom images is provided in each region, and excessive images will incur fees. For more
information, see Billing Overview.
If your account has overdue payments:
The custom image feature will be disabled, and you cannot create more custom images.
All custom images (including those within the free tier) under your account will be isolated in the To be repossessed
status and become unavailable. The images that exceed the free tier will continue to be billed until they aredeleted. If you don't top up your account within seven days, the custom images will be deleted automatically.
The creation process takes ten minutes or more, which depends on the data size of the instance. Prepare in advanceto avoid business impacts.
Currently, cross-region replication of custom images is not supported. You can regularly check out the Tencent Cloud
Lighthouse page to get the latest information.

Directions
Creating a custom image
1. Log in to the Lighthouse console.
2. On the instance list page, select the target instance to enter the instance details page.
3. In Application information on the instance details page, select Create image.

©2013-2022 Tencent Cloud. All rights reserved.

Page 181 of 275

Tencent Cloud Lighthouse

4. In the Enter image information step in the Create custom image pop-up window, enter the Image name and
Description, and click Next: Shut down the instance.

©2013-2022 Tencent Cloud. All rights reserved.

Page 182 of 275

Tencent Cloud Lighthouse

5. In the Shutdown instance step, select "Agree to a forced shutdown" and click Create image.
After the custom image is created, you can go to the custom image list page to view it.

Deleting a custom image©2013-2022 Tencent Cloud. All rights reserved.

Page 183 of 275

Tencent Cloud Lighthouse

1. Log in to the Lighthouse console and select Custom image on the left sidebar.
2. At the top of the Custom image page, select the region of the target image.
3. Select More > Delete on the right of the target image in the list.
4. In the Delete image pop-up window, click OK to delete the image.

Related Operations
Using a custom image to create an instance
You can use a custom image to quickly create a Lightweight instance in the following steps:
1. Log in to the Lighthouse console and select Custom image on the left sidebar.
2. At the top of the Custom image page, select the region of the target image.
3. Select Create instance on the right of the target image in the list to enter the Lighthouse instance purchase page.

4. On the Lightweight instance purchase page, select other configuration items of the instance as instructed in
Purchase Methods.
Note:
As custom images don't have a unified template and are created based on your own data, the instances created byusing them don't have the Pre-installed Application tab.

Viewing the information of the custom images in the current region
You can view the information of existing custom images in a specific region in the following steps:
1. Log in to the Lighthouse console and select Custom image on the left sidebar.
2. At the top of the Custom image page, select the region of the target image.
3. Then, you can view the total number of custom images, free tier, and estimated price information in the current
region on the page.
Note:
A free tier of five custom images is provided in each region.
Once your account has overdue payments, all custom images (including those within the free tier) under your accountwill be isolated in the To be repossessed status and become unavailable. If you don't top up your account withinseven days, the custom images will be deleted automatically.

©2013-2022 Tencent Cloud. All rights reserved.

Page 184 of 275

Tencent Cloud Lighthouse

References
Overview
Billing Overview©2013-2022 Tencent Cloud. All rights reserved.

Page 185 of 275

Tencent Cloud Lighthouse

Replicating Custom Images Across Regions：

Last updated 2023-08-29 14:14:55

FeatureWith Cross-Region Replication, you can replicate a custom image to multiple destination regions, and create
Lighthouse instances in the destination regions with the replicated image.

Precautions
An image cannot be replicated between the Chinese mainland and other countries/regions.
When an image is replicated to a destination region, it consumes the custom image quota in this region and be
charged as a custom image. For more information, see Custom Image Pricing.
It usually takes 15 to 40 minutes to replicate an image.
You can replicate an image to up to 10 destination regions at one time.

Directions
1. Log in to the Lighthouse console and select Image on the left sidebar.
2. Select the region at the top of the Image page and click the Custom image tab.
3. Select More > Cross-region replication on the right of the target image in the list.

©2013-2022 Tencent Cloud. All rights reserved.

Page 186 of 275

Tencent Cloud Lighthouse

4. In the Cross-region replication window that pops up, read the precautions, and click OK.
After the replication is completed:
You can find an image with the same name but a different ID in the list.
You can use the image to create an instance in the destination region. For detailed steps, see Working with Custom
Images.

©2013-2022 Tencent Cloud. All rights reserved.

Page 187 of 275

Tencent Cloud Lighthouse

Share Custom Images：

Last updated 2023-07-19 17:08:04

Overview
Tencent Cloud allows you to share custom images between Lighthouse and CVM. You can customize image sharing
as needed to implement offline migration between them. You can also use a shared image to quickly create instances
and then get the needed components from them or add custom content to them.
Note:
Shared images do not take up the quota of custom Lighthouse instance images.
A shared custom Lighthouse instance can be deleted only after sharing is canceled.

Usage Limits
Custom images can be shared only between Lighthouse and CVM instances in the same region under the sameaccount.
You cannot share the following custom images from CVM to Lighthouse:
Imported custom CVM instance images.
Custom images already shared from CVM to Lighthouse.
Custom images of entire CVM instances.
Custom images whose underlying operating system and version are not listed in Supported Operating Systems.
Custom images without Cloud-init installed.

Supported Operating Systems
Images on the following underlying operating systems and versions can be shared:
CentOS 6.8 or later
Ubuntu 16.04 or later
Debian 8.2 or later
Windows Server 2012 or later
TencentOS Server 2.4 or later

Directions©2013-2022 Tencent Cloud. All rights reserved.

Page 188 of 275

Tencent Cloud Lighthouse

Sharing image to CVM
1. Log in to the Lighthouse console and select Images on the left sidebar.
2. Select the region at the top of the Image page and click the Custom image tab.
3. On the right of the row of the target image, select More > Share/Unshare.
4. In the Share Image pop-up window, click OK as shown below:

After sharing the image, you can view it on the shared image list page in the CVM console.

Unsharing image to CVM
1. On the Custom image tab, select More > Share/Unshare on the right of the row of the target image.
2. In the Unshare Image pop-up window, click OK as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 189 of 275

Tencent Cloud Lighthouse

Sharing image to Lighthouse
You can share a custom CVM instance image to Lighthouse in the following consoles:
Lighthouse console
CVM console
1. Log in to the Lighthouse console and select Images on the left sidebar.
2. Select the region at the top of the Image page and click the Shared image tab.
3. Click Share CVM image. In the Share Image pop-up window, select the target image as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 190 of 275

Tencent Cloud Lighthouse

4. Click OK.
1. Log in to the CVM console and click Images on the left sidebar.
2. Select the region at the top of the Image page and click the Custom image tab.
3. On the right of the row of the target image, select Share.
4. In the Share Image pop-up window, select Lighthouse as the destination as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 191 of 275

Tencent Cloud Lighthouse

5. Click OK.

Unsharing image to Lighthouse
You can unshare a custom CVM instance image to Lighthouse in the following consoles:
Lighthouse console
CVM console
1. Log in to the Lighthouse console and select Images on the left sidebar.
2. Select the region at the top of the Image page and click the Shared image tab.
3. On the right of the row of the target image, click Unshare as shown below:

4. In the Unshare Image pop-up window, click OK.

©2013-2022 Tencent Cloud. All rights reserved.

Page 192 of 275

Tencent Cloud Lighthouse

1. Log in to the CVM console and click Images on the left sidebar.
2. Select the region at the top of the Image page and click the Custom image tab.
3. On the right of the row of the target image, select More > Unshare.
4. On the Shared image tab on the image details page, select Unshare on the right of the row of the target image
sharing record as shown below:

5. In the Unshare pop-up window, click OK.

Related Operations
Viewing image sharing status
You can view image information and sharing status on the custom image details page in the Lighthouse console:
1. Log in to the Lighthouse console and select Images on the left sidebar.
2. Select the region at the top of the Image page and click the Custom image tab.
3. Click the ID of the target image to enter its details page to view its information and sharing status.

Using shared image to create instance
You can use an image shared to Lighthouse to create an instance quickly.
1. Log in to the Lighthouse console and select Images on the left sidebar.
2. Select the region at the top of the Image page and click the Shared image tab.
3. On the right of the row of the target image, click Create instance as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 193 of 275

Tencent Cloud Lighthouse

4. On the Lighthouse instance purchase page, select the configuration as need and create the instance.
Here, the shared instance is selected for Image, and you need to set other configuration items as instructed in
Purchase Methods.

©2013-2022 Tencent Cloud. All rights reserved.

Page 194 of 275

Tencent Cloud Lighthouse

Tencent Cloud Support for Lighthouse Images：

Last updated 2022-05-30 16:08:00
Tencent Cloud Lighthouse provides rich application images for efficient application deployment. Besides theunderlying operating systems (CentOS and Windows Server), these images also encapsulate third-party applications(such as LAMP, WordPress, ASP.NET, and Node.js), the runtime environments, and relevant initialization
configuration files. Tencent Cloud provides support for the images deployed in the Lighthouse instances, including theoperating system and Tencent Cloud software and ensures the proper running of the server. The user needs to takecare of the rest part of the server, such as applications installed by themselves.
Note:
Tencent does not provide any technical support for any Third Party Software. Please visit the relevant open source
communities for technical support.
Tencent Cloud provides the following support on the listed application images. You can also seek help on the official
websites of the third-party software and other community websites.
Application Image

Tencent Cloud

Name

SupportWordPress

TypechoThird-party Tutorial

For a Lighthouse

Notes

-

instance created using
the application image,-

Tencent Cloud will
guarantee that:

Cloudreve

The instance can bestarted up normally-and enter the "running"
Matomostatus.

LAMP

The operating system
can be booted and run
normally.

Node.js

ASP.NET

The pre-installed thirdparty application
software in theapplication image and-Third-party tutorials
are for learning and-reference only.

--

the operating
Theia IDE

Docker CE

environment that theapplication depends
on can be started andrun normally, and the--preset initialization
K3s

configuration file canbe loaded normally.

©2013-2022 Tencent Cloud. All rights reserved.

-

Page 195 of 275

Tencent Cloud Lighthouse©2013-2022 Tencent Cloud. All rights reserved.

Page 196 of 275

Tencent Cloud Lighthouse

Private Network Interconnection：

Last updated 2022-08-15 18:03:47

Overview
Lighthouse uses the Virtual Private Cloud automatically assigned by Tencent Cloud for network isolation. By default,Lighthouse instances cannot interconnect with other Tencent Cloud resources in VPCs such as CVM and TencentDB
over the private network, and their interconnection needs to be implemented by associating a CCN instance. Theinterconnection feature is applicable to the following businesses:
Lighthouse access to CVM.
Lighthouse access to TencentDB.
Note:
Lighthouse instances in the same region under the same account are interconnected over the private network by
default. For more information, see Region and Interconnection.
Lighthouse and COS in the same region are interconnected over the private network by default with no need to beinterconnected over CCN.
Other Tencent Cloud resources need to use VPC to interconnect with Lighthouse.
This document describes how to associate/disassociate an instance with/from CCN in the Lighthouse console. For
more information on CCN, see Overview.

Must-knows
The interconnection feature of Lighthouse is free of charge. You only need to pay attention to CCN billing information.
For more information, see Pricing.
CCN cross-MLC-border connections are not available for Lighthouse instances.
Under the same account:
All Lighthouse instances in the same region are in the same VPC. A VPC can be associated with only one CCN
instance.
Lighthouse instances in different regions are in different VPCs, which need to be associated with CCN instances
separately.
If there are no Lighthouse instances in a region, you cannot associate a CCN instance in that region.

Directions
Applying for Associating with a CCN©2013-2022 Tencent Cloud. All rights reserved.

Page 197 of 275

Tencent Cloud Lighthouse

1. Log in to the Lighthouse console and select Interconnection on the left sidebar.
2. Select Associate CCN Instance in the target region.

3. In the Associate with CCN pop-up window, select the target CCN instance and click OK to submit the association
application.

Note:
If no CCN instances are available, create one as instructed in Creating a CCN Instance.
Only CCN instances under the same account can be associated with.

©2013-2022 Tencent Cloud. All rights reserved.

Page 198 of 275

Tencent Cloud Lighthouse

After submitting the association application, log in to the CCN console in seven days to approve the application;otherwise, the application will expire, and you need to apply for association again.
4. Log in to the CCN console, and click the ID/Name of the target CCN instance to open its details page.

5. On the CCN instance details page, select Approve on the right of the target association application.
Remarks "Lighthouse VPC" will be added to the VPC instance of Lighthouse by default. Select the correct instance asshown below:

6. In the pop-up window, click OK to complete association. On the interconnection page, the region status will become
Connected.

©2013-2022 Tencent Cloud. All rights reserved.

Page 199 of 275

Tencent Cloud Lighthouse

7. After the association is complete, check that the route is valid by following these steps:
i. On the Interconnection page, click CCN ID under the region to go to the CCN details page.
ii. On the CCN details page, select Route Table tab.
iii. Confirm that the new routes are "valid". If there is a CIDR block conflict, the route may be invalid.
Note:
To use invalid routes, see Disabling Route and [Enabling route](https://intl.cloud.tencent.
com/document/product/1003/30069). For conflict rules and restrictions, see Use Limits.
8. After associating the Lighthouse instance with CCN,
you can associate Tencent Cloud resources such as CVM and TencentDB instances to CCN to implement
interconnection. For more information, see Associating Network Instances.

Disassociating from a CCN
You can disassociate a CCN instance when the CCN association application status is Applying, Expired, orConnected. If the status is Connected, disassociation will interrupt the connections of all instances in the current
region to other VPCs in CCN. Perform the following operations after confirming that they will not affect your business:
1. Log in to the Lighthouse console and select Interconnection on the left sidebar.
2. Select Disassociate in the target region.

©2013-2022 Tencent Cloud. All rights reserved.

Page 200 of 275

Tencent Cloud Lighthouse

3. In the Disassociate from CCN pop-up window, click OK.

Examples of Interconnection Between Lighthouse with Cloud
Resources
Example 1: Interconnection Between Lighthouse and CVM
Scenario
The Lighthouse and CVM instances in the Guangzhou region are not interconnected by default and need to be
associated with CCN for interconnection.
Steps
1. Log in to the Lighthouse instance and run the following command:©2013-2022 Tencent Cloud. All rights reserved.

Page 201 of 275

Tencent Cloud Lighthouseping CVM instance's private IP
If the following information is returned, the IP cannot be pinged:©2013-2022 Tencent Cloud. All rights reserved.

Page 202 of 275

Tencent Cloud Lighthouse

2. Associate with a CCN as instructed in Applying for associating with a CCN.
Associate the VPC of CVM with the CCN instance as instructed in Associating Network Instances.
3. Log in to the Lighthouse instance and run the following command:ping CVM instance's private IP
If the following information is returned, the IP can be pinged and the interconnection succeeds.

©2013-2022 Tencent Cloud. All rights reserved.

Page 203 of 275

Tencent Cloud Lighthouse

Example 2: Interconnection Between Lighthouse and TencentDB for MySQL
Scenario
In Guangzhou region, the Lighthouse and TencentDB for MySQL instructed in Overview are not interconnected bydefault. You need to associate MySQL with CCN to implement the interconnection.
Prerequisites
TencentDB for MySQL uses private network port 3306 by default. Allow this port in the inbound rules of the
security group associated with the MySQL instance. For details, see TencentDB Security Group Management.
Steps
1. Log in to the Lighthouse instance and run the following command to install telnet :©2013-2022 Tencent Cloud. All rights reserved.

Page 204 of 275

Tencent Cloud Lighthousesudo yum install telnet -y
2. Run the following command to test whether the interconnection is successful or not.

©2013-2022 Tencent Cloud. All rights reserved.

Page 205 of 275

Tencent Cloud Lighthousetelnet TencentDB for MySQL instance's private IP 3306
If the following information is returned, the interconnection fails.

3. Associate with a CCN as instructed in Applying for associating with a CCN.
Associate the VPC of TencentDB for MySQL with the CCN instance as instructed in Associating Network Instances.

©2013-2022 Tencent Cloud. All rights reserved.

Page 206 of 275

Tencent Cloud Lighthouse

4. Log in to the Lighthouse instance and run the following command:telnet TencentDB for MySQL instance's private IP 3306
If the following information is returned, the interconnection succeeds.

©2013-2022 Tencent Cloud. All rights reserved.

Page 207 of 275

Tencent Cloud Lighthouse

5. Connect the Lighthouse instance to a MySQL instance as instructed in Connecting to MySQL Instance.
Example 3: Interconnection Between Lighthouse and TencentDB for Redis
Scenario
In Guangzhou region, the Lighthouse and TencentDB for Redis instructed in Overview are not interconnected bydefault. You need to associate Redis with CCN to implement the interconnection.
Prerequisites
TencentDB for Redis uses private network port 6397 by default. Allow this port in the inbound rules of the security
group associated with the Redis instance. For details, see Configuring Security Group.
Steps
1. Log in to the Lighthouse instance and run the following command:©2013-2022 Tencent Cloud. All rights reserved.

Page 208 of 275

Tencent Cloud Lighthouseping the Redis instance's private IP
If the following information is returned, the IP cannot be pinged:

2. Run the following command to install telnet . Take a Lighthouse instance using CentOS as an example.

©2013-2022 Tencent Cloud. All rights reserved.

Page 209 of 275

Tencent Cloud Lighthousesudo yum install telnet -y
3. Run the following command to test whether the interconnection is successful or not.

©2013-2022 Tencent Cloud. All rights reserved.

Page 210 of 275

Tencent Cloud Lighthousetelnet the Redis instance's private IP 6379
If the following information is returned, the interconnection fails.

4. Associate with a CCN as instructed in Applying for associating with a CCN.
Associate the VPC of TencentDB for Redis with the CCN instance as instructed in Associating Network Instances.

©2013-2022 Tencent Cloud. All rights reserved.

Page 211 of 275

Tencent Cloud Lighthouse

5. Log in to the Lighthouse instance and run the following command:telnet the Redis instance's private IP 6379
If the following information is returned, the interconnection succeeds.

©2013-2022 Tencent Cloud. All rights reserved.

Page 212 of 275

Tencent Cloud Lighthouse

6. Connect the Lighthouse instance to a Redis instance as instructed in Connecting to TencentDB for Redis Instance.

©2013-2022 Tencent Cloud. All rights reserved.

Page 213 of 275

Tencent Cloud Lighthouse

OPS and Monitoring
Instance Monitoring：

Last updated 2022-06-17 11:50:08

Overview
You can log in to the Lighthouse console and enter the instance details page to view the monitoring data of an
instance.

Directions
1. Log in to the Lighthouse console.
2. Find the target instance in the instance list and enter its details page.
3. Select the Monitoring tab to enter the monitoring data page, where you can view the instance's monitoring datasuch as CPU, memory, private network bandwidth, public network bandwidth, and disk (system disk and data disk)
usage as shown below:
Note:
If you want to set threshold alarms for the performance metrics of Lighthouse resources supported by Cloud Monitor,
so that when an exception occurs, you can promptly receive a notification by WeChat, email, SMS, or phone call andtake corresponding actions, you need to click Set alarm to create an alarm policy. For more information, see Creating
Alarm Policy.

©2013-2022 Tencent Cloud. All rights reserved.

Page 214 of 275

Tencent Cloud Lighthouse

Related Operations
Getting CloudAudit operation records©2013-2022 Tencent Cloud. All rights reserved.

Page 215 of 275

Tencent Cloud Lighthouse

Lighthouse supports CloudAudit. You can get operation records in the CloudAudit console in the following steps. For
more information on CloudAudit operation records, see Viewing Event Details in Operation Record.
1. Log in to the CloudAudit console and select Operation Record on the left sidebar.
2. Select LIGHTHOUSE for Resource Event Name and click Query to view the logs as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 216 of 275

Tencent Cloud Lighthouse

Access Management
CAM Overview：

Last updated 2022-05-12 12:24:12
If you have multiple users managing different Tencent Cloud services such as Lighthouse, VPC, and TencentDB, andthey all share your Tencent Cloud account access key, you may face the following problems:
The risk of your key being compromised is high since multiple users are sharing it.
Your users might introduce security risks from maloperations due to the lack of user access control.
You can use Cloud Access Management (CAM) to allow different users to manage different services through subaccounts so as to avoid the above problems. By default, a sub-account doesn't have the permission to use Lighthouseor its relevant resources. Therefore, you need to create a policy to grant the required permission to the sub-account.
You can skip this section if you don't need to manage permissions to Lighthouse resources for sub-accounts, which
will not affect your understanding and use of the other sections of the document.

Features
CAM is a web-based Tencent Cloud service that helps you securely manage and control the access permissions ofresources under your Tencent Cloud account. With CAM, you can create, manage, and terminate users or usergroups and use identities and policies to control user access to Tencent Cloud resources. When using CAM, you can
associate a policy with a user or user group to allow or forbid them to use specified resources to complete specified
tasks.
Lighthouse has been connected to CAM, so you can use CAM to control the permissions of the Lighthouse resources.

Concepts
CAM users
A CAM user is an entity you create in Tencent Cloud. Each CAM user is associated with one Tencent Cloud account.
The identity of your registered Tencent Cloud account is the root account, and you can create sub-accounts withdifferent permissions for collaboration through user management. The types of sub-accounts include sub-user,
collaborator, and message recipient.
Policies
A policy is the syntax rule used to define and describe one or more permissions. CAM supports two types of policies:
preset policy and custom policy.

©2013-2022 Tencent Cloud. All rights reserved.

Page 217 of 275

Tencent Cloud Lighthouse

Preset policies: Policies created and managed by Tencent Cloud. These are some common permission sets that are
frequently used by users, such as full read and write permissions for resources. Preset policies have a wide range of
operation objects, coarse operation granularity, and are preset by the system. They cannot be edited by users.
Custom policies: Policies created by users. These permit fine-grained division of permissions. For example, a usage
policy is associated with a sub-account that gives the sub-account management permissions for the scaling groups ofAuto Scaling, but no management permissions for TencentDB instances.
Resources
Resource is an element of policies that describes one or multiple operation objects. For example, the launch
configuration and scaling groups of Auto Scaling.

©2013-2022 Tencent Cloud. All rights reserved.

Page 218 of 275

Tencent Cloud Lighthouse

Authorizable Resource Types：

Last updated 2022-05-12 12:24:12
With Cloud Access Management (CAM), you can grant resource-level permissions for users.
In CAM, the types of Lighthouse resources that can be authorized are as follows:
Resource Type

Resource Description Method in Authorization Policy

Instance

qcs::lighthouse:$region:$account:instance/*

Image

qcs::lighthouse:$region:$account:blueprint/*

Snapshotqcs::lighthouse:$region:$account:snapshot/*Key

qcs::lighthouse:$region:$account:keypair/*

The table below lists the API operations of Lighthouse that currently support resource-level permissions, as well as
their resources and condition keys. When setting the resource path, you need to replace the variable parameters suchas $region and $account with your actual parameter values. You can also use the * wildcard in the path.
For relevant concepts such as region , action , account , and resource in CAM policies, see
Resource Description Method.
Note:
Lighthouse API operations not listed here do not support resource-level permissions. You can still authorize a user toperform such an API operation, but you must specify * as the resource element of the policy statement.

Instance
API

Resource

ModifyInstancesBundle

qcs::lighthouse:$region:$account:instance/$instanceId

RenewInstances

qcs::lighthouse:$region:$account:instance/$instanceId

IsolateInstances

qcs::lighthouse:$region:$account:instance/$instanceId

ModifyInstancesAttributeqcs::lighthouse:$region:$account:instance/$instanceId

ModifyInstancesRenewFlag

qcs::lighthouse:$region:$account:instance/$instanceId

RebootInstances

qcs::lighthouse:$region:$account:instance/$instanceId

ResetInstance

qcs::lighthouse:$region:$account:instance/$instanceId©2013-2022 Tencent Cloud. All rights reserved.

Page 219 of 275

Tencent Cloud Lighthouse

ResetInstancesPassword

qcs::lighthouse:$region:$account:instance/$instanceId

StartInstances

qcs::lighthouse:$region:$account:instance/$instanceId

StopInstances

qcs::lighthouse:$region:$account:instance/$instanceId

TerminateInstances

qcs::lighthouse:$region:$account:instance/$instanceId

DescribeInstancesDeniedActions

qcs::lighthouse:$region:$account:instance/$instanceId

DescribeInstancesReturnable

qcs::lighthouse:$region:$account:instance/$instanceId

DescribeInstancesTrafficPackages

qcs::lighthouse:$region:$account:instance/$instanceId

DescribeInstanceVncUrl

qcs::lighthouse:$region:$account:instance/$instanceId

DescribeResetInstanceBlueprints

qcs::lighthouse:$region:$account:instance/$instanceId

SnapshotAPI

Resource

CreateInstanceSnapshot

qcs::lighthouse:$region:$account:instance/$instanceIdqcs::lighthouse:$region

DeleteSnapshots

qcs::lighthouse:$region:$account:snapshot/$snapshotId

ApplyInstanceSnapshot

qcs::lighthouse:$region:$account:instance/$instanceIdqcs::lighthouse:$region

DescribeSnapshotsDeniedActions

qcs::lighthouse:$region:$account:snapshot/$snapshotId

ModifySnapshotAttributeqcs::lighthouse:$region:$account:snapshot/$snapshotId

FirewallAPI

Resource

CreateFirewallRules

qcs::lighthouse:$region:$account:instance/$instanceId

DeleteFirewallRules

qcs::lighthouse:$region:$account:instance/$instanceId

DescribeFirewallRules

qcs::lighthouse:$region:$account:instance/$instanceId

ModifyFirewallRules

qcs::lighthouse:$region:$account:instance/$instanceId©2013-2022 Tencent Cloud. All rights reserved.

Page 220 of 275

Tencent Cloud Lighthouse

ModifyFirewallRuleDescription

qcs::lighthouse:$region:$account:instance/$instanceId

Key
API

Resource

DeleteKeyPairs

qcs::lighthouse:$region:$account:keypair/$keypairId

AssociateInstancesKeyPairs

qcs::lighthouse:$region:$account:instance/$instanceIdqcs::lighthouse:$r

DescribeInstanceLoginKeyPairAttributeqcs::lighthouse:$region:$account:instance/$instanceId

DisassociateInstancesKeyPairs

qcs::lighthouse:$region:$account:instance/$instanceIdqcs::lighthouse:$r

ModifyInstancesLoginKeyPairAttributeqcs::lighthouse:$region:$account:instance/$instanceId

Image
API

Resource

CreateBlueprint

qcs::lighthouse:$region:$account:instance/$instanceIdqcs::lighthouse:$region:$acco

DeleteBlueprints

qcs::lighthouse:$region:$account:blueprint/$blueprintId

DescribeBlueprintInstances

qcs::lighthouse:$region:$account:instance/$instanceId

ModifyBlueprintAttributeqcs::lighthouse:$region:$account:blueprint/$blueprintId

BundleAPI

Resource

DescribeModifyInstanceBundles

qcs::lighthouse:$region:$account:instance/$instanceId

BillingAPI

Resource©2013-2022 Tencent Cloud. All rights reserved.

Page 221 of 275

Tencent Cloud Lighthouse

InquirePriceRenewInstances

qcs::lighthouse:$region:$account:instance/$instanceId©2013-2022 Tencent Cloud. All rights reserved.

Page 222 of 275

Tencent Cloud Lighthouse

Authorization Policy Syntax：

Last updated 2022-05-12 12:24:12

Policy syntax{"version":"2.0","statement":[©2013-2022 Tencent Cloud. All rights reserved.

Page 223 of 275

Tencent Cloud Lighthouse{"effect":"effect","action":["action"],"resource":["resource"],"condition": {"key":{"value"}}}]}
Element

Description

version

It is required. Currently, only the value "2.0" is allowed.

statement

It describes the details of one or more permissions. It contains a permission or permission set of
multiple other elements such as `effect`, `action`, `resource`, and `condition`. One policy has onlyone `statement`.

effectaction

It is required and describes whether the statement result is an "allow" or an explicit "deny".
It is required and describes the allowed or denied action (operation). An operation can be an API(prefixed with "name") or a feature set (a set of specific APIs prefixed with "permid").
It is required and describes the details of authorization. A resource is described in a six-segment

resource

format. Detailed resource definitions vary by product. For more information on how to specify aresource, see the product documentation corresponding to the resource statement you are writing.
It is optional and describes the condition for the policy to take effect. A condition consists of an

condition

operator, action key, and action value. A condition value may contain information such as time and
IP address. Some services allow you to specify additional values in a condition.

Sample CAM Policy for Lighthouse
The following policy grants the permission to view the list of Lighthouse instances and prohibits the user xxxxxx
from viewing the details of the instance lhins-e31oxxxx .

©2013-2022 Tencent Cloud. All rights reserved.

Page 224 of 275

Tencent Cloud Lighthouse{"version": "2.0","statement": [{"effect": "allow","action": ["lighthouse:DescribeInstances"],"resource": ["*"]©2013-2022 Tencent Cloud. All rights reserved.

Page 225 of 275

Tencent Cloud Lighthouse},{"effect": "deny","action": ["lighthouse:DescribeInstances"],"resource": ["qcs::lighthouse::uin/xxxxxx:instance/lhins-e31oxxxx"]}]}

Lighthouse Resource Path
Each Lighthouse policy statement has its own applicable resources generally in the following format:©2013-2022 Tencent Cloud. All rights reserved.

Page 226 of 275

Tencent Cloud Lighthouse

qcs:project_id:service_type:region:account:resource
project_id: Describes the project information, which is only used to enable compatibility with legacy CAM logic andcan be left empty.
service_type: Describes the product abbreviation such as lighthouse .
region: Describes the region information, such as ap-guangzhou .
account: Describes the root account of the resource owner, such as uin/xxxxxx .
resource: Detailed resource information of each product, for example, instance/instance_id1 or instance/*.

©2013-2022 Tencent Cloud. All rights reserved.

Page 227 of 275

Tencent Cloud Lighthouse

Transfering File
Uploading Local Files to Lighthouse：

Last updated 2022-09-26 11:28:02
This document describes how to upload local files to a Lighthouse instance or download the files on it to your local filesystem.

Transfer Method
Using TencentCloud Automation Tools to transfer files
You can use TencentCloud Automation Tools to upload a local file to a Lighthouse instance or download a file on it toyour local file system through the browser.
Operation

Use Limits
Only a text file of up to 36 KB in size can be

Uploading a file to a Lighthouse instanceuploaded.
Only the uploaded files can be downloaded.

Log in to a Lighthouse instance with WebShell for file
upload/download

Only Lighthouse instances on Linux are supported.
Files can be uploaded only to the `home >lighthouse` directory.

Other methods
Follow the instructions below based on your local operating system and the operating system of the purchased
Lighthouse instance.
Local OSLighthouse Instance OS (Linux)

Lighthouse Instance OS (Windows)

Upload files to a Lighthouse instance via
Windows

Linux

WinSCP﻿

Upload files to a Lighthouse instance via remote

Upload files to a Lighthouse instance via
FTP﻿

desktop

Upload files to a Lighthouse instance via

Upload files to a Lighthouse instance via remote

SCP﻿

desktop

Upload files to a Lighthouse instance via
macOS

FTP﻿

©2013-2022 Tencent Cloud. All rights reserved.

Upload files to a Lighthouse instance via remote

Page 228 of 275

Tencent Cloud Lighthousedesktop

For example, if you use Windows on your local computer and have a Linux Lighthouse instance, you can use WinSCP
to upload files to the instance.

Subsequent Operations
If you need to back up important business data or personal files, you can create a snapshot of the Lighthouseinstance's system disk after uploading the files to the instance. For more information on the use cases and usage
methods of snapshots, see Managing Snapshot.

Problem?
Submit a ticket or use related documentation to troubleshoot.

©2013-2022 Tencent Cloud. All rights reserved.

Page 229 of 275

Tencent Cloud Lighthouse

Uploading File from Windows to LinuxLighthouse Instance via WinSCP：

Last updated 2022-05-12 12:24:12

Overview
WinSCP is an open-source graphical SFTP client that uses SSH in Windows environment and supports SCP protocol.
Its main feature is to copy files securely between the local and remote computers. Unlike uploading codes via FTP,
you can directly use your instance account in WinSCP to access the instance without any additional configuration.

Prerequisites
WinSCP has been downloaded and installed on the local computer. Download the latest WinSCP.
You have obtained the Lighthouse instance admin account and password.
The default admin username of a Linux Lighthouse instance is root , and that of an Ubuntu instance is ubuntu .
You can also customize the username.
If you forgot your password, you can reset it.

Directions
Logging in to WinSCP
1. Open WinSCP, and the "WinSCP Login" box pops up, as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 230 of 275

Tencent Cloud Lighthouse

2. Configure the following parameters:
Protocol: Either SFTP or SCP.
Hostname: Lighthouse instance public IP, which can be viewed in the Lighthouse console.
Port: 22 by default.
Username: Lighthouse instance system username.
Password: Password of the Lighthouse instance system username.
3. Click Login to enter the WinSCP file transfer window as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 231 of 275

Tencent Cloud Lighthouse

Uploading files
1. In the right pane of the "WinSCP" file transfer interface, select the directory where the files are to be stored on theserver, such as "/user".
2. In the left pane, select the directory where the files are stored on the local computer, such as F:\\SSLcertificate\\Nginx , and then select the files to be transferred.
3. In the left menu, click Upload as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 232 of 275

Tencent Cloud Lighthouse

4. In the "Upload" box that pops up, confirm the files to be uploaded and the remote directories, and click OK to upload
the files from the local computer to the Lighthouse instance.

Downloading files
1. In the left pane of the "WinSCP" file transfer page, select the local computer directory to store the downloaded files,
such as "F:\\SSL certificate\\Nginx".
2. In the right pane, select the directory where the files locate, such as /user , and then select the file to betransferred.
3. In the right menu, click Download as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 233 of 275

Tencent Cloud Lighthouse

4. In the "Download" box that pops up, confirm the files to be downloaded and the remote directories, and click OK to
download the files from the Lighthouse instance to the local computer.

©2013-2022 Tencent Cloud. All rights reserved.

Page 234 of 275

Tencent Cloud Lighthouse

Uploading File from Windows to Lighthouse
Instance via FTP：

Last updated 2022-05-12 12:30:33

Overview
This document describes how to use the FTP service to upload files from a local Windows computer to a Lighthouseinstance or download files from a Lighthouse instance to a local file system.

Prerequisites
You have set up the FTP service in the Lighthouse instance.

Directions
Connecting to Lighthouse instance
1. Download and install the open-source FileZilla locally.
Note:
If you use version 3.5.3 of FileZilla to upload files via FTP, the upload may fail. We recommend you download and use
versions 3.5.1 or 3.5.2 of FileZilla from its official website.
2. Open FileZilla.
3. In the FileZilla window, enter host, user name, password, and port information, and click Quickconnect, as shown
below:©2013-2022 Tencent Cloud. All rights reserved.

Page 235 of 275

Tencent Cloud Lighthouse

Configuration description:
Host: Lighthouse instance public IP, which can be viewed in the Lighthouse console.
Username: FTP user account configured during FTP service setup. Here, ftpuser1 is taken as an example in
the image.
Password: Password of the FTP user account configured during FTP service setup.
Port: FTP listening port, which is 21 by default.
After the connection is successful, you can view the files on the remote Lighthouse instance site.

Uploading files
In the lower-left Local site window, right-click the local file to be uploaded and select Upload to upload it to a LinuxLighthouse instance, as shown below:
Note:
The Lighthouse FTP path does not support the automatic decompression or deletion of uploaded compressed tar files.
The remote site path is the default path for uploading files to a Linux Lighthouse instance.

©2013-2022 Tencent Cloud. All rights reserved.

Page 236 of 275

Tencent Cloud Lighthouse

Downloading files
In the lower-right Remote site window, right-click the Lighthouse instance file to be downloaded and choose
Download to download it to a local directory as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 237 of 275

Tencent Cloud Lighthouse©2013-2022 Tencent Cloud. All rights reserved.

Page 238 of 275

Tencent Cloud Lighthouse

Uploading File from Windows to Windows
Lighthouse Instance via Remote Desktop
Connection：

Last updated 2022-05-12 12:24:13

Overview
Remote Desktop Connection is commonly used for file upload to a Windows Lighthouse instance. This document
describes how to upload files from a Windows computer to a Windows Lighthouse instance by using Remote Desktop
Connection or download files from the instance to a local file system.

Prerequisites
You have obtained the Lighthouse instance admin account and password.
The default admin account of a Windows Lighthouse instance is Administrator .
If you forgot the login password, you can reset it.

Directions
Note:
This document uses a Windows 7 computer as an example. The procedure may vary slightly according to theoperating system version.

Obtaining public IP
Log in to the Lighthouse console and get the public IP of the target Lighthouse instance on the Instances page.

Uploading files
1. Press Windows + R on the local computer to open the Run window.
2. In the Run pop-up window, enter mstsc, and click OK to open the Remote Desktop Connection dialog box.
3. In the pop-up dialog box, enter the public IP address of the Lighthouse instance and click Show Options as shown
below:©2013-2022 Tencent Cloud. All rights reserved.

Page 239 of 275

Tencent Cloud Lighthouse

4. On the General tab, enter the Lighthouse instance public IP address and username "Administrator" as shown
below:

5. Select the Local Resources tab and click More, as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 240 of 275

Tencent Cloud Lighthouse

6. In the Local devices and resources pop-up window, select the Drives module, check a local disk that contains
files to upload to the Windows Lighthouse instance, and click OK as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 241 of 275

Tencent Cloud Lighthouse

7. After the local configuration is completed, click Connect to log in to Windows Lighthouse instance remotely.
8. Click> Computer in the Windows Lighthouse instance, and you can see the local disk mounted as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 242 of 275

Tencent Cloud Lighthouse

9. Double-click to open the attached local disk. Copy desired local files to another drive of the Windows Lighthouseinstance.
For example, copy the file A from the local drive E to the C drive of the Windows Lighthouse instance.

Downloading files
To download files from the Windows Lighthouse instance to your computer, you only need to copy desired files fromthe instance to the attached local disk.

©2013-2022 Tencent Cloud. All rights reserved.

Page 243 of 275

Tencent Cloud Lighthouse

Uploading File from Linux or macOS to LinuxLighthouse Instance via SCP：

Last updated 2022-08-15 18:03:47

Overview
The document uses a Lighthouse instance with CentOS 7.6 as an example to describe how to upload and download
files via SCP.
Note:
To get started, ensure that you have configured the Lighthouse instance admin account and password. If you haven't
set or forgot the password, please reset password.

Directions
Obtaining a public IP
Log in to the Lighthouse console and obtain the public IP of the target Lighthouse instance on Instances page.

Uploading files
1. Run the following commands on the local server, and upload the files to the Linux-based Lighthouse instance.

©2013-2022 Tencent Cloud. All rights reserved.

Page 244 of 275

Tencent Cloud Lighthouse

scp Local file address Lighthouse instance account@Lighthouse instance public IP/do
For example, you can run the following command to upload the local file /home/lnmp0.4.tar.gz to the same
directory of the Lighthouse instance whose public IP is 129.20.0.2 :©2013-2022 Tencent Cloud. All rights reserved.

Page 245 of 275

Tencent Cloud Lighthouse

scp /home/Inmp0.4.tar.gz root@129.20.0.2:/home/Inmp0.4.tar.gz
2. Enter yes and press Enter to confirm the upload and enter the login password to complete the upload.

Downloading files
Run the following command on the local server to download a file from a Linux-based Lighthouse instance.

©2013-2022 Tencent Cloud. All rights reserved.

Page 246 of 275

Tencent Cloud Lighthouse

scp Lighthouse instance account@Lighthouse instance public IP/domain name:LighthousFor example, you can run the following command to download the file /home/lnmp0.4.tar.gz from theLighthouse instance whose public IP is 129.20.0.2 to the same local directory:©2013-2022 Tencent Cloud. All rights reserved.

Page 247 of 275

Tencent Cloud Lighthouse

scp root@129.20.0.2:/home/Inmp0.4.tar.gz /home/Inmp0.4.tar.gz©2013-2022 Tencent Cloud. All rights reserved.

Page 248 of 275

Tencent Cloud Lighthouse

Uploading File from Linux or macOS to
Lighthouse Instance via FTP：

Last updated 2022-05-12 12:24:13

Overview
This document describes how to use the FTP service to upload files from a local Linux or macOS computer to a
Lighthouse instance.

Prerequisites
You have set up the FTP service in the Lighthouse instance.

Directions
Obtaining public IP
Log in to the Lighthouse console and get the public IP of the target Lighthouse instance on the Instances page.

Using FTP service on Linux
1. Run the following command to install the FTP service.
Note:
If the FTP service has already been installed on the local Linux computer, skip this step.

©2013-2022 Tencent Cloud. All rights reserved.

Page 249 of 275

Tencent Cloud Lighthouseyum -y install ftp
2. Run the following command to connect to the Lighthouse instance and enter the FTP service username andpassword as prompted.

©2013-2022 Tencent Cloud. All rights reserved.

Page 250 of 275

Tencent Cloud Lighthouse

ftp Lighthouse instance IP address
If the following interface appears, the connection has been established successfully.

©2013-2022 Tencent Cloud. All rights reserved.

Page 251 of 275

Tencent Cloud Lighthouse

Uploading and downloading file
Uploading file
Downloading fileRun the following command to upload a local file to the Lighthouse instance:©2013-2022 Tencent Cloud. All rights reserved.

Page 252 of 275

Tencent Cloud Lighthouse

put local-file [remote-file]For example, to upload the local `/home/1.txt` file to the Lighthouse instance, run the following command:©2013-2022 Tencent Cloud. All rights reserved.

Page 253 of 275

Tencent Cloud Lighthouse

put /home/1.txt 1.txt
Run the following command to download a file from the Lighthouse instance to a local directory.

©2013-2022 Tencent Cloud. All rights reserved.

Page 254 of 275

Tencent Cloud Lighthouse

get [remote-file] [local-file]For example, to download the `A.txt` file from the Lighthouse instance to the local `/home` directory, run the following
command.

©2013-2022 Tencent Cloud. All rights reserved.

Page 255 of 275

Tencent Cloud Lighthouse

get A.txt /home/A.txt

Using FTP service on macOS
1. Clickin the bottom-left corner and select Go > Connect to Server on the menu bar in the top-right corner.

©2013-2022 Tencent Cloud. All rights reserved.

Page 256 of 275

Tencent Cloud Lighthouse

2. In the Connect to Server window, enter ftp://Lighthouse instance IP address and click Connect
as shown below:

3. In the pop-up window, select Registered User, enter the FTP service username and password, and click
Connect.
If the following interface appears, the connection has been established successfully.

©2013-2022 Tencent Cloud. All rights reserved.

Page 257 of 275

Tencent Cloud Lighthouse

Uploading and downloading file
You can directly copy files to the FTP window in Finder to upload them.
To download files from the Lighthouse instance to your computer, you only need to copy desired files from the instanceto the attached local disk.

©2013-2022 Tencent Cloud. All rights reserved.

Page 258 of 275

Tencent Cloud Lighthouse

Uploading File from Linux to Windows
Lighthouse Instance via rdesktop：

Last updated 2022-05-12 12:24:13

Overview
rdesktop is an open source client for Remote Desktop Protocol (RDP) that allows a local computer to connect to a
Windows Lighthouse instance. This document describes how to use it to upload files from a Linux computer to a
Lighthouse instance with the Windows Server 2012 R2 operating system.

Prerequisites
You have obtained the Lighthouse instance admin account and password.
The default admin account of a Windows Lighthouse instance is Administrator .
If you forgot the login password, you can reset it.

Directions
Obtaining public IP
Log in to the Lighthouse console and get the public IP of the target Lighthouse instance on the Instances page.

Installing rdesktop
1. Open a terminal window and run the following command to download rdesktop. This step uses rdesktop v1.8.3 asan example.

©2013-2022 Tencent Cloud. All rights reserved.

Page 259 of 275

Tencent Cloud Lighthouse

wget https://github.com/rdesktop/rdesktop/releases/download/v1.8.3/rdesktop-1.8.3.t
If you want to install the latest version, visit the rdesktop page on GitHub to find it. Then replace the path in thecommand with that of the latest version.
2. Run the following commands to decompress the installation package and enter the directory.

©2013-2022 Tencent Cloud. All rights reserved.

Page 260 of 275

Tencent Cloud Lighthouse

tar xvzf rdesktop-1.8.3.tar.gz©2013-2022 Tencent Cloud. All rights reserved.

Page 261 of 275

Tencent Cloud Lighthouse

cd rdesktop-1.8.3
3. Run the following commands to compile and install rdesktop.

©2013-2022 Tencent Cloud. All rights reserved.

Page 262 of 275

Tencent Cloud Lighthouse./configure©2013-2022 Tencent Cloud. All rights reserved.

Page 263 of 275

Tencent Cloud Lighthousemake©2013-2022 Tencent Cloud. All rights reserved.

Page 264 of 275

Tencent Cloud Lighthousemake install
4. After the installation is complete, run the following command to check if rdesktop is successfully installed:©2013-2022 Tencent Cloud. All rights reserved.

Page 265 of 275

Tencent Cloud Lighthouse

rdesktop

Uploading files
1. Run the following command to specify the folder shared to the Lighthouse instance:©2013-2022 Tencent Cloud. All rights reserved.

Page 266 of 275

Tencent Cloud Lighthouse

rdesktop Lighthouse instance public IP-u Lighthouse instance account -p LighthousFor example, run the following command to share the /home folder on your local Linux computer with the specified
Lighthouse instance, and rename it as share .

©2013-2022 Tencent Cloud. All rights reserved.

Page 267 of 275

Tencent Cloud Lighthouse

rdesktop 118.xx.248.xxx-u Administrator -p 12345678 -r disk:share=/home

If the operation is successful, the Windows desktop will appear.
Clickin the lower-left corner and select My Computer to see a list of shared folders as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 268 of 275

Tencent Cloud Lighthouse

2. Double-click a shared folder to open it. Copy desired local files to another drive of the Windows Lighthouseinstance.
For example, copy the file A from the share folder to the C drive of the Windows Lighthouse instance.

Downloading files
To download files from the Windows Lighthouse instance to your computer, you only need to copy desired files fromthe instance to a shared folder.

©2013-2022 Tencent Cloud. All rights reserved.

Page 269 of 275

Tencent Cloud Lighthouse

Uploading File from macOS to Windows
Lighthouse Instance via MRD：

Last updated 2024-03-20 14:41:01

Overview
Microsoft Remote Desktop (MRD) is a remote desktop software developed by Microsoft. This document describes
how to use it on macOS to upload files to a Lighthouse instance with Windows Server 2012 R2 installed.

Prerequisites
You have downloaded and installed MRD on your local computer. Go to Microsoft Remote Desktop for Mac Beta to
download and install it.
MRD supports macOS 10.10 and later versions. Make sure your operating system is compatible.
You have obtained the Lighthouse instance admin account and password.
The default admin account of a Windows Lighthouse instance is Administrator .
If you forgot the login password, you can reset it.

Directions
Obtaining public IP
Log in to the Lighthouse console and get the public IP of the target Lighthouse instance on the Instances page.

Uploading files
1. Start MRD and click Add Desktop, as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 270 of 275

Tencent Cloud Lighthouse

2. In the Add Desktop pop-up window, follow the steps illustrated in the following image to select a folder to upload
and establish a connection with your Windows instance.

©2013-2022 Tencent Cloud. All rights reserved.

Page 271 of 275

Tencent Cloud Lighthouse

2.1 In the PC name text field, enter the public IP address of your Lighthouse instance.
2.2 Click Folders to redirect to the folder list.
2.3 Clickin the lower-left corner and select the folder to be uploaded in the pop-up window.
2.4 Check your list of folders to upload and click Add.
2.5 Retain the default settings for the other options and establish the connection.
Your entry has now been saved, as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 272 of 275

Tencent Cloud Lighthouse

3. Double-click the new entry. Enter your username and password for the Lighthouse instance and click Continue.
4. In the pop-up window, click Continue to establish the connection, as shown below:

If the connection is successful, the following page will appear:©2013-2022 Tencent Cloud. All rights reserved.

Page 273 of 275

Tencent Cloud Lighthouse

5. Clickin the lower-left corner and select My Computer to see a list of shared folders as shown below:©2013-2022 Tencent Cloud. All rights reserved.

Page 274 of 275

Tencent Cloud Lighthouse

6. Double-click a shared folder to open it. Copy desired local files to another drive of the Windows Lighthouseinstance.
For example, copy the file A from the folder to the C drive of the Windows Lighthouse instance.

Downloading files
To download files from the Windows Lighthouse instance to your computer, you only need to copy desired files fromthe instance to a shared folder.

©2013-2022 Tencent Cloud. All rights reserved.

Page 275 of 275