1- I am not able to re-size the display. It only show me scaling and not the re size. How to re-size the screen ?
2- I have already done in Ubuntu 20.04 Devices => Share Folders => Share Folder Settings => Machine Folders => Add new share folder => Auto-mount => Make Permanent. I have also power-off the Ubuntu 20.04 in Virtual Box and start again. I am not able to find the folder in "other locations". Kindly let me know how can I share folder between Windows host and Ubuntu in Virtual Box ?
Solution:
Install Guest Additions:
Start the virtual machine. Go to Devices > Insert Guest Additions CD Image. Open the terminal and run:
sudo apt update sudo apt install build-essential dkms linux-headers-$(uname -r) cd /media/$USER/VBox_GAs_* sudo ./VBoxLinuxAdditions.run
Restart the virtual machine. Enable Auto-Resize Guest Display:
Go to View > Auto-resize Guest Display. Ensure the checkmark is active. Manually Adjust Resolution:
If the screen still doesn’t resize, adjust the resolution manually in Settings > Display within Ubuntu or by resizing the VirtualBox window.
Solution:
Verify Shared Folder Settings:
In VirtualBox, go to Settings > Shared Folders and ensure: Your folder is added under Machine Folders. Auto-mount and Make Permanent options are checked. Add User to VirtualBox Group:
Run the following command in Ubuntu:
sudo adduser $USER vboxsf Restart the virtual machine. Access Shared Folder:
Shared folders are usually available at /media/sf_<folder_name>. Check the shared folder with:
ls /media ls /media/sf_<folder_name>
Manually Mount the Folder (if needed):
Create a mount point: sudo mkdir /mnt/shared
Manually mount the folder:
sudo mount -t vboxsf <folder_name> /mnt/shared
Navigate to /mnt/shared to view the contents:
cd /mnt/shared ls