Create shared disk storage in Virtual Box Oracle

Create shared disk storage in VirtualBox Oracle on Windows platform

  1. Shutdown the machine for which you want to create shared disk.

2. Set the path for windows machine to execute the virtualBox command:

E:\rac>set path="C:\Program Files\Oracle\VirtualBox";%PATH%
E:\rac>

3. Create the Virtual Disk for shared with Machine.

E:\rac>VBoxManage createhd --filename asm1.vdi --size 20480 --format VDI --variant Fixed
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Medium created. UUID: 941861e8-3598-435d-af49-7409baf66cc6

E:\rac>VBoxManage createhd --filename asm2.vdi --size 20480 --format VDI --variant Fixed
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Medium created. UUID: 69437694-86a5-47ea-97c7-e01f6d8f4e07

E:\rac>VBoxManage createhd --filename asm3.vdi --size 20480 --format VDI --variant Fixed
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Medium created. UUID: 0ecc31ac-0339-4299-ac00-b3ef30e3bf41

E:\rac>VBoxManage createhd --filename asm4.vdi --size 20480 --format VDI --variant Fixed
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Medium created. UUID: d463427e-2355-446a-9950-315b3148a6e3

4. Connect this shared disk to Virtual Machine.

E:\rac>VBoxManage storageattach RAC1 --storagectl "SATA" --port 1 --device 0 --type hdd --medium asm1.vdi --mtype shareable
E:\rac>VBoxManage storageattach RAC1 --storagectl "SATA" --port 2 --device 0 --type hdd --medium asm2.vdi --mtype shareable
E:\rac>VBoxManage storageattach RAC1 --storagectl "SATA" --port 3 --device 0 --type hdd --medium asm3.vdi --mtype shareable
E:\rac>VBoxManage storageattach RAC1 --storagectl "SATA" --port 4 --device 0 --type hdd --medium asm4.vdi --mtype shareable

5. Make them shareable if you want to share this disk with other VM also

E:\rac>VBoxManage modifyhd asm1.vdi --type shareable

E:\rac>VBoxManage modifyhd asm2.vdi --type shareable

E:\rac>VBoxManage modifyhd asm3.vdi --type shareable

E:\rac>VBoxManage modifyhd asm4.vdi --type shareable
This entry was posted in Oracle on by .
Unknown's avatar

About SandeepSingh

Hi, I am working in IT industry with having more than 15 year of experience, worked as an Oracle DBA with a Company and handling different databases like Oracle, SQL Server , DB2 etc Worked as a Development and Database Administrator.

Leave a Reply