I want to run qemu with command
qemu-system-x86_64 \
-drive file=zso_cow.img,if=virtio \
-enable-kvm \
-smp 2 \
-net nic,model=virtio -net user \
-m 1G -balloon virtio \
-fsdev local,id=hshare,path=hshare/,security_model=none -device virtio-9p-pci,fsdev=hshare,mount_tag=hshare \
-chardev stdio,id=cons,signal=off -device virtio-serial-pci -device virtconsole,chardev=cons \
-device harddoom
but I get an error: qemu-system-x86_64: -device virtio-9p-pci,fsdev=hshare,mount_tag=hshare: 'virtio-9p-pci' is not a valid device model name
qemu is compiled from sources on branch harddoom with configure options:
--target-list=i386-softmmu,x86_64-softmmu --python=$(which python2)
--audio-drv-list=alsa,pa
I do not have that problem with qemu installed from ubuntu repository, but I need to use one compiled from sources.
I can of course run without option -device virtio-9p-pci, but than I have no shared hshare folder
zso.img is created with:
qemu-img create -f qcow2 -o backing_file=zso.img zso_cow.img
where zso.img is debian image