I am experimenting with virtual box. One of my problems is that the mouse cursor only works within the box. How can I make it work both with the actual OS too and the virtual box at the same time?
To get your mouse cursor to work, you simply need to press the Ctrl key on the right side of the keyboard. If you don't want to keep pressing Ctrl to release the mouse cursor every time, simply install the VirtualBox Guest Additions by clicking on Devices > Install Guest Additions. When you do this, you may need to mount the virtual cd-rom drive by using the following command:
$ sudo mount /dev/scd0 /mnt/cdrom
Then run the shell script to install the Guest Additions.
I've experienced this on Ubuntu 18.04. I've found to make sure to not trap the mouse on VM boot up. Making sure to release it before mouse detection.
Also, I've set one of my VMs to Pointing Device: USB Multi-Touch Tablet and it makes my VM work with my USB mouse outside of the VM as long as I don't trap it on boot.