标签:下载 gen openstack eric ons lazy 手动 str device
安裝下列套件: git qemu-system-x86 qemu-img kpartx
yum install python3 yum -y install qemu-img kpartx yum -y install python3-pip
git clone https://git.openstack.org/openstack/diskimage-builder
/tmp/in_target.d/install.d/60-ironic-agent-install: line 13: /usr/share/ironic-python-agent/imagebuild/common/generate_upper_constraints.sh: No such file or directory
ironic-python-agent-ramdisk
env DIB_DEBUG_TRACE=3 DIB_RELEASE=eoan disk-image-create ironic-python-agent-ramdisk ubuntu -o ironic-deploy -a arm64
Install sudo apt install -y curl python-pip qemu-utils pip install diskimage-builder # packages dib/elements/my_pkg/package-installs.yaml ... vlan: wget: linux-image-generic: uninstall: True # change TMPDIR export TMPDIR=/mnt disk-image-create -o output.qcow --no-tmpfs vm block-device-gpt ubuntu-minimal Build IPA image export DIB_QUIET=0 export ELEMENTS_PATH=/opt/ironic-python-agent-builder/dib:/opt/diskimage-builder/dib/elements export IMAGE_NAME=ironic-python-agent export DIB_ELEMENTS=ironic-python-agent-ramdisk export DIB_RELEASE=focal disk-image-create ${DIB_ELEMENTS} -o ${IMAGE_NAME} --logfile ${IMAGE_NAME}.log Build Ubuntu image export DIB_QUIET=0 export ELEMENTS_PATH=/opt/diskimage-builder/dib/elements export IMAGE_NAME=img-${DIB_RELEASE}-minimal export DIB_ELEMENTS=foo export DIB_RELEASE=focal disk-image-create ${DIB_ELEMENTS} -o ${IMAGE_NAME} -t tgz --logfile ${IMAGE_NAME}.log --checksum
cd diskimage-builder python3 setup.py install 或者 pip3 install . -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip3 install diskimage-builder -i https://mirrors.aliyun.com/pypi/simple/
env DIB_DEBUG_TRACE=3 DIB_RELEASE=7 disk-image-create ironic-agent centos -o ironic-deploy -a x86_64 --logfile ./centos7-os_v6.log
手动下载get-pip.py
elements/cache-url/bin/cache-url
if [ "$url" == "https://bootstrap.pypa.io/get-pip.py" ] ; then cp /root/get-pip.py $tmp rcode=200 else rcode=$(curl -v -L -o $tmp -w ‘%{http_code}‘ --connect-timeout 10 "${curl_opts[@]}" $url $time_cond) fi #rcode=$(curl -v -L -o $tmp -w ‘%{http_code}‘ --connect-timeout 10 "${curl_opts[@]}" $url $time_cond)
标签:下载 gen openstack eric ons lazy 手动 str device
原文地址:https://www.cnblogs.com/dream397/p/13186916.html