Here are the steps:
Devices
> Shared Folders
> Shared Folders Settings
.+
icon to add a new shared folder.shared_folder
).Auto-mount
option./mnt/shared_folder
).su -c 'apt-get update'
su -c 'apt-get install build-essential dkms linux-headers-$(uname -r)'
Devices
> Insert Guest Additions CD image
.su -c 'mount /dev/cdrom /mnt'
su -c '/mnt/VBoxLinuxAdditions.run'
su -c 'reboot'
ls /mnt/shared_folder
su -c 'mkdir -p /mnt/shared_folder'
su -c 'mount -t vboxsf shared_folder /mnt/shared_folder'
Make sure that shared_folder
in the mount
command matches the name you specified in the VirtualBox shared folder settings. If you named it something else, use that name instead.
To resolve the “permission denied” issue for your shared folder in VirtualBox, follow these steps:
vboxsf
group.
sudo usermod -aG vboxsf your_username
Replace your_username
with your actual username.
sudo reboot
ls /mnt/shared_folder
This should resolve the permission issue and allow you to access the shared folder.