Richard W.M. Jones
80da8b19e0
builder: Use progress bar for large template downloads that are not in the cache.
2013-10-05 16:00:21 +01:00
Richard W.M. Jones
7b82580352
builder: Create an install log file, and dump the full log on error.
...
This should make debugging much simpler, and also provides a
build log in the guest once it's built.
2013-10-05 15:19:06 +01:00
Richard W.M. Jones
cc37490e05
builder: Tidy up error messages.
2013-10-05 15:00:36 +01:00
Richard W.M. Jones
f93968d6fa
builder: Clean up messaging.
...
Ensure every significant action gets a message.
2013-10-05 14:25:07 +01:00
Richard W.M. Jones
fe7f88a35d
builder: Fix --format/--output-format arguments to virt-resize subcommand.
...
The 'virt-builder --format' option translates to the
'virt-resize --output-format' option, because it specifies the output
format.
On the contrary, the 'virt-resize --format' option (the input format)
is always 'raw'.
2013-10-04 08:42:20 +01:00
Richard W.M. Jones
c975d9e53b
builder: Implement --hostname (set hostname of guest).
...
This also makes a minor rearrangement so that the random seed, root
password, hostname setting all happen before package installation.
This keeps these configuration changes together and means that the
packages that are installed can act differently based on hostname
(which is conceivable).
2013-10-03 22:02:47 +01:00
Richard W.M. Jones
9ba6717e94
New tool: virt-builder: For quickly building virtual machine images.
...
On baremetal you can build and customize a new guest in under 2
minutes. For example:
$ virt-builder fedora-19 \
--root-password password:test \
--install minicom \
--firstboot-command 'yum -y update' \
--firstboot-command 'useradd -m -p "" rjones ; chage -d 0 rjones'
[ 0.0] Downloading: file:///home/rjones/d/libguestfs/builder/website/fedora-19.xz
[ 1.0] Uncompressing: file:///home/rjones/d/libguestfs/builder/website/fedora-19.xz
[ 24.0] Running virt-resize to expand the disk to 4.2G
[ 77.0] Opening the new disk
[ 81.0] Installing packages: minicom
[ 94.0] Installing firstboot command: [001] yum -y update
[ 94.0] Installing firstboot command: [002] useradd -m -p "" rjones ; chage -d 0 rjones
[ 94.0] Finishing off
2013-10-03 22:02:16 +01:00