# disk-image-create --version
2.0.1
# sudo disk-image-create -x -t qcow2 --no-tmpfs --qemu-img-options 'compat=0.10' --image-size 2 vm centos-minimal
Error:
.................
+ /tmp/dib_build.PyC1H0Za/hooks/root.d/08-yum-chroot:_install_repos:87 : yumdownloader --releasever=7 --setopt=reposdir=/tmp/dib_build.PyC1H0Za/hooks/yum.repos.d --destdir=/tmp/tmp.0EIpAOLO72 basesystem filesystem setup centos-release
/tmp/dib_build.PyC1H0Za/hooks/root.d/08-yum-chroot: line 87: yumdownloader: command not found
+ /tmp/dib_build.PyC1H0Za/hooks/root.d/08-yum-chroot:_install_repos:91 : rc=127
+ /tmp/dib_build.PyC1H0Za/hooks/root.d/08-yum-chroot:_install_repos:92 : rm -rf /tmp/tmp.Im71XWCpEU
+ /tmp/dib_build.PyC1H0Za/hooks/root.d/08-yum-chroot:_install_repos:93 : [[ 127 != 0 ]]
+ /tmp/dib_build.PyC1H0Za/hooks/root.d/08-yum-chroot:_install_repos:94 : die 'Failed to download initial packages: basesystem filesystem setup centos-release '
According to [1] centos OS does not need yum-utils
[1] https://github.com/openstack/diskimage-builder/blob/958ea8a3372157fe62c3a2bb1fcd55a9cadedab1/diskimage_builder/elements/centos-minimal/README.rst#L6
you need to install yum-utils on the host, where you run disk-image-builder