[Rdo-list] Create el6-based glance image.
Thomas Oulevey
thomas.oulevey at cern.ch
Mon Apr 22 12:04:15 UTC 2013
Hello RDO users,
I have little tool to create small el6 based Glance images, I like to
share. (no more cirros ;)
It is called: create-glance-image-el6.sh
usage: $0 OPTIONS -u <url> <imagename>
This script create a small(-ish) el6-based image for Glance and can
import it.
OPTIONS:
-a make image public in Glance
-e extras packages to install e.g: "ipmitool mypkg2 mypkg3" ;
-g execute glance command instead of printing it ;
-h print this help ;
-n nameserver ;
-p set root password / default: toor ;
-s image size. (number of block of 1024) / default: 2097152
-u release rpm url or file ;
I tested it with 3 different distributions:
centos : sudo create-glance-image-el6.sh -u http://mirror.switch.ch/ftp/mirror/centos/6.4/os/x86_64/Packages/centos-release-6-4.el6.centos.10.x86_64.rpm mycentos64
scientific linux : sudo create-glance-image-el6.sh -u http://ftp.scientificlinux.org/linux/scientific/6.4/x86_64/os/Packages/sl-release-6.4-1.x86_64.rpm mysl64
slc : sudo create-glance-image-el6.sh -u http://linuxsoft.cern.ch/cern/slc6X/x86_64/Packages/sl-release-6.4-1.slc6.x86_64.rpm myslc64
Please use different mirrors.
Please not you need to use -g to automate the Glance upload.
Please test on development server : NO WARRANTIES
Code & Download : https://github.com/alphacc/openstack-tools
Feedback is welcome !
Thomas.
More information about the dev
mailing list