I have installed vmware player on my win7 OS.Now I have installed ubuntu11.04 on vmware as a guest OS.Can anyone please suggest me how to transfer files between ubuntu and Win7.

Dani AI

Generated

Brief summary and practical next steps that build on the answers already posted by , , and .

The easiest, most reliable approaches are (A) enable VMware-integrated file sharing / drag-and-drop (requires VMware Tools), (B) copy over the virtual network using SSH/SFTP, or (C) mount a Windows share from Ubuntu. Which to pick depends on how often you move files and whether the guest can see the host on the network.

Install VMware Tools first (this fixes drag/drop and shared-folder support). On the Ubuntu guest:

sudo apt-get update
sudo apt-get install open-vm-tools open-vm-tools-desktop
sudo reboot

After reboot, enable Shared Folders in the VMware Player settings (or use the Player menu). If drag-and-drop or clipboard copy fails, confirm the VMware tools process is running: ps aux | grep vmtoolsd.

If you prefer a network method (robust for many files), enable SSH on the guest and use an SCP/SFTP client from Windows (WinSCP) or copy with scp:

sudo apt-get install openssh-server
sudo service ssh start

# from Windows (example using scp/PowerShell with OpenSSH client):
scp username@<guest-ip>:/home/username/file.txt C:\Users\YourName\Desktop

To mount a Windows share on Ubuntu (so the guest sees the host folder as a local mount), install cifs tools and mount:

sudo apt-get install cifs-utils
sudo mkdir /mnt/winshare
sudo mount -t cifs //WINHOST/Share /mnt/winshare -o username=WINUSER,uid=1000,gid=1000

Troubleshooting notes: use bridged networking if you want the guest on the same subnet as the host; check Windows firewall (File and Printer Sharing or SSH) and Ubuntu firewall; avoid putting plain passwords on the command line (use a credentials file). If a method here fails, mention which step failed and the guest/host network IPs so replies can be specific.

Recommended Answers

All 3 Replies

I use vmWare but not the vmWare player so this may not help, but in the full version you can set up a Windows folder to be shared with the vmWare session. Before you bother with that though, have you tried just dragging the file from the vmWare session to your desktop? Or doing a copy/paste? With the full version I usually just drag and drop.

Here is another option outside of the VMWare or other virtual app tools...

As long as your guest OS has been assigned to a network that is shared with your host OS, you simply need to configure the system OSs appropriately. It doesnt matter if the host OS is on a physical and the guest OS is virtual, or if the systems are in different locations as long as they are either on the same subnet or you can route packets between them.

Once you have the networking portion done, you can follow along on a tutorial such as this one which explains how to set up Windows 7 and Ubuntu 11.04 so they can communicate and share files.

IF the win7 host can ping the ubuntu host and vice versa, then you can use WINSCP on the windows side to get files or just use a CIFS mount from the ubuntu side to get to a windows share.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.