Page 1 of 1

Shared Folder on Ubuntu Guest - Issue

Posted: 25. Sep 2008, 20:41
by nanda_justgames
Hello.....

I have Vista (Host) and Ubuntu 8.04 (GUEST).

I made a shared folder between them, but now I don't know where the folder is on my Guest Machine.
Someone have a clue?

I also was not able to install the VBOX ADDONS... when I click on Linux.run, I execute it, and he says that "I don't have administrator privileges".


Please help! Specially on the first question, I need to assemble that machine correctly.

Posted: 26. Sep 2008, 00:01
by accessory
From 1.5.6 manual
"In a Linux guest, use the following command:

mount -t vboxsf [-o OPTIONS] sharename mountpoint
Replace sharename with the share name specified with VBoxManage, and mountpoint with the path where you want the share to be mounted (e.g. /mnt/share). The usual mount rules apply, that is, create this directory first if it does not exist yet."

Posted: 26. Sep 2008, 04:56
by nanda_justgames
Sorry, but I don't understand....

Let see if I can explain my problem better..

I want to set a shared folder, but I read that this is only possible if I have VBOX addons installed, wich I'm not.

So the question is: How I install VBOX ADD ONS?

I mount the image... and then what?

Tks for de help, I'm really upset because I already try to install a VM on Virtual PC and I had the same problem.
So I thought that VirtualBox would be better... PLEASE HELP!

Re: Shared Folder on Ubuntu Guest - Issue

Posted: 26. Sep 2008, 05:26
by dmcgraw
nanda_justgames wrote:and he says that "I don't have administrator privileges".
Do you understand what this message means?

Re: Shared Folder on Ubuntu Guest - Issue

Posted: 26. Sep 2008, 19:20
by nanda_justgames
dmcgraw wrote:
nanda_justgames wrote:and he says that "I don't have administrator privileges".
Do you understand what this message means?
lol
Yes! It says that I'm not the admin so I can't install the application. But the problem is: I'm the administrador.

I already try to change the Permissions on the Properties menu, but it didn't work....

Posted: 26. Sep 2008, 20:17
by accessory
I think you need to use "sudo" to install guest additions.

From manual:

"4.3.1. Installing the Linux Guest Additions
The VirtualBox Guest Additions for Linux are provided on the same ISO CD-ROM as the Additions for Windows described above. They also come with an installation program guiding you through the setup process, although, due to the significant differences between Linux distributions, installation may be slightly more complex.

Installation involves the following steps:

Before installing the Guest Additions, you will have to prepare your guest system for building external kernel modules. This is exactly the same process as described in Section 2.2.2, “Support for external kernel modules”, except that this step must now be performed in your Linux guest instead of on a Linux host system, as described there.

Mount the VBoxGuestAdditions.iso file as your Linux guest's virtual CD-ROM drive, exactly the same way as described for a Windows guest in Section 4.2.1.1, “Mounting the Additions ISO file”.

Change to the directory where your CD-ROM drive is mounted and execute as root:

sh ./VBoxLinuxAdditions.run
The VirtualBox Guest Additions contain several different drivers. If for any reason you do not wish to install them all, you can specify the ones which you wish on the command line - for example

sh ./VBoxAdditions.run x11
to install the X Window graphic drivers. Type in the command

sh ./VBoxAdditions.run help
for more information.

"

Posted: 26. Sep 2008, 23:21
by Sasquatch
The full installation of the GA is indeed in the Manual. It's also in the VirtualBox FAQ along with it's use to Shared Folders (also in the manual).

Posted: 29. Sep 2008, 17:15
by nanda_justgames
Hi guys!
I was finally able to install Guest Additions...

Here is the commands I've use

cd /media/cdrom
sudo bash ./VirtualBoxLinuxAdditions.run

The BASH do the trick....


So... now I have everything installed quite right....
But now I can see my shared folder...

I look ate the manual:
VBoxManage sharedfolder add "VM name" -name "sharename"
-hostpath "C:\test"

So I did: VBoxManage sharedfolder add "MyUbuntu" -name "Fe" -hostpath "C:\Users\Fe"

And it gives an error: it said that I have to install a package (virtualbox-ose-modules-generic)

But when I do that he asks for another one.. and another... etc...

Please help!
Tks!

Posted: 29. Sep 2008, 21:33
by Sasquatch
What if you set an SF using the GUI and the VM Settings?

Posted: 30. Sep 2008, 20:45
by nanda_justgames
Sasquatch wrote:What if you set an SF using the GUI and the VM Settings?
How do I do that?

-------
I tried this comand lines... and several other types...

sudo mkdir /mnt/tao_xp

sudo mount.vboxsf TAO /mnt/tao_xp


And... well ir works! But when I turn off the VM, and on again.... the folder is not there anymore....

Posted: 30. Sep 2008, 23:13
by Sasquatch
You have to mount it every time you boot the VM. You can put it in your /etc/fstab file. See the manual and several topics on the forum here to see how to edit the file correctly.

Short version of the Folder Share setup

Posted: 1. Nov 2008, 06:31
by cadayton
10/26/2008 Installed VirtualBox Additions
1. From VirtualBox Device Menu select.
'Mount CD/DVD-ROM>CD/DVD-ROM-Image...'
*Select the file 'VBoxGuestAdditions.iso' from Host.

2. Change directory to the CD/DVD mount point.
> cd /media/cdrom0

3. Execute the appropriate additions file.
/media/cdrom0$ sudo sh ./VBoxLinuxAdditions-amd64.run

Verifying archive integrity... All good.
.
.
.
Ubuntu had to be rebooted after the installation completed.

10/31/2008 Mounting of Windows folder on Ubuntu mount point.
1. From VirtualBox Device Menu select.
Shared Folders...
2. From the Shared Folder dialog click on the folder
icon with a '+'.
3. From the Add Share dialog
Folder Path> click the down arrow and select the desired
windows directory. (i.e. C:\Temp)
Folder Name> Enter the desired share name (i.e. Temp)

4. From Ubuntu, create a directory where the share will get mounted to. File Manager or a Terminal Session will default to your home directory. I used File Manager to create a directory called, '/mnt/shared' and its full path name is '/home/cdayton/mnt/shared'.

5. From Ubunto start a terminal session and enter the following.

cdayton@Buna:/$ sudo mount -t vboxsf Temp /home/cdayton/mnt/shared

It worked. :roll: