diff --git a/src/guestfs.pod b/src/guestfs.pod index c4e77003c..af7f27624 100644 --- a/src/guestfs.pod +++ b/src/guestfs.pod @@ -1262,6 +1262,7 @@ default by doing: To find out if libguestfs was compiled with a different default attach method, do: + unset LIBGUESTFS_ATTACH_METHOD guestfish get-attach-method =head2 ATTACHING TO RUNNING DAEMONS diff --git a/test-tool/libguestfs-test-tool.pod b/test-tool/libguestfs-test-tool.pod index 9f5a045f8..6c487d37f 100644 --- a/test-tool/libguestfs-test-tool.pod +++ b/test-tool/libguestfs-test-tool.pod @@ -92,6 +92,12 @@ for further information. =head1 TRYING OUT A DIFFERENT VERSION OF LIBVIRT +To find out which attach-method is the default in your libguestfs +package, do: + + unset LIBGUESTFS_ATTACH_METHOD + guestfish get-attach-method + If you are using the libvirt attach-method, then you can try out a different (eg. upstream) version of libvirt by running these commands (I as root): @@ -105,8 +111,40 @@ script (in the top-level libvirt build directory) to set some environment variables so that the alternate version of libvirt is used to run the program. +=head1 TRYING OUT WITH / WITHOUT LIBVIRT + +To find out which attach-method is the default in your libguestfs +package, do: + + unset LIBGUESTFS_ATTACH_METHOD + guestfish get-attach-method + +If you are using the libvirt attach-method, you can try without +(ie. libguestfs directly launching qemu) by doing: + + export LIBGUESTFS_ATTACH_METHOD=appliance + +Or if you are using the default (appliance) attach-method, then you +can try libvirt: + + export LIBGUESTFS_ATTACH_METHOD=libvirt + +or with libvirt and a specific +L: + + export LIBGUESTFS_ATTACH_METHOD=libvirt:qemu:///session + =head1 TRYING OUT DIFFERENT SELINUX SETTINGS +To find out which attach-method is the default in your libguestfs +package, do: + + LIBGUESTFS_ATTACH_METHOD= guestfish get-attach-method + +To find out if SELinux is being used, do: + + getenforce + If you are using libvirt, SELinux and sVirt, then you can try to see if changing SELinux to "permissive" mode makes any difference. Use this command as root: