On Mon, Mar 12, 2012 at 8:05 PM, Floris Bos <[email protected]> wrote:
> 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: [email protected]
> Signed-off-by: Floris Bos <[email protected]>
> ---
>  hw/ide/core.c     |   27 ++++++++++++++++++++++-----
>  hw/ide/internal.h |    4 +++-
>  hw/ide/qdev.c     |    6 ++++--
>  3 files changed, 29 insertions(+), 8 deletions(-)

Reviewed-by: Stefan Hajnoczi <[email protected]>

Reply via email to