Bug 1028666 - virt-builder fails if you select only --format but not --size: virt-resize: error: You cannot use --expand when there is no surplus [...]
virt-builder fails if you select only --format but not --size: virt-resize: e...
Status: CLOSED UPSTREAM
Product: Virtualization Tools
Classification: Community
Component: libguestfs (Show other bugs)
unspecified
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Richard W.M. Jones
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-09 04:30 EST by Richard W.M. Jones
Modified: 2013-12-14 08:24 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-12-14 08:24:43 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Richard W.M. Jones 2013-11-09 04:30:02 EST
Description of problem:

If you use --format without --size, then you get an error:

virt-builder fedora-19 --format qcow2
[   0.0] Downloading: file:///home/rjones/d/libguestfs/builder/website/fedora-19.xz
[   1.0] Creating disk image: fedora-19.qcow2
[   1.0] Uncompressing: file:///home/rjones/d/libguestfs/builder/website/fedora-19.xz
[  15.0] Running virt-resize to expand the disk to 4.0G
virt-resize: error: You cannot use --expand when there is no surplus 
space to expand into.  You need to make the target disk larger by at 
least 1.3M.

virt-resize: If reporting bugs, run virt-resize with debugging enabled 
(-v) and include the complete output.
virt-builder: error: virt-resize failed

Version-Release number of selected component (if applicable):

libguestfs 1.25.7.

How reproducible:

100%

Steps to Reproduce:
1. See command line above.

Note You need to log in before you can comment on or make changes to this bug.