Raghu Toppur
2018-Mar-14 22:08 UTC
[Libguestfs] proposal for feature to add global setting for libguestfs emulation type
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. Thanks -- Raghu Toppur
Richard W.M. Jones
2018-Mar-15 08:07 UTC
Re: [Libguestfs] proposal for feature to add global setting for libguestfs emulation type
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
Maybe Matching Threads
- Re: Double fault panic in L2 upon v2v conversion
- Re: Libguestfs Hangs on CentOS 7.4
- Re: Issue with libguestfs-test-tool on a guest hosted on VMWare ESXi
- Re: Issue with libguestfs-test-tool on a guest hosted on VMWare ESXi
- Issue with virt-builder on Ubuntu 14.04