

- #INSTALL VIRTUALBOX UBUNTU 18.04 TERMINAL HOW TO#
- #INSTALL VIRTUALBOX UBUNTU 18.04 TERMINAL INSTALL#
#INSTALL VIRTUALBOX UBUNTU 18.04 TERMINAL HOW TO#
How to point apache's web directory to our folder in the host. Bonus: Using shared folders as Apache root directory

If it is then congratulations! You successfully linked the directory within your VM with your host folder. Go to your home directory and check to see if the directory is highlighted in green. Reboot the VM and log-in again sudo shutdown -r now shared /home//shared vboxsf defaultsĐĐĪdd the following line to /etc/modules and save vboxsf To make this permanent, we'll set it so that it will mount our ~/shared directory on system startupĮdit fstab file in /etc directory sudo nano /etc/fstabĪdd the following line to fstab (separated by tabs). 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.
#INSTALL VIRTUALBOX UBUNTU 18.04 TERMINAL INSTALL#
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. Mounting VirtualBox shared folders on Ubuntu Server 18.04 LTS (Bionic Beaver)
