Yet shared folder

Discussions about using Linux guests in VirtualBox.
Post Reply
oscaroxy1
Posts: 3
Joined: 19. Jan 2017, 18:19

Yet shared folder

Post by oscaroxy1 »

guest: Mac sierra
host: centos 7

I installed the last release of centos 7, I create a shared folder, I insert Guest Addition CD Image ... after I mount /dev/sr0 /media/cdrom, go to /media/cdrom and
sh VBoxLinuxAdditions.run

I obtain:

Code: Select all

Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.14 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Removing installed version 5.1.14 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Building Guest Additions kernel modules.
Failed to set up service vboxadd, please check the log file
/var/log/VBoxGuestAdditions.log for details.
/var/log/VBoxGuestAdditions.log

Code: Select all

vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
vboxadd.sh: failed: Please check that you have gcc, make, the header files for your Linux kernel and possibly perl installed..
chcon: non è possibile applicare un contesto parziale al file non etichettato "/usr/lib64/VBoxGuestAdditions/mount.vboxsf"
/var/log/vboxadd-install.log

Code: Select all

/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
I done:

Code: Select all

yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
echo export KERN_DIR=/usr/src/kernels/`uname -r` >> ~/.bashrc
but nothing, I reboot, always self error.

thanks
Last edited by socratis on 19. Jan 2017, 19:44, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
oscaroxy1
Posts: 3
Joined: 19. Jan 2017, 18:19

Re: Yet shared folder

Post by oscaroxy1 »

update .... after 1000 evidence I otain this error:

Code: Select all

/tmp/vbox.0/Makefile.include.header:106: *** Error: KERN_DIR does not point to a directory.  Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
rpm -qa kernel\* | sort

Code: Select all

kernel-3.10.0-514.6.1.el7.x86_64
kernel-3.10.0-514.el7.x86_64
kernel-devel-3.10.0-514.2.2.el7.x86_64
kernel-devel-3.10.0-514.6.1.el7.x86_64
kernel-headers-3.10.0-514.6.1.el7.x86_64
kernel-tools-3.10.0-514.6.1.el7.x86_64
kernel-tools-libs-3.10.0-514.6.1.el7.x86_64
yum install kernel-devel

Code: Select all

already installed and latest version
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Yet shared folder

Post by socratis »

Moving to "Linux Guests" from "OSX Guests".
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
oscaroxy1
Posts: 3
Joined: 19. Jan 2017, 18:19

Re: Yet shared folder

Post by oscaroxy1 »

How I move it?
have I to rewrite the post?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Yet shared folder

Post by mpack »

Socratis already moved it. His post was a notification, not an instruction.
Post Reply