I have a light version pure console Debian Jessie running on my Virtualbox which has no gui and it is completely terminal. Few days ago, I wanted to enable share folder capability for it but faced some problems and after spending quite sometimes I had found the solution, so I post it here.
When I tried to install the guest additions package, I have received the following error,
Installing graphics libraries and desktop services components ...fail!
Solution for this problem is quite simple, you just need to make sure the following packages are installed,
- Kernel header
- Build essential
To install the above packages on any Debian based Linux, can use these commands,
$ sudo apt-get install dkms build-essential $ sudo apt-get install apt-get install linux-headers-$(uname -r)
Finally, you should try to run guest addition package again and by right, the installation process should be successful.
If you don’t know how to mount CD-ROM just run the following command,
$ sudo mount /dev/cdrom /media/cdrom
Then cd to “/media/cdrom”, you should be able to see the content of the CD.
For mounting share folder to guest machine, run this command,
$ sudo mount -t vboxsf [Share folder name] [/Mount point]