I'm trying to automatically create cloud images using virt-builder
.
I am using the following command in Centos 7 and it keeps failing. Any idea behind the issue ?
# virt-builder debian-9 -o /var/lib/libvirt/images/DB9-20G.qcow2 --format qcow2 --hostname ip.com --update --root-password password:root123 --firstboot-command 'dhclient ens3' --size 20G
This is the output:
[ 2.3] Downloading: http://libguestfs.org/download/builder/debian-9.xz
[ 3.3] Planning how to build this image
[ 3.3] Uncompressing
[ 6.2] Resizing (using virt-resize) to expand the disk to 20.0G
virt-resize: error: libguestfs error: resize2fs: e2fsck 1.42.9
(28-Dec-2013)
/dev/sda1 has unsupported feature(s): metadata_csum
e2fsck: Get a newer version of e2fsck!
If reporting bugs, run virt-resize with debugging enabled and include the
complete output:
virt-resize -v -x [...]
Update-01: Seems e2fsprogs in Centos 7 is quite old to handle this issue. Is there any alternative way to better handle creating of cloud images on fly from command line ?