qemu-discuss
[Top][All Lists]
Advanced

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

Re: Disable scsi disk requests in QEMU when using virtio-blk device


From: Thomas Huth
Subject: Re: Disable scsi disk requests in QEMU when using virtio-blk device
Date: Mon, 19 Jul 2021 08:25:42 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0

On 18/07/2021 15.37, Arnabjyoti Kalita wrote:
Hello all,

Is it possible to disable scsi disk requests being generated by the
guest when using a virtio-blk device?

I am starting the guest in KVM mode using the below command line-

sudo ./qemu-system-x86_64 -m 1024 --machine pc-i440fx-2.5 -cpu
qemu64,-kvmclock,-kvm_pv_eoi
-enable-kvm -netdev tap,id=tap1,ifname=tap0,script=no,downscript=no
-device virtio-net-pci,netdev=tap1,mac=00:00:00:00:00:00 -object
filter-replay,id=replay,netdev=tap1
-drive 
file=~/os_images_for_qemu/ubuntu-16.04-desktop-amd64.qcow2,format=qcow2,if=none,id=img-direct
-device virtio-blk-pci,drive=img-direct

Try to replace the last line with:

 -device virtio-blk-pci,drive=img-direct,scsi=off

Generally, you can see a list of valid options for a device by running QEMU with something like:

 qemu-system-x86_64 -device virtio-blk-pci,help

 HTH,
  Thomas




reply via email to

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