This fails: $ virt-builder --format qcow2 --size 10G --root-password=password:foobar debian-8 [ 5,2] Downloading: http://libguestfs.org/download/builder/debian-8.xz [ 5,8] Planning how to build this image [ 5,8] Uncompressing [ 15,0] Resizing (using virt-resize) to expand the disk to 10,0G virt-resize: error: libguestfs error: part_set_mbr_id: sfdisk --part-type: Extended partition already exists. sfdisk: /dev/sdb: partition 2: failed to set partition type If reporting bugs, run virt-resize with debugging enabled and include the complete output: virt-resize -v -x [...] Version-Release number of selected component (if applicable): libguestfs-tools-c-1.30.4-1.fc22.x86_64 How reproducible: Always
This is fixed upstream but the fixes haven't been backported to the 1.30 branch (yet). See: https://bugzilla.redhat.com/show_bug.cgi?id=1266658#c4 *** This bug has been marked as a duplicate of bug 1266658 ***