shaded folder Mac-Centos

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
crancy
Posts: 6
Joined: 17. Feb 2010, 16:55
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: centos 5.3

shaded folder Mac-Centos

Post by crancy »

hello,

I making a shared folder between my mac and centos 5.3
I installed virtualbox 3.1.4
when I run
% sh VboxLinux-x86.sh
I have an error with kernel
and
if I configure shaded folder in virtual box with
path: /Users/crancy/cartella_condivisa
name: cartella_condivisa

in centos I made
% mkdir /home/crancy/cartella_condivisa

if I run
% mount -t vboxsf /Users/crancy/cartella_condivisa /home/crancy/cartella_condivisa
(or mount -t vboxsf /home/crancy/cartella_condivisa /Users/crancy/cartella_condivisa )
I have as error :
file system vboxsf unrecognized

please could you help me?

thank you
regards
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: shaded folder Mac-Centos

Post by Perryg »

Take the character out of the share name it will not work with it. (no spaces, or characters can be in the share name)
then the mount statement would be mount -t vboxsf <sharename> <mountpoint>
See section 4.7. Folder sharing of the VirtualBox Users Guide
Notice: Guest additions must be installed (in the guest) for shared folders to work.
crancy
Posts: 6
Joined: 17. Feb 2010, 16:55
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: centos 5.3

Re: shaded folder Mac-Centos

Post by crancy »

Thanks Perryg.

Yes, I installed Guest additions in centos.
but I have the kernel problem.

In share name I don't have space,but underscore (low dash): cartella_condivisa
the big problem is that
file system vboxsf is unrecognized

I did't understand why?is it linked to Guest Additions?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: shaded folder Mac-Centos

Post by Perryg »

Yes they are linked to the guest additions. Without them installed the shared folders will not work.
What problem are you talking about with the kernel? I have guest additions installed on CentOS and the only problem I had was the auto resize would not work. I had to put a mode entry in the xorg.conf for that to work properly.
crancy
Posts: 6
Joined: 17. Feb 2010, 16:55
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: centos 5.3

Re: shaded folder Mac-Centos

Post by crancy »

I have this message

[root@localhost VBOXADDITIONS_3.1.4_57640]# sh VBoxLinuxAdditions-x86.run Verifying archive integrity... All good.
Uncompressing VirtualBox 3.1.4 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version of VirtualBox Guest Additions...
Building the VirtualBox Guest Additions kernel modules [FALLITO]
(Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong)
Installing the Window System drivers
Installing X.Org 7.1 modules [ OK ]

You appear to be running an older version of the X Window system in your
guest. Seamless mode and dynamic resizing will not work!

Setting up the Window System to use the Guest Additions [ OK ]
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services componen[ OK ]
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: shaded folder Mac-Centos

Post by Perryg »

This usually means that you need to install a few extras to be able to build external modules.

Code: Select all

sudo yum install kernel-devel-$(uname -r)
sudo yum install gcc
crancy
Posts: 6
Joined: 17. Feb 2010, 16:55
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: centos 5.3

Re: shaded folder Mac-Centos

Post by crancy »

hello,

I'm sad because I make following steps

gcc i386 4.1.2-46.el5_4.2 updates 5.2 M
Updating:
cpp i386 4.1.2-46.el5_4.2 updates 2.6 M
glibc i686 2.5-42.el5_4.3 updates 5.2 M
glibc-common i386 2.5-42.el5_4.3 updates 16 M
libgcc i386 4.1.2-46.el5_4.2 updates 95 k
nscd i386 2.5-
42.el5_4.3 updates 163 k
Installing for dependencies:
glibc-devel i386 2.5-42.el5_4.3 updates 2.0 M
glibc-headers i386 2.5-42.el5_4.3 updates 601 k
kernel-headers i386 2.6.18-164.11.1.el5 updates 1.0 M
libgomp i386 4.4.0-6.el5 base 70 k

and

kernel i686 2.6.18-164.11.1.el5 updates 16 M

but ...

sh /media/VBOXADDITIONS_3.1.4_57640/VBoxLinuxAdditions-x86.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.1.4 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version of VirtualBox Guest Additions...
Building the VirtualBox Guest Additions kernel modules [FALLITO]
(Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong)
Installing the Window System drivers
Installing X.Org 7.1 modules [ OK ]

You appear to be running an older version of the X Window system in your
guest. Seamless mode and dynamic resizing will not work!

Setting up the Window System to use the Guest Additions [ OK ]
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services componen[ OK ]

and in /var/log/vboxadd-install.log

Makefile:23: *** Error: unable to find the sources of your current Linux kernel.
Specify KERN_DIR=<directory> and run Make again.. Stop.

So what path do I have put in?

thanks
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: shaded folder Mac-Centos

Post by Perryg »

Did you run them both?
I don't see where you installed the first one.
crancy
Posts: 6
Joined: 17. Feb 2010, 16:55
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: centos 5.3

Re: shaded folder Mac-Centos

Post by crancy »

hello,

I installed kernel by yum.
I don't know what I have to find in order to set KERN_DIR.
could you tell me what is the path?
thanks for help
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: shaded folder Mac-Centos

Post by Perryg »

Its not the kernel it is the devel for the kernel.
run this

Code: Select all

sudo yum install kernel-devel-$(uname -r)
and then be sure you do a

Code: Select all

yum update
crancy
Posts: 6
Joined: 17. Feb 2010, 16:55
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: centos 5.3

Re: shaded folder Mac-Centos

Post by crancy »

thank you!!
update works with a lot of old packges ;)

now also guest additions works :)

thanks a lot again :) :)
Post Reply