Re: setting motherboard serial number?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Oliver Rath <rath@xxxxxxxx> 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

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux