qemu-block
[Top][All Lists]
Advanced

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

[Qemu-block] [QEMU + SPDK] The demo in the official document is not work


From: Bob Chen
Subject: [Qemu-block] [QEMU + SPDK] The demo in the official document is not working
Date: Mon, 23 Apr 2018 16:19:45 +0800

Hi,

I was trying to run qemu with spdk, referring to http://www.spdk.io/doc/vhost.html#vhost_qemu_config . Steps were strictly followed.

# Environment: latest CentOS 7 kernel, nvme ssd, spdk v18.01.x, dpdk 17.11.1, qemu 2.11.1 
 
cd spdk
sudo su
ulimit -l unlimited
HUGEMEM=2048 ./scripts/setup.sh
./app/vhost/vhost -S /var/tmp -s 1024 -m 0x1 &
./scripts/rpc.py construct_nvme_bdev -b Nvme0 -t pcie -a 0000:03:00.0
./scripts/rpc.py construct_malloc_bdev 128 4096 -b Malloc0
./scripts/rpc.py construct_vhost_scsi_controller --cpumask 0x1 vhost.0
./scripts/rpc.py add_vhost_scsi_lun vhost.0 0 Nvme0n1
./scripts/rpc.py add_vhost_scsi_lun vhost.0 1 Malloc0

qemu-system-x86_64 -enable-kvm -cpu host -machine pc,accel=kvm -daemonize -vnc :1 \
-smp 1 -m 1G -object memory-backend-file,id=mem0,size=1G,mem-path=/dev/hugepages,share=on -numa node,memdev=mem0 \
-drive file=<guest-os-image.qcow2>,if=none,id=disk -device ide-hd,drive=disk,bootindex=0 \
-chardev socket,id=spdk_vhost_scsi0,path=/var/tmp/vhost.0 \
-device vhost-user-scsi-pci,id=scsi0,chardev=spdk_vhost_scsi0


Unfortunately the demo was not able to work, stopped at the boot-loader screen saying that not bootable device. But if I removed the last two lines(vhost-user-scsi-pci), the guest could start successfully. So there must be something wrong with the spdk device.

Is there anyone in this community who happened to be familiar with spdk? Or should I seek for help from Intel? Don't know who is responsible for maintaining this document.

 
Thanks,
Bob

reply via email to

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