Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to change the hard disk's serial number in VirtualBox.

Does anyone know how to do that?

share|improve this question

closed as unclear what you're asking by Raystafarian, gronostaj, Simon Sheehan, Shekhar, Darth Android Jul 24 '13 at 19:18

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

When you say harddisk serial, what do you mean exactly? Because there are several options... WMI > Diskdrive > Serial number? or signature? or you mean DiskPart > Disk ID? or you mean Volume serial? – EliadTech Nov 8 '12 at 16:36

I'm guessing you want to change the UUID of the hard disk uuid is like this UUID {55b773b8-cbcb-42ea-9a44-1368b30ed823}

To set the UUID of a hard drive run this in command prompt :

VBoxManage internalcommands setvdiuuid disk2.vdi

eg: VBoxManage internalcommands sethduuid disk2.vdi 55b773b8-cbcb-42ea-9a44-1368b30ed823 will work.

share|improve this answer
The thing is, drives have a serial number that doesn't correspond to the VBox UUID. In a Linux guest, you can view this with smartctl -i /dev/whatever. The serial number shown bears no relation to the UUID. – Kaz Feb 16 '15 at 8:16

Looks like the command has changed:

sethduuid <filepath> [<uuid>]
    Assigns a new UUID to the given image file. This way, multiple copies
    of a container can be registered.

So in my case it was:

C:\Program Files\Oracle\VirtualBox>VBoxManage internalcommands sethduuid <vmdk location>

uuid is changed if you don't fill in a new one either way.

share|improve this answer

I guess you mean the Volume Serial Number that you see when you do a dir in de command console.

VolumeID solved it for me, run it as administrator:

volumeid C: C8BA-7B18

After the reboot it'd be changed:

 Volume in drive C has no label.
 Volume Serial Number is C8BA-7B18

 Directory of C:\
share|improve this answer

Not the answer you're looking for? Browse other questions tagged .