Commit Graph

21 Commits

Author SHA1 Message Date
Richard W.M. Jones
8b076d87a1 New tool: virt-tail.
This follows (tails) a log file within a guest, rather like
the regular 'tail -f' command.  For example:

  virt-tail -d guest /var/log/messages
2016-10-12 13:49:46 +01:00
Richard W.M. Jones
76c0a67d30 build: Add common CLEANFILES and DISTCLEANFILES to common-rules.mk.
By adding common CLEANFILES and DISTCLEANFILES variables to
common-rules.mk, we can remove these from most other Makefiles, and
also clean files more consistently.

Note that bin_PROGRAMS are already cleaned by 'make clean', so I
removed cases where these were unnecessarily added to CLEANFILES.
2016-08-25 16:54:34 +01:00
Richard W.M. Jones
473a753382 bash completion: Add a simple test that the 'complete' command is not missing. 2016-08-25 16:54:34 +01:00
Richard W.M. Jones
50a3abb95f bash completion: Add missing bash completion scripts (RHBZ#1367738).
Add new scripts for:

- guestunmount
- virt-copy-in
- virt-copy-out
- virt-customize
- virt-dib
- virt-diff
- virt-get-kernel
- virt-p2v-make-disk
- virt-p2v-make-kickstart
- virt-p2v-make-kiwi
- virt-tar-in
- virt-tar-out

Also combine the separate virt-resize script into the general script
virt-alignment-scan.  There wasn't really any reason to have separate
scripts.
2016-08-25 13:51:33 +01:00
Richard W.M. Jones
6a5b08065c bash completions: Add tip for how to run bash completions locally to README. 2016-08-25 13:51:33 +01:00
Richard W.M. Jones
307c83177c Update copyright dates for 2016.
Run the following command over the source:

  perl -pi.bak -e 's/(20[01][0-9])-2015/$1-2016/g' `git ls-files`
2016-01-02 21:19:51 +00:00
Pino Toscano
4f97f6866c resize: add --unknown-filesystems
Introduce a new option to control how virt-resize behaves when asking to
expand a filesystem, either unknown to libguestfs or that virt-resize
cannot expand. The default keeps the current behaviour, i.e. just warn.
2015-10-27 17:49:57 +01:00
Richard W.M. Jones
c5800dc97d Update copyright dates for 2015. 2015-01-17 09:08:15 +00:00
Pino Toscano
6faa7b4c84 bash: add a completion module for virt-v2v 2014-11-27 16:26:14 +01:00
Pino Toscano
e3834188a9 bash: complete some params for resize, sparsify, and builder
Hardcode the list of fixed arguments for some of the parameters of these
tools.
2014-11-27 16:26:13 +01:00
Pino Toscano
1784cd2633 bash: complete also short options
Propose both short and long options when trying to complete a single
dash ("-").
2014-11-27 16:26:13 +01:00
Pino Toscano
4b792354f0 bash: execute --long-options only when needed
Delay the execution of $tool --long-options only when really using its
output.
2014-11-27 16:26:13 +01:00
Pino Toscano
65a54c6c92 bash: fix build/clean when srcdir==builddir
Use CLEANFILES to remove the generated symlinks, and just ignore the
errors when copying the scripts in srcdir!=builddir situations.

Followup of commit 40ac54829d.
2014-11-04 10:50:59 +01:00
Hilko Bengen
40ac54829d Fix, simplify out-of-tree build/install for bash completions 2014-11-04 09:40:13 +00:00
Richard W.M. Jones
a5a0c2f3b0 bash-completion: Install symbolic links instead of copies of files (RHBZ#1156298). 2014-10-24 10:32:25 +01:00
Richard W.M. Jones
68ac0afc8d bash-completion: Replace 'ln -sf' commands with rm; $(LN_S). 2014-10-24 10:32:25 +01:00
Pino Toscano
94f2eb8b26 bash: add virt-log completion entry (RHBZ#1151766).
Thanks: Lingfei Kong
2014-10-13 15:06:30 +02:00
Richard W.M. Jones
fb546eaee0 New tool: virt-log: It lists log files from within the guest.
See 'TODO' file for suggested future improvements.
2014-06-14 13:58:45 +01:00
Richard W.M. Jones
6c971faecf Update copyright dates for 2014. 2014-01-02 16:53:34 +00: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
Richard W.M. Jones
3c34db9808 Use new-style demand-loaded bash-completion scripts. 2013-03-28 18:46:06 +00:00