How can I change the BIOS serial number in VirtualBox?











up vote
16
down vote

favorite
6












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.



Can anyone suggest a way to do this?










share|improve this question


















  • 1




    Any particular reason you want to do this?
    – Jared Harley
    Oct 15 '09 at 0:15






  • 1




    Yes. I have a PC inventory software tool that uses the BIOS serial number to uniquely identify computers. It works fine for physical hardware and for VMs from other vendors, but doesn't know how to handle multiple VirtualBox VMs.
    – Roger
    Oct 15 '09 at 0:52










  • edited my answer to reflect the error you caught.
    – A Dwarf
    Oct 15 '09 at 2:08










  • You have any news on this, Roger? Would love to know how it turned out.
    – A Dwarf
    Oct 31 '09 at 3:51










  • I never determined how to do it. I got a few responses on the VirtualBox forums, but found nothing that worked. If I run across the answer, I'll be sure to add an update here.
    – Roger
    Nov 4 '09 at 23:42















up vote
16
down vote

favorite
6












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.



Can anyone suggest a way to do this?










share|improve this question


















  • 1




    Any particular reason you want to do this?
    – Jared Harley
    Oct 15 '09 at 0:15






  • 1




    Yes. I have a PC inventory software tool that uses the BIOS serial number to uniquely identify computers. It works fine for physical hardware and for VMs from other vendors, but doesn't know how to handle multiple VirtualBox VMs.
    – Roger
    Oct 15 '09 at 0:52










  • edited my answer to reflect the error you caught.
    – A Dwarf
    Oct 15 '09 at 2:08










  • You have any news on this, Roger? Would love to know how it turned out.
    – A Dwarf
    Oct 31 '09 at 3:51










  • I never determined how to do it. I got a few responses on the VirtualBox forums, but found nothing that worked. If I run across the answer, I'll be sure to add an update here.
    – Roger
    Nov 4 '09 at 23:42













up vote
16
down vote

favorite
6









up vote
16
down vote

favorite
6






6





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.



Can anyone suggest a way to do this?










share|improve this question













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.



Can anyone suggest a way to do this?







virtualbox bios






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 14 '09 at 23:54









Roger

1,17231128




1,17231128








  • 1




    Any particular reason you want to do this?
    – Jared Harley
    Oct 15 '09 at 0:15






  • 1




    Yes. I have a PC inventory software tool that uses the BIOS serial number to uniquely identify computers. It works fine for physical hardware and for VMs from other vendors, but doesn't know how to handle multiple VirtualBox VMs.
    – Roger
    Oct 15 '09 at 0:52










  • edited my answer to reflect the error you caught.
    – A Dwarf
    Oct 15 '09 at 2:08










  • You have any news on this, Roger? Would love to know how it turned out.
    – A Dwarf
    Oct 31 '09 at 3:51










  • I never determined how to do it. I got a few responses on the VirtualBox forums, but found nothing that worked. If I run across the answer, I'll be sure to add an update here.
    – Roger
    Nov 4 '09 at 23:42














  • 1




    Any particular reason you want to do this?
    – Jared Harley
    Oct 15 '09 at 0:15






  • 1




    Yes. I have a PC inventory software tool that uses the BIOS serial number to uniquely identify computers. It works fine for physical hardware and for VMs from other vendors, but doesn't know how to handle multiple VirtualBox VMs.
    – Roger
    Oct 15 '09 at 0:52










  • edited my answer to reflect the error you caught.
    – A Dwarf
    Oct 15 '09 at 2:08










  • You have any news on this, Roger? Would love to know how it turned out.
    – A Dwarf
    Oct 31 '09 at 3:51










  • I never determined how to do it. I got a few responses on the VirtualBox forums, but found nothing that worked. If I run across the answer, I'll be sure to add an update here.
    – Roger
    Nov 4 '09 at 23:42








1




1




Any particular reason you want to do this?
– Jared Harley
Oct 15 '09 at 0:15




Any particular reason you want to do this?
– Jared Harley
Oct 15 '09 at 0:15




1




1




Yes. I have a PC inventory software tool that uses the BIOS serial number to uniquely identify computers. It works fine for physical hardware and for VMs from other vendors, but doesn't know how to handle multiple VirtualBox VMs.
– Roger
Oct 15 '09 at 0:52




Yes. I have a PC inventory software tool that uses the BIOS serial number to uniquely identify computers. It works fine for physical hardware and for VMs from other vendors, but doesn't know how to handle multiple VirtualBox VMs.
– Roger
Oct 15 '09 at 0:52












edited my answer to reflect the error you caught.
– A Dwarf
Oct 15 '09 at 2:08




edited my answer to reflect the error you caught.
– A Dwarf
Oct 15 '09 at 2:08












You have any news on this, Roger? Would love to know how it turned out.
– A Dwarf
Oct 31 '09 at 3:51




You have any news on this, Roger? Would love to know how it turned out.
– A Dwarf
Oct 31 '09 at 3:51












I never determined how to do it. I got a few responses on the VirtualBox forums, but found nothing that worked. If I run across the answer, I'll be sure to add an update here.
– Roger
Nov 4 '09 at 23:42




I never determined how to do it. I got a few responses on the VirtualBox forums, but found nothing that worked. If I run across the answer, I'll be sure to add an update here.
– Roger
Nov 4 '09 at 23:42










5 Answers
5






active

oldest

votes

















up vote
19
down vote



accepted










http://www.virtualbox.org/manual/ch09.html#changedmi



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.






share|improve this answer



















  • 1




    Note that these instructions are for systems using BIOS. If your system uses EFI -- controlled by "Settings -> System -> Motherboard -> Enable EFI" -- then you need to replace "pcbios" with "efi" in the above commands.
    – ntc2
    Feb 15 at 20:01


















up vote
8
down vote













Not from any external settings. But you can from the code and then build it yourself:



Source file: DevPcBios.cpp
Line: 1014 READCFGSTR("DmiSystemSerial", pszDmiSystemSerial, "0");



Change "0" to whatever value you need.





EDIT: You can apparently use VBoxManage setextradata. I have used it in the past for other type of configurations (not bios related) and didn't test this particular setting. Give it a go:



VBoxManage setextradata *YourVMName* VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial "*yourserial*"


Otherwise... revert back to source code editing and building.



Best of luck.






share|improve this answer



















  • 1




    Hmm. Thanks - so close, but not there yet. I tried this: "c:Program FilesSunVirtualBoxVBoxManage.exe" setextradata "Demo Server" VBoxInternal/Devices/pcbios/0/Config /DmiSerial "123" It seemed to work, but when I launched the VM I got this error message: Failed to start the virtual machine Demo Server. Invalid configuration for device pcbios device (VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES). Unknown error creating VM (VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES). Deleting and recreating the machine definition fixed it, so no harm done. I think you're really close - any other suggestions?
    – Roger
    Oct 15 '09 at 1:22










  • hmm... did you make a verbatim copy/paste of your command to the comment box? Because there's no spave between /Config and /DmiSerial. Regardless I'll explore this further. Guess I will have to install VirtualBox. So far was relying only on my notes :)
    – A Dwarf
    Oct 15 '09 at 1:45










  • Bah! This head of mine. I post the relevant code line and then don't even check it against my much older notes. It's not /DmiSerial. It has been renamed sometime between version 1.5 and now. It is now /DmiSystemSerial
    – A Dwarf
    Oct 15 '09 at 1:53










  • Thanks, A Dwarf, for all your help. I tried replacing DmiSerial with DmiSystemSerial, reran the command line (without the space, which was a typo), and got the same error.
    – Roger
    Oct 15 '09 at 12:06










  • To my knowledge it can only mean this isn't fully implemented yet and you can't do it this way. At this point I'm afraid I cease to be useful. You should go to the VirtualBox forums and try from there. They are excellent folks and you'll get a more informed answer. I would however love to know the end result, if you would be so kind and post an answer to your own question when that happens. All the best.
    – A Dwarf
    Oct 15 '09 at 17:52


















up vote
3
down vote













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.






share|improve this answer




























    up vote
    2
    down vote













    The accepted answer didn't update the serial number correctly for me; instead, I followed these steps to successfully update the serial number. Note the guest OS was macOS and the host was windows.



    NOTE: You must close virtualbox before running this command for it to be saved.




    1. Open the windows command prompt as administrator

    2. cd "C:Program FilesOracleVirtualBox"


    3. VBoxManage.exe setextradata "VM NAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemSerial" "SERIAL_HERE" see source.*

      Not sure why the pcbios command didn't work but efi did.


    HELPFUL LINKS




    • If you have trouble finding a valid serial follow the instructions here.

    • If you're not sure what your vm name is run VBoxManage.exe list vms.






    share|improve this answer





















    • Re you needing "efi" and accepted answer using "pcbios", this is probably because you're using (U)EFI and that person was using traditional BIOS. Whether you're using EFI or BIOS is determined by the "Settings -> System -> Motherboard -> Enable EFI" check box in VirtualBox.
      – ntc2
      Feb 15 at 18:38


















    up vote
    1
    down vote













    Try using a serial number that contains 20 byte hexadecimal string:



    VBoxManage setextradata "VM name" "VBoxInternal/Devices/ahci/0/Config/Port0/SerialNumber" "serial"


    (Reference)






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f55561%2fhow-can-i-change-the-bios-serial-number-in-virtualbox%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      5 Answers
      5






      active

      oldest

      votes








      5 Answers
      5






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      19
      down vote



      accepted










      http://www.virtualbox.org/manual/ch09.html#changedmi



      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.






      share|improve this answer



















      • 1




        Note that these instructions are for systems using BIOS. If your system uses EFI -- controlled by "Settings -> System -> Motherboard -> Enable EFI" -- then you need to replace "pcbios" with "efi" in the above commands.
        – ntc2
        Feb 15 at 20:01















      up vote
      19
      down vote



      accepted










      http://www.virtualbox.org/manual/ch09.html#changedmi



      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.






      share|improve this answer



















      • 1




        Note that these instructions are for systems using BIOS. If your system uses EFI -- controlled by "Settings -> System -> Motherboard -> Enable EFI" -- then you need to replace "pcbios" with "efi" in the above commands.
        – ntc2
        Feb 15 at 20:01













      up vote
      19
      down vote



      accepted







      up vote
      19
      down vote



      accepted






      http://www.virtualbox.org/manual/ch09.html#changedmi



      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.






      share|improve this answer














      http://www.virtualbox.org/manual/ch09.html#changedmi



      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.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Nov 19 at 11:58

























      answered Jan 14 '12 at 11:56









      Alex R

      34525




      34525








      • 1




        Note that these instructions are for systems using BIOS. If your system uses EFI -- controlled by "Settings -> System -> Motherboard -> Enable EFI" -- then you need to replace "pcbios" with "efi" in the above commands.
        – ntc2
        Feb 15 at 20:01














      • 1




        Note that these instructions are for systems using BIOS. If your system uses EFI -- controlled by "Settings -> System -> Motherboard -> Enable EFI" -- then you need to replace "pcbios" with "efi" in the above commands.
        – ntc2
        Feb 15 at 20:01








      1




      1




      Note that these instructions are for systems using BIOS. If your system uses EFI -- controlled by "Settings -> System -> Motherboard -> Enable EFI" -- then you need to replace "pcbios" with "efi" in the above commands.
      – ntc2
      Feb 15 at 20:01




      Note that these instructions are for systems using BIOS. If your system uses EFI -- controlled by "Settings -> System -> Motherboard -> Enable EFI" -- then you need to replace "pcbios" with "efi" in the above commands.
      – ntc2
      Feb 15 at 20:01












      up vote
      8
      down vote













      Not from any external settings. But you can from the code and then build it yourself:



      Source file: DevPcBios.cpp
      Line: 1014 READCFGSTR("DmiSystemSerial", pszDmiSystemSerial, "0");



      Change "0" to whatever value you need.





      EDIT: You can apparently use VBoxManage setextradata. I have used it in the past for other type of configurations (not bios related) and didn't test this particular setting. Give it a go:



      VBoxManage setextradata *YourVMName* VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial "*yourserial*"


      Otherwise... revert back to source code editing and building.



      Best of luck.






      share|improve this answer



















      • 1




        Hmm. Thanks - so close, but not there yet. I tried this: "c:Program FilesSunVirtualBoxVBoxManage.exe" setextradata "Demo Server" VBoxInternal/Devices/pcbios/0/Config /DmiSerial "123" It seemed to work, but when I launched the VM I got this error message: Failed to start the virtual machine Demo Server. Invalid configuration for device pcbios device (VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES). Unknown error creating VM (VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES). Deleting and recreating the machine definition fixed it, so no harm done. I think you're really close - any other suggestions?
        – Roger
        Oct 15 '09 at 1:22










      • hmm... did you make a verbatim copy/paste of your command to the comment box? Because there's no spave between /Config and /DmiSerial. Regardless I'll explore this further. Guess I will have to install VirtualBox. So far was relying only on my notes :)
        – A Dwarf
        Oct 15 '09 at 1:45










      • Bah! This head of mine. I post the relevant code line and then don't even check it against my much older notes. It's not /DmiSerial. It has been renamed sometime between version 1.5 and now. It is now /DmiSystemSerial
        – A Dwarf
        Oct 15 '09 at 1:53










      • Thanks, A Dwarf, for all your help. I tried replacing DmiSerial with DmiSystemSerial, reran the command line (without the space, which was a typo), and got the same error.
        – Roger
        Oct 15 '09 at 12:06










      • To my knowledge it can only mean this isn't fully implemented yet and you can't do it this way. At this point I'm afraid I cease to be useful. You should go to the VirtualBox forums and try from there. They are excellent folks and you'll get a more informed answer. I would however love to know the end result, if you would be so kind and post an answer to your own question when that happens. All the best.
        – A Dwarf
        Oct 15 '09 at 17:52















      up vote
      8
      down vote













      Not from any external settings. But you can from the code and then build it yourself:



      Source file: DevPcBios.cpp
      Line: 1014 READCFGSTR("DmiSystemSerial", pszDmiSystemSerial, "0");



      Change "0" to whatever value you need.





      EDIT: You can apparently use VBoxManage setextradata. I have used it in the past for other type of configurations (not bios related) and didn't test this particular setting. Give it a go:



      VBoxManage setextradata *YourVMName* VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial "*yourserial*"


      Otherwise... revert back to source code editing and building.



      Best of luck.






      share|improve this answer



















      • 1




        Hmm. Thanks - so close, but not there yet. I tried this: "c:Program FilesSunVirtualBoxVBoxManage.exe" setextradata "Demo Server" VBoxInternal/Devices/pcbios/0/Config /DmiSerial "123" It seemed to work, but when I launched the VM I got this error message: Failed to start the virtual machine Demo Server. Invalid configuration for device pcbios device (VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES). Unknown error creating VM (VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES). Deleting and recreating the machine definition fixed it, so no harm done. I think you're really close - any other suggestions?
        – Roger
        Oct 15 '09 at 1:22










      • hmm... did you make a verbatim copy/paste of your command to the comment box? Because there's no spave between /Config and /DmiSerial. Regardless I'll explore this further. Guess I will have to install VirtualBox. So far was relying only on my notes :)
        – A Dwarf
        Oct 15 '09 at 1:45










      • Bah! This head of mine. I post the relevant code line and then don't even check it against my much older notes. It's not /DmiSerial. It has been renamed sometime between version 1.5 and now. It is now /DmiSystemSerial
        – A Dwarf
        Oct 15 '09 at 1:53










      • Thanks, A Dwarf, for all your help. I tried replacing DmiSerial with DmiSystemSerial, reran the command line (without the space, which was a typo), and got the same error.
        – Roger
        Oct 15 '09 at 12:06










      • To my knowledge it can only mean this isn't fully implemented yet and you can't do it this way. At this point I'm afraid I cease to be useful. You should go to the VirtualBox forums and try from there. They are excellent folks and you'll get a more informed answer. I would however love to know the end result, if you would be so kind and post an answer to your own question when that happens. All the best.
        – A Dwarf
        Oct 15 '09 at 17:52













      up vote
      8
      down vote










      up vote
      8
      down vote









      Not from any external settings. But you can from the code and then build it yourself:



      Source file: DevPcBios.cpp
      Line: 1014 READCFGSTR("DmiSystemSerial", pszDmiSystemSerial, "0");



      Change "0" to whatever value you need.





      EDIT: You can apparently use VBoxManage setextradata. I have used it in the past for other type of configurations (not bios related) and didn't test this particular setting. Give it a go:



      VBoxManage setextradata *YourVMName* VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial "*yourserial*"


      Otherwise... revert back to source code editing and building.



      Best of luck.






      share|improve this answer














      Not from any external settings. But you can from the code and then build it yourself:



      Source file: DevPcBios.cpp
      Line: 1014 READCFGSTR("DmiSystemSerial", pszDmiSystemSerial, "0");



      Change "0" to whatever value you need.





      EDIT: You can apparently use VBoxManage setextradata. I have used it in the past for other type of configurations (not bios related) and didn't test this particular setting. Give it a go:



      VBoxManage setextradata *YourVMName* VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial "*yourserial*"


      Otherwise... revert back to source code editing and building.



      Best of luck.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Jul 15 '17 at 1:19









      Andrea Lazzarotto

      682314




      682314










      answered Oct 15 '09 at 0:33









      A Dwarf

      17k13665




      17k13665








      • 1




        Hmm. Thanks - so close, but not there yet. I tried this: "c:Program FilesSunVirtualBoxVBoxManage.exe" setextradata "Demo Server" VBoxInternal/Devices/pcbios/0/Config /DmiSerial "123" It seemed to work, but when I launched the VM I got this error message: Failed to start the virtual machine Demo Server. Invalid configuration for device pcbios device (VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES). Unknown error creating VM (VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES). Deleting and recreating the machine definition fixed it, so no harm done. I think you're really close - any other suggestions?
        – Roger
        Oct 15 '09 at 1:22










      • hmm... did you make a verbatim copy/paste of your command to the comment box? Because there's no spave between /Config and /DmiSerial. Regardless I'll explore this further. Guess I will have to install VirtualBox. So far was relying only on my notes :)
        – A Dwarf
        Oct 15 '09 at 1:45










      • Bah! This head of mine. I post the relevant code line and then don't even check it against my much older notes. It's not /DmiSerial. It has been renamed sometime between version 1.5 and now. It is now /DmiSystemSerial
        – A Dwarf
        Oct 15 '09 at 1:53










      • Thanks, A Dwarf, for all your help. I tried replacing DmiSerial with DmiSystemSerial, reran the command line (without the space, which was a typo), and got the same error.
        – Roger
        Oct 15 '09 at 12:06










      • To my knowledge it can only mean this isn't fully implemented yet and you can't do it this way. At this point I'm afraid I cease to be useful. You should go to the VirtualBox forums and try from there. They are excellent folks and you'll get a more informed answer. I would however love to know the end result, if you would be so kind and post an answer to your own question when that happens. All the best.
        – A Dwarf
        Oct 15 '09 at 17:52














      • 1




        Hmm. Thanks - so close, but not there yet. I tried this: "c:Program FilesSunVirtualBoxVBoxManage.exe" setextradata "Demo Server" VBoxInternal/Devices/pcbios/0/Config /DmiSerial "123" It seemed to work, but when I launched the VM I got this error message: Failed to start the virtual machine Demo Server. Invalid configuration for device pcbios device (VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES). Unknown error creating VM (VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES). Deleting and recreating the machine definition fixed it, so no harm done. I think you're really close - any other suggestions?
        – Roger
        Oct 15 '09 at 1:22










      • hmm... did you make a verbatim copy/paste of your command to the comment box? Because there's no spave between /Config and /DmiSerial. Regardless I'll explore this further. Guess I will have to install VirtualBox. So far was relying only on my notes :)
        – A Dwarf
        Oct 15 '09 at 1:45










      • Bah! This head of mine. I post the relevant code line and then don't even check it against my much older notes. It's not /DmiSerial. It has been renamed sometime between version 1.5 and now. It is now /DmiSystemSerial
        – A Dwarf
        Oct 15 '09 at 1:53










      • Thanks, A Dwarf, for all your help. I tried replacing DmiSerial with DmiSystemSerial, reran the command line (without the space, which was a typo), and got the same error.
        – Roger
        Oct 15 '09 at 12:06










      • To my knowledge it can only mean this isn't fully implemented yet and you can't do it this way. At this point I'm afraid I cease to be useful. You should go to the VirtualBox forums and try from there. They are excellent folks and you'll get a more informed answer. I would however love to know the end result, if you would be so kind and post an answer to your own question when that happens. All the best.
        – A Dwarf
        Oct 15 '09 at 17:52








      1




      1




      Hmm. Thanks - so close, but not there yet. I tried this: "c:Program FilesSunVirtualBoxVBoxManage.exe" setextradata "Demo Server" VBoxInternal/Devices/pcbios/0/Config /DmiSerial "123" It seemed to work, but when I launched the VM I got this error message: Failed to start the virtual machine Demo Server. Invalid configuration for device pcbios device (VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES). Unknown error creating VM (VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES). Deleting and recreating the machine definition fixed it, so no harm done. I think you're really close - any other suggestions?
      – Roger
      Oct 15 '09 at 1:22




      Hmm. Thanks - so close, but not there yet. I tried this: "c:Program FilesSunVirtualBoxVBoxManage.exe" setextradata "Demo Server" VBoxInternal/Devices/pcbios/0/Config /DmiSerial "123" It seemed to work, but when I launched the VM I got this error message: Failed to start the virtual machine Demo Server. Invalid configuration for device pcbios device (VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES). Unknown error creating VM (VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES). Deleting and recreating the machine definition fixed it, so no harm done. I think you're really close - any other suggestions?
      – Roger
      Oct 15 '09 at 1:22












      hmm... did you make a verbatim copy/paste of your command to the comment box? Because there's no spave between /Config and /DmiSerial. Regardless I'll explore this further. Guess I will have to install VirtualBox. So far was relying only on my notes :)
      – A Dwarf
      Oct 15 '09 at 1:45




      hmm... did you make a verbatim copy/paste of your command to the comment box? Because there's no spave between /Config and /DmiSerial. Regardless I'll explore this further. Guess I will have to install VirtualBox. So far was relying only on my notes :)
      – A Dwarf
      Oct 15 '09 at 1:45












      Bah! This head of mine. I post the relevant code line and then don't even check it against my much older notes. It's not /DmiSerial. It has been renamed sometime between version 1.5 and now. It is now /DmiSystemSerial
      – A Dwarf
      Oct 15 '09 at 1:53




      Bah! This head of mine. I post the relevant code line and then don't even check it against my much older notes. It's not /DmiSerial. It has been renamed sometime between version 1.5 and now. It is now /DmiSystemSerial
      – A Dwarf
      Oct 15 '09 at 1:53












      Thanks, A Dwarf, for all your help. I tried replacing DmiSerial with DmiSystemSerial, reran the command line (without the space, which was a typo), and got the same error.
      – Roger
      Oct 15 '09 at 12:06




      Thanks, A Dwarf, for all your help. I tried replacing DmiSerial with DmiSystemSerial, reran the command line (without the space, which was a typo), and got the same error.
      – Roger
      Oct 15 '09 at 12:06












      To my knowledge it can only mean this isn't fully implemented yet and you can't do it this way. At this point I'm afraid I cease to be useful. You should go to the VirtualBox forums and try from there. They are excellent folks and you'll get a more informed answer. I would however love to know the end result, if you would be so kind and post an answer to your own question when that happens. All the best.
      – A Dwarf
      Oct 15 '09 at 17:52




      To my knowledge it can only mean this isn't fully implemented yet and you can't do it this way. At this point I'm afraid I cease to be useful. You should go to the VirtualBox forums and try from there. They are excellent folks and you'll get a more informed answer. I would however love to know the end result, if you would be so kind and post an answer to your own question when that happens. All the best.
      – A Dwarf
      Oct 15 '09 at 17:52










      up vote
      3
      down vote













      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.






      share|improve this answer

























        up vote
        3
        down vote













        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.






        share|improve this answer























          up vote
          3
          down vote










          up vote
          3
          down vote









          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.






          share|improve this answer












          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 6 '12 at 14:18









          Alex

          311




          311






















              up vote
              2
              down vote













              The accepted answer didn't update the serial number correctly for me; instead, I followed these steps to successfully update the serial number. Note the guest OS was macOS and the host was windows.



              NOTE: You must close virtualbox before running this command for it to be saved.




              1. Open the windows command prompt as administrator

              2. cd "C:Program FilesOracleVirtualBox"


              3. VBoxManage.exe setextradata "VM NAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemSerial" "SERIAL_HERE" see source.*

                Not sure why the pcbios command didn't work but efi did.


              HELPFUL LINKS




              • If you have trouble finding a valid serial follow the instructions here.

              • If you're not sure what your vm name is run VBoxManage.exe list vms.






              share|improve this answer





















              • Re you needing "efi" and accepted answer using "pcbios", this is probably because you're using (U)EFI and that person was using traditional BIOS. Whether you're using EFI or BIOS is determined by the "Settings -> System -> Motherboard -> Enable EFI" check box in VirtualBox.
                – ntc2
                Feb 15 at 18:38















              up vote
              2
              down vote













              The accepted answer didn't update the serial number correctly for me; instead, I followed these steps to successfully update the serial number. Note the guest OS was macOS and the host was windows.



              NOTE: You must close virtualbox before running this command for it to be saved.




              1. Open the windows command prompt as administrator

              2. cd "C:Program FilesOracleVirtualBox"


              3. VBoxManage.exe setextradata "VM NAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemSerial" "SERIAL_HERE" see source.*

                Not sure why the pcbios command didn't work but efi did.


              HELPFUL LINKS




              • If you have trouble finding a valid serial follow the instructions here.

              • If you're not sure what your vm name is run VBoxManage.exe list vms.






              share|improve this answer





















              • Re you needing "efi" and accepted answer using "pcbios", this is probably because you're using (U)EFI and that person was using traditional BIOS. Whether you're using EFI or BIOS is determined by the "Settings -> System -> Motherboard -> Enable EFI" check box in VirtualBox.
                – ntc2
                Feb 15 at 18:38













              up vote
              2
              down vote










              up vote
              2
              down vote









              The accepted answer didn't update the serial number correctly for me; instead, I followed these steps to successfully update the serial number. Note the guest OS was macOS and the host was windows.



              NOTE: You must close virtualbox before running this command for it to be saved.




              1. Open the windows command prompt as administrator

              2. cd "C:Program FilesOracleVirtualBox"


              3. VBoxManage.exe setextradata "VM NAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemSerial" "SERIAL_HERE" see source.*

                Not sure why the pcbios command didn't work but efi did.


              HELPFUL LINKS




              • If you have trouble finding a valid serial follow the instructions here.

              • If you're not sure what your vm name is run VBoxManage.exe list vms.






              share|improve this answer












              The accepted answer didn't update the serial number correctly for me; instead, I followed these steps to successfully update the serial number. Note the guest OS was macOS and the host was windows.



              NOTE: You must close virtualbox before running this command for it to be saved.




              1. Open the windows command prompt as administrator

              2. cd "C:Program FilesOracleVirtualBox"


              3. VBoxManage.exe setextradata "VM NAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemSerial" "SERIAL_HERE" see source.*

                Not sure why the pcbios command didn't work but efi did.


              HELPFUL LINKS




              • If you have trouble finding a valid serial follow the instructions here.

              • If you're not sure what your vm name is run VBoxManage.exe list vms.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Jan 15 '17 at 2:29









              josh7weaver

              211




              211












              • Re you needing "efi" and accepted answer using "pcbios", this is probably because you're using (U)EFI and that person was using traditional BIOS. Whether you're using EFI or BIOS is determined by the "Settings -> System -> Motherboard -> Enable EFI" check box in VirtualBox.
                – ntc2
                Feb 15 at 18:38


















              • Re you needing "efi" and accepted answer using "pcbios", this is probably because you're using (U)EFI and that person was using traditional BIOS. Whether you're using EFI or BIOS is determined by the "Settings -> System -> Motherboard -> Enable EFI" check box in VirtualBox.
                – ntc2
                Feb 15 at 18:38
















              Re you needing "efi" and accepted answer using "pcbios", this is probably because you're using (U)EFI and that person was using traditional BIOS. Whether you're using EFI or BIOS is determined by the "Settings -> System -> Motherboard -> Enable EFI" check box in VirtualBox.
              – ntc2
              Feb 15 at 18:38




              Re you needing "efi" and accepted answer using "pcbios", this is probably because you're using (U)EFI and that person was using traditional BIOS. Whether you're using EFI or BIOS is determined by the "Settings -> System -> Motherboard -> Enable EFI" check box in VirtualBox.
              – ntc2
              Feb 15 at 18:38










              up vote
              1
              down vote













              Try using a serial number that contains 20 byte hexadecimal string:



              VBoxManage setextradata "VM name" "VBoxInternal/Devices/ahci/0/Config/Port0/SerialNumber" "serial"


              (Reference)






              share|improve this answer



























                up vote
                1
                down vote













                Try using a serial number that contains 20 byte hexadecimal string:



                VBoxManage setextradata "VM name" "VBoxInternal/Devices/ahci/0/Config/Port0/SerialNumber" "serial"


                (Reference)






                share|improve this answer

























                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  Try using a serial number that contains 20 byte hexadecimal string:



                  VBoxManage setextradata "VM name" "VBoxInternal/Devices/ahci/0/Config/Port0/SerialNumber" "serial"


                  (Reference)






                  share|improve this answer














                  Try using a serial number that contains 20 byte hexadecimal string:



                  VBoxManage setextradata "VM name" "VBoxInternal/Devices/ahci/0/Config/Port0/SerialNumber" "serial"


                  (Reference)







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Mar 9 '12 at 19:12









                  Diogo

                  21.8k54132209




                  21.8k54132209










                  answered Aug 16 '11 at 14:14









                  Ricardo Kiyoshi Batori

                  111




                  111






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f55561%2fhow-can-i-change-the-bios-serial-number-in-virtualbox%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Plaza Victoria

                      Puebla de Zaragoza

                      Musa