LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How share directory between two Linux virtual machines? (https://www.linuxquestions.org/questions/linux-software-2/how-share-directory-between-two-linux-virtual-machines-804834/)

eng_mohammedmostafa 04-28-2010 05:11 PM

How share directory between two Linux virtual machines?
 
Dears,,

I created two Linux virtual machines.
I created a same directory in both of them as following . . .
/ocfs/clusterware
I need to make this directory shared between them
I mean , if create file in the directory in the first VM , I must see it from the second VM.
Please , how this?

paulsm4 04-28-2010 05:38 PM

Just treat it like a network share (Samba or NFS - your preference).

eng_mohammedmostafa 04-28-2010 05:48 PM

Do you have documentation for this ?
At least , i need the command that enable me to share the directory between both VMWares.

jefro 04-28-2010 07:14 PM

You need two things one is some sort of file share scheme. As above it was noted samba and nfs are common but one might use ftp or make http pages other means to transfer files. You'd have to select a scheme.

Second is that you would have to at least enable local networking in the VM application and configure the VM's to support your file share.

paulsm4 04-28-2010 07:26 PM

eng_mohammedmostafa -
Quote:

Do you have documentation for this?
Using Samba or NFS isn't anything VMWare-specific: it's just "Networking 101". You can google any of a million "howto's". For example:

http://www.oregontechsupport.com/articles/samba.php

Quote:

You need two things one is some sort of file share scheme. As above it was noted samba and nfs are common...

Second is that you would have to at least enable local networking in the VM application and configure the VM's to support your file share.
Both correct.

I believe Samba or NFS are probably best for a "file share scheme" (although you might prefer something else).

And I assume local networking is a "given" (Linux itself should have networking enabled and working upon install).

SUGGESTION: when you configure your VMWare virtual machine, you probably want to specify "bridged" networking.

'Hope that helps .. PSM


All times are GMT -5. The time now is 08:16 PM.