## Then added -proposed archive and installed grub-legacy-ec2 and cloud-init
## and grub-pc (bug 671097)
$ apt-cache policy grub-legacy-ec2
grub-legacy-ec2:
Installed: (none)
Candidate: 0.5.10-0ubuntu1.4
Version table:
0.5.10-0ubuntu1.4 0
500 http://us.archive.ubuntu.com/ubuntu/ lucid-proposed/main Packages
$ sudo apt-get install grub-legacy-ec2 cloud-init grub-pc
...
Unpacking grub-legacy-ec2 (from .../grub-legacy-ec2_0.5.10-0ubuntu1.4_all.deb) ...
Adding `diversion of /usr/sbin/grub-set-default to /usr/sbin/grub-set-default.real by grub-legacy-ec2'
Setting up grub-legacy-ec2 (0.5.10-0ubuntu1.4) ...
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ...
Could not find /boot/grub/menu.lst file.
Generating /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/memtest86+.bin
Ignoring non-Xen Kernel on Xen domU host: vmlinuz-2.6.32-25-generic-pae
Found kernel: /boot/vmlinuz-2.6.32-309-ec2
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
$ /sbin/halt
## Now, after installing, on the client, I stop the instance and change
## the kernel to amazon's pv-grub kernel
## aki-99a0f1dc ec2-public-images-us-west-1/pv-grub-hd0-V1.01-i386.gz.manifest.xml
## Then, ssh to the started instance, and verify that options in
## /boot/grub/menu.lst actually took. The command line should have 'console=hvc0' on it
## without using pv-grub, the kernel command line will only have 'root=/dev/sda1'.
## I ran an instance of ami-8c0c5cc9 lucid-10. 04-i386- server- 20101020)
## (us-west-1 ebs/ubuntu-
% ec2-run-instances --region us-west-1 --instance-type t1.micro ami-8c0c5cc9
## Then added -proposed archive and installed grub-legacy-ec2 and cloud-init
## and grub-pc (bug 671097)
$ apt-cache policy grub-legacy-ec2 5.10-0ubuntu1. 4 0 us.archive. ubuntu. com/ubuntu/ lucid-proposed/main Packages legacy- ec2_0.5. 10-0ubuntu1. 4_all.deb) ... grub-set- default to /usr/sbin/ grub-set- default. real by grub-legacy-ec2'
grub-legacy-ec2:
Installed: (none)
Candidate: 0.5.10-0ubuntu1.4
Version table:
0.
500 http://
$ sudo apt-get install grub-legacy-ec2 cloud-init grub-pc
...
Unpacking grub-legacy-ec2 (from .../grub-
Adding `diversion of /usr/sbin/
Setting up grub-legacy-ec2 (0.5.10-0ubuntu1.4) ...
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ...
Could not find /boot/grub/menu.lst file. +.bin 2.6.32- 25-generic- pae 2.6.32- 309-ec2 +.bin
Generating /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/memtest86
Ignoring non-Xen Kernel on Xen domU host: vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/memtest86
Updating /boot/grub/menu.lst ... done
$ /sbin/halt
## Now, after installing, on the client, I stop the instance and change images- us-west- 1/pv-grub- hd0-V1. 01-i386. gz.manifest. xml
## the kernel to amazon's pv-grub kernel
## aki-99a0f1dc ec2-public-
% iid=i-cec74e8a instance- attribute --region us-west-1 --kernel aki-99a0f1dc ${iid}
% ec2-modify-
% ec2-start-instances --region us-west-1 ${iid}
## Then, ssh to the started instance, and verify that options in
## /boot/grub/menu.lst actually took. The command line should have 'console=hvc0' on it
## without using pv-grub, the kernel command line will only have 'root=/dev/sda1'.
$ cat /proc/cmdline ce492d03- a18c-4075- 871e-1631ed7e02 44 ro console=hvc0
root=UUID=