Using virt-builder to create image

by codingfreak   Last Updated January 25, 2018 08:00 AM

I am trying to automatically create cloud images using virt-builder.

I am using below 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 --update --root-password password:root123 --firstboot-command 'dhclient ens3' --size 20G
    [   2.3] Downloading:
    [   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 
    /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 [...]

Related Questions

Can libvirtd be used without kvm?

Updated July 20, 2015 17:00 PM

Can't enable shadow vmcs in virt-manager

Updated October 06, 2018 06:00 AM