kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Timon Wang <timonwst@gmail.com>
Cc: Stefan Hajnoczi <stefanha@gmail.com>,
	Don Koch <dkoch@verizon.com>,
	libvirt-users <libvirt-users@redhat.com>,
	kvm@vger.kernel.org
Subject: Re: Oracle RAC in libvirt+KVM environment
Date: Tue, 20 Aug 2013 12:16:10 +0200	[thread overview]
Message-ID: <521341EA.4010404@redhat.com> (raw)
In-Reply-To: <CAH+8FszeD1Ss4FhugM0=UzktxukHc+k_ju5i34DZG=KJa9F5PA@mail.gmail.com>

Il 20/08/2013 11:59, Timon Wang ha scritto:
> On Tue, Aug 20, 2013 at 4:33 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>> Il 20/08/2013 08:00, Timon Wang ha scritto:
>>>     <disk type='file' device='disk'>
>>>       <driver name='qemu' type='raw' cache='none'/>
>>>       <source file='/home/images/win2008_2_sys'/>
>>>       <target dev='hda' bus='ide'/>
>>>       <boot order='3'/>
>>>       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
>>>     </disk>
>>>     <disk type='file' device='cdrom'>
>>>       <driver name='qemu' type='raw'/>
>>>       <source file='/home/isos/windows2008_64r2.iso'/>
>>>       <target dev='sdc' bus='ide'/>
>>>       <readonly/>
>>>       <boot order='1'/>
>>>       <address type='drive' controller='0' bus='1' target='0' unit='0'/>
>>>     </disk>
>>>     <disk type='block' device='disk'>
>>
>> I'm not sure this will be enough, but if you want passthrough to the
>> host device you should use device='lun' here.  However, you still would
>> not be able to issue SCSI reservations unless you run QEMU with the
>> CAP_SYS_RAWIO capability (using "<disk ... rawio='yes'>").
>>
> 
> After change the libvirt xml like this:
> <disk type='block' device='lun' rawio='yes'>
>       <driver name='qemu' type='raw' cache='none'/>
>       <source dev='/dev/VM-IMAGES-BACKUP-DO-NOT-REMOVE/q_disk'/>
>       <target dev='sda' bus='scsi'/>
>       <shareable/>
>       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
>     </disk>
> I got these errors:
> char device redirected to /dev/pts/1 (label charserial0)
> qemu-system-x86_64: -device
> scsi-block,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0:
> scsi-block: INQUIRY failed
> qemu-system-x86_64: -device
> scsi-block,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0:
> Device 'scsi-block' could not be initialized

Can you do

# ls -l /dev/VM-IMAGES-BACKUP-DO-NOT-REMOVE/q_disk
# sg_inq /dev/VM-IMAGES-BACKUP-DO-NOT-REMOVE/q_disk

?

Paolo


  reply	other threads:[~2013-08-20 10:16 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-02  5:58 Oracle RAC in libvirt+KVM environment Timon Wang
2013-08-08  7:54 ` Timon Wang
     [not found]   ` <CAH+8Fsxhgkd2ScivXcPc7WzXyie4AHUsuNvLEUgo2rvTBtzdNA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-08-08 14:04     ` Don Koch
2013-08-10  3:14       ` Timon Wang
2013-08-12  9:53         ` Stefan Hajnoczi
     [not found]           ` <20130812095304.GE29880-lxVrvc10SDTaErKTczak/Dh473NlOPsLVpNB7YpNyf8@public.gmane.org>
2013-08-12 10:17             ` Timon Wang
2013-08-13  9:18               ` Stefan Hajnoczi
2013-08-14  6:33                 ` Timon Wang
2013-08-14  8:40                   ` Timon Wang
2013-08-14 14:02                     ` Stefan Hajnoczi
2013-08-15 10:01                       ` Timon Wang
2013-08-19 11:10                         ` Paolo Bonzini
2013-08-20  6:00                           ` Timon Wang
2013-08-20  6:05                             ` Timon Wang
2013-08-20  8:33                             ` Paolo Bonzini
2013-08-20  9:59                               ` Timon Wang
2013-08-20 10:16                                 ` Paolo Bonzini [this message]
2013-08-20 10:42                                   ` Timon Wang
2013-08-20 10:49                                     ` Paolo Bonzini
2013-08-20 11:43                                       ` Timon Wang
2013-08-20 11:57                                         ` Timon Wang
2013-08-20 12:09                                         ` Paolo Bonzini
2013-08-21  2:11                                           ` Timon Wang
2013-08-21  9:09                                             ` Paolo Bonzini
2013-08-21  9:40                                               ` Nicholas A. Bellinger
2013-08-22  7:46                                                 ` Timon Wang
2013-08-22  9:02                                                   ` Paolo Bonzini
2013-08-23  2:44                                                     ` Timon Wang
2013-08-27 10:29                                                       ` Masaki Kimura
2013-08-27 11:07                                                         ` Paolo Bonzini
2013-08-27 12:09                                                           ` Timon Wang
2013-08-12  9:49 ` Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=521341EA.4010404@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=dkoch@verizon.com \
    --cc=kvm@vger.kernel.org \
    --cc=libvirt-users@redhat.com \
    --cc=stefanha@gmail.com \
    --cc=timonwst@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).