Common errors for the gVNIC driver
The following issue occurs when the image used to create the VM instance isn't tagged to use gVNIC.
ERROR: (gcloud.compute.instances.create) Could not fetch resource: - Invalid value for field 'resource.networkInterfaces[0].nicType': 'GVNIC'. NetworkInterface NicType can only be set to GVNIC on instances with GVNIC GuestOsFeature.
To resolve this issue, ensure that you are using an image that is tagged to use gVNIC. For more information, see Create a custom image.
VM instance didn't boot
Cause: gVNIC is not enabled on the image.
Diagnosis: Check that the image has
gVNICenabled. To verify, run the following command:gcloud compute images describe IMAGE_NAME
Replace
IMAGE_NAMEwith the name of your image. For instructions on how to find the image name, see View the source image of a VM.The output of the command should show
GVNICunderguestOsFeatures.You can also check if the VM instance was created with the
nic-typeset togVNIC. To do this run the following command:gcloud compute instances describe VM_NAME
Replace
VM_NAMEwith the name of your VM instance.Resolution: Ensure that you are using a supported image or that you have properly set up the gVNIC driver on your custom image.
VM instance booted but is not reachable over the network
Cause: gVNIC was not successfully installed and loaded.
Diagnosis: To check if the driver was installed and loaded, complete the following steps:
Linux
Check that the driver is installed.
modinfo gve
The output should resemble the following:
filename: /lib/modules/4.15.0-1036-gcp/updates/dkms/gve.ko version: 1.1.0 license: Dual MIT/GPL description: gVNIC Driver author: Google, XXX. srcversion: 5FEFB9DD945EB2DEC94EE09 alias: pci:v00001AE0d00000042sv*sd*bc*sc*i* depends: retpoline: Y name: gve vermagic: 4.15.0-1036-gcp SMP mod_unload
Check that the driver is loaded.
lsmod | grep gve
The output should resemble the following:
gve 49152 0
Windows
- Connect to instance through SAC.
- Login with your username and password.
From the command prompt, run the following command:
dism /online /get-drivers | findstr gvnic
Review the result.
- If the driver is installed, you should see the text
Original File Name : gvnic.infin the output. - If the driver is not installed, no message is returned.
- If the driver is installed, you should see the text
Resolution: If gVNIC is not available, ensure that you are using a supported image or that you have properly set up gVNIC on your custom image.
Poor networking throughput for Windows Server 2022 and Windows 11 VMs
You might experience poor networking throughput when using
Google Virtual NIC (gVNIC) with
Windows Server 2022 and Windows 11 VM instances that use gVNIC driver GooGet
package version 1.0.0@44 or earlier.
To resolve this issue, update the gVNIC driver GooGet package to version
1.0.0@45 or later by doing the following:
Check which driver version is installed on your VM instance by running the following command from an administrator Command Prompt or Powershell session:
googet installed
The output looks similar to the following:
Installed packages: ... google-compute-engine-driver-gvnic.x86_64 VERSION_NUMBER ...
If the
google-compute-engine-driver-gvnic.x86_64driver version is1.0.0@44or earlier, update the driver from the GooGet package repository by running the following command from an administrator Command Prompt or Powershell session:googet install google-compute-engine-driver-gvnic
Common errors for the IDPF driver
The following issue occurs when the image used to create a bare metal instance isn't tagged to use IDPF.
ERROR: (gcloud.compute.instances.create) Could not fetch resource: - Invalid value for field 'resource.machineType': ... NetworkInterface NicType can only be set to IDPF on instances with IDPF GuestOsFeature.
To resolve this issue, ensure that you are using an image that supports and is tagged to use IDPF. For more information, see Create a custom OS image that supports IDPF.
Bare metal instance didn't boot
Cause: IDPF isn't enabled on the image.
Diagnosis: Check that the image has
IDPFenabled. To verify, run the following command:gcloud compute images describe IMAGE_NAME
Replace
IMAGE_NAMEwith the name of the image used by the compute instance. For instructions on how to find the image name, see View the source image of a VM.The output of the command should show
IDPFunderguestOsFeatures.... guestOsFeatures: ... - type: IDPF - type: SEV_CAPABLE - type: VIRTIO_SCSI_MULTIQUEUE - type: SEV_LIVE_MIGRATABLE ...You can also check if the bare metal instance was created with the
nic-typeset toIDPFby using the following command:gcloud compute instances describe INSTANCE_NAME
Replace
INSTANCE_NAMEwith the name of your compute instance.Look for the
networkInterfacessection of the output:... name: instance-20260319-221828 networkInterfaces: - accessConfigs: - kind: compute#accessConfig networkTier: PREMIUM type: ONE_TO_ONE_NAT name: nic0 network: https://www.googleapis.com/compute/v1/projects/my-project/global/networks/default networkIP: 203.0.113.8 nicType: IDPF stackType: IPV4_ONLY subnetwork: https://www.googleapis.com/compute/v1/projects/my-project/regions/us-central1/subnetworks/defaultResolution: Ensure that you are using a supported image or that you have configured the IDPF driver in your custom image.
Bare metal instance booted but is not reachable over the network
Cause: IDPF was not successfully installed and loaded.
Diagnosis: To check if the driver was installed and loaded, see Verify that IDPF is enabled.
Resolution: If IDPF is not available, ensure that you are using a public image that supports IDPF, or that you have properly configured the IDPF driver in your custom image.
MTU value set in VPC not being used by compute instance
After following the instructions to
change the MTU value, the MTU
configuration on the instance isn't using the same MTU value. For example,
you might run the /sbin/ifconfig | grep mtu command on your instance to check
the MTU setting. You have restarted the instance, but the instance
configuration isn't updated.
Cause: The network driver version is not recent enough to support the MTU feature.
Resolution:
- If your instance uses a public image, review the Networking features tab for your OS version on the Operating system details page. Make sure it shows that Jumbo Frames are completely supported.
If the public image doesn't fully support Jumbo Frames, or if you are using a custom OS image, then the installed version of the network driver is too old, and doesn't support the higher MTU values.
- GVNIC: Update the gVNIC driver for your compute instance by following the instructions in Use on non-supported operating systems.
- IDPF: Update the IDPF driver for your compute instance by following the instructions in Use on non-supported operating systems"
After updating the network driver, restart the instance and recheck the MTU configuration.