From: =?utf-8?Q?Bj=C3=B8rn_Mork?= Subject: Re: setting motherboard serial number? Date: Sat, 26 Nov 2011 20:44:56 +0100 Message-ID: <87lir2pt1j.fsf@nemi.mork.no> References: <4ED117CD.6080808@mglug.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Oliver Rath To: kvm@vger.kernel.org Return-path: Received: from lo.gmane.org ([80.91.229.12]:55515 "EHLO lo.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754070Ab1KZTpJ (ORCPT ); Sat, 26 Nov 2011 14:45:09 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RUOBQ-0006EA-En for kvm@vger.kernel.org; Sat, 26 Nov 2011 20:45:08 +0100 Received: from nemi.mork.no ([148.122.252.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Nov 2011 20:45:08 +0100 Received: from bjorn by nemi.mork.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Nov 2011 20:45:08 +0100 Sender: kvm-owner@vger.kernel.org List-ID: Oliver Rath 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 wha= t 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=20 dmidecode -t2 --dump-bin my-type2.bin and then kvm -smbios file=3Dmy-type2.bin ... might do the trick. Totally untested of course :-) Bj=C3=B8rn