为什么我无法使用gcloud
创建Windows实例?
$ gcloud compute instances create windows-instance --image windows-2008-r2 --metadata gce-initial-windows-user=MYUSERNAME gce-initial-windows-password=MYPASSWORD --zone europe-west1-a
ERROR: (gcloud.compute.instances.create) Failed to find image for alias [windows-2008-r2] in public image project [windows-cloud]. Try specifying a different image using [--image].
- The resource 'projects/windows-cloud' was not found
我确实尝试列出任何可用的图片但最终没有Windows图像:
$ gcloud compute images list
NAME PROJECT DEPRECATED STATUS
centos-6-v20140718 centos-cloud READY
coreos-alpha-423-0-0-v20140828 coreos-cloud READY
coreos-beta-410-0-0-v20140825 coreos-cloud READY
coreos-stable-367-1-0-v20140724 coreos-cloud READY
backports-debian-7-wheezy-v20140814 debian-cloud READY
debian-7-wheezy-v20140814 debian-cloud READY
opensuse-13-1-v20140711 opensuse-cloud READY
rhel-6-v20140718 rhel-cloud READY
答案 0 :(得分:1)
所以似乎有一个limited availability of Windows instance types:
注意:Windows Server映像当前处于“限制预览”状态,需要访问才能使用。要注册使用这些图片,请填写sign up form。目前,该计划的容量有限,并且无法保证所有请求都将被授予访问权限。处理您的申请可能还需要一些时间,我们感谢您的耐心等待。