Before you begin, you will to have access to Google Storage for Developers and you will need to download the gsutil and transfer the tarball to your ESX host. The test was performed on an ESX 4.1 host, but I do not see why it will not work on ESX 4.0.
1. Extract the contents of gsutil.tar.gz
tar -zxvf gsutil.tar.gz
2. Edit .bashrc
Add the following two lines:
By default, gsutil requires you to be running python 2.5.1 or greater. ESX 4.1 only comes with python 2.4.3. What I found is that for the basic operations, you actually do not need 2.5.1 and you can edit the gsutil utility to not check for the version.
3. Edit gsutil located in /root/gsutil/gsutil and change the following on line 1137
To: 4. Login to Google Storage for Developers, you will need to setup key management under "Google Storage Manager" tab. This will be necessary for the next step.
5. For the first time, you will need to run gsutil to setup boto configuration file which will contain your Google access key ID and secret.
To start using Google Storage, you will need to first create a bucket:
We can now list the bucket that was just created:
We can also see the new bucket using Google Storage Manager browser:
Upload to Google Storage:
We can verify by listing the contents of the bucket:
We can also verify by viewing the bucket on Google Storage Manager: Getting Started Guide for Google Storage. I was not able to get gsutil working on ESXi 4.1, because of missing python modules that were needed. I spent some time trying to copy existing modules from class ESX 4.1, but it did not resolve all dependencies.