Re: [Qemu-devel] SSD virtio-scsi passthrough
Vm just hang in Escape character , there is no error ..but from the qemu control window i am able to see sdc is passthrough Regards Nitin On Fri, Mar 16, 2018 at 1:16 PM, Fam Zheng wrote: > On Mon, Mar 12, 2018 at 4:16 PM, Nitin Gupta > wrote: > > Hi Stefan > > > > Thanks for your response , i tried the the command provided by you and it > > did not work as well > > somehow i find that after changing the controller to LSI in qemu command > > it started working , please find command below > > > > -device lsi,id=scsi0,bus=pci.0,addr=0xa-drive > > file=/dev/sdc,format=raw,if=none,id=drive-scsi1-0-0-0,cache=none -device > > scsi-block,bus=scsi1.0,channel=0,scsi-id=0,lun=0, > drive=drive-scsi1-0-0-0,id=scsi1-0-0-0 > > > > > > looks like virtio-pci is not able to bind when i am using qemu command , > > its working with virsh(libvirt). > > Can you post the error message you've seen with virtio-scsi? > > Fam > > > > > Regards > > Nitin > > > > On Tue, Mar 6, 2018 at 5:04 PM, Stefan Hajnoczi > wrote: > > > >> On Wed, Feb 21, 2018 at 02:51:38PM +0530, Nitin Gupta wrote: > >> > Please let me know the qemu command for doing ssd virtio-scsi > >> passthrough . > >> > i am able to do the pass through with virsh .but same command when i > am > >> > trying with qemu , VM is not coming up > >> > > >> > Please let me know how can i proceed further . any help will be > >> appreciated > >> > >> Something like this: > >> > >> -drive if=none,id=drive0,file=/dev/sdX,format=raw,aio=native, > cache=none > >> -device virtio-scsi-pci,id=virtio-scsi-pci0 > >> -device scsi-block,drive=drive0,bus=virtio-scsi-pci0.0 > >> > >> Stefan > >> >
Re: [Qemu-devel] SSD virtio-scsi passthrough
On Mon, Mar 12, 2018 at 4:16 PM, Nitin Gupta wrote: > Hi Stefan > > Thanks for your response , i tried the the command provided by you and it > did not work as well > somehow i find that after changing the controller to LSI in qemu command > it started working , please find command below > > -device lsi,id=scsi0,bus=pci.0,addr=0xa-drive > file=/dev/sdc,format=raw,if=none,id=drive-scsi1-0-0-0,cache=none -device > scsi-block,bus=scsi1.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi1-0-0-0,id=scsi1-0-0-0 > > > looks like virtio-pci is not able to bind when i am using qemu command , > its working with virsh(libvirt). Can you post the error message you've seen with virtio-scsi? Fam > > Regards > Nitin > > On Tue, Mar 6, 2018 at 5:04 PM, Stefan Hajnoczi wrote: > >> On Wed, Feb 21, 2018 at 02:51:38PM +0530, Nitin Gupta wrote: >> > Please let me know the qemu command for doing ssd virtio-scsi >> passthrough . >> > i am able to do the pass through with virsh .but same command when i am >> > trying with qemu , VM is not coming up >> > >> > Please let me know how can i proceed further . any help will be >> appreciated >> >> Something like this: >> >> -drive if=none,id=drive0,file=/dev/sdX,format=raw,aio=native,cache=none >> -device virtio-scsi-pci,id=virtio-scsi-pci0 >> -device scsi-block,drive=drive0,bus=virtio-scsi-pci0.0 >> >> Stefan >>
Re: [Qemu-devel] SSD virtio-scsi passthrough
Hi Stefan Thanks for your response , i tried the the command provided by you and it did not work as well somehow i find that after changing the controller to LSI in qemu command it started working , please find command below -device lsi,id=scsi0,bus=pci.0,addr=0xa-drive file=/dev/sdc,format=raw,if=none,id=drive-scsi1-0-0-0,cache=none -device scsi-block,bus=scsi1.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi1-0-0-0,id=scsi1-0-0-0 looks like virtio-pci is not able to bind when i am using qemu command , its working with virsh(libvirt). Regards Nitin On Tue, Mar 6, 2018 at 5:04 PM, Stefan Hajnoczi wrote: > On Wed, Feb 21, 2018 at 02:51:38PM +0530, Nitin Gupta wrote: > > Please let me know the qemu command for doing ssd virtio-scsi > passthrough . > > i am able to do the pass through with virsh .but same command when i am > > trying with qemu , VM is not coming up > > > > Please let me know how can i proceed further . any help will be > appreciated > > Something like this: > > -drive if=none,id=drive0,file=/dev/sdX,format=raw,aio=native,cache=none > -device virtio-scsi-pci,id=virtio-scsi-pci0 > -device scsi-block,drive=drive0,bus=virtio-scsi-pci0.0 > > Stefan >
Re: [Qemu-devel] SSD virtio-scsi passthrough
On Wed, Feb 21, 2018 at 02:51:38PM +0530, Nitin Gupta wrote: > Please let me know the qemu command for doing ssd virtio-scsi passthrough . > i am able to do the pass through with virsh .but same command when i am > trying with qemu , VM is not coming up > > Please let me know how can i proceed further . any help will be appreciated Something like this: -drive if=none,id=drive0,file=/dev/sdX,format=raw,aio=native,cache=none -device virtio-scsi-pci,id=virtio-scsi-pci0 -device scsi-block,drive=drive0,bus=virtio-scsi-pci0.0 Stefan signature.asc Description: PGP signature
[Qemu-devel] SSD virtio-scsi passthrough
Dear Qemu Team Please let me know the qemu command for doing ssd virtio-scsi passthrough . i am able to do the pass through with virsh .but same command when i am trying with qemu , VM is not coming up Please let me know how can i proceed further . any help will be appreciated Regards nitin