Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We currently have our own servers that have multiple KVM guests. If we ever decide to move to the Amazon EC2, would it possible to simply copy the VM image over or would I need to begin reconfiguring a new VM again on the cloud?

(It might sound silly but I'm still in the process of getting a grasp on the all the virtualisation/cloud stuff)

Thanks.

share|improve this question

4 Answers 4

up vote 1 down vote accepted

since you can import RAW images, you just need to make sure your guests are using raw. if they aren't RAW, you can use qemu-img convert to convert the images to RAW. This conversion will remove any snapshot chain you may have created using qcow2

share|improve this answer
1  
I don't think this is right. EC2 images need to be running a Xen kernel. Also they use different device names, so fstab entries would need to be changed, maybe a few other things. –  Jeremy May 11 '12 at 1:42
    
Yeah, some hacking will have to take place, but running a Xen kernel shouldn't be necessary when PV isn't used IMO. Should be good enough to boot the VM up and replace the kernel and whatever else. –  dyasny May 11 '12 at 6:08
    
We have no choice about using paravirtual. HVM is only available for windows and cluster compute. –  Jeremy May 12 '12 at 3:34
    
Actually, if EC2 can import RAW images, it probably means the import process inserts the right drivers into the image. Haven't tried it, though, just assuming it's the same as virt-v2v, which makes sense (at least to me) –  dyasny May 12 '12 at 6:50
    
@Mridang Agarwalla did you ever get this to work? I've tried it this weekend and import request never completes for me, stays in Pending status forever. –  Jeremy May 14 '12 at 2:11

According to Amazon this is not possible: http://aws.amazon.com/en/ec2/faqs/#What_virtual_machine_file_formats_can_I_import

share|improve this answer
    
Hi maliq, if it does allow you to import vmdk images, can't I simply convert my KVM qcow2 image to a VMWare vmdk image using qemu-img convertlinux.die.net/man/1/qemu-img — and then import it? –  Mridang Agarwalla Aug 26 '11 at 8:23
    
You can do whatever you want. If it is possible then it is worth a try. –  mailq Aug 26 '11 at 8:25

I have created a video to show how to import KVM and XEN VM to Amazon EC2 http://fosshelp.blogspot.in/2013/06/how-to-import-kvm-virtual-machine-to.html

share|improve this answer
2  
Welcome to Server Fault! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Scott Pack Jun 22 '13 at 20:25

This software claims to import KVM guests. But Windows only guests as it seems. http://cloudscraper.migrate2iaas.com/ec2download

share|improve this answer
    
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  slm Aug 28 '13 at 21:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.