Currently, to start qemu's built-in SMB server, you'd need to use something like: <qemu:commandline> <qemu:arg value='-netdev'/> <qemu:arg value='user,smb=/mnt/shared,id=smb0,restrict=on'/> <qemu:arg value='-device'/> <qemu:arg value='virtio-net-pci,netdev=smb0'/> </qemu:commandline> It would be better if we could use something like: <interface type='user'> <smb path='/mnt/shared'/> </interface>
I don't think this is anything we will support in libvirt. The qemu option is just a hack 'convenience' wrapper for launching a samba instance with some minimal working config, and I don't think even qemu devs consider it a supported/maintained feature, and more so historical baggage. I'll close this, but if you want to discuss more I suggest mailing libvir-list
I'm not finding any mention of this no longer being supported/maintained on qemu's site (only that the old -smb argument is deprecated). Currently, this seems to be the simplest way of sharing a host folder with an isolated Windows guest, as there is no 9pfs driver for Windows. I don't think there's much more to add to this, so I'll just leave it as is.