Page 1 of 1

VBoxManage DmiSystemSerial not working.

Posted: 21. Sep 2012, 08:30
by Cancerous
Linux host - running this to a windows 7 VM. Tried with VM running and switched off, still returns value of 0.

Code: Select all

VBoxManage setextradata "/home/VirtualBox VMs/7vm/7vm.vbox" VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial $(hostname -s)-win7vm
Then I run this on my host.

Code: Select all

echo $?
Returns "0"

Running this on the Windows VM.

Code: Select all

wmic bios get serialnumber
Returns "0" as well.


Anyone have an idea as to why this is failing?

Re: VBoxManage DmiSystemSerial not working.

Posted: 21. Sep 2012, 12:19
by mpack
I don't know what you expected "echo $" to do. Setextradata makes changes to your VMs xml settings file, in this case it would have set the selected key to "$(hostname" I would think. I can't comment on "wmic" - it isnt a VirtualBox tool, nor am I familiar with it. In previous discussions people have used DmiDecode.