Steam Library in virtiofs

Recently I’m trying to create a Bazzite VM inside my Unraid server. I successfully set up GPU passthrough and everything runs perfectly.

However I want to save my Steam library inside my host machine’s storage so that it can be managed by Unraid. I set up a virtiofs share and mounted in /mnt/storage path of the Bazzite VM. But inside Steam when I tried adding secondary drive to the mount point, nothing happend. Is it a limitation of Steam or something I did wrong?

I am not sure I understand this part. What do you mean you added it inside Steam?

What I’m trying to say is: inside steam, navigate to “settings” - “storage”, click “Add Drive” and select the mount point I mentioned above.

Did you make your user account the owner of that directory?

When it fails like that, it is often a permission issue.

I figured it out. Turns out you need to make sure the directory is completely empty, otherwise Steam will silently fail to add new library.

After some testing, I found out some game just refuse to launch when installed inside a virtiofs share.

So for game libiary it’s better off creating a standalone virtual disk or passthrough a phisical disk.

Yea, your solution is right, With Virtiofs, there are also SELinux considerations.

Note: Performance on VirtioFS is FAR slower than native mounts.