سؤال

Can I download an EC2 instance in vhd format? Or download it in AMI format and convert it to VHD?

هل كانت مفيدة؟

المحلول

Amazon EC2 has only provided VM Import at the time you posted your question still, but initial support for this long requested feature has finally been released on May 25 2012 as well, see the introductory post VM Export Service For Amazon EC2:

The AWS VM Import service gives you the ability to import virtual machines in a variety of formats into Amazon EC2, allowing you to easily migrate from your on-premises virtualization infrastructure to the AWS Cloud. Today we are adding the next element to this service. You now have the ability to export previously imported EC2 instances back to your on-premises environment. [emphasis mine]

Please note that VM Import/Export is still limited to Microsoft Windows only though, specifically:

The service can export Windows Server 2003 (R2) and Windows Server 2008 EC2 instances to VMware ESX-compatible VMDK, Microsoft Hyper-V VHD or Citrix Xen VHD images. We plan to support additional operating systems, image formats and virtualization platforms in the future.

Hopefully the latter will be realized soon, as this would significantly increase EC2 versatility in general and for development scenarios in particular, more recent and lightweight DevOps approaches to the underlying deployment problem notwithstanding.

نصائح أخرى

I have been able to successfully move EC2 to VHD/VHDX format.

Simply, use Windows backup or Acronis Backup to bare-metal backup the EC2 instance on a volume.

Upload the files to the Hyper-V server location or network location.

Use Acronis Universal Restore Disk, or Windows Backup to restore the machine from the backup location (usually a network).

remove Amazon proprietary driver files from c:\windows\system32\ (you'll see the errors on the screen, depending on which backup program you do fine).

Good luck! My next task, move VHD to EC2 without using Amazon support.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top