[Tutorial] Detailed explanation of how to transfer cloud server from one platform to Tencent Cloud Server

Please indicate the source for reprinting: Senior Xiaofeng’s Big Bang Theory [xfxuezhang.cn]

 

Background introduction

        I currently have a Huawei cloud server, but it is about to expire. Considering that Tencent cloud servers are relatively cheap (you can see here: special product collection page ), I want to switch over. However, Huawei Cloud is full of things and environments. It would be too troublesome to rebuild it. Here we demonstrate how to use Tencent Cloud's official tools to copy the old server environment .

        I have completed the creation and bound the domain name, and now I will officially start.

environment migration

Tencent supports two methods:         " online migration " and " offline migration ". Online migration does not require shutting down the old server. Because the original server is still in use and the migration may take a long time, here we try online migration first. Note that you need to ensure that the remaining capacity of the cloud disk is sufficient.

It was originally the case of Alibaba Cloud

        This situation is more convenient, just choose this.

        After filling in the information, you can migrate with one click, which is very convenient. 

Originally this was the case with other cloud providers.

        But my old server is Huawei Cloud, so I have to migrate it manually.

        Again here, we choose the first one.

        Then go to the old server and execute the following command to install the migration client.

wget https://go2tencentcloud-1251783334.cos.ap-guangzhou.myqcloud.com/latest/go2tencentcloud.zip --no-check-certificate
unzip go2tencentcloud.zip
cd go2tencentcloud/go2tencentcloud-linux

chmod +x go2tencentcloud_x64
sudo ./go2tencentcloud_x64

        Note: If the old server is a Windows system, the steps are the same, except that the download link for go2tencentcloud is: go2tencentcloud.zip . After the download is completed, double-click to open go2tencentcloud_x64.exe.

        At this time, you will be prompted to enter SecretId and SecretKey:

        You can apply here: API Key Management

        If you need to verify, use the mouse to move here, a QR code will appear, scan it on WeChat, follow the prompts to bind, and finally get the MFA dynamic code, just enter it.

        After the acquisition and input are completed, wait for the client installation to complete.

        Note: If there is an error saying "Cannot find grub-install or grub2-install.", then install it first:

sudo apt install grub-pc -y

         After installation, re-execute the client installation instructions. 

(Depending on the size of your hard drive, the wait may be very long. Be careful not to disconnect from the network. If the network may be disconnected, it is recommended to use the screen command to run in the background)

        Then, we create a migration task: Migration source console

         Just wait for the migration to complete. If something goes wrong, check to see what the problem is.

        If you can't solve it yourself, you can create a work order.

 

Guess you like

Origin blog.csdn.net/sxf1061700625/article/details/132458482