For several days I've been struggling with VirtualBox failing to accept configuration as per manual.
Manual page in question: 9.9.2 from Chapter 9
https://www.virtualbox.org/manual/ch09.html#changevpd
The configuration item in question is the SerialNumber of hard disk VPD.
The appropriate command for this configuration per manual is:
Code: Select all
VBoxManage setextradata "VM name" "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/SerialNumber" "serial"
After running the following command:
Code: Select all
VBoxManage setextradata "MYVM" "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/SerialNumber" "000000000000Z1E6TQQV"
Code: Select all
<ExtraDataItem name="VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/SerialNumber" value="000000000000Z1E6TQQV"/>
The command that is used to check with sample output on real hardware is as follows:
Code: Select all
C:\Windows\system32>wmic diskdrive get serialnumber
SerialNumber
WCC6Y6DKY89X
CE8D6B010A0A
AE85HYE1100000002
2012062914345300
Code: Select all
C:\Users\USER>wmic diskdrive get serialnumber
SerialNumber
VB2ae94306-8aa3c024
Bug? Has this configuration functionality been deprecated and the manual is out of date?
Any other way to change the disk serial number? (Not the volume serial! Not the UUID!)
Edit:
Judging by the info posted here: http://www.outerhost.com/intranet/virtualbox I am using the right command to change that serial number. It just doesn't work! In fact I tried the example provided at that link, and my disk serial number in VM still did not change! Why?! |