![]() ![]() 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 sudo /media/cdrom/./nĬreate shared directory in your home mkdir ~/shared Run the installation script for the guest additions. Sudo apt-get install -y build-essential linux-headers-`uname -r` Install dependencies for VirtualBox guest additions sudo apt-get update Sudo mount -t iso9660 /dev/cdrom /media/cdrom Use the following command to mount the CD sudo mkdir /media/cdrom Once your VM is up and running, go to Devices -> Insert Guest Additions CD image Make sure that Read-only and Auto-mount are unchecked and Mount point is blank. On Add Share prompt, select the Folder Path in your host that you want to be accessible inside your VM. You could still make this guide work with other setups (possibly with some modifications to the commands and whatnot).īut if you want to do it the way I did then please feel free to use my setup above. A fresh install of Ubuntu Server 18.04.2 LTS as the guest OS.Oracle VM VirtualBox version 6.0.10 with Extension Pack installed.This guide assumes that you are using the following setup: This guide will walk you through the steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest. VBox will generate the FOLDER_NAME automatically if not exist.Mounting VirtualBox shared folders on Ubuntu Server 18.04 LTS (Bionic Beaver) And it’s usually “/home/USER_NAME/Documents/FOLDER_NAME”. “Auto-mount” is recommended for beginners.Enable “Read-only” will NOT allow the Guest OS to change anything in this folder.Folder Name will generate automatically after selected folder path.Folder Path: Choose “ Other …” from the drop-down box and then select a folder on host machine you want to share with.There click the little folder icon in the right to start creating a new share. Now open Settings for the Virtual Machine, and navigate to “ Shared Folders” from the left pane. On Debian and Ubuntu based systems, you can also use this command instead: sudo adduser $USER vboxsfĪfter that, the command will should list your user as member of the vboxsf group: cat /etc/group |grep vboxsfįinally, restart the Virtual Machine to apply the change. To fix issue, simply add your username to the “vboxsf” group which is created automatically after installing the Guest Additions.įirstly, open terminal in Guest OS from the start menu, and run command to add current user to “vboxsf” group: sudo usermod -a -G vboxsf $USER You need to sudo permission to be able to open it, or do copy and paste actions. Without this step, the shared folder will display with a lock and cross mark emblems. Then click to mount it, and run the installer script manually.ĭownload VBox Guest Additions (VBoxGuestAdditions_x.xx.x.iso ) Add user permission: ![]() nįor installing issues, you may alternatively download the ISO image for your VBox edition from the link below. Finally run the command below to install the additions manually: sudo. Then right-click on blank area and select ‘Open in Terminal’. If you clicked “Cancel” by mistake or the dialog does not appear, go to “VBox_GAs_x.x.xx” in the left pane of file manager. A terminal window will open and start installing the Guest Additions. Click “ Run” and then type user password in next authentication window. After login, go to VM menu “ Devices -> Insert Guest Additions CD image…“.Ģ.) A dialog should pop-up asks whether to run the installer script or not. Install VirtualBox Guest Additions:īefore creating a shared folder, you need to first install the Guest Additions in the Virtual Machine to make the function work.ġ.) Firstly, start the Guest OS. Theoretically, it should work on all Linux guest OSes. ![]() ![]() Note this tutorial is tested and works in VirtualBox virtual machines such as Ubuntu 20.04, Ubuntu 21.10, Elementary OS 6, Zorin OS 6, Debian 11, Linux Mint 20, and Fedora 34. And here’s how to tutorial for beginners. So it introduced the shared folders feature. When trying different operating systems via Virtualbox, we often need to transfer data between the host OS and virtual machines. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |