Before you create an on-premises gateway, you must meet the configuration requirements of virtual machines and learn the gateway installation methods.
Make sure that the virtual machine where you want to deploy the gateway meets the following hardware requirements:
- The virtual machine has at least 4 vCPUs.
- The virtual machine has at least 8 GB of memory.
- The virtual machine has at least 100 GB of disk space, which is required for installing the gateway image and storing system data.
- We recommend that you choose a thick LUN to provision cache disks to the virtual machine to achieve higher I/O throughput. The capacity of each cache disk must be 20 GB or larger.
The installation methods and installation files vary depending on the hypervisor. The following table shows the installation methods and installation file formats supported by different hypervisors.
|Hypervisor||Installation method||File format|
|VMware||You can import an OVA file to VMware to install a gateway.||ova|
|KVM||You can import a QCOW2 file to Virtual Machine Manager to install a gateway.||qcow2|
|HyperV||You can import a VHD file to Hyper-V to install a gateway.||vhd|
This topic describes how to deploy a gateway on-premises. To deploy a gateway on-premises, you must download the gateway image from the Alibaba Cloud CSG console, install the image, configure networks, and activate the gateway.
Cloud storage gateways can be deployed on-premises. Currently, you can deploy gateways on these platforms: VMware vSphere, Hyper-V, and KVM. You can download gateway images for different platforms from the CSG console.
The OVA image version 1.0.30 or later only supports vCenter 5.5 and later versions. You cannot deploy the gateway image from an ESXi client or Web interface. The Alibaba Cloud CSG console only provides the latest gateway image version.
Gateway images downloaded from the Alibaba Cloud CSG console cannot be imported to Elastic Compute Service (ECS) instances.
1.Log on to the Alibaba Cloud CSG console and create a gateway cluster. Note that the region of the cluster must be the same as that of the OSS bucket. The time zone of the gateway must be the same as that of the region. The following figures show how to create a gateway cluster:
2.Click the cluster that you have created to go to the Gateway Clusters page, and then click Create in the upper-right corner, as shown in the following figures:
Select and download the target gateway image. You can use the image to deploy gateways on-premises.（For more information, see https://help.aliyun.com/knowledge_detail/54123.html. The following figure shows how to download the image:
After the gateway image is installed, you must use the gateway CLI to assign an IP address to the gateway.
The gateway CLI allows you to configure basic gateway settings. The default username and password of the gateway CLI are root and Alibaba#sgw#1030, respectively.
After the gateway is activated, enter the username and password in the Linux terminal of the virtual machine and log on to the gateway CLI.
The gateway CLI supports these features: display system information, configure network settings, configure the NTP server, and restart services.
After you configure the network and DNS settings, you can then log on to the gateway.
Due to compatibility issues, we recommend that you set the language to English for the gateway CLI, as shown in the following figures:
Specify the static IP address: Choose Configure the Network >>> use static ip address in the gateway CLI.
Valid values of the netmask: 0 to 32.
Configure DNS: Choose Configure the Network >>> config dns in the CLI.
After the DNS configuration is completed, select network test to verify that the network configuration is correct.
If the result shows “test passed”, it indicates that the network configuration is correct, as shown in the following figure:
Configure NTP server: Select Configure the Date/time in the gateway CLI.
1、If no NTP servers are available, the Alibaba Cloud NTP server is selected by default.
In the Alibaba Cloud CSG console, when you click Next on the Image Download page, a dialog box appears verifying that you have deployed the gateway and specified the IP address.
3、Click OK to go to the Gateway Activation page. Specify the required information to activate the gateway, as shown in the following figure:
Note: To use this method to activate a gateway, you must make sure that the gateway can access the Internet through the assigned IP address and can be logged on from the current browser.
Click OK to go to the checkout page. Confirm the order and settle the payment.
4、Enter the required information and click OK to activate the gateway.
After the gateway is activated, you can log on to the gateway. Since it is the first time that you have logged on to the gateway, you are required to enter the AccessKey information in the dialog box. Make sure that the AccessKey is the same as the one used to create the gateway in the Alibaba Cloud CSG console. You can use the gateway only after you enter the AccessKey information.
Note: To activate an on-premises gateway, make sure that the account that owns the AccessKey has these permissions: AliyunHCSSGWFullAccess and AliyunOSSFullAccess.
5、If you failed to activate the gateway by using this method, download a certificate to activate the gateway, as described in the following example:
Step 1: The following figure shows an inactivated gateway. Click More and select Buy in the Actions column to purchase the gateway. After you settle the payment, click Download Certificate, as shown in the following figure:
Step 2: Open your browser and enter “https://the-IP-address-of-the-gateway” into the address bar to go to the CSG logon page, as shown in the following figure:
1、Before you register the gateway on the logon page, make sure that the network configuration is correct. The status of the network test must be “test passed”.
2、Use the certificate that is downloaded by following the procedure described in the Deploy a gateway on-premises topic.
3、The AccessKey must be the same as the one used to log on to the Alibaba Cloud CSG console to create the gateway, as described in the Deploy a gateway on-premises topic.
4、 You can specify a custom username and password.
Step 3: Click Upload Certificate to upload the certificate, as shown in the following figure:
Step 4: Enter the required information to register the gateway, as shown in the following figure:
Step 5: Log on to the gateway and check the status of the gateway on the About page. The gateway is activated, as shown in the following figure:
Step 6: The gateways that you have created are listed on the Gateway Cluster page. The status of a gateway is Activated if it is activated. The billing method of a gateway is displayed in the Payment Type column, as shown in the following figure:
Step 7: After the gateway is created, you can activate, upgrade, and delete the gateway, edit the gateway name and description, and renew the subscription. You can also download the certificate and image and upload a support bundle, as shown in the following figure:
Open your browser, enter “https://the-IP-address-of-the-gateway” into the address bar, enter the username and password, and click OK to log on to the gateway, as shown in the following figure: