Create a shared disk between vms

Discussions related to using VirtualBox on Linux hosts.
Post Reply
thiagoaa11
Posts: 1
Joined: 7. Jun 2009, 04:07
Primary OS: Fedora other
VBox Version: OSE Fedora
Guest OSses: CentOS

Create a shared disk between vms

Post by thiagoaa11 »

Hi,

How can I create a shared disk between VMs?

I need to use the shared disk to simulate a storage that will be used by 2 VMs in cluster.

Regards.

Thiago Azevedo
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Create a shared disk between vms

Post by Perryg »

Have a look at this:

http://www.google.com/search?q=create+a ... en+vm+site

I think the better way would be to create several VMs and then create a cluster between them to simulate the real thing.

But that is just my opinion.
HolgerB
Posts: 58
Joined: 28. Jul 2008, 23:36

Re: Create a shared disk between vms

Post by HolgerB »

Hi there,

as always in life it´s very hard to make suggestions unless knowing what you really want.

What do you mean by "a shared disk between VMs" ?
Even more interesting what do you mean by "...to simulate a storage that will be used by 2 VMs in cluster" ?

Do you mean a shared storage visible to both VMs as guest in order to share data ?
Or do you talk about a shared storage (e.g. NFS) to store the VM images to start them from different nodes / hosts in the cluster ?

For the first one I would suggest to use SAMBA or NFS (which could provided by your host PC). Both VMs could then access the share to exchange data and you can simulate your later infrastructure.
In that case it would be neccessary you outline your later scenario in order to provide you more suggestions.

For the later one you can easily choosing a pre-configured solution.

FreeNAS is FreeBSD based and can be used to set up a NAS with FTP, iSCSI target, Samba, NFS within a few minutes:
http://www.freenas.org/

I´m using FreeNAS for a NFS-storage for three XenServer hosts in my company.
A Linux based alternative is OpenFiler:
http://www.openfiler.com/community/download/

so what are you looking for ? ;)
Post Reply