Build VM Images by Diskimage-builder

Disk Image Builder

Earlier in Openstack manually prepared script to prepare images with ram disks, disk images inputs, but disk image builder tool is a flexible suite of components for building a wide-range of disk images, filesystem images and ramdisk images for use with OpenStack.

Installation

Can do either via directly running out of the source repository or installed via pip, here the steps

git clone http://github.com/openstack/diskimage-builder
cd diskimage-builder

pip install -U -r requirements.txt
pip install -e

 

The above will requirements mentioned in that file

Babel!=2.3.0,!=2.3.1,!=2.3.2,!=2.3.3,>=1.3 # BSD
dib-utils # Apache-2.0
pbr>=1.6 # Apache-2.0
PyYAML>=3.1.0 # MIT
flake8<2.6.0,>=2.5.4 # MIT
six>=1.9.0 # MIT

Now all the binaries are lying in “diskimage-builder/bin”, can run from this path or can export it to $PATH as below

export PATH=$PATH:$(pwd)/diskimage-builder/bin

Now setup is ready, ready to prepare images

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s