libvirt入れてみた

昨日の続き。KVMの起動停止スクリプトについてはもうちょっと待ってて。

1.本家のサイトからソースをダウンロードする
http://libvirt.org/ へ行き、左側の「Downloads」 から、 ftp://libvirt.org/libvirt/ に飛び「libvirt-0.9.11.tar.gz」をダウンロード。

めんどくさかったら

# wget ftp://libvirt.org/libvirt/libvirt-0.9.11.tar.gz


2.解凍、展開

# tar xvzf ./libvirt-0.9.11.tar.gz 


3.configureのオプションを確認すると、こんな感じ

# ./confgigure --help
`configure' configures libvirt 0.9.11 to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libvirt]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-maintainer-mode  disable make rules and dependencies not useful
			  (and sometimes confusing) to the casual installer
  --enable-silent-rules          less verbose build output (undo: `make V=1')
  --disable-silent-rules         verbose build output (undo: `make V=0')
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --disable-largefile     omit support for large files
  --enable-threads={posix|solaris|pth|windows}
                          specify multithreading API
  --disable-threads       build without multithread safety
  --enable-threads={posix|solaris|pth|win32}
                          specify multithreading API
  --disable-threads       build without multithread safety
  --disable-rpath         do not hardcode runtime library paths
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --enable-werror         Use -Werror (if supported)
  --enable-debug=[no|yes] enable debugging output [default=yes]
  --with-test-suite       build test suite by default [default=check]
  --enable-test-coverage  turn on code coverage instrumentation [default=no]
  --enable-test-oom       memory allocation failure checking [default=no]
  --enable-test-locking   thread locking tests using CIL [default=no]
  --disable-nls           do not use Native Language Support

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-packager         Extra packager name
  --with-packager-version Extra packager version
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
  --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
  --without-libpth-prefix     don't search for libpth in includedir and libdir
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot=DIR Search for dependent libraries within DIR
                        (or the compiler's sysroot if not specified).
  --with-html-dir=path    path to base html directory, default
                          $datadir/doc/html
  --with-html-subdir=path directory used under html-dir, default
                          $PACKAGE-$VERSION/html
  --with-xml-catalog-file=path
                          path to XML catalog file for validating generated
                          html, default /etc/xml/catalog
  --with-xen              add XEN support [default=check]
  --with-xen-inotify      add XEN inotify support [default=check]
  --with-qemu             add QEMU/KVM support [default=yes]
  --with-uml              add UML support [default=check]
  --with-openvz           add OpenVZ support [default=check]
  --with-vmware           add VMware support [default=yes]
  --with-libssh2          libssh2 location [default=check]
  --with-phyp             add PHYP support [default=check]
  --with-xenapi           add XenAPI support [default=check]
  --with-libxl            add libxenlight support [default=check]
  --with-vbox=[PFX]       VirtualBox XPCOMC location [default=yes]
  --with-lxc              add Linux Container support [default=check]
  --with-esx              add ESX support [default=check]
  --with-hyperv           add Hyper-V support [default=check]
  --with-test             add test driver support [default=yes]
  --with-remote           add remote driver support [default=yes]
  --with-libvirtd         add libvirtd support [default=yes]
  --with-console-lock-files
                          location for UUCP style lock files for console PTYs
                          (use auto for default paths on some platforms)
                          [default=auto]
  --with-init-script[=STYLE]
                          Style of init script to install: redhat, systemd,
                          systemd+redhat, upstart, auto, none [default=auto]
  --with-rhel5-api=[ARG]  build for the RHEL-5 API [default=no]
  --with-libxml=[PFX]     libxml2 location
  --with-sasl             use cyrus SASL for authentication [default=check]
  --with-yajl             use YAJL for JSON parsing/formatting [default=check]
  --with-sanlock          build Sanlock plugin for lock management
                          [default=check]
  --with-polkit           use PolicyKit for UNIX socket access checks
                          [default=check]
  --with-avahi            use avahi to advertise remote daemon [default=check]
  --with-audit            use audit library [default=check]
  --with-selinux          use SELinux to manage security [default=check]
  --with-selinux-mount    set SELinux mount point [default=check]
  --with-secdriver-selinux
                          use SELinux security driver [default=check]
  --with-apparmor         use AppArmor to manage security [default=check]
  --with-secdriver-apparmor
                          use AppArmor security driver [default=check]
  --with-dtrace           use dtrace for static probing [default=check]
  --with-numactl          use numactl for host topology info [default=check]
  --with-numad            use numad to manage CPU placement dynamically
                          [default=check]
  --with-libpcap=[PFX]    libpcap location
  --with-capng            use libcap-ng to reduce libvirtd privileges
                          [default=check]
  --with-network          with virtual network driver [default=yes]
  --with-netcf            libnetcf support to configure physical host network
                          interfaces [default=check]
  --with-secrets          with local secrets management driver [default=yes]
  --with-storage-dir      with directory backend for the storage driver
                          [default=yes]
  --with-storage-fs       with FileSystem backend for the storage driver
                          [default=check]
  --with-storage-lvm      with LVM backend for the storage driver
                          [default=check]
  --with-storage-iscsi    with iSCSI backend for the storage driver
                          [default=check]
  --with-storage-scsi     with SCSI backend for the storage driver
                          [default=check]
  --with-storage-mpath    with mpath backend for the storage driver
                          [default=check]
  --with-storage-disk     with GPartd Disk backend for the storage driver
                          [default=check]
  --with-python           Build python bindings [default=yes]
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
  --without-libintl-prefix     don't search for libintl in includedir and libdir
  --with-driver-modules   build drivers as loadable modules [default=no]
  --with-hal              use HAL for host device enumeration [default=check]
  --with-udev             use libudev for host device enumeration
                          [default=check]
  --with-libblkid         use libblkid to scan for filesystems and partitions
                          [default=check]
  --with-qemu-user        username to run QEMU system instance as
                          [default=root]
  --with-qemu-group       groupname to run QEMU system instance as
                          [default=root]
  --with-macvtap          enable macvtap device [default=check]
  --with-virtualport      enable virtual port support [default=check]

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  PKG_CONFIG  path to pkg-config utility
  PKG_CONFIG_PATH
              directories to add to pkg-config's search path
  PKG_CONFIG_LIBDIR
              path overriding pkg-config's built-in search path
  LIBXML_CFLAGS
              C compiler flags for LIBXML, overriding pkg-config
  LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
  GNUTLS_CFLAGS
              C compiler flags for GNUTLS, overriding pkg-config
  GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
  POLKIT_CFLAGS
              C compiler flags for POLKIT, overriding pkg-config
  POLKIT_LIBS linker flags for POLKIT, overriding pkg-config
  AVAHI_CFLAGS
              C compiler flags for AVAHI, overriding pkg-config
  AVAHI_LIBS  linker flags for AVAHI, overriding pkg-config
  LIBSSH2_CFLAGS
              C compiler flags for LIBSSH2, overriding pkg-config
  LIBSSH2_LIBS
              linker flags for LIBSSH2, overriding pkg-config
  NETCF_CFLAGS
              C compiler flags for NETCF, overriding pkg-config
  NETCF_LIBS  linker flags for NETCF, overriding pkg-config
  LIBPARTED_CFLAGS
              C compiler flags for LIBPARTED, overriding pkg-config
  LIBPARTED_LIBS
              linker flags for LIBPARTED, overriding pkg-config
  DEVMAPPER_CFLAGS
              C compiler flags for DEVMAPPER, overriding pkg-config
  DEVMAPPER_LIBS
              linker flags for DEVMAPPER, overriding pkg-config
  LIBCURL_CFLAGS
              C compiler flags for LIBCURL, overriding pkg-config
  LIBCURL_LIBS
              linker flags for LIBCURL, overriding pkg-config
  OPENWSMAN_CFLAGS
              C compiler flags for OPENWSMAN, overriding pkg-config
  OPENWSMAN_LIBS
              linker flags for OPENWSMAN, overriding pkg-config
  HAL_CFLAGS  C compiler flags for HAL, overriding pkg-config
  HAL_LIBS    linker flags for HAL, overriding pkg-config
  UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
  UDEV_LIBS   linker flags for UDEV, overriding pkg-config
  PCIACCESS_CFLAGS
              C compiler flags for PCIACCESS, overriding pkg-config
  PCIACCESS_LIBS
              linker flags for PCIACCESS, overriding pkg-config
  BLKID_CFLAGS
              C compiler flags for BLKID, overriding pkg-config
  BLKID_LIBS  linker flags for BLKID, overriding pkg-config
  LIBNL_CFLAGS
              C compiler flags for LIBNL, overriding pkg-config
  LIBNL_LIBS  linker flags for LIBNL, overriding pkg-config

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <libvir-list@redhat.com>.
libvirt home page: <http://libvirt.org>.

4.依存性を解消しておくために、事前にパッケージを幾つか入れておく

# yum inastall libxml2-devel.x86_64 gnutls-devel.x86_64 libgcrypt-devel.x86_64 libgpg-error-devel.x86_64 device-mapper-devel.x86_64 libselinux-devel.x86_64 libudev-devel.x86_64 python-devel.x86_64 libnl-devel.x86_64 

5.インストール

# ./configure && make && make install

6.libvirtdコマンドの確認

# which libvirtd
/usr/local/sbin/libvirtd

7.管理スクリプトの存在確認

# grep -r '#!/bin/' /var/tmp/kvm/src/libvirt-0.9.11
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-mbsrtowcs4.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-ftruncate.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-posix_spawn1.in.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-fflush2.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-btowc2.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-mbsrtowcs1.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-binary-io.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-lseek.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-mbrtowc4.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-mbsinit.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-setlocale2.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-mbrtowc-w32-3.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-mbsrtowcs3.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-mbrtowc-w32-2.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-fseek2.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-wcrtomb-w32-4.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-wcrtomb-w32-5.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-fseeko2.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-mbrtowc3.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-init.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-wcrtomb-w32-2.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-mbrtowc-w32-1.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-fseeko.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-vc-list-files-cvs.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-vc-list-files-cvs.sh:    printf '%s\n' '#!/bin/sh' 'exit 1' > cvsu
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-vc-list-files-git.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-ftello4.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-posix_spawn2.in.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-xalloc-die.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-verify.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-select-in.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-fseeko.c:  /* Assume stdin is non-empty, seekable, and starts with '#!/bin/sh'
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-fseeko4.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-perror.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-mbrtowc-w32-5.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-posix_spawn1.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-fseeko3.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-setlocale1.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/init.sh:#   #!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-wcrtomb.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-mbrtowc-w32-4.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-nonblocking-pipe.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-mbrtowc2.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-c-strcase.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-fseek.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-select-out.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-fseek.c:  /* Assume stdin is non-empty, seekable, and starts with '#!/bin/sh'
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-mbsrtowcs2.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-btowc1.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-sigpipe.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-ftell2.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-ftell.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-nonblocking-socket.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-wcrtomb-w32-3.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-ftello2.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-wcrtomb-w32-1.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-posix_spawn2.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-mbrtowc1.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/gnulib/tests/test-ftello.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/docs/drvopenvz.html.in:#!/bin/bash
/var/tmp/kvm/src/libvirt-0.9.11/docs/hooks.html.in:    <pre>#!/bin/bash</pre>
/var/tmp/kvm/src/libvirt-0.9.11/docs/hooks.html:        <pre>#!/bin/bash</pre>
/var/tmp/kvm/src/libvirt-0.9.11/docs/drvopenvz.html:#!/bin/bash
/var/tmp/kvm/src/libvirt-0.9.11/autogen.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/daemon/libvirtd.init:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/daemon/libvirtd.init.in:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/networkschematest:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/vcpupin:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/virt-aa-helper-test:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/daemon-conf:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/storagevolschematest:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/nodedevschematest:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/interfaceschematest:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/domainschematest:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/virsh-schedinfo:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/schematestutils.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/test_conf.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/cpuset:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/domainsnapshotschematest:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/virsh-optparse:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/virsh-all:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/undefine:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/read-bufsiz:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/capabilityschematest:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/int-overflow:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/virsh-synopsis:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/nwfilterschematest:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/libvirtd-pool:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/read-non-seekable:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/libvirtd-fail:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/start:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/storagepoolschematest:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tests/define-dev-segfault:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tools/virt-pki-validate:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tools/virt-xml-validate:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tools/libvirt-guests.init.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tools/virt-sanlock-cleanup.in:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tools/virt-xml-validate.in:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tools/libvirt-guests.init:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/tools/virt-pki-validate.in:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/autobuild.sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/libvirt.spec.in:  printf "#!/bin/sh\nexit 0\n" > $i
/var/tmp/kvm/src/libvirt-0.9.11/ChangeLog:    make rpm created dummy tests containing '-e #!/bin/sh' for me.
/var/tmp/kvm/src/libvirt-0.9.11/libvirt.spec:  printf "#!/bin/sh\nexit 0\n" > $i
/var/tmp/kvm/src/libvirt-0.9.11/src/util/storage_file.c:        /*"#!/bin/sh\n#V2.0 Format\nmodprobe cloop file=$0 && mount -r -t iso9660 /dev/cloop $1\n", */ /* Untested */ NULL,
/var/tmp/kvm/src/libvirt-0.9.11/build-aux/mktempd:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/build-aux/install-sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/build-aux/mdate-sh:#!/bin/sh
/var/tmp/kvm/src/libvirt-0.9.11/build-aux/vc-list-files:#!/bin/sh


ファイルを軽く眺めたところ、「/var/tmp/kvm/src/libvirt-0.9.11/daemon/libvirtd.init」が、libvirtdの制御、「/var/tmp/kvm/src/libvirt-0.9.11/tools/libvirt-guests.init.sh」が、ゲストOSの制御、それはまだ未確認なので次回以降に。