Add prototype EC2 image import plumbing.
To create a new descriptor that will be an import from EC2 (and thus run under XEN), add ?ec2=1 to newimage_ez.php3. Eventually will link it in someplace. The form will create a XEN based VM, but instead of node to snapshot from, provide user@host for the EC2 instance. On the image snapshot page, instead of node use user@host for the EC2 instance. The backend script (create_image) will call over to ops and invoke Srikanth's code. I have called that script ec2import-image.pl. See create_image for how arguments are passed to the script.
Showing with 397 additions and 136 deletions