This topic describes how to install a Cloud Storage Gateway (CSG) image in an on-premises data center to deploy virtual machines.

Prerequisites

You have downloaded the target image to your local host.

Background information

You can deploy CSG instances on Alibaba Cloud or in on-premises data centers. To deploy CSG instances in an on-premises data center, you must install the required image provided by Alibaba Cloud and deploy virtual machines in the on-premises data center first. Currently, the VMware ESXi, Hyper-V, KVM, and Xen hypervisors are supported. This topic describes how to install VMware OVA, KVM, and Hyper-V images.

Install a VMware OVA image

You can use the VMware vCenter system to install a VMware OVA image. This helps you deploy virtual machines.

Note Note that version 1.0.30 and later of OVA images only support VMware vCenter 6.0 and later.
  1. Log on to the VMware vCenter system.
  2. Find and right-click the target host and 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 deployed VM 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. Define where to store the files for the deployed OVF template, and click Next.
    7. Select a source network, map the network to a destination network, and 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 gateway console. 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. This helps you deploy virtual machines. virt-manager is an open-source desktop tool developed by Red Hat for managing virtual machines. You can install virt-manager in the Ubuntu operating system.

  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 virtual machine.
    1. Click the icon to create a virtual machine.
    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 CPU and memory, and click Forward.

      We recommend that you set the memory to no less than 8 GB, and the number of CPU cores to no less than 4.

    5. Enter the name of the virtual machine, select the Customize configuration before install check box, and then click Finish to create the virtual machine.
  4. After the virtual machine is created, a new window 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 virtual machine.

    After the virtual machine is started, you can log on to the gateway console. 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. This helps you deploy virtual machines.

  1. Open Hyper-V Manager, right-click to choose New > Virtual Machine.
  2. Review the Before You Begin content and click Next.
  3. Specify a name for the virtual machine, choose a location to store virtual machine 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 virtual machine and click Next.
  7. Click Finish.

    After the virtual machine is created, it is listed on the homepage of Hyper-V Manager.

    After the virtual machine is started, you can log on to the gateway console. The default username is root, and the default password is Alibaba#sgw#1030.