You are not logged in.

#1 2019-12-30 13:58:09

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 687

The ultimate guide for installing VBox with GA and Shared Folders

Inspired by recent problems with VirtualBox configurations and usage, I present *trumpets please*:

The Ultimate Guide for Installation and Configuration of the VirtualBox With GuestAdditions and Shared Folders

Host
H1) Install VirtualBox.
H2) Start VirtualBox to see if it is working. Close VirtualBox.
H3) Install GuestAdditions (either directly, or via File|Preferences|Extensions VirtualBox main window)
H4) Repeat step (H2)

Guest
G1) Create and configure linux guest virtual machine (=VM)
G2) Install linux VM. Power off VM after successful installation
G3) Start installed VM to see if it is working.
G4) Mount GuestAddition CD (=GA) somehow. In file manager (inside VM) go to GA directory[1]. Be sure 'VBoxLinuxAdditions.run' script is visible.
G5) Open terminal in this directory and execute (thanks to schwim):

$ sudo apt install dkms build-essential linux-headers-$(uname -r) module-assistant
$ sudo m-a prepare
$ sudo bash VBoxLinuxAdditions.run

G6) Reboot VM

To enable mounting shared folders inside guest:

Host
H5) Configure Shared folders in VM Settings

Guest
G7) Open terminal and execute:

$ sudo adduser $USER vboxsf

Log-out and log-in in VM. Shared folder should now be accessible.

[1] This is a File Manager quirck: it is not really mounted until you really visit mounted device. Can be easily checked from terminal.
----------------------------------------
Comments and corrections and improvements are more than welcome. (English language corrections are particularly welcome, because English is - as you certainly guessed - not my native language.)

Last edited by iMBeCil (2019-12-30 21:16:00)


Postpone all your duties; if you die, you won't have to do them ..

Offline

#2 2019-12-30 18:22:50

DeepDayze
Member
From: In Linux Land
Registered: 2017-05-28
Posts: 778

Re: The ultimate guide for installing VBox with GA and Shared Folders

Very good quick and dirty write up on getting VBox with Guest Additions and Shared Folders working for Linux guests. This should be a helpful guide to those who seem to be having issues with setting up GA/Shared Folders in their guests.


Real Men Use Linux

Offline

#3 2019-12-30 21:14:43

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 687

Re: The ultimate guide for installing VBox with GA and Shared Folders

^Thanks DeepDayze. I hope people visiting this forum will find it useful.


Postpone all your duties; if you die, you won't have to do them ..

Offline

Board footer

Powered by FluxBB