Please attach VBox.log files of such VM sessions. I assume that this only happens if you use Ubuntu with the 3D-accelerated desktop?