Bug 1459995 - qemu: Support built-in SMB server
Summary: qemu: Support built-in SMB server
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-08 19:03 UTC by nathan.renniewaldock
Modified: 2017-07-25 16:57 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-06-20 20:52:53 UTC
Embargoed:


Attachments (Terms of Use)

Description nathan.renniewaldock 2017-06-08 19:03:30 UTC
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>

Comment 1 Cole Robinson 2017-06-20 20:52:53 UTC
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

Comment 2 nathan.renniewaldock 2017-07-25 16:57:18 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.