Importing an OVF file in GCP.

0 votes
What's the way to import an OVF file in GCP?
Oct 21 in GCP by anonymous
• 3,920 points
15 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 by Sirajul
• 37,930 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 in GCP by Sirajul
• 37,930 points
39 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
• 56,920 points
230 views
0 votes
1 answer

Storage services in GCP

As a part of its storage and ...READ MORE

answered Sep 24 in GCP by Sirajul
• 37,930 points
18 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
36 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

Connect to an instance as a root user in GCP

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

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