[Libguestfs] proposal for feature to add global setting for libguestfs emulation type

Richard W.M. Jones rjones at redhat.com
Thu Mar 15 08:07:33 UTC 2018


On Wed, Mar 14, 2018 at 03:08:18PM -0700, Raghu Toppur wrote:
> The man page for libguestfs says:
> 
> export LIBGUESTFS_BACKEND_SETTINGS=force_tcg
> will force the direct and libvirt backends to use TCG (software emulation)
> instead of KVM (hardware accelerated virtualization).
> 
> However, our application has many services (run by different users) which
> make use of libguestfs tools, and it is painful to have to set this
> environment variable for each script and service.
> 
> One alternative seems to be to rebuild the libguestfs library with
> force_tcg baked in, but I need to support platforms.
> 
> Is there one location I can specify this setting to force tcg?
> 
> I would have thought that /etc/libguestfs-tools.conf might be the place,
> but that only allows a read_only attribute to be set.

There's currently no place to set global settings like this
(/etc/libguestfs-tools.conf only applies to a few tools).

It could be added, although it's a bit of work.

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