Transfer: Use HGFS to implement vmare file transfer method, without any network-related settings

Source: Internet
Author: User

[Brilliant] Original: Using HGFS to implement vmare file transfer without any network-related settings

Http://www.chinaunix.net Author: bingosek published on: 10:41:30
[Comment] [view the original article] [Linux discussion board] [close]

Use the Shared Folders feature in VMware (vmware workstation 5) to transfer files between hosts and ghosts in VMware, without any network-related settings or any network protocol, the host and ghost can be Linux and Windows operating systems. Here we only introduce that the host is windows and the ghost is set in Linux. If the ghost is windows, see setting up shared folders in the help of VMware.

1 install vmtools for Linux:
select VM in the Program menu of VMware Workstation; install VMware Tools...
Start Linux in ghost computer and run:
mkdir/mnt/CDROM
Mount-O ro/dev/CDROM/mnt/CDROM (the vmtools Installation File is stored in the VMWare virtual cdrom, first you need to mount the drive to find the Installation File)
Cd/mnt/CDROM
tar-zxvf VMwareTools-5.0.0-12124.i386.tar.gz-C/tmp (extract the installation file to/tmp)
Cd/tmp/vmware-tools-distrib
. /vmware-install.pl (run the vwware installation script, which is written in Perl)
here, the installer will ask a series of questions about the location of the Installation File and set resolution, in most cases, you can install the default VMware Tools configuration. Therefore, press the Enter key to select the default configuration for each problem.
after installation, VMware adds a vmhgfs module to the kernel. You can use lsmod to view it.

2. Set the shared directory of the host computer:
switch to Windows desktop in ghost computer, and choose VM>; Settings>; Options> from the VMware Workstation program menu; shared Folders>; properties
click "add" in the lower-right corner of the dialog box, click "Next"
enter the name of the shared directory in the text box "name" (the directory name entered here will be displayed in the Linux System of ghost computer. name ), suppose it is fc4_iso; in "host folder", fill in the directory to be shared by the Windows System in host computer, suppose it is F: \ Linux-CD \ RedHat \ fedora_core_4 \ stentz-dvd-i386, click Finish
the next dialog box is to select the sharing mode: Enable T. His share indicates that the share is valid for a long time and the directory can be read and written. the read-only mode indicates that the share is valid for a long time and the directory is read-only; disable after this session means that the sharing will expire after the ghost computer is shut down or suspended next time. Generally, select enable this share and click "finish".
shared folder settings have been completed.

3 Use of shared folder directory
Switch to the Linux System of the ghost computer and run:
CD/mnt/HGFS
Ls
You can see the fc3_iso directory and use commands such as CP to perform read and write operations from windows to Linux and from Linux to Windows.

4. Notes
Adding a shared folder in VMware software or performing a version of the shared folder parameter immediately takes effect, that is to say, you can immediately see the newly added shared directory in the Linux System of the ghost computer and experience the parameter changes.

Conclusion: write this articleArticleThe purpose is to reduce the number of new users who repeatedly ask questions about VMware Host/ghost computer shared files on Cu Linux and the number of answers answered by other students, so that the layout is more informative. In addition, I think most of the answers to this question are implemented by using FTP, Samba, and NFS (NFS can be implemented by installing Microsoft Service for UNIX on Windows, it is much easier to use the shared folder method provided by VMware than to use the network protocol for file transfer. For Beginners, copying files using the CP command is much easier than using the FTP and smbmount commands.

Bingosek replied to: 20:26:50

Install VMware Tools

Bingosek replied to: 20:27:28

Install vmtools

Unicorn_angel replied to: 20:30:13

FreeBSD has been inaccessible after installing vmtools. For some reason,

Bingosek replied to: 20:30:24

Lsmod results

Bingosek replied to: 20:32:57

Add shared folder

Bingosek replied to: 20:36:21

Add shared folder

Bingosek replied to: 20:39:25

Add shared folder

Bingosek replied to: 20:42:41

Added

Bingosek replied to: 20:48:06

Verify read/write Functions

Bingosek replied to: 21:03:09

End.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.