LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   GuestAdditions do not work in CentOS-VM (https://www.linuxquestions.org/questions/centos-111/guestadditions-do-not-work-in-centos-vm-4175685203/)

Hanisch 11-14-2020 06:38 AM

GuestAdditions do not work in CentOS-VM
 
Hello,

in my CentOS 8 installation in a VirtualBox 6.1.16 the GuestAddition (Shared-folder and bidirectional clipboard) do not work.
I have installed GuestAdditions in /opt/VBoxGuestAdditions-6.1.16.

Code:

$ sudo mount -t vboxsf -o rw,uid=1000,gid=1000 transfer /home/opa/Shared_transfer
mount: /home/opa/Shared_transfer: Falscher Dateisystemtyp, ungültige Optionen, der Superblock von transfer ist beschädigt, fehlende Kodierungsseite oder ein anderer Fehler.


What is the reason for that?

with regards
Ch. Hanisch

michaelk 11-14-2020 09:00 AM

I have CentOS 8 running in a VirtualBox VM with guest additions installed and both shared folders / clipboard work fine. Have you verified the vboxsf module is loaded? Check the output of the lsmod command and that there is a vboxsf filesystem.
Code:

Module                  Size  Used by
vboxsf                86016  0
vboxguest            385024  7 vboxsf

cat /proc/filesystems | grep vboxsf
Code:

nodev        vboxsf
Is your transfer share a temporary or permanent share?

Hanisch 11-15-2020 04:55 AM

Quote:

Originally Posted by michaelk (Post 6185185)
... Check the output of the lsmod command and that there is a vboxsf filesystem.
Code:

Module                  Size  Used by
vboxsf                86016  0
vboxguest            385024  7 vboxsf


Quote:

cat /proc/filesystems | grep vboxsf
Code:

nodev        vboxsf

That is Ok.
Code:

$ lsmod
...
vboxguest        385024  0
...
$ sudo modprobe vboxsf
$ lsmod
...
vboxguest        385024  1 vboxsf
...
$ sudo modprobe vboxdrv
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.18.0-193.28.1.el8_2.x86_64

No explicite entry for vboxsf
How can I activate vboxsf?

with regards
Ch. Hanisch

Hanisch 11-15-2020 06:39 AM

Hello,
>How can I activate vboxsf?

The solution is the execution of following skript:
Code:

$ cat ~/usr/VBoxadd-setup
cd /opt/VBoxGuestAdditions-*/init 
sudo ./vboxadd setup

# Oder auch:
sudo modprobe -a vboxguest vboxsf vboxvideo

Now all is Ok.
Code:

$ lsmod
Module                  Size  Used by
vboxsf                86016  2
...
vboxguest            385024  5 vboxsf

with regards
Ch. Hanisch


All times are GMT -5. The time now is 06:29 AM.