Skip to content

Instantly share code, notes, and snippets.

@jayanath
Last active July 6, 2021 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jayanath/2707174e3ee729be135a9dafe57d60a1 to your computer and use it in GitHub Desktop.
Save jayanath/2707174e3ee729be135a9dafe57d60a1 to your computer and use it in GitHub Desktop.
Setup UUID for new virtual hard disk - virtualbox - macOS
# virtualbox gives a "disk with same UUID is already mounted" error when trying to launch
# multiple virtual machines using VDI files of a same osboxes images.
# to avoid this error we can set uuid of the virtual disk as follows
> cd /Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/MacOS/
> VBoxManage internalcommands sethduuid <full path to the vdi file>
You should receive a message like below confirming the new uuid
UUID changed to: 98axxxxxx-f0xx-420x-9179-a33805xxxx
Once this is done, we can mount the vdi file without any issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment