Run the SMC workshop in your own Alibaba Cloud account
Use this page when you are signing in as the Alibaba Cloud account owner instead of using a facilitator-provided RAM user. You create, pay for and remove the two lab instances, then follow Modules 1 to 4 to import the source and run the migration yourself.
The account owner can create, overwrite and delete any resource in the account. Do not run this lab in an account that contains production workloads. SMC overwrites the destination instance selected in the migration job.
SMC itself is free, but the two ECS instances, disks, public bandwidth, snapshots and temporary migration resources are billable. Estimate current Manila pricing, create a budget alert and complete the cleanup section when finished.
Before you start
- You have an Alibaba Cloud International account with a valid payment method.
- The account can create two pay-as-you-go ECS instances in Philippines (Manila).
- You downloaded this workshop project and can open
scripts/source-server-setup.sh. - In the website sidebar, set the participant ID to
ws01. Use that name for every resource below. - You recorded a strong ECS root password. Do not put it in screenshots or workshop notes.
Step 1 - Activate and authorize the required services
- Sign in with the Alibaba Cloud account owner and select Philippines (Manila).
- Open the ECS, VPC, Server Migration Center and Snapshot Service consoles. If a service displays an activation page, review the terms and activate it.
- In Server Migration Center, click Go to authorize if it appears. Confirm creation of the SMC service-linked role, return to SMC and verify that Migrate to Cloud > Server Migration opens normally.
- Open ECS Snapshot Service once and activate it if prompted.
- In ECS, open any available instance and choose Connect > Workbench. If prompted, authorize the ECS Workbench service-linked role.
Expected: SMC opens without an authorization banner, Snapshot Service is active and Workbench can open its connection page.
Step 2 - Choose a zone and create the network
- In the VPC console, select Philippines (Manila), then open VPC > Create VPC.
- Create VPC
ws-vpcwith CIDR10.10.0.0/16. - Create vSwitch
ws-vsw-awith CIDR10.10.1.0/24in a Manila zone that currently offers a general-purpose 2-vCPU/4-GiB ECS type. - In ECS, open Network & Security > Security Groups. Create the basic security group
ws-sginws-vpcand set its inner access policy to Accept. - Add private inbound rules for TCP 8080 and TCP 8703 from
10.10.0.0/16. Keep outbound HTTPS allowed so the SMC client can reach Alibaba Cloud service endpoints. - Use Workbench private connectivity for administration. Do not expose SSH or the sample website to
0.0.0.0/0.
Expected: the VPC contains one vSwitch and one security group; no public inbound rule is required for the lab.
Step 3 - Create and initialize the source ECS instance
- Open ECS Instances & Images > Instances and click Create Instance.
- Choose:
Setting Value Billing Pay-as-you-go Region / zone Philippines (Manila) / the ws-vsw-azoneInstance type Available general-purpose type with 2 vCPU and 4 GiB RAM Image Alibaba Cloud Linux 3, x86_64 System disk 40 GiB ESSD or an available equivalent Network ws-vpc,ws-vsw-a,ws-sgPublic IP Assign a public IPv4 address, pay-by-traffic. The SMC client needs outbound internet access in Module 2. Name / hostname wsNN-sourceCredential Your strong root password - Open Advanced Options > User Data. Copy the complete contents of
scripts/source-server-setup.sh. - At the top of the copied script, set
PARTICIPANT_IDtowsNNand replace the defaultDB_ROOT_PASSWORD. Follow the script comment: do not use spaces, quotes or backslashes in that database password. - Create the instance and record its instance ID and private IP.
- After 5-10 minutes, choose Connect > Workbench, sign in as
rootand run:test -f /opt/workshop/.setup-complete && echo READY systemctl is-active nginx mysqld mysql shopdb -N -e "SELECT COUNT(*) FROM orders;" curl -s http://localhost | grep "Legacy Shop"
Expected: READY, two active service results, 10000 orders and a Legacy Shop line containing your participant ID. If the marker is absent, inspect /var/log/workshop-setup.log before continuing.
Step 4 - Create the empty SMC destination
- Create a second pay-as-you-go Alibaba Cloud Linux 3 ECS instance in the same region, zone, VPC, vSwitch and security group.
- Use a compatible 2-vCPU/4-GiB class and a system disk of at least 40 GiB.
- Name it
wsNN-smc-target. Do not add user data or important files; SMC replaces its operating system and disks. - Record its instance ID and confirm that it is Running.
Step 5 - Continue with the workshop
You do not need the RAM-user Getting Started page. Continue directly to Module 1 - Explore the source server. Module 2 imports the source into SMC and Module 3 creates and runs the job.
- You have more console buttons than a workshop RAM user. Use only the actions named by the modules.
- Where a page says to contact the facilitator, stop and use the troubleshooting page before changing or deleting resources.
Step 6 - Clean up your account
- After validation, delete
wsNN-smc-job. Wait until it disappears, then delete thewsNN-sourcemigration source. - Release
wsNN-smc-targetandwsNN-sourceafter confirming that no retained data is required. - In ECS Images, delete the custom image named
IMAGE_FROM_SMC_<job-id>, then delete its backing snapshot. - Delete any unattached
SMC_Temp_Diskthat belongs to this job. - After no SMC job remains, delete
No_Delete_SMC_Transition_SecurityGroupif SMC created it inws-vpc. - Delete
ws-sg, thenws-vsw-a, thenws-vpcif they are not used by the DTS workshop. - Check ECS Images, Snapshots, Disks, Instances and the billing console one final time.
Both instances are running, the source application passes its checks, and you understand that the account owner is responsible for every action and charge.