LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 11-14-2020, 06:38 AM   #1
Hanisch
LQ Newbie
 
Registered: Mar 2016
Posts: 26

Rep: Reputation: Disabled
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
 
Old 11-14-2020, 09:00 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,759

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
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?
 
Old 11-15-2020, 04:55 AM   #3
Hanisch
LQ Newbie
 
Registered: Mar 2016
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
... 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

Last edited by Hanisch; 11-15-2020 at 06:12 AM.
 
Old 11-15-2020, 06:39 AM   #4
Hanisch
LQ Newbie
 
Registered: Mar 2016
Posts: 26

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot install GuestAdditions for Virtual Box running Centros 7 oedipus88 Linux - Newbie 13 03-07-2018 07:50 PM
yum install of gcc as pre-requisite for guestAdditions hangs kupferman CentOS 7 10-03-2014 11:49 PM
[SOLVED] NFS on CentOS 6 can talk to Centos 5 but not Centos 6 clients deathsfriend99 Linux - Server 2 11-08-2013 02:33 PM
VirtualBox GuestAdditions - error? LukasH Linux - Software 8 12-10-2012 04:51 AM
Can't activate guestadditions in VirtualBox in Slackware jasonwryan Linux - Software 3 04-01-2009 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration