Installing Photon OS on Google Compute Engine
After you download the Photon OS image for GCE, log into GCE and install Photon OS.
Perform the following steps:
Create a New Bucket
Create a new bucket to store your Photon OS image for GCE.
Upload the Photon OS Image
While viewing the bucket that created, click the
Upload filesbutton, navigate to your Photon OS image and click the
When the upload finishes, you can see the Photon OS compressed image in the file list for the bucket that you created.
Create a New Image
To create a new image, click on
Computecategory in the left panel and then click on the
Enter a name for the image in the
Namefield and change the
Cloud Storage fileusing the pull-down menu. Then, in the
Cloud Storage filefield, enter the bucket name and filename as the path to the Photon OS image for GCE. In this example, where the bucket was named
photon_storage,the path is as follows:
The new image form autopopulates the
gs://file path prefix.*
Createbutton to create your image. You must be able to see the Images catalog and your Photon OS image at the top of the list.
Create a New Instance
To create an instance, check the box next to the Photon OS image and click the
Create a new instanceform, provide a name for this instance, confirm the zone into which this instance is to be deployed and, before clicking
Allow HTTP trafficand
Allow HTTPS trafficoptions.
Note: The firewall rules in this example are optional. You can configure the ports according to your requirements.
When the instance is created you will be returned to your list of VM instances. If you click on the instance, the status page for the instance will allow you to SSH into your Photon OS environment using the SSH button at the top of the panel.
At this point, your instance is running and you are ready to start the Docker engine and run a container workload. For more information, see Deploying a Containerized Application in Photon OS.