How to make a Virtual Box Virtual Disk Read Only


Make it read Only (Immutable)

VBoxManage modifymedium disk 'C:\Users\user\VirtualBox VMs\X\X.vdi' --type immutable

Make it Writable

VBoxManage modifymedium disk 'C:\Users\user\VirtualBox VMs\X\X.vdi' --type normal

Troubleshooting:

You may need to detatch this disk first.

Detatch Virtual Disk Via GUI Virtual Box

,