How to create a shared drive in Virtual Box

If you wan to create a shared drive in Oracle Virtual Box then follow the steps below:

1. Create the shared disk
cd "D:\VirtualBox VMs\oracle_shared"
"c:\Program Files\Oracle\VirtualBox\VBoxManage" createhd --filename weblogic_shared.vdi --size 20480 --format VDI --variant Fixed


2. Attach the shared drive to the Linux Machine 1
"c:\Program Files\Oracle\VirtualBox\VBoxManage" storageattach OEL6U3-WebLogic-Node1 --storagectl "SATA" --port 1 --device 0 --type hdd --medium weblogic_shared.vdi --mtype shareable

3. Attach the shared drive to the Linux Machine 2
"c:\Program Files\Oracle\VirtualBox\VBoxManage" storageattach OEL6U3-WebLogic-Node2 --storagectl "SATA" --port 1 --device 0 --type hdd --medium weblogic_shared.vdi --mtype shareable

4. Make the disk sharable
"c:\Program Files\Oracle\VirtualBox\VBoxManage" modifyhd weblogic_shared.vdi --type shareable

Note: This will just create a shared disk which can be accessed from both the machines, how ever it will not allow both the machines to simultaneously read/write on the disk. For that you need a NFS drive. Look for my next post on how to use a NFS drive.

Comments

Popular posts from this blog

How to mount a WD Book Live as NFS in OEL6U3

ORA-44412: XE edition memory parameter invalid or not specified

Oracle SQL Developer 19.4 font too small