我们创建了一个新的自定义 AMI 并遵循此处的文档。当我们从自定义 AMI 启动实例时,我们必须等待一个小时才能使实例可用。
系统日志如下所示:
2015/05/11 10:10:16Z: Windows is being configured...
2015/05/11 10:11:17Z: Windows is still being configured...
2015/05/11 10:12:18Z: Windows is still being configured...
2015/05/11 10:13:19Z: Windows is still being configured...
2015/05/11 10:40:48Z: Windows is being configured...
2015/05/11 10:09:55Z: Message: Sysprep Start
2015/05/11 10:13:30Z: Message: Sysprep End
2015/05/11 10:41:00Z: AMI Origin Version: 2014.10.15
2015/05/11 10:41:00Z: AMI Origin Name: Windows_Server-2012-R2_RTM-English-64Bit-Base
2015/05/11 10:41:00Z: OS: Microsoft Windows NT 6.2.9200.0
2015/05/11 10:41:00Z: Language: en-US
2015/05/11 10:41:00Z: EC2 Agent: Ec2Config service v2.2.10.221
2015/05/11 10:41:03Z: Driver: AWS PV Network Device v7.2.4.1
2015/05/11 10:41:03Z: Driver: AWS PV Storage Host Adapter v7.2.4.1
2015/05/11 10:41:03Z: Message: Waiting for meta-data accessibility...
2015/05/11 10:41:03Z: Message: Meta-data is now available.
2015/05/11 10:41:04Z: AMI-ID: ami-63cda614
2015/05/11 10:41:04Z: Instance-ID: i-f1ccc516
2015/05/11 10:41:04Z: Ec2SetPassword: Enabled
2015/05/11 10:41:06Z: Username: Administrator
2015/05/11 10:41:06Z: Password: <Password>password</Password>
2015/05/11 10:41:08Z: RDPCERTIFICATE-SUBJECTNAME: WIN-BNUAEECNDU8
2015/05/11 10:41:08Z: RDPCERTIFICATE-THUMBPRINT: yudgiqwy
2015/05/11 10:42:15Z: Message: Product activation was successful
2015/05/11 10:42:15Z: Message: Ec2Config Service is rebooting the instance. Please be patient.
2015/05/11 10:47:19Z: AMI Origin Version: 2014.10.15
2015/05/11 10:47:19Z: AMI Origin Name: Windows_Server-2012-R2_RTM-English-64Bit-Base
2015/05/11 10:47:19Z: OS: Microsoft Windows NT 6.2.9200.0
2015/05/11 10:47:19Z: Language: en-US
2015/05/11 10:47:19Z: EC2 Agent: Ec2Config service v2.2.10.221
2015/05/11 10:47:19Z: Driver: AWS PV Network Device v7.2.4.1
2015/05/11 10:47:19Z: Driver: AWS PV Storage Host Adapter v7.2.4.1
2015/05/11 10:47:20Z: Message: Waiting for meta-data accessibility...
2015/05/11 10:47:20Z: Message: Meta-data is now available.
2015/05/11 10:47:20Z: AMI-ID: ami-63cda614
2015/05/11 10:47:20Z: Instance-ID: i-f1ccc516
2015/05/11 10:47:20Z: Ec2SetPassword: Disabled
2015/05/11 10:47:20Z: RDPCERTIFICATE-SUBJECTNAME: IP-C0A8E110
2015/05/11 10:47:20Z: RDPCERTIFICATE-THUMBPRINT: aidsgiusdas
2015/05/11 10:47:22Z: Message: Windows is Ready to use
正如您在本次看到的那样,构建耗时近 40 分钟(实例未能加入域,但这是一个单独的问题)
有谁知道这里可能会发生什么?我们猜测 Sysprep 是罪魁祸首,但无法验证这一点。