Create shared disk in VirtualBox: Easy step-by-step Guide

In this article, I will provide a detailed guide on how to create shared disk in VirtualBox for ASM. We’ll walk you through each step of the process with proper screenshots.

In this practice, I assume that you have already created the two RAC nodes and want to create shared disks for Oracle RAC clusters in Virtualbox.

1.Click on File and then select Tools option. Under Tools, you have to select Virtual Media Manager.

Shared storage creation step01

2. Now you have to create a disk image. Click on the Create button and select hard disk file location and size. Here we have created a disk image called DISK1.vdi with a 10GB size.

Shared storage creation step02
Shared storage creation step03
Shared storage creation step04
Shared storage creation step05
Shared storage creation step06
Shared storage creation step07

3. Select DISK1.vdi and click on properties to change the attribute type to shareable so that both nodes node1 and node2 can share this disk.

Shared storage creation step08

4. Now we have to create another disk image DISK2.vdi with a 15GB size. You can create with different size as per your requirements.

Shared storage creation step09
Shared storage creation step10
Shared storage creation step11
Shared storage creation step12

5. Make the DISK2.vdi disk image shareable.

Shared storage creation step13

6. Create the third disk image DISK3.vdi with a 15GB size.

Shared storage creation step14
Shared storage creation step15
Shared storage creation step16
Shared storage creation step17
Shared storage creation step18

7. Make the DISK3.vdi disk image shareable.

Shared storage creation step19

8. Till now we have created three disk images with 10GB,15GB, and 15GB size. Now select node1 and click on settings. Under the storage section, select controller and adds hard disk by selecting DISK1.vdi disk image.

Shared storage creation step20
Shared storage creation step21

9. Now add another hard disk and select the DISK2.vdi disk image.

Shared storage creation step22
Shared storage creation step23

10. Add the third hard disk and select DISK3.vdi disk image.

Shared storage creation step24
Shared storage creation step25

11. Here we can see we have added three hard disk images DISK1.vdi, DISK2.vdi and DISK3.vdi.

Create shared disk in virtualbox

12. Now select node2 and click on the settings option. Under settings, select the controller and add hard disk DISK1.

Shared storage creation step27
Shared storage creation step28

13. Click on adds hard disk and choose DISK2.vdi

Shared storage creation step29
Shared storage creation step30

14. Click on adds hard disk and choose third hard disk DISK3.vdi

Shared storage creation step31 1
Shared storage creation step32

15. Congratulations! You have successfully added the three shareable hard disks DISK1, DISK2, and DISK3 on both nodes.

Shared storage creation step33

Hope this step-by-step guide helped you to create shared disk in VirtualBox. If you want to create disk partition then you can follow my other article Disk partition creation in Linux.

Leave a Reply