Re: [kvm] accessing a 'native' disk from KVM ?

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

 



On Wed, Oct 05, 2011 at 11:41:13AM -0700, Sujee Maniyam wrote:
> HI all
> 
> Using KVM (qemu-kvm-0.12.1) on CentOS-6.
> 
> how can I supply an entire disk for KVM to use?  Is this correct
> snippet in kvm.xml ?
> 
>     <disk type='block' device='disk'>
>       <driver name='qemu' type='raw'/>
>       <source dev='/dev/sdi1'/>
>       <target dev='vdb' bus='virtio'/>
>     </disk>

This is what I have:

    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source dev='/dev/mapper/local-vrici_root'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>

So, yeah, pretty much, although note tat you're making /dev/sdi*1*
available, which is a partition, not a disk.  Regardless,
http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/index.jsp?topic=%2Fliaat%2Fliaattuncache.htm
(and other things I've seen) suggest cache=none for these cases.

-Robin
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux