Tim Comer <[email protected]> writes:
> Public bug reported:
>
> Getting error "Parameter 'driver' expects device type" when trying to
> share a file system with a guest.
Full error message, please. Should look like
qemu-system-x86_64: -device foo: Parameter 'driver' expects device type
> Command line:
> qemu-kvm
> -m 4096 -cpu host -smp 4,sockets=1
> -net nic,model=virtio,macaddr=00:00:00:00:00:00 -net
> tap,ifname=tap0,script=no,downscript=no
> -rtc base=localtime
> -drive file=/vm/VM.img,cache=none,if=virtio
> -curses
> -boot menu=off
> -fsdev
> fsdriver,id=fsdev-fs0,path=/srv/files,security_model=passthrough,writeout=writeout
> -device virtio-9p-pci,fsdev=fsdev-fs0,mount_tag=files
"-fsdev fsdriver" looks wrong. RTFM yields:
-fsdev
fsdriver,id=id,path=path,[security_model=security_model][,writeout=writeout][,readonly][,socket=socket|sock_fd=sock_fd]
Define a new file system device. Valid options are:
fsdriver
This option specifies the fs driver backend to use. Currently
"local", "handle" and "proxy" file system drivers are
supported.
[...]