I use Ubuntu 14.04 in VirtualBox (both on 4.x and now 5.0.x) and have encountered a minor buglet with workspaces, and would like to try to trace it to either Ubuntu and VirtualBox, so a fault can be reported. If there is a setting/fix from someone who's experienced the same, that would be ideal.
When I start the virtual machine, it is automatically set to full-screen. Inside the VM I can arrange windows for an application, for example Firefox, on various workspaces (I tend to use 3x3). If I turn off full-screen (usually with Host-F) and then turn it back on again, all of the windows of that app will be gathered on the one workspace, and they refuse to stay in new locations when dragged in the workspaces view. In other words, they drag fine, but dropping them results in them "bouncing back" to the current workspace.
I wonder if this is a Unity problem, and if so I may just switch the guest distribution to Mint with Cinnamon. However if it's an issue with Guest Additions then it will need reporting to Oracle instead, so VB developers can look it.
I've tried Mint/KDE and Mint/Cinnamon, and added a different app on each of a 2x2 workspace in a desktop guest machine. I toggled full-screen twice: once for off and again for on, and all windows are still in their correct workspaces. That reassures me somewhat that VirtualBox is not the culprit, and that Ubuntu/Unity looks to be at fault.
I have also tried a fresh guest install of 14.04.2 to perform exactly the same tests, and cannot immediately replicate the issue here either. I expect the problematic guest machine has gotten itself into a state it should not have been able to.