From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOZKz-0007BY-Qe for qemu-devel@nongnu.org; Thu, 19 Feb 2015 17:12:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOZKw-0007d7-L8 for qemu-devel@nongnu.org; Thu, 19 Feb 2015 17:12:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOZKw-0007d3-DL for qemu-devel@nongnu.org; Thu, 19 Feb 2015 17:12:46 -0500 Message-ID: <54E65FDB.4050708@redhat.com> Date: Thu, 19 Feb 2015 17:12:43 -0500 From: John Snow MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] unable to set SATA serial with a spaces List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alan Latteri , qemu-devel@nongnu.org On 02/19/2015 02:48 PM, Alan Latteri wrote: > I am virtualzing a physical server for which I need to set the SCSI/SATA > drive serial. It is comprised of 12 " " spaces then 8 letter/digits. If > I exclude the spaces, the drive serial is not accurate. If I include the > spaces I get the following error. > > error: Failed to start domain test1 > error: internal error: driver serial ' ABCD1234' contains unsafe characters > > virsh edit > Centos 7.0 > 3.19.0-1.el7.elrepo.x86_64 > QEMU emulator version 1.5.3 (qemu-kvm-1.5.3-60.el7.centos.7), Copyright > (c) 2003-2008 Fabrice Bellard > Are you sure you need to input the spaces? the standard inquiry reply that outputs the serial uses spaces as padding, so even if you use serial "ABCD1234" the inquiry command is going to tell you " ABCD1234". Do you have software that relies on the serial number and can tell the difference between spaces present and no spaces present? --js