Importing an OVF file in GCP

0 votes
What's the way to import an OVF file in GCP?
Oct 21, 2019 in GCP by anonymous
• 6,260 points
673 views

1 answer to this question.

0 votes

To import an OVF file to GCP, follow these steps: 

  1. Add the virtual appliance to Cloud Storage.

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

    If your directory contains only one OVF file, you can either provide the path to the descriptor file or the path to the directory that contains the OVF file.

    • To import an OVF file using the path to the descriptor file, run the following command:

      gcloud compute instances import [INSTANCE_NAME] \
        --source-uri=gs:[PATH_TO_OVF_FILE]
    • To import an OVF file using the directory path, run the following command:

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

    where:

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

    • [PATH_TO_OVF_FILE] is the path to the OVF file on Cloud Storage.

    • [PATH_TO_OVF_DIRECTORY] is the path to the directory that contains the OVF file on Cloud Storage.

    For example, to import an OVF file Ubuntu.ovf in the my-bucket directory, that creates an instance named my-instance, run the following command:

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

    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 OVF file Ubuntu.ovf 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/
answered Oct 21, 2019 by Sirajul
• 59,030 points

Related Questions In GCP

0 votes
1 answer

How do I import a OVA file in GCP?

Add the virtual appliance to Cloud Storage. To import ...READ MORE

answered Oct 21, 2019 in GCP by Sirajul
• 59,030 points
2,425 views
0 votes
1 answer

How to activate an existing named configuration in GCP?

Hi@akhtar, You can activate an existing named configuration in ...READ MORE

answered Nov 9, 2020 in GCP by MD
• 95,140 points
44 views
0 votes
1 answer

How to create a custom role from a YAML file in GCP?

Hi@akhtar, You can create an IAM role in ...READ MORE

answered Nov 10, 2020 in GCP by MD
• 95,140 points
91 views
0 votes
2 answers

How to install gcp in Python?

If you're accessing BigQuery in python, you ...READ MORE

answered Aug 20, 2018 in GCP by Priyaj
• 58,100 points
745 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, 2019 in GCP by Sirajul
• 59,030 points
844 views
0 votes
1 answer
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, 2019 in GCP by Sirajul
• 59,030 points
471 views
0 votes
1 answer

Connect to an instance as a root user in GCP

If you configured an instance to allow ...READ MORE

answered Sep 24, 2019 in GCP by Sirajul
• 59,030 points
1,600 views
0 votes
1 answer