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,815 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
  • 3
13 Comments
 
LVL 121
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
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

 
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
 
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 121
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 121
ID: 39780846
@jxbma - should this have not been points split?
0

Featured Post

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

If your vDisk VHD file gets deleted from the image store accidentally or on purpose, you won't be able to remove the vDisk from the PVS console. There is a known workaround that is solid.
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

695 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