在Google Compute Engine中创建VM实例时出错 [英] Error creating VM instance in Google Compute Engine
问题描述
我正在尝试遵循Google云平台控制台上提供的教程,以使用Compute Engine创建MongoDB应用程序.我遵循创建虚拟机的教程,但未创建它们,并返回以下错误:
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:
字段'resource.networkInterfaces [0] .network':无效的值.找不到引用的网络资源.
Invalid value for field 'resource.networkInterfaces[0].network': ''. The referenced network resource cannot be found.
知道这可能是什么吗?我以前没有创建任何VM,所以不确定这是什么.我没有使用命令行,而是使用控制台来完成此操作.
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.
推荐答案
添加此内容:
--subnet "default"
为我工作.在我的情况下,网络(子网)已经存在(与@Ray情况不同),因此仅提及子网名称(通常是默认值)就可以了.
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.
这篇关于在Google Compute Engine中创建VM实例时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!