我试图将Windows 2008 SP2服务器映像上传到Amazon EC2,但是一旦该过程完成,我就无法连接到它。
我的两个想法是:
我已通过以下步骤成功将Windows Server 2008 R2 Enterprise vmware工作站映像导入到EC2中:
1)删除了vmware中的所有快照
2)通过以下步骤将虚拟机的磁盘设备转换为IDE:
a) add a new disk of IDE type (no file splitting) b) use Acronis True Image boot image (or any disk cloning tool) to clone the SCSI partition to the IDE partition c) remove and delete the SCSI volume and vmdk file(s).
3)删除了VMware工具
4)启用远程桌面访问
5)使用OVFTool将VM转换为OVF
6)使用EC2-import-instance创build导入实例
7)使用ec2-upload-disk-image上传虚拟机
8)等待直到实例被转换。 启动实例。
9)使用安全组的入站规则打开RDP端口。
10)通过RDP成功连接。
这是一个痛苦的过程,但它的工作。 根据你在问题中显示的内容判断,你可能需要考虑将磁盘types转换为IDE,并将图像转换为OVF格式。
使用ec2-import-instance命令将图像导入到EC2时,我们必须记住一些事项:
似乎将VMDK图像转换为Hiper-V图像更快。 于是我安装了Starwind VMDK < – > VHD转换器http://www.starwindsoftware.com/converter,并将其转换成VHD图像。
请记住在命令属性中分配安全组
-g [security group]
当我尝试通过ec2-api-tools自己导入虚拟机时,出现了很多连接问题。 在你的服务器上: