Follow these to convert an Existing PV AMI to HVM:
- Create an Ubuntu HVM linux, any version, new
- Create an Ubuntu / with my existing AMI / PVM linux, and install grub packages on the console: apt-get install grub-pc grub-pc-bin grub-legacy-ec2 grub-gfxpayload-lists
- Stop PVM linux
- Detach root (/dev/sda1) partition at PVM linux
- Attach PVM linux root partition to running HVM linux somewhere, e.g.: /dev/sdf
- On the HVM linux console: mkdir -p /mnt/xvdf && mount /dev/xvdf /mnt/xvdf
- rsync -avzXA /boot/ /mnt/xvdf/boot/
- mount -o bind /dev /mnt/xvdf/dev && mount -o bind /dev/pts /mnt/xvdf/dev/pts && mount -o bind /proc /mnt/xvdf/proc && mount -o bind /sys /mnt/xvdf/sys
- chroot /mnt/xvdf
- grub-install --no-floppy --recheck --force /dev/xvdf
- update-grub2
- exit chroot: CTRL+D
- stop HVM Linux
- Then, detach /dev/sda1 original root AND after that detach /dev/sdf PVM root
- attach PVM root to HVM linux as /dev/sda1
- Start HVM linux
Finally, create a new AMI image from the running HVM linux, and it will be HVM virtualized.