The all software approach is more complex to implement but saves as you don’t have to buy more hardware. The Pi solution is really straightforward hence my recommendation as an alternative approach.
For installing in a container.
If you Google " Installing Logitech Media Server (SlimServer / Squeezebox Server) On QNAP" you will find a step by step guide to installing LMS on a QNAP. This gets LMS running in a container.
Then you need to configure:
- Once installed click on the link within Container Station to open LMS
- Skip the account setup stage and the music library setup (not required to use the plugin).
- Click on settings, and then Plugins.
- Untick all plugins and tick UPNP/DNLA Bridge. This ensures you only run what is necessary
- Allow LMS to restart
- Click Settings, for the UPNP/DNLA Bridge
- In the Extra Command Line Options enter -s ip_address_of_roonserver - This tells LMS where Roon is located
(make sure you change the IP address to your Roon Server’s address)
- Select the Static Library and click on the checkbox to start
- Once started, click on the Generate button on the Configuration File line to create a config file
- Next you need to edit the config file. To do this you will need to download WinSCP which will allow you to reach area’s on the QNAP that the FileStation app won’t allow.
- Download WinSCP and install it
You need to enable SSH access on your QNAP from the control panel
- Use WinSCP to connect to the QNAP (use your admin login, same as you use to administer the QNAP in a browser).
- Locate the Config file by browsing in WinSCP. The path is shown in the LMS configuration page
- When you have found the file in WInSCP right click the file and choose Edit
- Find the line
<roon_mode>0</roon_mode>
and change to
<roon_mode>1</roon_mode>
Do the same for the <sample_rate>192000</sample_rate> line - Save and return to the LMS Config page. Click on the Restart button to restart the bridge