This topic describes how to install a Cloud Storage Gateway (CSG) image in a data center to deploy a gateway.
Prerequisites
A gateway image is downloaded to your local host. For more information, see Step 1: Download an image.
Background information
You can deploy gateways on Alibaba Cloud or in data centers. To deploy a gateway in a data center, you must install a gateway image. CSG provides the gateway images for the following platforms: VMware ESXi, Hyper-V, KVM, and Xen. This topic covers the installation of VMware OVA, KVM, and Hyper-V images.
Install a VMware OVA image
You can use VMware vCenter to install a VMware OVA image.
VMware OVA images of CSG V1.0.30 and later support only VMware vCenter V6.0 and later.
Log on to VMware vCenter.
Find the local host, right-click its name, and then select Deploy OVF Template.
Deploy an Open Virtualization Format (OVF) template.
Select an OVF template and click Next.
Enter the name of the OVF template, select the deployment location, and then click Next.
Select a resource where you want to run the OVF template, and then click Next.
Verify the OVF template details and click Next.
Click Accept to accept the end user license agreement, and then click Next.
Specify a location where you want to store the files for the OVF template, and click Next.
Select a source network, map the network to a destination network, and then click Next.
Specify the properties of the OVF template, and click Next.
Click Finish to deploy the OVF template.
After the OVF template is deployed, you can log on to the command-line interface (CLI) of the gateway. The default username is root, and the default password is Alibaba#sgw#1030.
Install a KVM image
You can use the virt-manager tool to install a KVM image. virt-manager is an open source desktop tool developed by Red Hat to manage virtual machines (VMs). You can install virt-manager on Ubuntu.
Run the following command to install virt-manager:
sudo apt-get install qemu-kvm libvirt-bin virt-manager bridge-utils
Run the following command to start virt-manager:
virt-manager
Create a gateway VM.
Click the icon to create a gateway VM.
Select Import existing disk image and click Forward.
Select the CSG disk image and click Forward.
NoteThe image file extension must be .qcow2.
Configure the CPU and memory, and click Forward.
We recommend that you set the memory to at least 8 GB and the number of CPU cores to at least 4 cores.
Enter the name of the gateway, select Customize configuration before install, and then click Finish to create the gateway VM.
After the gateway VM is created, a new dialog box appears.
Click IDE Disk 1 to configure disk settings.
Set Disk bus to VirtIO.
Set Storage format to qcow2.
Click NIC :d7:41:17. Set Device model to virtio and click Apply.
Click Begin Installation to start the gateway.
After the gateway is started, you can log on to the gateway CLI. The default username is root, and the default password is Alibaba#sgw#1030.
Install a Hyper-V image
You can use Hyper-V Manager to install a Hyper-V image.
Right-click an available Hyper-V manager and choose .
On the Before You Begin tab, click Next.
Specify a name for the gateway, choose a directory to store gateway files, and then click Next.
Select Generation 1 and click Next.
Set the memory size and click Next.
Select a vSwitch for the gateway and click Next.
Select the image file and click Next.
Click Finish.
After the gateway is created, it appears on the Virtual Machines list.
After the gateway is started, you can log on to the gateway CLI. The default username is root, and the default password is Alibaba#sgw#1030.