sharing file in virtual box

Asked by naufal

Hello,
My laptop running ubuntu 7.10 and I installed windows xp in my virtualbox...
The problem is how to sharing or transfer any document from Host (Ubuntu 7.10) to windows xp in my virtualbox..
What should I do?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu virtualbox-ose Edit question
Assignee:
No assignee Edit question
Solved by:
John Asay
Solved:
Last query:
Last reply:
Revision history for this message
John Asay (johnasay) said :
#1

Decide which folder(s) you want to share. For example, maybe I want to share my music which is located in my home directory. (If I wanted to share a lot of stuff I would probably just share my entire home directory.)

Start VirtualBox and select your XP virtual machine. Go to the Machine menu -> Settings -> Select Shared folders on the left -> Hit the add folder button and enter (or browse to) the path. E.g. /home/username/Music Repeat this for all folders you want to share.

Start up the XP machine and run the following command:

net use x: \\vboxsvr\Music

This would create a drive X under "my computer" in XP. Only use the name of the last folder (i.e. Music not /home/username/Music). You can repeat this command with different drive letters and folder names until you are sharing all of the files you like.

Revision history for this message
naufal (musp-student) said :
#2

This message appeared when I run the command:
pyan@pyan-laptop:~$ net use x: \\vboxsvr\Shared
No command: use
No command: use
  net time to view or set time information
  net lookup to lookup host name or ip address
  net user to manage users
  net group to manage groups
  net sam to edit the local user database directly
  net lookup to look up various things
  net groupmap to manage group mappings
  net join to join a domain
  net cache to operate on cache tdb file
  net getlocalsid [NAME] to get the SID for local name
  net setlocalsid SID to set the local domain SID
  net setdomainsid SID to set the domain SID on member servers
  net changesecretpw to change the machine password in the local secrets database only
                        this requires the -f flag as a safety barrier
  net status Show server status
  net usersidlist to get a list of all users with their SIDs
  net usershare to add, delete and list locally user-modifiable shares

  net ads <command> to run ADS commands
  net rap <command> to run RAP (pre-RPC) commands
  net rpc <command> to run RPC commands

Type "net help <option>" to get more information on that option
Valid targets: choose one (none defaults to localhost)
        -S or --server=<server> server name
        -I or --ipaddress=<ipaddr> address of target server
        -w or --workgroup=<wg> target workgroup or domain

Valid miscellaneous options are:
        -p or --port=<port> connection port on target
        -W or --myworkgroup=<wg> client workgroup
        -d or --debuglevel=<level> debug level (0-10)
        -n or --myname=<name> client name
        -U or --user=<name> user name
        -s or --configfile=<path> pathname of smb.conf file
        -l or --long Display full information
        -V or --version Print samba version information
        -P or --machine-pass Authenticate as machine account

Revision history for this message
John Asay (johnasay) said :
#3

Sorry. Run the command in windows.

Revision history for this message
naufal (musp-student) said :
#4

I typed in windows command:net use x: \\vboxsvr\Shared (my folder name)
and this result appeared:
System error 53 has occurred.

The network path was not found...

any suggestion?

Revision history for this message
Best John Asay (johnasay) said :
#5

Yeah, I'm a dope and forgot to tell you to install guest additions.

Go to the top panel click Devices-->Install Guest Editions
Download and install Guest Editions

Installing guest additions should also enable you to do things like copy/paste to your virtual OS and not have to do the right-ctrl to release the mouse thing, so it's nice to have anyway.

Revision history for this message
naufal (musp-student) said :
#6

Thanks for the help,
Now I can access my host file with windows xp virtualbox..

Revision history for this message
naufal (musp-student) said :
#7

Thanks John Asay, that solved my question.

Revision history for this message
John Asay (johnasay) said :
#8

No problem. Sorry about the confusion.

Revision history for this message
dwayne.fuller (dwayne-fuller) said :
#9

I have install Ubuntu 8.04 LTS in virtual box on a Windows Vista machine. However i cannot access the shared drive. What do i do?
Any help will be great thanks.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#10

@dwayne.fuller

Please don't append a new question on a marked as solved question.
Please make new question from here: https://answers.launchpad.net/ubuntu/+addquestion
you will get better chance to get right answer on a fresh tagged "open" question.
Solved question are usually not read from answering people.

Thank you

Revision history for this message
Srecko Toroman (sreckotoroman) said :
#11

To original post: thanks!