katzj / ami-creator

Basic tool to create AMIs for EC2 based off of a kickstart config
http://velohacker.com/fedora-notes/announcing-ami-creator/
GNU General Public License v3.0
90 stars 35 forks source link

Image created not bootable on openstack #10

Open arthurzenika opened 11 years ago

arthurzenika commented 11 years ago

The image created is not bootable on openstack with extrated kernel and initramfs.

Using a working CentOS6 kernel and initramfs works a bit better (but we'll have missing modules)

We have a bunch of weird warnings such as :

  Installing: info                         ##################### [ 25/168] 
install-info: No such file or directory for /usr/share/info/info-stnd.info.gz
  Installing: nss                          ##################### [ 26/168] 
  Installing: readline                     ##################### [ 27/168] 
install-info: No such file or directory for /usr/share/info/history.info.gz
install-info: No such file or directory for /usr/share/info/readline.info.gz

[...]
  Installing: binutils                     ##################### [ 46/168] 
install-info: No such file or directory for /usr/share/info/as.info.gz
install-info: No such file or directory for /usr/share/info/binutils.info.gz
install-info: No such file or directory for /usr/share/info/gprof.info.gz
install-info: No such file or directory for /usr/share/info/ld.info.gz
install-info: No such file or directory for /usr/share/info/standards.info.gz
install-info: No such file or directory for /usr/share/info/configure.info.gz
warning: %post(binutils-2.17.50.0.6-20.el5_8.3.x86_64) scriptlet failed, exit status 1
  Installing: cpio                         ##################### [ 47/168] 
install-info: No such file or directory for /usr/share/info/cpio.info.gz
[...]
  Installing: findutils                    ##################### [ 80/168] 
install-info: No such file or directory for /usr/share/info/find.info.gz
warning: %post(findutils-1:4.2.27-6.el5.x86_64) scriptlet failed, exit status 1
  Installing: shadow-utils                 ##################### [ 81/168] 
/usr/sbin/groupadd: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory
/usr/sbin/groupadd: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory
  Installing: libutempter                  ###                   [ 82/168]warning: group utmp does not exist - using root
  Installing: libutempter                  ##################### [ 82/168] 
  Installing: net-tools                    ##################### [ 83/168] 

[...]
WARNING: No module xen_blkfront found for kernel 2.6.18-348.4.1.el5xen, continuing anyway
WARNING: No module virtio_pci found for kernel 2.6.18-348.4.1.el5xen, continuing anyway
katzj commented 11 years ago

Most of the docs are due to --nodocs and packages not properly handling that. If you remove --nodocs, all of the warnings about info will go away

Does OpenStack work in general with the EL5 kernel? The only things I've done with OpenStack were all EL6 based (and > a year ago at this point)

wmealing commented 7 years ago

The earlier kernel versions of el5 probably wont work without specific kvm settings, if they use the viort_pci driver, you'll be out of luck, as this is the default driver required for kvm without specifically setting hardware.