qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [Qemu/Virtio-scsi]The feature of 'raw device mapping' c


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [Qemu/Virtio-scsi]The feature of 'raw device mapping' cannot isolate the LUN to the owning virtual machine
Date: Mon, 27 Jan 2014 13:42:35 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Il 27/01/2014 13:22, Qixiaozhen ha scritto:
    <!-- #############Raw Device Mapping with virtio-scsi################## -->
    <disk type='block' device='lun'>
      <driver name='qemu' type='raw' cache='none'/>
      <source dev='/dev/mapper/360022a110000ecba5db427db00000023'/>
      <target dev='vdb' bus='virtio'/>
      <alias name='virtio-disk1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' 
function='0x0'/>
    </disk>

This is not using virtio-scsi.

A virtio-scsi disk would appear as /devs/sda in the VM.  For example:

    <disk type='block' device='lun'>
      <driver name='qemu' type='raw' cache='none'/>
      <source dev='/dev/mapper/360022a110000ecba5db427db00000023'/>
      <target dev='sdb' bus='scsi'/>
      <address type='drive' controller='0' bus='0'/>
    </disk>

    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source dev='/dev/mapper/360022a110000ecba5db4074800000022'/>
      <target dev='sda' bus='scsi'/>
      <address type='drive' controller='0' bus='1'/>
    </disk>

    <controller type='scsi' index='0' model='virtio-scsi'/>

You can now try sg_inq for both disks. One will show your NAS's product and vendor names, the other will show QEMU as vendor and QEMU HARD DISK as product.

Paolo



reply via email to

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