Received: from eggs.gnu.org ([208.118.235.92]:44925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S779l-0008UB-Qf for qemu-devel@nongnu.org; Mon, 12 Mar 2012 11:27:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S779j-0007o3-N1 for qemu-devel@nongnu.org; Mon, 12 Mar 2012 11:27:29 -0400 Received: from mx2.je-eigen-domein.nl ([85.10.196.86]:10606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S779j-0007nx-GP for qemu-devel@nongnu.org; Mon, 12 Mar 2012 11:27:27 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mx2.je-eigen-domein.nl (Postfix) with ESMTP id BC96B7880E3 for ; Mon, 12 Mar 2012 16:28:30 +0100 (CET) Message-ID: <4F5E15DD.3060108@je-eigen-domein.nl> Date: Mon, 12 Mar 2012 16:27:25 +0100 From: Floris Bos / Maxnet MIME-Version: 1.0 References: <1331553783-13761-1-git-send-email-bos@je-eigen-domein.nl> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] ide: Adds "model=s" option, allowing the user to override the default disk model name "QEMU HARDDISK" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 03/12/2012 02:48 PM, Markus Armbruster wrote: > Floris Bos writes: > >> Some Linux distributions use the /dev/disk/by-id/scsi-SATA_name-of-disk-model_serial addressing scheme >> when refering to partitions in /etc/fstab and elsewhere. >> This causes problems when starting a disk image taken from an existing physical server under qemu, >> because when running under qemu name-of-disk-model is always "QEMU HARDDISK" >> This patch introduces a model=s option which in combination with the existing serial=s option can be used to >> fake the disk the operating system was previously on, allowing the OS to boot properly. >> >> Cc: kwolf@redhat.com >> Signed-off-by: Floris Bos > At first glance: > > 1. IDE only, scsi-disk is missing. Correct. IDE support is easy. Adding SCSI support is more complicated, because "model" and "serial" are not the only factors that can make up a /dev/disk/by-id link Could be a combination of 3 fields: vendor, model and serial. But could also be based on another unique ascii or binary identifier provided by the drive through Vital Product Data page 83h. -- Yours sincerely, Floris Bos