This topic describes how to install a Cloud Storage Gateway (CSG) image in a data
center to deploy a gateway.
Prerequisites
The image is downloaded to your local host.
Background information
You can deploy gateways in Alibaba Cloud or in data centers. To deploy a gateway in
a data center, you must install an image. Alibaba Cloud provides the following images:
VMware ESXi, Hyper-V, KVM, and Xen hypervisors. In this topic, the images of VMware
OVA, KVM, and Hyper-V are installed.
Install a VMware OVA image
You can use VMware vCenter to install a VMware OVA image.
Note VMware OVA images V1.0.30 and later support only VMware vCenter V6.0 or later.
- Log on to VMware vCenter.
- Find the local host, right-click its name, and then select Deploy OVF Template.
- Deploy an 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 gateways. 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:
- Create a gateway.
- Click the icon to create a gateway.
- Select Import existing disk image and click Forward.
- Select the CSG disk image and click Forward.
Note The 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.
- After the gateway is created, a new dialog box that allows you to initiate the installation
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 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 is listed on the homepage of Hyper-V Manager.
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.