diskimage-builder安装:本文采用git方式
准备工具:pip,git
ubuntu系统:
apt-get install git python-pip kpartx qemu-utils -y
pip install --upgrade pip
centos系统:
yum install git epel-release -y
yum install python-pip -y
pip install --upgrade pip
下载diskimage-builder项目:gitclone https://github.com/openstack/diskimage-builder.git
安装diskimage-builder
cd diskimage-builder
python setup.py install
pip install -r requirement.txt
至此diskimagebuilder安装完毕