Linux Lite Forums

Software - Support => Installing Linux Lite => Topic started by: choodi on August 01, 2019, 09:20:13 AM

Title: Sharing Folders in Linux lite guest
Post by: choodi on August 01, 2019, 09:20:13 AM
First time user.Installed Linux lite in VIrtualbox and worked flawlessly.However I am not able to share folders between guest and host.I am a newbie but google and tried to put  some commands for example "sudo mount -t vboxsf [-o OPTIONS]My Shared "
mount bad usage..request some help in sharing folders.thank you
Title: Re: Sharing Folders in Linux lite guest
Post by: brandiqa on September 06, 2019, 03:36:13 AM
This is the solution I found:

In my case I had to install the latest virtualbox guest additions iso inorder to fix my resolution problem(1920 x 1080). I got warnings that this version(6.0) was not supported. Because of that, I believe the service 'virtualbox-guest-utils' is not started during boot despite having been set as 'enabled'.

To mount your shared folder just execute the command:

sudo systemctl start virtualbox-guest-utils.service


Your shared folder will be mounted automatically at the location you specified in Virtual Box machine folders.

Note: You will have to start the service manually everytime you reboot your machine in order to mount virtual box machine folders
Title: Re: Sharing Folders in Linux lite guest
Post by: kenmartin on January 15, 2020, 09:15:48 PM
You can automate the starting of the service by doing the following

Open Terminal window
cd
leafpad .bashrc

Add the following lines to the end then save and quit. Exit shell by typing exit and re-open

systemctl | grep vboxadd-service.service >/dev/null
if [ $? -eq 0 ]
 then
  echo "It appears the vbox service is running..."
  echo " "
 else
  echo "It appears the vbox service is NOT running. Must start it."
  sudo systemctl start vboxadd-service.service
  sudo systemctl enable vboxadd-service.service
  echo " "
  systemctl | grep vbox
  echo " "
fi

Now after a boot you will have to do this once.  Opening a
terminal session will not cause the service to start again.
The added code to .bashrc will take care of the rest.