为什么我不能使用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
因此,Windows实例类型的可用性似乎有限:
注意:Windows Server映像当前处于有限预览中,需要访问权限才能使用。要注册使用这些图像,请填写注册表。目前,该程序的容量有限,无法保证所有请求都能获得访问权限。处理您的申请可能也需要一些时间,我们感谢您的耐心等待。