Boxes VM - can't go into gaming mode

Clicking the app “Return to Gaming Mode” turns into a black screen and then after a bit it just goes back to the desktop.

Is this because I’m running it through a virtual machine? Or is there something I’m missing? I’ve updated it, dedicated 8 GB of ram and 40 GB of space.

When returning to desktop mode I’m logged out of Steam.