虚环境安装
克隆源码的仓库:
$ git clone https://git.openstack.org/openstack/diskimage-builder
$ git clone https://git.openstack.org/openstack/dib-utils
建立虚环境:
$ virtualenv dib-env
启用虚环境
$ source dib-env/bin/activate
停止环境
$ source dib-env/bin/deactivate
安装:
$ cd diskimage-builder
$ pip install .
制作arm64下user镜像
env DIB_CLOUD_IMAGES=http://cloud.centos.org/altarch/7/images/aarch64/CentOS-7-aarch64-GenericCloud-1701.qcow2.xz disk-image-create vm block-device-efi centos7 dhcp-all-interfaces -o centos-7.5-baremetal.qcow2 -a arm64 --logfile centos_7.log
env DIB_RELEASE=7 DIB_DEV_USER_USERNAME=centos DIB_DEV_USER_PASSWORD=23. disk-image-create -o centos7.qcow2 centos vm cloud-init dhcp-all-interfaces disable-selinux -a arm64 block-device-efi devuser
制作arm64下deploy镜像
新的dib工具将ironic-python-agent element改成 ironic-python-agent-ramdisk ,还需要安装ironic-python-agent-ramdisk
给dib添加扩展elements
export ELEMENTS_PATH=./builder/ironic-python-agent-builder/dib/
env DIB_DEBUG_TRACE=3 DIB_RELEASE=eoan DIB_PYTHON_VERSION=3 disk-image-create ironic-python-agent-ramdisk ubuntu -o ironic-deploy -a arm64
标签:python,builder,dib,DIB,env,ironic,ARM From: https://www.cnblogs.com/shunzi115/p/17496918.html