---
title: "Deploying a Two Network Interfaces Instance of vNIOS for Google Cloud"
canonical: "https://docs.infoblox.com/space/vniosgcp/35483438/Deploying+a+Two+Network+Interfaces+Instance+of+vNIOS+for+Google+Cloud"
format: markdown
---
<span style="color: #000000">This section provides steps on how to deploy a vNIOS instance that is configured with two network interfaces. </span>To ensure that your vNIOS for Google Cloud functions properly, update the instance configuration as required. For the list of supported vNIOS appliance models, the shapes that they support, and additional specifications, see *[vNIOS for Google Cloud X6 Series](https://docs.infoblox.com/space/vniosspec/1488748597/vNIOS+for+GCP+X6+series)* and *[vNIOS for Google Cloud X5 Series](https://docs.infoblox.com/space/vniosspec/1488650431/vNIOS+for+GCP+X5+Series)*.

<span style="color: #000000">To deploy vNIOS for </span>Google Cloud<span style="color: #000000"> using VM instances, complete the following:</span>

1. <span style="color: #000000">Log in to your Google Cloud Console using the URL: </span><span style="color: #1155cc">*[https://console.cloud.google.com](https://console.cloud.google.com)*</span>
2. <span style="color: #000000">Navigate to </span><span style="color: #000000">**Compute Engine**</span><span style="color: #000000"> -> </span><span style="color: #000000">**VM instances**</span><span style="color: #000000">.</span>
3. <span style="color: #000000">In the </span><span style="color: #000000">*VM instances*</span><span style="color: #000000"> panel, click </span><span style="color: #000000">**Create Instance**</span><span style="color: #000000">.</span>  
<span style="color: #000000">The </span><span style="color: #000000">*Create an instance*</span><span style="color: #000000"> panel is displayed with values automatically populated in some fields based on previous configurations. Click a field that you want to make changes to and update the values as described in the steps that follow.</span>
4. On the **Machine configuration** tab:
  - <span style="color: #000000">**Name**</span><span style="color: #000000">: Enter a name for the instance.</span>
  - <span style="color: #000000">**Region**</span><span style="color: #000000">: Choose the Google Cloud region from the drop-down list.</span>
  - <span style="color: #000000">**Zone**</span><span style="color: #000000">: Choose a zone where you want your data to be stored.</span>
  - To select the required machine type:
    - On the **General purpose** tab, according to the required instance shape, select **N1** or **N4** from the machine types list.  
**Note**: N4 machine types require the gVNIC network interface type.
    - On the **Machine type** > **Preset** tab, choose the required shape from the drop-down list.
5. On the **OS and storage** tab:
  1. Under *Operating system and storage*, click **Change**.
  2. On the *Boot disk* panel > <span style="color: #000000">**Custom images**</span><span style="color: #000000"> tab:</span>
    1. <span style="color: #000000">**Image**</span><span style="color: #000000">: Choose the image or a snapshot that you created.</span>
    2. **Boot disk type**: Choose the disk type according to the NIOS version and the machine type:
      - Choose **Standard persistent disk** for N1 machine types** **if a Trinzic X5 appliance is running a NIOS version prior to 9.0.1.
      - Choose **SSD persistent disk** if a Trinzic X5 or X6 appliance with an N1 machine types is running NIOS 9.0.1 or later.  
Infoblox recommends **SSD persistent disk** for better performance.
      - Choose **Hyperdisk Balanced** for a Trinzic X5 or X6 appliance with an N4 series machine type, supported from NIOS 9.0.7 onwards.
    3. **Size**: Choose a disk size based on the model you are deploying.
    4. **Encryption:** From NIOS 9.0.8 onwards, to encrypt the boot disk with a Customer-Managed Encryption Key (CMEK), you must set up Cloud KMS before configuring the VM. To set up Cloud KMS, complete the following steps:

      - **Create a key ring:** In the Google Cloud Console, navigate to **Security **>** Key Management** and click **Create Key Ring**. Enter a name for the key ring, select a location type (Region, Multi-region, or Global) and choose your preferred location., and choose a location that matches the region of your VM. Click **Create**.  
    **Note:** Key rings cannot be deleted once created.
      - **Create an encryption key:** In the key ring, click **Create Key**. Enter a key name, set **Protection level** to **Software**, **Purpose** to **Symmetric encrypt/decrypt**, and **Algorithm** to **Google symmetric key**. Leave the rotation settings at the default or configure them as required by your policy. Click **Create**.
      - **Grant access to the key:** The Compute Engine service account must have permission to use the key to encrypt and decrypt disk data. In Cloud KMS, navigate to your key ring and click the key you created. Click the **Permissions** tab. Click **Grant Access**. Enter the Compute Engine service account for your project as the new principal and assign it the role **Cloud KMS CryptoKey Encrypter/Decrypter**. Click **Save**.  
    **Note:** Disabling an encryption key version is reversible, whereas destroying.it is irreversible. Ensure you select the correct key before attaching it to production workloads.
      - **Select the encryption key:** In the **Boot disk** panel, click **Show advanced configuration**. Under **Encryption**, select **Customer-managed encryption key (CMEK)**. From the **Key ring** and **Key** drop-down lists, select the key ring and key you created above.  
To use Google-managed encryption (the default), skip the above steps and click **Select**.

v. Click **Select**.

6. On the **Networking** tab: Set up one interface each for MGMT and LAN1.  
Note that vNIOS instances do not support the Google Cloud Custom Hostname feature. Do not configure the **Hostname** field.
7. By default, the GCP instance has a network interface added and allocated to the MGMT port. Expand the menu and update the default values in the editor or click **Add a network interface** and complete the following:
  1. **Interface type**: Select **VPC**.
  2. **Network**: Change the default network to the correct network.
  3. **Subnetwork**: Select your subnetwork.
  4. **Network interface card**: Select the network interface card (NIC) type for the instance:
    - Select **gVNIC** in any of the following scenarios:
      - To achieve better network performance than one achieved with **VirtIO**.
      - If you selected an N4 machine type, you must use the gVNIC network interface type.  
**Note**: Infoblox recommends using the NIC type as gVNIC across all interfaces for consistent network performance.
    - Select **VirtIO** for standard network performance.
  5. **IP stack type**: Select **IPv4 (single stack)**.  
vNIOS for Google Cloud does not support IPv6 addresses on the MGMT port. To deploy the instance with an IPv6 network, assign the IPv6 address to the second network interface that will be allocated to the LAN1 port.
  6. **Primary internal IPv4 address**: Infoblox recommends that you use a static IP instead of **Ephemeral**. If you choose **Ephemeral**, the IP address changes every time you stop or start the instance.
  7. **External IPv4 address**: Infoblox recommends that you use a static IP instead of **Ephemeral**. If you choose **Ephemeral**, the IP address changes every time you stop or start the instance.
  8. Click **Done**.
  9. To add the second network interface and allocate it to the LAN1 port:
    1. In the *Network interfaces* section, click **Add a network interface**.
    2. In the *New network interface* dialog box, choose a network and subnet for the LAN1 interface.
    3. In the **Network interface card** field, select the NIC type as explained for the MGMT interface.
    4. In the **IP stack type** field, choose **IPv4 (single stack)** or **IPv4 and IPv6 (dual stack)** according to the network you want to assign to the interface. vNIOS for Google Cloud supports IPv6 networks from NIOS 9.0.8 onwards.  
**Note**:  
If you are deploying the vNIOS instance with an IPv6 network, configure the member in NIOS Grid Manager as follows:  
In the *Grid Member Properties* *Editor* > **Network** tab > **Type of Network Connectivity** drop-down list, choose one of the following based on the network type:  
- **IPv6**, for IPv6-only networks, and then configure fields in the **Ports and Addresses** table.  
- **IPv4 and IPv6** for dual-stack networks, and then configure fields in the **Ports and Addresses** table.  
For more information about network settings, see the *Adding a Single Member* topic in the *[Infoblox NIOS Documentation](https://docs.infoblox.com/space/NIOS/35400616/NIOS)*.
8. On the **Security** tab:
  - Under **Identity and API access** > **Service account** drop-down list, select the service account that has been assigned with role permissions that NIOS requires for authentication. For information about roles, see the *Configuring a Google Cloud Service Account* section in <u>*[Prerequisites for Deploying vNIOS for Google Cloud Instances](https://infoblox-docs.atlassian.net/wiki/spaces/vniosgcp/pages/35786159)*</u>.
9. On the **Advanced** tab: In the *Metadata* section, add the following key-value pair. This metadata will install temporary license keys for the selected services.  
For more information about user-data settings, see *[cloud-init Configuration in vNIOS for Google Cloud](https://infoblox-docs.atlassian.net/wiki/spaces/vniosgcp/pages/1930264593)*.
  1. Add **Key**:` user-data`.
  2. Add **Value**:  
`#infoblox-config`  
`temp_license: nios xx-Vxxxx enterprise dns`  
`remote_console_enabled: y`
  3. Click **Done**.
10. Click **Create** to create the instance.