Bug 1088262 - virt-builder cannot write to a block device
Summary: virt-builder cannot write to a block device
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-16 10:36 UTC by Richard W.M. Jones
Modified: 2014-04-16 20:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-16 20:14:42 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2014-04-16 10:36:39 UTC
Description of problem:

/dev/sdc is a USB key, and I want to have virt-builder write an
OS to this device.  However it doesn't work:

$ virt-builder fedora-20 -o /dev/sdc 
[   1.0] Downloading: http://libguestfs.org/download/builder/fedora-20.xz
#######################################################################   99.9%
[  90.0] Planning how to build this image
[  90.0] Uncompressing
[ 101.0] Resizing (using virt-resize) to expand the disk to 14.9G
virt-builder: libguestfs error: refusing to overwrite block device '/dev/sdc'

(The error comes from the disk-create API.   We should not
be using this API)

This is actually a regression, since this is supposed to work,
and I'm pretty sure it worked before.

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

libguestfs 1.27.5

How reproducible:

See above.

Comment 1 Richard W.M. Jones 2014-04-16 11:10:18 UTC
Patch posted:

https://www.redhat.com/archives/libguestfs/2014-April/msg00047.html

Comment 2 Richard W.M. Jones 2014-04-16 20:14:42 UTC
Pushed upstream, commit 27355c9b0b49fb988181c6ad70375aa6f490c558


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