* setting motherboard serial number?
@ 2011-11-26 16:46 Oliver Rath
2011-11-26 19:44 ` Bjørn Mork
0 siblings, 1 reply; 2+ messages in thread
From: Oliver Rath @ 2011-11-26 16:46 UTC (permalink / raw)
To: kvm
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: setting motherboard serial number?
2011-11-26 16:46 setting motherboard serial number? Oliver Rath
@ 2011-11-26 19:44 ` Bjørn Mork
0 siblings, 0 replies; 2+ messages in thread
From: Bjørn Mork @ 2011-11-26 19:44 UTC (permalink / raw)
To: kvm; +Cc: Oliver Rath
Oliver Rath <rath@mglug.de> writes:
> 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?
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-26 19:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-26 16:46 setting motherboard serial number? Oliver Rath
2011-11-26 19:44 ` Bjørn Mork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).