[Thincrust-devel] Problem creating ec2Appliance
Marek Goldmann
mgoldman at redhat.com
Fri Sep 18 09:34:57 UTC 2009
Hi Cameron,
On Sep 18, 2009, at 4:13 AM, Cameron Ross wrote:
> Hi,
>
> I'm trying to create the ec2Appliance defined within the ace git
> repository and I'm having two issues.
>
>
> 1) When I run appliance creator I get then following output:
> ...
> grub> setup --stage2=/var/tmp/imgcreate-4i76sn/install_root/boot/
> grub/stage2 --prefix=/boot/grub (hd0)
> Checking if "/boot/grub/stage1" exists... yes
> Checking if "/boot/grub/stage2" exists... yes
> Checking if "/boot/grub/e2fs_stage1_5" exists... yes
> Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... failed (this is
> not fatal)
> Running "embed /boot/grub/e2fs_stage1_5 (hd0,0)"... failed (this is
> not fatal)
> Running "install --stage2=/var/tmp/imgcreate-4i76sn/install_root/
> boot/grub/stage2 /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/
> grub/grub.conf "... succeeded
> Done.
> grub> quit
> Finished
>
> Can I safely ignore the failures that are generated?
This looks strange to me. I'm getting (but with my custom kickstart
file) this:
Installing grub to /dev/loop0
Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word,
TAB
lists possible command completions. Anywhere else TAB lists the
possible
completions of a device/filename.]
grub> device (hd0) /dev/loop0
grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup --stage2=/home/oddthesis/jboss-cloud/build/tmp/imgcreate-
GzcY5I/install_root/boot/grub/stage2 --prefix=/boot/grub (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 28 sectors are
embedded.
succeeded
Running "install --stage2=/home/oddthesis/jboss-cloud/build/tmp/
imgcreate-GzcY5I/install_root/boot/grub/stage2 /boot/grub/stage1 (hd0)
(hd0)1+28 p (hd0,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded
Done.
grub> quit
Unmounting directory /home/oddthesis/jboss-cloud/build/tmp/imgcreate-
GzcY5I/install_root/
Removing compat symlinks
Unmapping /dev/loop0
Losetup remove /dev/loop0
moving disks to stage location
moving /home/oddthesis/jboss-cloud/build/tmp/imgcreate-GzcY5I/
tmp-1Yk7Ja/httpd-appliance-sda.raw to /home/oddthesis/jboss-cloud/
build/tmp/imgcreate-GzcY5I/out/httpd-appliance-sda.raw
writing image XML to /home/oddthesis/jboss-cloud/build/tmp/imgcreate-
GzcY5I/out/httpd-appliance.xml
creating destination dir: build/appliances/i386/fedora/11/httpd-
appliance
moving /home/oddthesis/jboss-cloud/build/tmp/imgcreate-GzcY5I/out/
httpd-appliance.xml to build/appliances/i386/fedora/11/httpd-appliance/
httpd-appliance.xml
moving /home/oddthesis/jboss-cloud/build/tmp/imgcreate-GzcY5I/out/
httpd-appliance-sda.raw to build/appliances/i386/fedora/11/httpd-
appliance/httpd-appliance-sda.raw
Finished
> 2) When I run ec2-creator I get the following error:
> ...
> This filesystem will be automatically checked every 31 mounts or
> 180 days, whichever comes first. Use tune2fs -c or -i to override.
> error: cannot open Packages index using db3 - No such file or
> directory (2)
> error: cannot open Packages database in /var/tmp/ec2-convert-
> u91eq0vl/var/lib/rpm
> error: cannot open Packages database in /var/tmp/ec2-convert-
> u91eq0vl/var/lib/rpm
> Package(s): openssh-server not installed, exiting
> Please install openssh-server and rerun ec2-converter
> Or add --rpmcheck=no option
> Conversion failed
Maybe this has something to do with:
https://bugzilla.redhat.com/show_bug.cgi?id=507188
What OS are you using? What is your appliance-tools version?
--Marek
>
> Any advice is greatly appreciated.
> Cameron.
--
Marek Goldmann
JBoss by Red Hat
More information about the Thincrust-devel
mailing list