Newbie: Can you access host files from virtual OS?

This is for discussing general topics about how to use VirtualBox.
Post Reply
1bru1
Posts: 2
Joined: 5. Dec 2009, 05:29
Primary OS: MS Windows Vista
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux

Newbie: Can you access host files from virtual OS?

Post by 1bru1 »

I am a newbie, as in just joined today. I haven't even attempted to get this all set up, because there is only one real reason I want to at this point. I want to start learning Linux, but I want to be able to access files on the host.

So I'm running Vista 64, and I want to run Linux on VirtualBox. Right now I use UWIN to emulate Unix on windows, and run shell scripts. So at long last my question is this (I did search the forums, but it's really hard to find an answer to a really specific question like this):

If I'm running Linux on VirtualBox, can I "see" my shell scripts that will be stored on the host in order to run them on the Linux guest?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Newbie: Can you access host files from virtual OS?

Post by mpack »

Install the GAs and use shared folders (check user manual for details).
1bru1
Posts: 2
Joined: 5. Dec 2009, 05:29
Primary OS: MS Windows Vista
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux

Re: Newbie: Can you access host files from virtual OS?

Post by 1bru1 »

Cool, I found it. Thank you very much.

And for anyone else who needs this:
http://www.virtualbox.org/manual/UserMa ... redfolders
Hachiman
Posts: 94
Joined: 18. Dec 2008, 21:04
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Solaris, NetBSD

Re: Newbie: Can you access host files from virtual OS?

Post by Hachiman »

1bru1 wrote: If I'm running Linux on VirtualBox, can I "see" my shell scripts that will be stored on the host in order to run them on the Linux guest?
If your networking type is NAT you might try this also.

Code: Select all

# sudo mkdir /mnt/c
# sudo mount -t cifs //10.0.2.2/c\$ /mnt/c -o user=username,noperm
--
Kind regards
Sr. Software Engineer
Oracle Corporation
Vasily Levchenko

PS. Happy VBoxing.
Post Reply