You are Here:
Linux Lite 4.2 Final has been released. See the Release Announcements Section.



Virtualbox Guest Shared Folders (Partial Solution)

Author (Read 790 times)

0 Members and 4 Guests are viewing this topic.

Virtualbox Guest Shared Folders (Partial Solution)
« on: June 09, 2018, 08:34:04 PM »
 

Scott

  • Global Moderator
  • Gold Level Poster
  • *****
  • 857
    Posts
  • Country: 00
  • Reputation: 186
  • Linux Lite Member

  • Linux Lite: 3.4 64bit

  • CPU: Dual core Intel Core i3 M 330

  • MEMORY: 6Gb

  • VIDEO CARD: Intel Integrated Graphics

This is not a permanent solution see last step below.

My test environment
Host: Win10 (sorry, I'm at work)
VM: LL4
Software on host/Win10: Virtualbox 5.2
Software/guest additions on VM: pre-installed/stock version


Let's begin

Add a shared folder in the LL4 virtual machine

Start the virtual machine

On a working system these two services should be running
(systemctl | grep vbox)
--------------------------
vboxadd-service.service
vboxadd.service

On LL4 only one is running
-----------------------------
vboxadd.service

We need to start the additional service
-------------------------------------------
sudo systemctl start vboxadd-service.service
sudo systemctl enable vboxadd-service.service

If user is already a member of vboxsf group sharing should now be working:
> For me the share is listed in Thunar as sf_Downloads (/media/sf_Downloads/)
> An icon was not placed on the desktop


If user is NOT a member of vboxsf group they can be added to the group as follows:
(Note, you generally only need to do this step one time)
We need to add user to the vboxsf group (cli)
sudo adduser scott vboxsf
OR
We need to add user to vboxsf group (graphical)
start > All > Linux Lite User Manager

Last step
Logout out and Log back in.



Note this will even work for the LL4 Live CD environment
Run terminal cmd
whoami

The answer on my system is - linux

Now just go through the steps above with user linux

When logging in/out the user is linux and the password is left empty (i.e. there is no password.)



Not a permanent solution:
For some reason this service is not starting automatically and these commands need to be run again after a reboot.
sudo systemctl start vboxadd-service.service
sudo systemctl enable vboxadd-service.service
Last Edit: June 09, 2018, 09:15:26 PM by Scott
 


Re: Virtualbox Guest Shared Folders (Partial Solution)
« Reply #1 on: June 13, 2018, 05:29:56 AM »
 

sobermadman

  • New to Forums
  • *
  • 11
    Posts
  • Country: 00
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 4.0 64bit
@Scott - I've found that only the first of those two lines (sudo systemctl start vboxadd-service.service)
seems to be required, everything works fine without adding the second one (sudo systemctl enable vboxadd-service.service).

So it's even less trouble  :)
 

Re: Virtualbox Guest Shared Folders (Partial Solution)
« Reply #2 on: June 13, 2018, 10:05:32 AM »
 

Scott

  • Global Moderator
  • Gold Level Poster
  • *****
  • 857
    Posts
  • Country: 00
  • Reputation: 186
  • Linux Lite Member

  • Linux Lite: 3.4 64bit

  • CPU: Dual core Intel Core i3 M 330

  • MEMORY: 6Gb

  • VIDEO CARD: Intel Integrated Graphics
@sobermadman

Hello

The purpose of the enable command is to start a service automatically at boot, it's just not working in this situation. That's why I left the comment about this not being a permanent solution. I left it in the instructions hoping that as Ubuntu-18.04/LL4 improve over time it will start working on its own, eventually. In theory without issuing the enable command it will *never* start automatically and we might never know this even when any underlying issue has been fixed.
Last Edit: June 13, 2018, 10:07:06 AM by Scott
 

Re: Virtualbox Guest Shared Folders (Partial Solution)
« Reply #3 on: June 13, 2018, 03:52:54 PM »
 

sobermadman

  • New to Forums
  • *
  • 11
    Posts
  • Country: 00
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 4.0 64bit
@Scott - Oh okay so I think I'll include the enable command too - thanks for your explanation, perhaps the 18.04 team(s) will fix this eventually. I'm just glad you pointed towards this no-hassle temporary fix, it allows me to make full use of LL4 which has been running flawlessly so far.
 


Tags:
 


Linux Lite 4.2 Final has been released. See the Release Announcements Section.