Create an image with the image file
To create an image with an image file:
- In the Google Cloud platform, go to storage > Cloud Storage > Browser.
- Open the bucket you created. See, Create a bucket and upload the image file.
- Click the xxx.gcp.tar.gz image you uploaded to the bucket. The Object details page opens.
- Click the Activate Cloud Shell icon to prepare the image.
- Click to copy the gsutil URI.
- Ensure
Your Cloud Platform project in this sessions is set to
the correct project.
- To prepare the image, run the following command:
gcloud compute images create <image_name> --source-uri <gsutil_URI> --guest-os-features MULTI_IP_SUBNET
<image_name>
is the name of the new image.<gsutil_URI>
is the gsutil URI you copied in the previous step.
- To verify the image is ready, run the following command:
gcloud compute images describe <image_name>
Ensure the image
type
supportsMULTI_IP_SUBNET
.