【问题标题】:GC Compute Engine: Unable to Access VM'sGC 计算引擎:无法访问虚拟机
【发布时间】:2015-02-15 05:39:16
【问题描述】:

默认启动脚本不会自动安装,因此会出错。 显示的错误是:“连接被拒绝,因为用户帐户未授权远程登录”

Calling oobe-script from metadata.
attributes/sysprep-oobe-script-bat value is not set or metadata server is not reachable.
attributes/sysprep-oobe-script-cmd value is not set or metadata server is not reachable.
attributes/sysprep-oobe-script-ps1 value is not set or metadata server is not reachable.
Running schtasks with arguments /run /tn GCEStartup
--> SUCCESS: Attempted to run the scheduled task "GCEStartup".
-------------------------------------------------------------
Instance setup finished. palids is ready to use.
-------------------------------------------------------------
Booting on date 02/14/2015 15:34:18 
attributes/windows-startup-script-bat value is not set or metadata server is not reachable.
attributes/windows-startup-script-cmd value is not set or metadata server is not reachable.
attributes/windows-startup-script-ps1 value is not set or metadata server is not reachable.

我尝试了一些命令,但没有运气。我该如何克服呢?

【问题讨论】:

  • 您从哪里得到错误“连接被拒绝,因为用户帐户未授权远程登录”?是在尝试对实例进行 RDP 时吗?您看到的错误表明元数据中没有自定义启动脚本,您可以忽略它们。您可能想尝试在创建时设置的初始用户和密码,您可以通过运行 $ gcloud compute instances describe palids 来获得

标签: cloud google-compute-engine google-cloud-platform gcloud


【解决方案1】:

就像 Marius 指出的那样,串行控制台输出是意料之中的。两个考虑:

1 - 您的初始 用户名 必须不同于主机名/虚拟机名称,并且;

2 - 创建虚拟机时选择的密码必须满足密码复杂性要求:

  • 至少有 8 个字符。
  • 关注这些额外的complexity requirements
  • 不能包含任何不受支持的非 ASCII 字符。

可以在here 找到 GCE 上的综合 Windows 文档。还要考虑到 Windows VM 通常需要大约 10 分钟才能完全可用,如 Windows on GCE documentation 中所述。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-09-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-08
    • 2018-01-09
    • 1970-01-01
    相关资源
    最近更新 更多