VBoxManage DmiSystemSerial not working.

This is for discussing general topics about how to use VirtualBox.
Post Reply
Cancerous
Posts: 9
Joined: 4. Jun 2012, 02:33

VBoxManage DmiSystemSerial not working.

Post 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?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: VBoxManage DmiSystemSerial not working.

Post 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.
Post Reply