Home » Questions » Computers [ Ask a new question ]

How can I change the BIOS serial number in VirtualBox?

How can I change the BIOS serial number in VirtualBox?

VirtualBox sets the BIOS serial number of every VM instance to 0. It seems to be possible to change some BIOS settings, but I haven't seen anything that directly references the serial number.

Asked by: Guest | Views: 81
Total answers/comments: 2
Guest [Entry]


Really has detailed answer for this.

You can set the bios serial number by doing this:

VBoxManage setextradata ""VM name""
""VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial"" ""System Serial""

The error you were getting is caused by the serial not being set as a string value, if you have a pure number you should prepend it with string: like so:

VBoxManage setextradata ""VM name""
""VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial"" ""string:1234""

Note: In case your VM is configured to use EFI firmware you need to replace pcbios by efi in the keys."
Guest [Entry]

"If you run that command, and get the error referenced by Roger, you need to back out the command by running the command without the last parameter (VALUE).

This removes the entry causing the error.

If you are unsure of what the last offending command was, open the ~~~.vbox (XML) file in the root of the VirtualMachines folder of the specific VM and review the EXTRADATA section.

Running the command-line call to vboxmanage is the best way to modify these.
Editing the xml file does not stick 100% of the time."