Here's the temporary cure that will fix this problem:
Make sure the VM is not running.
Open "Configure -> Hardware -> Boot Order". Expand "Advanced Settings" and type the following in the text box for "Boot flags:".
devices.usb.mouse=1
Close, start the VM and enjoy Elementary 0.4.0.