admin管理员组

文章数量:1406052

I've built an instance called "instance-template" (c4-standard) that I want to use as a template for instantiating other instances. OS type is Ubuntu 22.04.5 LTS. After all my code is set up, I create a snapshot of the disk and then try to create a new instance (also of type c4-standard) based on that snapshot. When I do, I keep getting the error "This boot disk source does not support gVNIC":

But following the instructions here I've verified that my source template does have gVNIC enabled:

jorvis@instance-template:~$ sudo lshw -class network
  *-network                 
       description: Ethernet interface
       product: Compute Engine Virtual Ethernet [gVNIC]
       vendor: Google, Inc.
       physical id: 3
       bus info: pci@0000:00:03.0
       logical name: ens3
       version: 00
       serial: 42:01:0a:8e:00:1d
       width: 32 bits
       clock: 33MHz
       capabilities: msix bus_master cap_list ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=gve driverversion=1.0.0 duplex=full ip=10.142.0.29 latency=0 link=yes multicast=yes port=twisted pair
       resources: irq:11 memory:d1202000-d1202fff memory:d1200000-d120007f memory:d1100000-d11fffff

What am I missing here?

I've built an instance called "instance-template" (c4-standard) that I want to use as a template for instantiating other instances. OS type is Ubuntu 22.04.5 LTS. After all my code is set up, I create a snapshot of the disk and then try to create a new instance (also of type c4-standard) based on that snapshot. When I do, I keep getting the error "This boot disk source does not support gVNIC":

But following the instructions here I've verified that my source template does have gVNIC enabled:

jorvis@instance-template:~$ sudo lshw -class network
  *-network                 
       description: Ethernet interface
       product: Compute Engine Virtual Ethernet [gVNIC]
       vendor: Google, Inc.
       physical id: 3
       bus info: pci@0000:00:03.0
       logical name: ens3
       version: 00
       serial: 42:01:0a:8e:00:1d
       width: 32 bits
       clock: 33MHz
       capabilities: msix bus_master cap_list ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=gve driverversion=1.0.0 duplex=full ip=10.142.0.29 latency=0 link=yes multicast=yes port=twisted pair
       resources: irq:11 memory:d1202000-d1202fff memory:d1200000-d120007f memory:d1100000-d11fffff

What am I missing here?

Share Improve this question edited Mar 6 at 15:55 Jorvis asked Mar 6 at 15:49 JorvisJorvis 3,2191 gold badge18 silver badges18 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 2

After you create a snapshot of the disk from the “instance-template” , the missing step is you need to create a boot disk from a snapshot by:

gcloud compute disks create (DISK_NAME) --source-snapshot (SNAPSHOT_NAME) --type=hyperdisk-balanced

Then create a new instance by EXISTING DISKS option then choose the created disk above.

本文标签: google cloud platformCan39t create a new instance from snapshot because of gVNICStack Overflow