How do I automatically mount my shared folder?

Discussions about using Linux guests in VirtualBox.
elizabethpwalker
Posts: 2
Joined: 13. May 2011, 22:49
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu

Re: How do I automatically mount my shared folder?

Post by elizabethpwalker »

many thanx, the problem is solved)
samdanu
Posts: 13
Joined: 26. May 2011, 19:04
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu 11.04

Re: How do I automatically mount my shared folder?

Post by samdanu »

Dear All,

I am currently using Virtualbox 4.0.8 installed on Host Windows 7. I have created a folder 'ubuntudocs' on my Host. I have also added the folder ubuntudocs to my virtualbox tree. Below is the directory on the host as shown in my virtaulbox SETTINGS.

C:\users\bizcomm\documents\ubuntudocs

Please show me how to mount this folder ubuntudocs in my Ubuntu 11.04 Guest from the Terminal window. I want the complete syntax to use. I also want to know how to mount this automatically.

Regards,

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

Re: How do I automatically mount my shared folder?

Post by Perryg »

samdanu
Posts: 13
Joined: 26. May 2011, 19:04
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu 11.04

Re: How do I automatically mount my shared folder?

Post by samdanu »

Dear Perryg,

Thanks for the link you sent. I have an issue with adding the shared folder to the Virtualbox settings.

When I add it to the settings, I get the error 'sharedfolderbroken' I always get an error message telling me that the shared folder might not work properly and that the shared folder is broken.

Please help me fix this problem. What do I do to fix this error?

Regards,

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

Re: How do I automatically mount my shared folder?

Post by Perryg »

Tell me exactly (step by step) how you are adding the share to the guest. Screenshots will help as well.
Typically you use the shared folder search to add the location and then use a name that does not have spaces or special characters.
samdanu
Posts: 13
Joined: 26. May 2011, 19:04
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu 11.04

Re: How do I automatically mount my shared folder?

Post by samdanu »

Dear Perryg,

Thanks for your reply. I am having some serious issues with this Virtualbox shared folder settings. I have used the shared folder search to add the location on my drive C: The folder path is c:\ubuntushare and the folder name I changed to ubuntudrive. When I clik on save the was WARNING/ERROR message from virtualbox settings. "The Virtual machine execution may run into serious problem. You are advised to take steps to rectify the problem. Broken shared folder" What is causing this problem?

I have also created a folder on my ubuntu guest as 'windowsshare' uising the command 'sudo mkdir /home/samuel/windowsshare' When I run the command 'sudo mount ubuntudrive /home/samuel/windowsshare' I get the error 'special device ubuntudrive does not exist' Why is this so? I am logged into ubuntu as user SAMUEL and I have added the user to the group vboxsf in the System settings.

I hope this information will help rectify the problem.

Regards,

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

Re: How do I automatically mount my shared folder?

Post by Perryg »

For shared folders to work you need:
1) the guest additions installed (in the guest)
2) the hosts folder you are sharing must exist.
3) the name should not have spaces or special characters and Linux is case sensitive.
I have also created a folder on my ubuntu guest as 'windowsshare' uising the command 'sudo mkdir /home/samuel/windowsshare' When I run the command 'sudo mount
If you are using the auto-mount feature of the shared folder you do not need to make a mount point. the mount point will be /media/sf_<share name>
samdanu
Posts: 13
Joined: 26. May 2011, 19:04
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu 11.04

Re: How do I automatically mount my shared folder?

Post by samdanu »

Dear Perryg,

I have already installed the guest additions on the guest. The host folder is located on my drive C. thus C:\ubuntusahre and it exists.

I will try your example now. I will get back to you.

Regards,

Sam.
samdanu
Posts: 13
Joined: 26. May 2011, 19:04
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu 11.04

Re: How do I automatically mount my shared folder?

Post by samdanu »

Dear Perryg,

I am still getting errors. I am not successful with the new mount point you gave me, thus /media/sf_<share name> Can you please give me the exact command I need to use to resolve this issue once and for all?

The folder on HOST is C:\ubuntushare

Please use the mount point /media/sf_<share name> and give me the command to use. I am having a tough time doing this.

Regards,

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

Re: How do I automatically mount my shared folder?

Post by Perryg »

There is no special command to make the mount if you are using the auto-mount. It is handled by VirtualBox at boot time.
You should have also added your (guest) user name to the (guests) vboxsf group.

My main concern is why are you receiving the original error below:
When I clik on save the was WARNING/ERROR message from virtualbox settings. "The Virtual machine execution may run into serious problem. You are advised to take steps to rectify the problem. Broken shared folder"
This indicates something seriously wrong with the share from the host. Do you still get this message?

Post the guests log file (as an attachment)
As well as from the hosts terminal/command window type VBoxManage showvminfo <VM Name> --details and post here. Replace <VM Name> with the actual name of the VM. Use "" if the name has a space in it.

Note if the host is Windows you need to be in the directory that has VBoxManage.exe for the command to work.
samdanu
Posts: 13
Joined: 26. May 2011, 19:04
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu 11.04

Re: How do I automatically mount my shared folder?

Post by samdanu »

Dear Perryg,

I am still getting the error message. I get it when I click on 'DEVICES' in virtual box and select shared folder and edit and click save.

I have attached the log file here.

I am not able to run the command on the HOST. I get this message. "vboxmanage is not recognised as an internal or external command, operable program or batch file.

Hope to read from you soon.

Regards,

Samuel.
Attachments
VBox.log
The Guest Log File
(89.52 KiB) Downloaded 100 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How do I automatically mount my shared folder?

Post by Perryg »

Code: Select all

SharedFolders host service: removing host mapping failed with rc=VERR_PERMISSION_DENIED
You need to see what the permission level of the share in Windows is.
samdanu
Posts: 13
Joined: 26. May 2011, 19:04
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu 11.04

Re: How do I automatically mount my shared folder?

Post by samdanu »

What is the acceptable permission level for virtualbox shared folder in windows host?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How do I automatically mount my shared folder?

Post by Perryg »

The minimum I think would be user level (same as your account) or select everyone.
When you created this folder were you logged in as you or do you use the admin login?
samdanu
Posts: 13
Joined: 26. May 2011, 19:04
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu 11.04

Re: How do I automatically mount my shared folder?

Post by samdanu »

Dear Perryg,

I have set the shared folder in Windows Host to EVERYONE. But when I open virtualbox and run my Guest OS, the folder does not load and I still get the error "The Virtual machine execution may run into serious problem. You are advised to take steps to rectify the problem. Broken shared folder" when I tried to remove and add the shared folder in virtualbox settings.

I think this is a critical issue now. I need you assistance in rectifying the problem please..

Regards,

Samuel.
Post Reply