qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2] ide: Adds "model=s" option, allowing the use


From: Floris Bos / Maxnet
Subject: Re: [Qemu-devel] [PATCH v2] ide: Adds "model=s" option, allowing the user to override the default disk model name "QEMU HARDDISK"
Date: Mon, 12 Mar 2012 16:27:25 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

On 03/12/2012 02:48 PM, Markus Armbruster wrote:
Floris Bos<address@hidden>  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: address@hidden
Signed-off-by: Floris Bos<address@hidden>
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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]