LinuxQuestions.org
Register a domain and help support LQ
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 04-28-2010, 05:11 PM   #1
eng_mohammedmostafa
Member
 
Registered: Nov 2008
Location: Egypt
Posts: 95
Blog Entries: 1

Rep: Reputation: 15
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?

Last edited by eng_mohammedmostafa; 04-28-2010 at 05:17 PM.
 
Old 04-28-2010, 05:38 PM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Just treat it like a network share (Samba or NFS - your preference).
 
Old 04-28-2010, 05:48 PM   #3
eng_mohammedmostafa
Member
 
Registered: Nov 2008
Location: Egypt
Posts: 95
Blog Entries: 1

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

Last edited by eng_mohammedmostafa; 04-28-2010 at 05:49 PM.
 
Old 04-28-2010, 07:14 PM   #4
jefro
Guru
 
Registered: Mar 2008
Posts: 11,544

Rep: Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405
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.
 
Old 04-28-2010, 07:26 PM   #5
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Virtual Machines with Linux techadventures Linux - Server 4 06-28-2009 03:18 AM
Ubuntu Linux and Windows Can Share The Desktop In Absence Of Virtual Machines downloadtube Ubuntu 5 08-21-2008 01:40 AM
Connect two virtual linux machines via virtual USB or serial WebBeing Linux - General 4 07-22-2008 07:26 AM
Easiest way to share files between two Linux machines anti.corp Debian 5 01-19-2006 04:31 PM
how to share files between two linux machines mchitrakar Linux - Newbie 4 08-12-2004 07:24 AM


All times are GMT -5. The time now is 11:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration