Full screen in virtualbox
Solution 1:
When logged into the virtual machine, find the virtual Box menu (usually at the bottom center), Navigate to "Devices >> Install Guest additions". It has the shortcut key host+D
This will ask to download the .iso CD image.
Select Yes, and once the download completes it it will ask you if you want to install the same.
Select Yes again, and let it install.
Restart the Virtual machine, if needed.
Enjoy!
Solution 2:
Installing Guest additions works perfectly fine. Just in case if someone still facing the screen size issue as i was facing, you can follow the below steps :
sudo apt-get update
// just to get all system dependencies
sudo apt-get install virtualbox-guest-additions-iso
// to get guest additions
and the final onesudo apt-get install virtualbox-guest-dkms
.
Please let me know if anyone still faces the issue.
Solution 3:
There's one extra step I needed in order to get Guest Additions to work on MacOS Mojave. With the VM shut down, go to VM Settings -> Display -> Screen. Enable 3D acceleration and max out the RAM (128MB works for me but virtualbox.org recommends 256MB). You can then restart the VM with your newly full-screened situation.
This solution also fixed my problem of having a discrepancy between where my mouse was on the screen and where it was actively pointing. This made it hard to press buttons, etc.
SOURCE: https://forums.virtualbox.org/viewtopic.php?f=3&t=91086