You are not logged in.

#1 2009-08-09 08:35:37

sant527
Member
Registered: 2009-06-21
Posts: 273

[solved] virtual box share folder unable to mount

I am having vista and using virtual box installed arch linux as the guest.

I have installed the base system from archlinus iso

I created a shared folder called prem

When I tried to mount share folder through I get the following

mount -t vboxsf prem /mnt/vbox
mount: unknown filesystem type 'vboxsf'

I found that I have to install guest additions


I clicked on the devices - install guest additions
I didnt found any file  at /media/cdrom/VBoxLinuxAdditions-x86.run

How to install VBoxLinuxAdditions-x86.run where is the file located.

Or in arch linus should I install something to make share folder work

can any one help

Last edited by sant527 (2009-08-09 15:51:23)

Offline

#2 2009-08-09 09:14:02

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] virtual box share folder unable to mount

Have you read the Wiki?

http://wiki.archlinux.org/index.php/Vir … _Additions

From the terminal, type:

# sh /media/cdrom/VBoxLinuxAdditions-x86.run

and it should work (provided you have downloaded the GA)...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2009-08-09 09:21:24

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: [solved] virtual box share folder unable to mount

It's in community.
Don't install software manually (without pacman).

pacman -S virtualbox-additions


neutral

Offline

#4 2009-08-09 09:50:38

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [solved] virtual box share folder unable to mount

sand_man wrote:

It's in community.
Don't install software manually (without pacman).

pacman -S virtualbox-additions

If he's running x86_64 he has to run the script... but he should be running it in the VM, not in the host!


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2009-08-09 09:59:12

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [solved] virtual box share folder unable to mount

howto use shared folders in Linux guests - http://forums.virtualbox.org/viewtopic.php?f=3&t=15868

After installing the Guest Additions, you can use the Shared Folders Functionality. To access them, you have to define at least one in the VM settings. Open the VM Settings and go to Shared Folders. You can define them there. Click on the Add button and browse for a folder you want to share. Make sure that the name of the share doesn't contain any illegal characters like white spaces. Keep the name as simple as possible. In this howto, I will use the name share.

Now that you have defined a SF, it's time to mount it. Boot the Guest and open a terminal. Create a folder where you will mount it on. E.g. in your home folder. I will use ~/host for the mount point.
Now mount it with the following command:

Code: Select all   Expand viewCollapse view
    sudo mount -t vboxsf share ~/host


Note that with this, the default mount options are used and all files are owned by root. This can be changed by adding some mount options. Options are passed on with the -o parameter. You can use multiple options with one parameter, seperate the values with a comma. See the man page of mount for more info on which options you can use. The User Manual also notes the options compatible with the Shared Folders. To mount the SF so that you are the owner of the files, use this command:

Code: Select all   Expand viewCollapse view
    sudo mount -t vboxsf -o uid=1000,gid=1000 share ~/host


If you want to have it mount automatically upon each boot, put the mount command in /etc/rc.local (Debian based distro's), or whatever script is run at the end of the boot process. The Shared Folders service should mount them automatically, but that doesn't always happen.
Using /etc/fstab has little effect, because that file is processed before the SF module is loaded and will fail to mount the share. Sometimes, the share does get mounted because the GA check for it when they are loaded upon boot, but it's very flaky, meaning it doesn't work most of the time. You're better of with the first option.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2009-08-09 12:01:27

sant527
Member
Registered: 2009-06-21
Posts: 273

Re: [solved] virtual box share folder unable to mount

and it should work (provided you have downloaded the GA)...

What does GA mean

Offline

#7 2009-08-09 12:09:40

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: [solved] virtual box share folder unable to mount

sant527:
1. Choose the folder to share in Vboxmanage the main GUI.
2. Click "Install Guest Additions" while in guest.
3. In guest type "mount /dev/sr0 /mnt/" and "sh /mnt/VBoxLinuxAdditions-x86.run"
4. Type mount -t vboxfs share mountpoint.

Each time you upgrade your kernel you need to rerun the additions script and reboot.

GA means Guest Additions.

Offline

#8 2009-08-09 13:03:49

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [solved] virtual box share folder unable to mount

If you want it auto mounted on the guest, add the mount line to /etc/rc.local


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#9 2009-08-09 15:22:47

sant527
Member
Registered: 2009-06-21
Posts: 273

Re: [solved] virtual box share folder unable to mount

Ashren wrote:

sant527:
1. Choose the folder to share in Vboxmanage the main GUI.
2. Click "Install Guest Additions" while in guest.
3. In guest type "mount /dev/sr0 /mnt/" and "sh /mnt/VBoxLinuxAdditions-x86.run"
4. Type mount -t vboxfs share mountpoint.

Each time you upgrade your kernel you need to rerun the additions script and reboot.

GA means Guest Additions.

I installed gcc and make

then When i did sh /mnt/VBoxLinuxAdditions-x86.run

I got the following lines and stopped

This system does not have support for openGL direct rendering
Virtual box requires Linux 2.6.27 or later for this

Note on Arch linux you may need to manually install drm headers

Offline

#10 2009-08-09 15:51:01

sant527
Member
Registered: 2009-06-21
Posts: 273

Re: [solved] virtual box share folder unable to mount

Finally I  got the shared folder working. (Its a lot of effort but feel good after getting it done)

I followed Ashren with few changes
1. Choose the folder to share in Vboxmanage the main GUI.
2. Click "Install Guest Additions" while in guest.
3. In guest type "mount /dev/sr0 /mnt/" and
4. Since I didnt install X still now so I have add X11 exception
    "sh /mnt/VBoxLinuxAdditions-x86.run X11"
    Then it got installed showing that the video drivers are not installed for virtual additions
5. /etc/rc.d/rc.vboxadd start
6. mount.vboxfs -t vboxfs share mountpoint.

Then I can see the shared folder

Offline

#11 2009-08-13 09:55:22

sant527
Member
Registered: 2009-06-21
Posts: 273

Re: [solved] virtual box share folder unable to mount

Ashren wrote:

sant527:
1. Choose the folder to share in Vboxmanage the main GUI.
2. Click "Install Guest Additions" while in guest.
3. In guest type "mount /dev/sr0 /mnt/" and "sh /mnt/VBoxLinuxAdditions-x86.run"
4. Type mount -t vboxfs share mountpoint.

Each time you upgrade your kernel you need to rerun the additions script and reboot.

GA means Guest Additions.

How do you know that /dev/sr0 is the device to be mounted

Offline

Board footer

Powered by FluxBB