setting motherboard serial number?
Hi list,
i have a little problem: a program of us is looking for the serial number of the motherboard via
dmidecode -s baseboard-serial-number
which returns normally (i.e. Athlon Board) a 16-digits-number.
But doing this in a virtualized (i.e. Ubuntu-oneric-11.10) box, the command returns the empty string.
Is there any possibility to set this number when defining the virtual machine?
Tfh!
Regards,
Oliver
Quoted 7 lines · Oliver Rath
Hi list,
i have a little problem: a program of us is looking for the serial number of the motherboard via
dmidecode -s baseboard-serial-number
Quoted 7 lines
which returns normally (i.e. Athlon Board) a 16-digits-number.
But doing this in a virtualized (i.e. Ubuntu-oneric-11.10) box, the command returns the empty string.
Is there any possibility to set this number when defining the virtual machine?
I believe you only can specify type 0 and type 1 entries as text fields at the moment, while you are interested in type 2 (baseboard). But what you can do is load it as a binary blob. If you don't care about the values, you can probably just use a dump from a real machine.
Something like
dmidecode -t2 --dump-bin my-type2.bin
and then
kvm -smbios file=my-type2.bin ...
might do the trick. Totally untested of course :-)
Bjørn