how to add LD_PRELOAD in the xml

Marc Marc at f1-outsourcing.eu
Fri Dec 30 14:06:43 UTC 2022


> >
> > 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"/>


Thank you very much Laine!!!


More information about the libvirt-users mailing list