How do I import a OVA file in GCP?

0 votes
related to an answer for: Enabling the Cloud Build API
Oct 21 in GCP by Sam
• 3,920 points
39 views

1 answer to this question.

0 votes
  1. Add the virtual appliance to Cloud Storage.

  2. To import an OVA file from Cloud Storage to Compute Engine, use the gcloud compute instances import command.

    gcloud compute instances import [INSTANCE_NAME] \
      --source-uri=gs:[PATH_TO_OVA_FILE]

    where:

    • [INSTANCE_NAME] is the name of the instance you want to create.

    • [PATH_TO_OVA_FILE] is the path to the OVA file on Cloud Storage.

    For example, to import an OVA file Ubuntu.ova and create an instance named my-instance, run the following command:

    gcloud compute instances import my-instance \
      --source-uri=gs://my-bucket/Ubuntu.ova

    In some cases, you might be prompted to provide a value for the OS. To specify the operating system, you need to add the --os flag. For example, to import an OVA file Ubuntu.ova and create an instance named my-instance that runs Ubuntu 16.04, run the following command:

    gcloud compute instances import my-instance \
    --os=ubuntu-1604
    --source-uri=gs://my-bucket/Ubuntu.ova
answered Oct 21 by Sirajul
• 37,930 points

Related Questions In GCP

0 votes
1 answer

How can I find out who created a project in GCP?

You could probably use Stackdriver Cloud Audit ...READ MORE

answered Oct 9 in GCP by Sirajul
• 37,930 points
15 views
0 votes
1 answer

How do I disable suspend a project in Google Cloud?

Shutting down a project within the console releases all ...READ MORE

answered Oct 16 in GCP by Sirajul
• 37,930 points
37 views
0 votes
1 answer

Creating a SQL Server instance using Google Compute engine.

Google Compute Engine provides public images preconfigured with ...READ MORE

answered Sep 23 in GCP by Sirajul
• 37,930 points
37 views
0 votes
1 answer

How do i install gcloud compute?

The gcloud compute command-line tool enables you to easily ...READ MORE

answered Sep 23 in GCP by Sirajul
• 37,930 points
44 views
0 votes
1 answer

How do I create a Virtual Machine on GCP?

To create a VM instance: It is important you ...READ MORE

answered Sep 20 in GCP by Sirajul
• 37,930 points
43 views
0 votes
1 answer

How do I create a Google Cloud Platform (GCP) account?

In order to access the services provided ...READ MORE

answered Sep 20 in GCP by Sirajul
• 37,930 points
51 views