LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-01-2008, 09:44 AM   #1
gyc
LQ Newbie
 
Registered: Dec 2005
Posts: 9

Rep: Reputation: 0
How to share files between Host machine (windowsXP) and VM (FC9)


I have installed VmPlayer on WindowsXP, can anyone tell me how to transfer files between the host and VM?

I have been trying with SAMBA but it doesn't work for me. Many thanks in advance.
 
Old 12-01-2008, 10:15 AM   #2
booionic
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
Keep it simple

Hi Friend.

Both OS will have a similar stack of protocols you can dig into to achieve your task.

I'll keep my suggestions very basic to start with as there is no value in being over complicated.

Your HOST machine will have an IP address. Does your FC9 pick up it's own IP address from the same DNS. Can you ping either machine from the other?

If you can then you could use FTP for transferring data, or enable SMB sharing on Windows as you should have done.

When trying to log in to the Windows Machine from FC9 you should have the same username and password. This is not essential but Access tokens for authentication under Windows are not clever.

If both machines can see each other from the desktop of each environment then SAMBA is probably the way to go. You have to create shares under Windows and attach accounts to them to run SMB in a useful way unless you only want guest permissions.

Let me know how you get on and if you need more technical help I will be happy to see what I can do.

Keep it simple, less to go wrong, makes you happier......
 
Old 12-01-2008, 11:51 AM   #3
rizwanrafique
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, openSUSE, CentOS
Posts: 147

Rep: Reputation: 19
Quote:
Originally Posted by gyc View Post
I have installed VmPlayer on WindowsXP, can anyone tell me how to transfer files between the host and VM?

I have been trying with SAMBA but it doesn't work for me. Many thanks in advance.
Are you using samba to share a directory in FC and then map it in winxp or using a windows share and mounting it on FC using mount.cifs or mount.smbfs?

What did you do with samba so far. If you briefly list down the steps (or may be important bits from the config) someone should be able to help you.

Also, checkout logs (dig out /var/logs/samba) and see what it says.

Setting up samba server is not tricky for basic use. Here are the steps.

1. Install it
2. Open smb.conf in your editor (it should be located in /etc, /etc/samba, or /etc/smb etc).
3. Create your share. A sample share is here:
Code:
[share_name]
        comment = home samba server
        path = /path/to/directory/to/share/
        writable = yes
        valid users = <username>
        browsable = no
4. Add your linux user to allowed samba users using
Code:
sudo smbpasswd -a <username>
and give new password for samba user.
5. restart samba server.
Code:
/etc/init.d/samba stop ;/etc/init.d/samba start
should do the trick.
6. Go to the windows xp and in run type: \\<your_fc_server_ip\<share_name>
7. Enter username/password (same as the one you entered in smbpasswd in step 4).
8. See what happens.
 
Old 12-01-2008, 07:54 PM   #4
gyc
LQ Newbie
 
Registered: Dec 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rizwanrafique View Post
Are you using samba to share a directory in FC and then map it in winxp or using a windows share and mounting it on FC using mount.cifs or mount.smbfs?

What did you do with samba so far. If you briefly list down the steps (or may be important bits from the config) someone should be able to help you.

Also, checkout logs (dig out /var/logs/samba) and see what it says.

Setting up samba server is not tricky for basic use. Here are the steps.

1. Install it
2. Open smb.conf in your editor (it should be located in /etc, /etc/samba, or /etc/smb etc).
3. Create your share. A sample share is here:
Code:
[share_name]
        comment = home samba server
        path = /path/to/directory/to/share/
        writable = yes
        valid users = <username>
        browsable = no
4. Add your linux user to allowed samba users using
Code:
sudo smbpasswd -a <username>
and give new password for samba user.
5. restart samba server.
Code:
/etc/init.d/samba stop ;/etc/init.d/samba start
should do the trick.
6. Go to the windows xp and in run type: \\<your_fc_server_ip\<share_name>
7. Enter username/password (same as the one you entered in smbpasswd in step 4).
8. See what happens.
Many thanks. But it doesn't seem to work for me. When I run and entered the \\ip\<share_name>, i don't see any window asking me for password. I have tried disabling my xp firewall, and disabling the SELinux on FC. I also didn't find any log on FC showing the smb request from my host pc.

Any suggestions?
 
Old 12-02-2008, 12:05 PM   #5
rizwanrafique
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, openSUSE, CentOS
Posts: 147

Rep: Reputation: 19
Ok let's try something basic.

On your linux machine as root in your home directory try this:

Code:
mkdir temp_share
mount -v -t cifs -o user=<username>,password=<pass>,rw //127.0.0.1/<share_name> temp_share
If it doesnt work try with smbfs rather than cifs. Also try it with //localhost rather than 127.0.0.1 and with your linux machine's ip address.

Please let me know if it mounts successfully or gives any error. If finishes silently then it mounted fine and you can verify it by going in temp_share directory. In this case the problem is network. If it didn't mount properly please copy-paste the error message here.
 
Old 12-02-2008, 07:10 PM   #6
gyc
LQ Newbie
 
Registered: Dec 2005
Posts: 9

Original Poster
Rep: Reputation: 0
There was no error mounting the samba share on the local machine, so it must be the network problem.

But what problem could it be?
 
Old 12-03-2008, 05:07 AM   #7
rizwanrafique
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, openSUSE, CentOS
Posts: 147

Rep: Reputation: 19
There could be a number of things.

Lets do first thing first. Do these checks:

- Can you ping winxp to FC and vice versa?
- Do you have network connectivity on FC/winxp?
- If you have any other services (ssh, telnet, ftp, apache etc) running on FC. Try using them from winxp box.
- Do you have any firewall running on FC/winxp?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VirtualBox: I want to share files between Fedora 9 host and Windows XP guest. Iltbreg Linux - Networking 5 10-22-2008 05:03 AM
How to share files between my linux virtual machine and window vista host? huy_china Linux - Newbie 8 10-07-2008 04:42 PM
Share files with remote XP machine ctkroeker Linux - Networking 3 03-24-2007 05:16 AM
share files on local machine bulldogzerofive Linux - General 1 09-16-2005 08:46 AM
Trying to share files on my Windows machine. jbraum Linux - Networking 6 01-07-2004 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration