It took so long to talk about the individual features of the file sharing scheme between the virtual machine and the physical machine (may be supplemented from time)

Source: Internet
Author: User

Recently there was an idea that began to toss, and now write down some conclusions for future reference:

The requirement is that there is a virtual machine system CentOS and physical machine window, I hope that the content of a directory can be shared with each other, whether it is to modify the system file there, immediately seemingly without clearance synchronization to another system,

But only in the content synchronization, for the directory of the respective system should look like internal files, but the content source and ordinary hard disk partition, is different.

The vernacular example is that the/home/abc.txt in CentOS is pointing to the same storage space as the d:/abc.txt in the window. But the other properties of the respective files are independent from the system, no function is missing,

For example, the CentOS system mode or uid/gid, or link function also ACL and so on. The following is a comparison of the characteristics of some of the obvious scenarios;


1.

Virtual comes with a shared feature that maps window files to CentOS, and the benefit is that the configuration is easy to use and can be mounted automatically. One of the very big deficiencies is that the user/permission for the file is specified at mount and cannot be chmod/chown changed. So if you need separate permissions for each file, you can just give it up.


2. (s) FTP sharing, for pull or upload, it is not bad, but is the main form of notification requirements, it is insufficient, if you want the server to change a file, notify the client it is not done, what to do, Proactively query the status of all files. Real-time synchronization of the needs of the person can abandon this copy;


3. WebDAV, although the HTTP post and get based on the implementation of Put,delete and query, but again, it with the ftp of the unilateral pull to query there is not much difference, let alone that the few poor configurable parameters; real-time and server-side operation permissions are not sufficient , so, in a big sense, its inadequacy is not different from sftp;


4.

SMB sharing, although it features more than Virtaulbox, more powerful, universal, but, like, you can not chmod in CentOS to change the properties of a file, the same as the mount when specified. The goods will not prompt the wrong, will only make you white work, So for different files have different permission requirements can be discarded, its goal is only compatible with different system sharing, can synchronize files in real time enough ideas;


5. ntfs-3g


6. rsync

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

It took so long to talk about the individual features of the file sharing scheme between the virtual machine and the physical machine (may be supplemented from time)

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.