This topic describes how to install a Cloud Storage Gateway (CSG) image to deploy a virtual machine (VM) in your on-premises data center.
Prerequisites
You have downloaded the image file to your local host. For more information, see Download an image.
Background information
You can deploy Cloud Storage Gateway (CSG) on Alibaba Cloud or in an on-premises data center. To deploy CSG in your on-premises data center, you must first deploy a virtual machine (VM) by using an image file provided by Alibaba Cloud. CSG currently supports VMware ESXi, Hyper-V, KVM, and Xen VMs. This topic provides installation examples for VMware OVA, KVM, and Hyper-V images.
Install the KVM image
You can use Virtual Machine Manager (virt-manager) to install the KVM image and deploy the CSG VM. virt-manager is an open-source virtualization management application from Red Hat. You can install it 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 VM.
-
Click the
icon to create a VM. -
Select Import existing disk image and click Forward.
-
Provide the path to the CSG disk image and click Forward.
NoteThe image file must have a .qcow2 extension.
In the Provide the existing storage path field, enter the path of the qcow2 image file, such as
/data2/img/sgw_block_kvm-20181024140924.qcow2. Set both OS type and Version to Generic, and then click Forward. -
Configure the CPU and memory for the CSG VM, and then click Forward.
Allocate at least 8 GB of memory and 4 CPU cores.
-
Enter a name for the CSG VM, select Customize configuration before install, and then click Finish to create the VM.
-
-
After the VM is created, configure the following advanced settings.
-
Select IDE Disk 1 and configure the disk settings.
-
Set Disk bus to VirtIO.
-
Set Storage format to qcow2.
-
-
Select NIC :d7:41:17, set Device model to virtio, and then click Apply.
-
-
Click Begin Installation to start the CSG VM.
After the VM is started, you can log on to the command-line interface (CLI). The default username is root and the default password is Alibaba#sgw#1030.
Install the Hyper-V image
You can use Hyper-V Manager to install the Hyper-V image and deploy the CSG VM.
-
Right-click an available Hyper-V host and select .
-
On the Before You Begin page, click Next.
-
Specify a name for the VM, select a location to store the VM files, and then click Next.
-
Select Generation 1 and click Next.
-
Assign memory and click Next.
Set Startup memory to 8192 MB.
-
Select a configured virtual switch and click Next.
-
Connect a virtual hard disk and click Next.
On the Connect Virtual Hard Disk page, select Use an existing virtual hard disk. In the Location field, enter the path to the downloaded gateway image VHD file.
-
Click Finish.
The summary page displays the VM configuration: Name: New Virtual Machine, Generation: Generation 1, Memory: 8192 MB, Network: switch2, and Hard Disk:
E:\wp_image\1.7.4\fleimg-20211021115206.vhd(VHD, dynamically expanding).After the VM is created, it appears in Hyper-V Manager.
By default, the new VM is named New Virtual Machine and its state is Off.
After you start the VM, you can log on to the command-line interface (CLI). The default username is root and the default password is Alibaba#sgw#1030.