5

kvm with virtio scsi and rbd

view full story
linux-howto

http://serverfault.com – I'm currently using virtio-blk but I'd like to change to the new virtio-scsi, especially because it supports trim/ discard. This is how I start my guest: kvm -cpu kvm64 -smp sockets=1,cores=2 -cpu kvm64 -m 1024 -device virtio-scsi-pci,id=scsihw0,bus=pci.0,addr=0x5 -drive file=rbd:data/disk-1,if=none,id=drive-scsi1,cache=writeback,aio=native -device scsi-hd,drive=drive-scsi1,id=scsi1,bus=scsihw0.0,channel=0,scsi-id=0,lun=1,bootindex=100 -device virtio-net-pci,netdev=net0,bus=pci.0,addr=0x12,id=net0,mac=62:79:D8:1E:E0:BF,bootindex=200 -netdev type=tap,id=net0,vhost=on -enable-kvm -nodefaults - (HowTos)