How do I automatically mount my shared folder?

Discussions about using Linux guests in VirtualBox.

Re: How do I automatically mount my shared folder?

Postby elizabethpwalker » 21. May 2011, 13:42

many thanx, the problem is solved)
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?

Postby samdanu » 26. May 2011, 19:25

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.
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?

Postby Perryg » 26. May 2011, 19:29

Perryg
Site Moderator
 
Posts: 34373
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?

Postby samdanu » 27. May 2011, 15:52

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.
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?

Postby Perryg » 27. May 2011, 17:32

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.
Perryg
Site Moderator
 
Posts: 34373
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?

Postby samdanu » 30. May 2011, 17:01

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.
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?

Postby Perryg » 30. May 2011, 17:16

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>
Perryg
Site Moderator
 
Posts: 34373
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?

Postby samdanu » 30. May 2011, 17:41

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?

Postby samdanu » 30. May 2011, 18:39

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.
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?

Postby Perryg » 30. May 2011, 18:55

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.
Perryg
Site Moderator
 
Posts: 34373
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?

Postby samdanu » 30. May 2011, 19:47

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 94 times
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?

Postby Perryg » 30. May 2011, 20:04

Code: Select all   Expand viewCollapse view
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.
Perryg
Site Moderator
 
Posts: 34373
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?

Postby samdanu » 30. May 2011, 20:11

What is the acceptable permission level for virtualbox shared folder in windows host?
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?

Postby Perryg » 30. May 2011, 20:23

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?
Perryg
Site Moderator
 
Posts: 34373
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?

Postby samdanu » 31. May 2011, 19:43

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.
samdanu
 
Posts: 13
Joined: 26. May 2011, 19:04
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu 11.04

PreviousNext

Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 16 guests