Convert Instance-Store to EBS AMI

Login to the instance-store server :

#mkdir /newroot

#mount /dev/sdh /newroot

#rsync -avHx / /newroot

#rsync -avHx /dev /newroot

#vim /newroot/etc/fstab

#umount /newroot

#rsync -avHx /usr /newroot/ – because this was a separate partition.

#ec2-register -s snap-c80a0004 -a i386 -d “Converting to EBS-Instance” –name “My EBS AMI” –kernel aki-805ea7e9 -K pk-.pem -C cert-.pem –root-device-name /dev/sda1

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s