How do I trap the mouse pointer within a VirtualBox Guest OS?
Select Disable Mouse Integration
from VirtualBox's Machine menu. Next, click within the guest OS to capture
the mouse.
Use this command to make it permanent.
VBoxManage modifyvm "your-vm-name" --mouse ps2