how to add LD_PRELOAD in the xml

Laine Stump laine at redhat.com
Thu Dec 29 23:42:23 UTC 2022


On 12/26/22 3:44 PM, Marc wrote:
> 
> How should I add LD_PRELOAD to domain xml. I guess within:
> 
> <qemu:commandline>
>      <qemu:arg value='env=LD_PRELOAD=/usr/lib64/libtcmalloc.so'/>
> </qemu:commandline>
> 
> but this is generating syntax errors.

https://libvirt.org/kbase/qemu-passthrough-security.html

Note the bit in the example that shows:

     <qemu:env name='ID' value='wibble'/>

So try:

     <qemu:env name="LD_PRELOAD" value="/usr/lib64/libtcmalloc.so"/>



More information about the libvirt-users mailing list