VirtualBox: Changing the UUID of a VDI virtual disk File


sometimes you simply want to copy a vdi file and attach it to another virtual machine.

This will fail because in a VirtualBox Installation each vdi Harddisk must have an unique UUID. This command line changes the UUID of a VDI file.

VBoxManage internalcommands sethduuid /VMs/
UUID changed to: f668f3e6-25b6-479c-bbe8-8120ba879849

Alternatively you can clone an vdi file:
VBoxManage clonehd /VMs/debian/sda.vdi /VMs/ --format VDI --variant Fixed
This also generates an UUID for new vdi file.


Advertisment to support

One thought on “VirtualBox: Changing the UUID of a VDI virtual disk File”

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.