Tag Archives: libguestfs-1.12

New libguestfs 1.12: Full Java bindings

In this series of posts I’ll be looking at what’s new in the forthcoming release of libguestfs 1.12.

In previous versions of libguestfs, the Java bindings were incomplete. In 1.12 they now cover all API calls, and we are also providing Java examples which match the other language examples.

As explained here yesterday you can also use these bindings from JRuby.

Advertisements

Leave a comment

Filed under Uncategorized

Debian packages for libguestfs 1.12

Debian packages for libguestfs 1.12 are now available. You must read the README file before trying to use these.

Leave a comment

Filed under Uncategorized

Ubuntu packages for libguestfs 1.12.0

The Ubuntu packages are here. Read the README file before trying to install them.

Leave a comment

Filed under Uncategorized

Fedora package for libguestfs 1.12

There is now a Fedora package for libguestfs 1.12. It requires Rawhide or the soon-to-be-branched Fedora 16.

There are two kernel or qemu bugs which prevent us from running the full test suite (723555, 723822), so we’ve only been able to do the “quick check”. So some bits might be broken.

2 Comments

Filed under Uncategorized

libguestfs 1.12 released!

libguestfs 1.12 has been released!

Read the release notes here:

http://libguestfs.org/RELEASE-NOTES.txt

Leave a comment

Filed under Uncategorized

New in libguestfs 1.12: use virt-ls to analyze guests

In this series of posts I’ll be looking at what’s new in the forthcoming release of libguestfs 1.12.

With the forthcoming virt-ls -lR option you will be able to extract the file metadata from a virtual machine easily. The output format is designed so that simple grep patterns can be used to detect interesting things in the output.

For example to display the names of all setuid and setgid files in the VM:

# virt-ls -lR -d guest / | grep '^- [42]'
- 4755      12544 /bin/cgexec -
- 4755      32448 /bin/fusermount -
- 4755      78648 /bin/mount -
- 4755      43160 /bin/ping -
- 4755      47888 /bin/ping6 -
- 4755      34904 /bin/su -
- 4755      50432 /bin/umount -
[...]

To display all public writable directories:

# virt-ls -lR -d guest / | grep '^d ...7'
d 1777      12288 /tmp -
d 1777       4096 /tmp/.ICE-unix -
d 1777       4096 /tmp/.X11-unix -
d 1777       4096 /var/tmp -

To display files larger than 10MB in home directories:

# virt-ls -lR -d guest /home | awk '$3 >= 10*1024*1024'

Find regular files modified in the last 24 hours:

# virt-ls -lR -d guest --time-days / |
    grep '^-' |
    awk '$6 < 1'
[...]
- 0600        138   0   0   0 /home/rjones/.Xauthority
- 0600         69   0   0   0 /root/.xauthsdYvWC
- 0444         11   0   0   0 /tmp/.X0-lock
[...]

Also filesystem comparisons are made much simpler. So to display changes in files between a snapshot and the latest version of a VM you would simply do:

# virt-ls -lR -a snapshot.img / --uids --time-t --checksum > old
# virt-ls -lR -a current.img / --uids --time-t --checksum > new
# diff -u old new | less

Leave a comment

Filed under Uncategorized

New in libguestfs 1.12: easier file creation and appending in guestfish

In this series of posts I’ll be looking at what’s new in the forthcoming release of libguestfs 1.12.

Earlier versions of guestfish made it hard to append lines at the end of a configuration file. In libguestfs 1.12, this is much simpler because we support \n in quotes and a new write-append command.

$ guestfish -i -d Guest
><fs> write-append /etc/resolv.conf "nameserver 1.2.3.4\nnameserver 1.2.3.5\n"

Leave a comment

Filed under Uncategorized