When developers talk about cloud computing, names like Amazon EC2, Azure Virtual Machine, and Google Compute Engine come up constantly. But there's another player worth exploring: Alibaba Cloud. If you've been curious about trying it out, let's walk through creating your first virtual machine instance together.
The process is surprisingly straightforward once you know the steps. Whether you're testing a new project or exploring alternatives to your current cloud provider, getting an ECS (Elastic Compute Service) instance up and running takes just a few minutes.
Like most cloud platforms, you'll need an account before spinning up any resources. Alibaba Cloud offers a free trial program that gives you credits to experiment with their services. Make sure you've registered and activated your trial account before continuing with the steps below.
Access the Console
After logging into Alibaba Cloud with your trial credentials, you'll land on the main portal. Look for the console button and click it to access the management dashboard.
From the Products & Services menu, select Elastic Compute Service. This is where all your virtual machines live. On the left sidebar, click on Instances to see your current VMs (which will be empty if this is your first time).
Choose Your Region and Pricing Model
Select a region for your management console, then click Create Instance. You'll be presented with purchase options.
For newcomers, I recommend choosing Advanced Purchase and selecting the Pay-As-You-Go pricing model. This means you only pay for the hours your instance is actually running, which is perfect for testing and development. The subscription model charges a fixed fee upfront, which might drain your trial balance faster than you'd like.
Next, pick the actual datacenter region and availability zone where your virtual machine will physically exist. This affects latency and data residency, so choose a location close to your users or development team.
👉 Start your cloud journey with Alibaba Cloud's flexible ECS instances and get $300 in trial credits
Configure Instance Type and Network
Select an instance type from the available families. These are grouped by use case: general purpose, compute-optimized, memory-optimized, and so on. For your first instance, a basic general-purpose type works perfectly fine.
Under network settings, stick with the default VPC configuration. However, pay close attention to the Network Billing Type section. Here's something crucial: if you don't specify any network bandwidth, your instance won't receive a public IP address. That means you can't access it from the internet, which defeats the purpose for most use cases.
Set the bandwidth to at least 1 Mbps to get a public IP automatically assigned. You can always adjust this later based on your actual traffic needs.
Select Your Operating System
Choose your preferred OS from the image selection page. Alibaba Cloud offers various options including Windows Server, CentOS, Ubuntu, and other Linux distributions. For this guide, we're setting up a Linux instance, so pick whichever distribution you're most comfortable with.
Configure Storage
Select your storage type for the system disk. The OS will be installed here. You have options ranging from standard cloud disks to SSD cloud disks. SSDs offer faster boot times and better performance, though they cost more. For a test instance, standard storage is usually sufficient. You can also attach additional data disks if your application needs them.
Set Security Credentials
Under Security Settings, create a strong password for the root user account. You'll use these credentials to log into your instance later. Make it memorable but secure—you don't want unauthorized access to your cloud resources.
Give your instance a recognizable name like "TestServer" or "DevEnvironment" so you can identify it easily when you have multiple instances running.
Review and Launch
The overview pane shows a summary of your configuration including estimated costs. Double-check everything looks correct, then click Buy Now.
On the confirmation page, enable the checkbox to accept the general terms, then hit Activate. Your instance will start provisioning immediately.
Once activation completes, click the Console tab to view your instance details. Under the Instances section, you'll see your newly created VM with a status of "Running."
Click on the instance to see both its public and private IP addresses. The Connect button opens a browser-based VNC terminal.
Important: When you first connect, the system displays a VNC password. Write this down immediately—you'll need it for future connections, and there's no way to retrieve it later if you lose it.
After entering the VNC password, you'll see the Linux terminal prompt. Log in using "root" as the username along with the password you set during instance creation.
Success! You should see a welcome message confirming you're logged into your ECS Linux instance. From here, you can install software, configure services, or do whatever you need with your new virtual machine.
👉 Explore Alibaba Cloud's full range of cloud computing solutions and infrastructure services
Now that you've successfully launched your first ECS instance, you can start experimenting with cloud infrastructure. Try installing a web server, deploying a small application, or just exploring the Linux environment.
Remember that Pay-As-You-Go instances charge by the hour, so stop or delete the instance when you're not using it to conserve your trial credits. The management console makes it easy to start, stop, and monitor all your resources.
The cloud opens up possibilities that would be expensive or impractical with physical hardware. Whether you're learning, prototyping, or building production systems, you now have the foundation to move forward with Alibaba Cloud.