Shared Folder on Ubuntu Guest - Issue

Discussions related to using VirtualBox on Windows hosts.
Post Reply
nanda_justgames
Posts: 12
Joined: 25. Sep 2008, 20:35

Shared Folder on Ubuntu Guest - Issue

Post 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.
accessory
Posts: 43
Joined: 22. Feb 2008, 07:44

Post 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."
nanda_justgames
Posts: 12
Joined: 25. Sep 2008, 20:35

Post 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!
dmcgraw
Volunteer
Posts: 808
Joined: 24. Jun 2008, 17:16
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Ubuntu 9.10
Location: St. Louis, MO, USA

Re: Shared Folder on Ubuntu Guest - Issue

Post by dmcgraw »

nanda_justgames wrote:and he says that "I don't have administrator privileges".
Do you understand what this message means?
nanda_justgames
Posts: 12
Joined: 25. Sep 2008, 20:35

Re: Shared Folder on Ubuntu Guest - Issue

Post 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....
accessory
Posts: 43
Joined: 22. Feb 2008, 07:44

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

"
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post 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).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
nanda_justgames
Posts: 12
Joined: 25. Sep 2008, 20:35

Post 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!
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

What if you set an SF using the GUI and the VM Settings?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
nanda_justgames
Posts: 12
Joined: 25. Sep 2008, 20:35

Post 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....
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
cadayton
Posts: 19
Joined: 1. Nov 2008, 06:23

Short version of the Folder Share setup

Post 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:
Post Reply