Create a VCS instance
You can create VCS instances with default configurations in just a few steps or choose a suitable instance type according to your needs. Detailed information regarding to the instance types (e.g., resource numbers and sizes), please refer to VCS pricing.
TWSC provides the following image
- Linux:
- Ubuntu:20.04, 22.04, 24.04
- Centos:7.9
- Rocky Linux:8.9, 9.3
- Windows:
- Windows Server:
- 2016 (English/Chinese ver.)
- 2019 (English/Chinese ver.)
- 2022 (English/Chinese ver.)
- SQL Server Web
- Windows Server:
- Please refer to Pricing for specific instance specifications.
Before we get started
- If you haven't sign up for a user account, please sign up for TWSC first.
- If you would like to operate with TWSC portal, please first sign in to TWSC portal, and go to VCS Instance Management page.
- If you would like to operate with TWCC CLI, please install TWCC CLI first, and then sign in.
Create a Linux instance
- TWSC Portal
- TWCC CLI
- Go to VCS Instance Management page, and click +CREATE.
- Select an image type. TWSC provides commonly used OS images of Linux and Windows that you can create instances and use instantly. You may browse and select, or directly search for the name of the image name on the top left (e.g., Ubuntu, Windows Server, etc.).
After the first selection, system would record and display the image in Recent Used block to speed up your next selection. (Clearing the browser history will also clear this record.)
- Fill in the name and description of the VCS instance on the configuration page. Select the image version and hardware specifications you need, including different combinations of the number of CPUs, memory capacity, storage capacity the estimated cost, select turn "on" or "off" the deletion protection, then click NEXT: VIRTUAL NETWORK INTERFACE>.
If Deletion Protection is enabled, before deleting a resource, you need to disable the protection mechanism before continuing the deletion process, which can prevent the resource from being deleted by mistake and causing service interruption.
- On the VIRTUAL NETWORK INTERFACE page, you can attach Dependent VNI or Independent VNIs. For more detailed instructinos, please see this document.
- Use the default_network by system default or a customized virtual network (VNW).
- For the Dependent VNI, by default, Auto-assign Floating IP is disabled. If you need to connect to an instance from the Internet, please click Auto-assign Floating IP or Assign Static IP, we suggest you use security group to ensure the security of instance and reduce information security risks. Please refer to Elastic IP for usage details.
- Create a default security group, or select custom existing security groups (search and add multiple security groups with the + button on the right side).
- For the naming convention and rules of the default security group, see Security Group for more information.
- The maximum limit for security groups in a single project is 200. If you are unable to create one, it could be because you have reached the maximum limit. We recommend selecting an existing security group if you have previously created any, to minimize the creation of new ones.
- Please create a default VNW (default_network) if you are a first-time user, please refer to the operation steps: Create a default network. If there is a need for custom VNW, please refer to Create custom VNWs.
- The creation of VNWs is restricted to Tenant Admins. If you are a Tenant User, please contact the Tenant Admins of your project for assistance.
- On the Storage Information page, set the following disk information:
- System Disk:
- System Disk Size (GB): 5 disk sizes are provided - 100GB, 200GB, 300GB, 400GB, 500 GB.
- System Disk Type: HDD only.
- Data Disk:
- Data Disk Size (GB):You can freely set the disk size (up to 16TB).
- Data Disk Type: 4 data disk types are provided - HDD, SSD, HDD encryption, and SSD encryption.
- System Disk:
- Auto Scaling scales out new instances whose configuration is identical to the connected instance. Therefore,
- If the scaled out instance needs to be attached with a new data disk, please create a data disk when creating an instance.
- On the contrary, if the scaled out instance doesn't need to be automatically attached with a new data disk, please separately create an instance and a data disk, and then attach the disk to the instance.
- Then click Next: Key Pair>.
- The key pair is the certificate for connecting to your Linux instance. You can select an existing key pair or click +Create Key Pair to create a new one.
- Enter the name of the key pair and click OK.
The public key is not required and is intended to facilitate your workflow of using the same key in different clouds. Therefore, you may enter your public key in other clouds here and use it to access your TWSC instances.
- Once the key pair is created, please be sure to click Download immediately and save it properly. Without this key pair, you will not be able to connect to the VCS instance. After downloading, you can close the dialog window.
TWSC is not responsible for recording and managing your key pair. Please be sure to download and properly save the key pair pem
file. Without this key pair, you will not be able to connect to VCS instances.
- Click Next: ENVIRONMENT VARIABLES> to set the environment variables that meet your needs. For detailed explanation and setting examples, please refer to Set environment variables.
- Click Next: INITIAL SCRIPTS>. For detailed explanation and setting examples, please refer to this document.
- Then, click Next: Review & Create> to review the settings and estimated cost of the VCS instance. Click Create to complete, and wait a few minutes, the connection can be started when the state of the instance becomes
Ready
.
Command
Step 1. Please create a key pair first.
Step 2. Then, create a VCS instance.
twccli mk vcs -key # Key pair name
[-n] # VCS instance name
- The parameters in the square brackets [ ] are optional and the rest are required.
- If there are no optional parameters, instance will be created with the default settings (or configurations):
Image type and version | Instance type | Network | Specification |
---|---|---|---|
Ubuntu 16.04 | v.2xsuper | default_network | 0 GPU + 8 CPU + 064GB memory |
Example
- Use the key pair
key1
to create a VCS instance namedvcscli
.
twccli mk vcs -key key1 -n vcscli
- VCS instance naming conventions: must be lowercase letters or numbers, first character must be lowercase letters, and 6-16 characters long.
- If the instance name does not match the above rules, the following error message will appear:
Other related TWCC CLI commands:
twccli ls vcs -img # View all image specifications
twccli ls vcs -ptype # View all instance types and specifications
Create a Windows instance
- TWCC Portal
- TWCC CLI (TBD)
- Click Virtual Compute Service (VCS) to go to the VCS Instance Management page, and select +CREATE.
You can click on the asterisk to the left of the service in All Services and pin your frequently used services to My Favorite Services to speed up the process.
- Select an image type. TWSC provides commonly used OS images of Linux and Windows that you can create instances and use instantly. You may browse and select, or directly search for the name of the image name on the top left (e.g., Ubuntu, Windows Server, etc.).
After the first selection, system would record and display the image in Recent Used block to speed up your next selection. (Clearing the browser history will also clear this record.)
- Fill in the name and description of the VCS instance on the configuration page. Select the image version and hardware specifications you need, including different combinations of the number of CPUs, memory capacity, storage capacity the estimated cost, select turn "on" or "off" the deletion protection, then click NEXT: VIRTUAL NETWORK INTERFACE>.
If Deletion Protection is enabled, before deleting a resource, you need to disable the protection mechanism before continuing the deletion process, which can prevent the resource from being deleted by mistake and causing service interruption.
- On the VIRTUAL NETWORK INTERFACE page, you can attach Dependent VNI or Independent VNIs. For more detailed instructinos, please see this document.
- Use the default_network by system default or a customized virtual network (VNW).
- For the Dependent VNI, by default, Auto-assign Floating IP is disabled. If you need to connect to an instance from the Internet, please click Auto-assign Floating IP or Assign Static IP, we suggest you use security group to ensure the security of instance and reduce information security risks. Please refer to Elastic IP for usage details.
- Create a default security group, or select custom existing security groups (search and add multiple security groups with the + button on the right side).
For the naming convention and rules of the default security group, see Security Group for more information.
- Please create a default VNW (default_network) if you are a first-time user, please refer to the operation steps: Create a default network. If there is a need for custom VNW, please refer to Create custom VNWs.
- The creation of VNWs is restricted to Tenant Admins. If you are a Tenant User, please contact the Tenant Admins of your project for assistance.
- On the Storage Information page, set the following disk information:
- System Disk:
- System Disk Size (GB): 5 disk sizes are provided - 100GB, 200GB, 300GB, 400GB, 500 GB.
- System Disk Type: HDD only.
- Data Disk:
- Data Disk Size (GB):You can freely set the disk size (up to 16TB).
- Data Disk Type: 4 data disk types are provided - HDD, SSD, HDD encryption, and SSD encryption.
- System Disk:
- Auto Scaling scales out new instances whose configuration is identical to the connected instance. Therefore,
- If the scaled out instance needs to be attached with a new data disk, please create a data disk when creating an instance.
- On the contrary, if the scaled out instance doesn't need to be automatically attached with a new data disk, please separately create an instance and a data disk, and then attach the disk to the instance.
- Create Windows login password. Then click Next: Review & Create>.
- To protect your instance security, we recommend setting a strong password with at least 17 characters.
- This password is for private use and will not be recorded or managed by TWCC. Please be sure to keep it properly, without it, you will not be able to connect to your VCS instance.
- Then, click Next: Review & Create> to review the settings and estimated cost of the VCS instance. Click Create to complete, and wait a few minutes, the connection can be started when the state of the instance becomes
Ready
.
- After the VCS GPU instance is created, please refer to HowTo: Install NVIDIA GPU driver to enable GPU resources.
- After the VCS instance is created, the additional Data Disk needs to be initialized before it can be used. Please refer to the steps below:
- A user can only create and delete VCS instances 10 times respectively in one minute.