Solved

How do I share folders between my Windows 7 Host and Linux Mint 16 Guest using VirtualBox?

Posted on 2014-01-06
13
1,760 Views
Last Modified: 2014-01-14
Hi:

I'm a newbie to the world of VirtualBox, Linux Mint and such.

I'm in the process of setting up a Linux Mint VM on my Windows 7 machine.

I'm currently trying to set up a folder that I can share for uploads/downloads
between my Windows 7 Host Machine and my Linux Mint 16 Guest.

I powered down my VM and created a (permanent) shared folder (pointing to
a directory on C: drive).

I've googled around and found tons of different ways to do this (I found it quite
confusing).

Can someone point to an easy straight forward method for achieving this?

Thanks,
JohnB
0
Comment
Question by:jxbma
  • 6
  • 4
  • 3
13 Comments
 
LVL 118
ID: 39760664
The simplest way is to use, Shared Folders, which is a special function included in Guest Additions.

Have you installed Guest Additions in your Linux VM?

https://www.virtualbox.org/manual/ch04.html

https://www.virtualbox.org/manual/ch04.html#sharedfolders

Then configure Shared Folders as follows in your VM

HOWTO: Use Shared Folders
0
 
LVL 1

Author Comment

by:jxbma
ID: 39760802
I'm still not quite there.
Sorry if I can't seem to get this yet.

So far I've:

1) Installed the Guest Additions to my Linux VM
2) Added the Shared Folder through the settings dialog of my VM in VirtualBox UI
3) Created a folder off my home directory in the VM

At this point I'm trying to mount the drive, but can't quite figure out the format of the command.

I'm trying to use the following command:
VirtualBox Share Name: FooShare
Directory defined in VM home: SharedFolder

sudo mount -t vboxsf FooShare ~/SharedFolder

Clearly this is not correct.
Can you please help point out where the train came off the tracks for me?

Thanks,
JohnB
0
 
LVL 1

Author Comment

by:jxbma
ID: 39760940
sudo mount -t vboxsf FooShare ~/home/instance/SharedFolder

It appears that I mount the shared drive successfully.
I don't see any error messages.

However when I either attempt to go to that folder and do an "ls " command in Terminal, or navigate to "SharedFolder" through the file browser, my mouse cursor turns into a "wait cursor" and just basically spins.

Is this a permissions problem?
I'm logged in as "root".

Thanks,
JohnB
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39761008
What is path on the c:\? Can you post the following ?
ls -lah ~/home/instance/SharedFolder

Open in new window

0
 
LVL 1

Author Comment

by:jxbma
ID: 39761230
Hi Mazdajai:

When I run the following command:
ls -lah ~/home/instance/SharedFolder

I get the following error message:
ls: cannot access /home/instance/SharedFolder: No such file or directory

This is weird because I can see it from the Terminal session and the file browser.

JB
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39761238
Can post the commands you enter?

' ~/home/instance/SharedFolder' is different than '/home/instance/SharedFolder'

Can yo try -
mkdir /mnt/SharedFolder
sudo mount -t vboxsf FooShare /mnt/SharedFolder
ls -lah /mnt/SharedFolder

Open in new window

0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 1

Author Comment

by:jxbma
ID: 39762332
Mazdajai:

The behavior is exactly the same.
The steps you suggested are steps (unless I'm missing something) that I've tried previously.

It just "hangs" in terminal mode.
I can type characters into the next line.
Is it expecting additional parameters?

There has to be something basic that I'm missing here.
Thoughts?

JB
0
 
LVL 1

Author Comment

by:jxbma
ID: 39764320
Any more insight here?
0
 
LVL 118
ID: 39764784
I've just tested this (with latest version of Virtualbox  4.3.6 r91406 and Linux Mint 16), and it does exactly the same thing, this is *NOT* normal. It hangs, when try to list the mounted folder.

the ls command should list the contents of the folder /mnt/sharedfolder

another option would be to connect to your Windows 7 Desktop via the Network.

see here

http://luhman.org/blog/2010/04/30/how-mount-windows-smb-shares-ubuntu-linux
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39765150
Interesting... Have you run apt-get update? Assuming iptables / AppArmor or SeLinux is turned off?

I will reproduce this in my lab tonight.
0
 
LVL 21

Accepted Solution

by:
Mazdajai earned 500 total points
ID: 39775709
I have the same issue, this seems to be a known bug -

https://bugs.archlinux.org/task/36976

On the bottom line, you should able to write to the share.
0
 
LVL 1

Author Closing Comment

by:jxbma
ID: 39780808
Mmm. VirtualBox; a technology that's almost useful.
0
 
LVL 118
ID: 39780846
@jxbma - should this have not been points split?
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Fine Tune your automatic Updates for Ubuntu / Debian
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now