## I ran an instance of ami-8c0c5cc9
##  (us-west-1 ebs/ubuntu-lucid-10.04-i386-server-20101020)

% 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
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

% iid=i-cec74e8a
% ec2-modify-instance-attribute --region us-west-1 --kernel aki-99a0f1dc ${iid}
% 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 
root=UUID=ce492d03-a18c-4075-871e-1631ed7e0244 ro console=hvc0

-- 
backport grub-legacy-ec2 from maverick to lucid
https://bugs.launchpad.net/bugs/671103
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to