To deploy a Unified Access Gateway instance to the Compute Engine, you must upload a Unified Access Gateway appliance disk image to the Google Cloud Platform.
Procedure
-
Download the Unified Access Gateway
.ovaimage file, version 2103 or later, from Customer Connect. -
Open a PowerShell command window and run the following command to extract the
.vmdkfile from the previously downloaded.ovafile.- ova-filename is the
.ovaimage file which is downloaded from Customer Connect. - target-location is the location to which the
.vmdkfile is extracted.
Windows Ubuntu
For example,expand-7zip ova-filename target-locationeuc-unified-access-gateway-22.12.0.0-42741890_OVF10.ovais the downloaded file, where,22-12is the version number and42741890is the build number. To extract the.vmdkfile toC:\temp, run the following command:expand-7zip C:\temp\euc-unified-access-gateway-22.12.0.0-42741890_OVF10.ova C:\temp\
For example,tar -xvf ova-filenametar -xvf euc-unified-access-gateway-22.12.0.0-42741890_OVF10.ova - ova-filename is the
-
Set the following variables.
- $gcImageFile is the filename of the
.vmdkfile extracted in step 2. - $gcImageFolder is the folder path of the
.vmdkfile. For example:
$gcImageFolder="C:\temp" $gcImageFile="euc-unified-access-gateway-22.12.0.0-42741890-system.vmdk" $gcBucket="uag-appliance-images" $gcImageName=$gcImageFile.Replace("-system.vmdk","").Replace(".", "-") gcloud auth login gcloud config set project "my-project" - $gcImageFile is the filename of the
-
Create a Google Cloud storage bucket.
Note: You can also deploy Unified Access Gateway with compute image hosted on another Google Cloud project. In such case, specify the compute image name ($gcImageName) and the hosting Project ID during Unified Access Gateway deployment.
Run this command to create storage bucket in the same project.
gsutil mb -l us-east1 gs://$gcBucketRun this command to create storage bucket in a differnt project.
gsutil mb -l us-east1 gs://$gcBucket -p my-image-hosting-project -
Upload the
.vmdkimage to the Google Cloud storage bucket by using the following command:gsutil cp $gcImageFolder\$gcImageFile gs://$gcBucket -
Create the appliance image in the Compute Engine from the uploaded
.vmdk.Run this command to import image in the same project.
gcloud compute images import $gcImageName --source-file gs://$gcBucket/$gcImageFile --data-diskRun this command to import image in a different project.
gcloud compute images import $gcImageName --source-file gs://$gcBucket/$gcImageFile --data-disk --project my-image-hosting-projectNote: When you import a compute image, you can specify the subnet to be used for the temporary VMs created by the import tool. Use the flag
--subnetas shown in the following example.gcloud compute images import $gcImageName --source-file gs://$gcBucket/$gcImageFile --data-disk --subnet defaultFor more information about these commands, see Google Cloud SDK documentation.
Considering the example mentioned in the previous steps, the appliance image created in the Compute Engine is
euc-unified-access-gateway-22-12-0-0-42741890where22-12is the version number and42741890is the build number.
Was this page helpful?