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.
  1. Log on to VMware vCenter.
  2. Find the local host, right-click its name, and then select Deploy OVF Template.
  3. Deploy an OVF template.
    1. Select an OVF template and click Next.
    2. Enter the name of the OVF template, select the deployment location, and then click Next.
    3. Select a resource where you want to run the OVF template, and then click Next.
    4. Verify the OVF template details and click Next.
    5. Click Accept to accept the end user license agreement, and then click Next.
    6. Specify a location where you want to store the files for the OVF template, and click Next.
    7. Select a source network, map the network to a destination network, and then click Next.
    8. Specify the properties of the OVF template, and click Next.
    9. 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.

  1. Run the following command to install virt-manager:
    sudo apt-get install qemu-kvm libvirt-bin virt-manager bridge-utils
  2. Run the following command to start virt-manager:
    virt-manager
  3. Create a gateway.
    1. Click the icon to create a gateway.
    2. Select Import existing disk image and click Forward.
    3. Select the CSG disk image and click Forward.
      Note The image file extension must be .qcow2.
    4. 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.

    5. Enter the name of the gateway, select Customize configuration before install, and then click Finish to create the gateway.
  4. After the gateway is created, a new dialog box that allows you to initiate the installation appears.
    1. Click IDE Disk 1 to configure disk settings.
      • Set Disk bus to VirtIO.
      • Set Storage format to qcow2.
    2. Click NIC :d7:41:17. Set Device model to virtio and click Apply.
  5. 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.

  1. Right-click Hyper-V Manager and choose New > Virtual Machine.
  2. On the Before You Begin tab, click Next.
  3. Specify a name for the gateway, choose a directory to store gateway files, and then click Next.
  4. Select Generation 1 and click Next.
  5. Set the memory size and click Next.
  6. Select a vSwitch for the gateway and click Next.
  7. Select the image file and click Next.
  8. 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.