[Libguestfs] Attention packagers: libguestfs 1.27.21: firstboot support and Windows

Richard W.M. Jones rjones at redhat.com
Tue Jul 8 18:21:33 UTC 2014


Starting in libguestfs 1.27.21, we're able to install firstboot
scripts into Windows guests.  Initially this is just for virt-v2v, but
I will extend the feature to virt-sysprep/virt-customize.

How this may affect Debian and other downstream packagers is as follows:

In order to do this we have to install a program called 'rhsrvany.exe'.
If this program is found in /usr/share/virt-tools/rhsrvany.exe then it
is copied into the Windows guest and the registry of the guest is
modified so that rhsrvany will run once at next boot.  rhsrvany then
chain-runs the actual firstboot script (usually a .bat file).

rhsrvany is a Windows program that was written by Red Hat, comes with
source, and is under a GPLv2+ license.  However it does require the 32 bit
mingw-w64 [sic] toolchain to build.

The source is here:

  https://github.com/rwmjones/rhsrvany

This is how we build it in Fedora (look at the .spec file):

  http://pkgs.fedoraproject.org/cgit/mingw-srvany.git/tree/

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top




More information about the Libguestfs mailing list