in Education by
How should I use the new AWS EC2 classes (r3, i2) with my existing AMI without recreating the whole system setup? The new EC2 classes support only HVM based virtualization but I have only PVM AMI images. Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
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.

Related questions

0 votes
    Any easy way to move and custom AMI image between regions? (North Virginia -> Singapore) I know you can mess up with ... way to do it? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I'm creating an AMI for a server with 100G files. It's been like an hour and it's still not finished. (The ... it? What should I do? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I'm creating an AMI for a server with 100G files. It's been like an hour and it's still not finished. (The ... it? What should I do? Select the correct answer from above options...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    I want to automate the launch of a set of Linux EC2 instances. Basically, I want to write a script/program that ... in Amazon AWS/EC2? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    Sometimes when trying to launch my t1.micro EC2 instance, it cannot be provisioned and Amazon recommends trying ... existing instance? Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
0 votes
    I need SSH access to an Amazon EC2 instance running Ubuntu. All I have is the Amazon username and password. Any ideas? Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
0 votes
    I want to upgrade my Amazon EC2 micro (t1.micro) instance to large. Please help. Select the correct answer from above options...
asked Jan 25, 2022 in Education by JackTerrance
0 votes
    I've created a new linux instance on Amazon EC2, and as part of that downloaded the .pem file to allow me ... Nov 11:20 amazonec2.pem Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I was given AWS Console access to an account with 2 instances running that I cannot shut down (in production). ... into the instances? Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    I want to change the time zone set in my Amazon EC2 instance running Ubuntu Linux to local time. My Question ... zone in Amazon EC2? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    We have a large ec2 instance running in Asia pacific region. We want to reserve that particular instance.In aws ... out on something Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I want to migrate my webapp from Amazon EC2 to ECS. I ECS I have to allocate memory and vCPU for the ... needed for the process? Select the correct answer from above options...
asked Jan 25, 2022 in Education by JackTerrance
0 votes
    I have thought a lot recently about the different hosting types that are available out there. We can get ... added probably. Thanks Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I need to know of any way to access a running instance in Amazon EC2. I DON'T have the original keypair ". ... or assign a new keypair? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I need to know of any way to access a running instance in Amazon EC2. I DON'T have the original keypair ". ... or assign a new keypair? Select the correct answer from above options...
asked Feb 5, 2022 in Education by JackTerrance
...