

So your host machine must have reachability to the guest VM. The first option is to create a folder in the windows machine and share permission to the user, and from Ubuntu, you try to access the shared folder using the smb protocol via the host and guest networking. There are different ways you can create a folder in a windows machine and share it with the virtual machines. How do I create a shared folder between Windows and virtual machines?

Test the VirtualBox shared folder access. Connect the shared folder to the VirtualBox.

This directory mount we just made is temporary and it will disappear on next reboot. The host folder should now be accessible inside the VM.Mount the shared folder from the host to your ~/shared directory sudo mount -t vboxsf shared ~/sharedįor set custom group and user id owner sudo mount -t vboxsf -o uid=1000,gid=1000 shared ~/shared Run installation script for the guest additions: sudo /media/cdrom/nĬreate "shared" directory in your home mkdir ~/shared Sudo apt-get install build-essential linux-headers-`uname -r`

Install dependencies for VirtualBox guest additions: sudo apt-get update Use the following command to mount the CD: sudo mount /dev/cdrom /media/cdrom Once your VM is up and running, go to Devices menu -> Insert Guest Additions CD image menu Uncheck Read-only and Auto-mount, and check Make Permanent On Add Share prompt, select the Folder Path in your host that you want to be accessible inside your VM. This guide will walk you through steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest. Mounting VirtualBox shared folders on Ubuntu Server 18.04 LTS
