When we install any virtual OS using virtual box, transfering or moving data from host OS to virtual OS and vice-versa is a common thing. By default Virtual box wont allow this feature in ubuntu. We can achive this by installing Guest Additions. Below are the advantages and how to install Guest Additions in Virtual box Ubuntu.
- To make full screen
- To transfer files from host to virtual OS and vice-versa
- Copy paste from host to virtual OS and vice-versa
sudo apt-get update sudo apt-get install build-essential linux-headers-$(uname -r) sudo apt-get install virtualbox-ose-guest-x11
Update: In the latest versions of ubuntu, below command will work.
sudo apt-get install virtualbox-guest-x11
Restart ubuntu after running above commands to apply guest additions.
P.S: If you update system software, these guest additions will be removed. Need to install again to use guest additions. I faced same issue. So posting here. I am not sure why guest additions will be removed when you update the software and restart the virtual box Ubuntu.