Link to home
Start Free TrialLog in
Avatar of AttilaB
AttilaB

asked on

Unable to find shared folder in Ubuntu10.04 guest OS, Oracle VM Virtualbox - Very small guest OS screen

I installed an Ubuntu 10.04 guest machine in an Ubuntu 14.04 host. I assigned a shared folder in the host as follows:
User generated imagethen, I added the user named 'user' to the group 'vboxusers' in the host OS, here verifying that
it is already added:

compgen -g
.....
pulse
pulse-access
user
sambashare
vboxusers
winbindd_priv
user@user-A55MLV:~$ sudo adduser user vboxusers
[sudo] password for user: 
The user `user' is already a member of `vboxusers'.
user@user-A55MLV:~$ 

Open in new window


Now, there is no sf_ folder is to be found anywhere on the guest (Ubuntu 10.04) system. I searched the whole
file system.

Maybe it needs to be mounted first, in the guest OS, to have it accessible?

mount -t  ??????

How would I mount this?

How would I mount it so that it is permanently available, and create a launcher to it
inside the guest OS running in the virtual machine?

Also, the guest OS screen is very small, as it was installed by the Ubuntu installer:
User generated image
How can I make it larger than 800x600?

Thanks.
Avatar of rindi
rindi
Flag of Switzerland image

Other Linux Distro's automatically load the VBox guest additions when they realize they are running as a VM. Ubuntu doesn't seem to do that, For shared folders and other things to work properly, like changing the resolution and getting the mouse to properly work within the guest, you must install the guest additions.

You can probably install the guest additions via the synaptic package manager (search for VirtualBox, then look at the list and select guest additions).

Another way to install them is via "Devices", "Insert Guest Additions CD Image" in the VM's menu bar.Then open the CD in ubuntu and install the drivers from there.

After a reboot you can resize the VM by pulling it's edges.
Hi. rindi's advice is good. If you need to install the guest additions from the terminal, there is a good step by step guide here: https://mylinuxramblings.wordpress.com/2010/06/03/installing-virtualbox-guest-additions-on-ubuntu-server-10-04/
Avatar of AttilaB
AttilaB

ASKER

Thanks. I had no trouble installing the guest additions based on your suggestion:
User generated image
Then, I still cannot find the shared folder on the guest. Don't I need to mount it?

I tried this:
User generated imageThen I saw a suggestion come up for a second in virtualbox, if I hovered the mouse over the
shared folder, based on that I tried to look for shared folders, but it is not even a linux command:
User generated imageThis is what it looks like the shared in the host:
User generated image
The screen size issue is fixed now, with the Guest Addition install.

How do I find and permanently mount the shared folder in the guest OS 10.04 now?
You need to reboot after having installed the additions. If in the shared folders you enabled "Auto-Mount", navigate to /media, and it will be shown there, mounted.
Avatar of AttilaB

ASKER

It is not in media. I rebooted, there is no media. I need to manually do it:

But how do I edit this file? (Read-only, when opened in gedit)

User generated image
Thanks.
It must be in media if you enabled the auto-mount option:

User generated image
Under /Media of my Linux (Makulu) it shows up as /sf_E_Drive, where "sf" is short for "Shared Folders", and "E_Drive" is the label you gave the shared folder when you set it up.
Avatar of AttilaB

ASKER

Hi 'rindl'. Well, on mine I have the exact identical settings:
User generated image
Still it doesn't show up as media:
User generated imageNone of these media folders have the right folder inside them.

I think I have to manually permanently mount it. I will try 'gheist' 's advice, I just have to figure out how to edit '/etc/fstab'  file (with root privileges). I have no idea.
(Mounting unprotected (guest) network folders, as seen at
 https://wiki.ubuntu.com/MountWindowsSharesPermanently)
It should be in /media if at all
If not - use fstab
Open a terminal and enter ls /media and look at the output.
Asker searches under /usr
No there are no automounts there at all.
Click "file system" in left side, then look for one single "media" folder, where automounts should be...
Avatar of AttilaB

ASKER

Thank you for all your advice. The computer I was setting up this on has been occupied by my son working on a video project for school, and I cannot get to it. I will try it all as soon as I get to it and let you know.
Avatar of AttilaB

ASKER

Sorry for the delay. I got back on my computer now  I got to the point where I have the shared folder
showing up in the guest, but not accessible:
User generated image
So, what do I need to do with the following:

In fstab:
https://wiki.ubuntu.com/MountWindowsSharesPermanently

I don't quite understand what I need to do here, because it is such a short explanation:

1:     I do the following in the Host (12.04) OS.

2.  I came up with the following:
 I do Alt F2 and then open the file fstab  using GEdit using gksudo like this:
User generated image
Then opened file:
User generated image
3. Question: How do you put in the line? - if my shared folder name is:

The Example:
//servername/sharename  /media/windowsshare  cifs  guest,uid=1000,iocharset=utf8  0  0

My Shared Folder Name:
"Ubuntu Share Folder"

Can you type it here?

Thanks.
virtualbox shared folders come from virtualnox guest additions.
Do not edit ANY fstab.
Access the folders using sudo or gksudo.
Avatar of AttilaB

ASKER

That's exactly what my problem is:  

The guest has no permission to access the shared folder, even if it is the guest root user, because Permission Denied. I have to change permisssions from

See screenshot:User generated image
SOLUTION
Avatar of sno0401
sno0401
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AttilaB

ASKER

Yes, your suggestions of 'sno0401' and 'rindi' actually worked! So, I will definitely give the two of you shared credit for
answering (I had to do both steps to make it work)

I did these steps:

1.  adding the user to the virtualbox group on the Host machine:
User generated image
2. Then, in the Guest machine I did the mod to the /etc/group file as you suggested:
User generated image
3. Then it just worked: (I could not only see the contents, I could delete/ edit it - read-write-delete permissions)
User generated image
Thanks guys.

:)
Avatar of AttilaB

ASKER

You asked WHY I want to do this: Ubuntu 10.04 virtual machine in Ubuntu 14.04:

I have to keep upgrading Ubuntu to the latest version because of dropped support for it. After a while dependencies go missing, no new programs supported. (Linux has the same 'Microsoft Syndrome' of abandoning old, working ways for new buggy inconvenient ways, nobody asked for. Like the various new Ubuntu desktop configurations loaded with bugs, replacing Gnome in 12.04 and 14.04.)

Ubuntu 10.04 with Gnome desktop is something that WORKS. So, I would like to keep using it when I can.
Because I LIKE the way it was done.
Debian has same ol gnome for ages....