61562

Error creating VM instance in Google Compute Engine

I am trying to follow a tutorial that came up on the google cloud platform console for creating a MongoDB application using Compute Engine. I follow the tutorial for creating the VMs but they are not created and return the following error:

Invalid value for field 'resource.networkInterfaces[0].network': ''. The referenced network resource cannot be found.

Any idea what this could be? I have not created any VMs previously so am unsure what this is. I am not using commandline, I am using the console to do this.

Answer1:

I just experienced the same thing trying to create a VM on a fresh project. It looks like Google is having problems provisioning new projects (at least the compute engine networking stuff).

You'll have to manually create the default network. Here's how to do that:

Activate the Google Cloud Shell (button in upper right of Cloud Console website), then run these commands:

gcloud compute networks create default gcloud compute firewall-rules create default-allow-icmp --network default --allow icmp --source-ranges 0.0.0.0/0 gcloud compute firewall-rules create default-allow-ssh --network default --allow tcp:22 --source-ranges 0.0.0.0/0 gcloud compute firewall-rules create default-allow-internal --network default --allow tcp:0-65535,udp:0-65535,icmp --source-ranges 10.128.0.0/9

After that, you should be able to create VMs.

Another option would be to complain to Google.. This is not normal behavior.

Answer2:

Adding this:

--subnet "default"

worked for me. Network (subnet) already existed in my case (unlike the case of @Ray) hence just mentioning the name of the subnet (default in general) helped.

Recommend

  • How to avoid time gaps while aggregating OHLC in mongoDB
  • Use of multiple threads in a Java program and vs need to create Swing objects on EDT
  • How can I automate the t4 code generation for SubSonic
  • Vista focus issue when invoking Microsoft Word spell check from Oracle Forms
  • calculate daily averages for 3d array
  • Run/Debug Maven JavaFX 2 in Netbeans
  • When to use PDO prepared queries. mysql_real_escape error
  • Why can't python-colormath convert sRGB to Adobe RGB?
  • How to solve “The hierarchy of the type is inconsistent” error in Java Eclipse?
  • EOFError, what happen to my minitest selenium test? how to fix it?
  • How do I know what reference to include to import a specific .NET namespace?
  • System call time out?
  • WPF Listbox commands
  • Class implementation in a header file == bad style? [duplicate]
  • Google Player Game Service Error: Can't build the sample game
  • Merge list of objects into consistent list based on common matching attribute in Python
  • Getting zero results in search using elastic4s
  • RPMs for IDAS IoTAgents GE, from Fiware
  • WooCommerce hook after order is updated?
  • Accessing local repository in offline mode
  • Return to second to last URL in MVC (return View with previous filter conditions applied)?
  • How to load Q library with Require.js?
  • Private IP address in reserved subnet range
  • How to revert to previous XCode version?
  • C++ Partial template specialization - design simplification
  • Repeat a vertical line on every page in Report Builder / SSRS
  • Pass value from viewmodel to script in zk
  • NetLogo BehaviorSpace - Measure runs using reporters
  • Read text file and split every line in MSBuild
  • C# - Serializing and deserializing static member
  • Java applet as stand-alone Windows application?
  • script to move all files from one location to another location
  • How can I use Kendo UI with Razor?
  • Adding custom controls to a full screen movie
  • Comma separated Values
  • log4net write single file for each call to log.info
  • Error creating VM instance in Google Compute Engine
  • Hits per day in Google Big Query
  • how does django model after text[] in postgresql [duplicate]
  • File not found error Google Drive API