Reinstate sharing ~/Public is smbd is available. Close #76

This is a "bonus item". Samba, specifically smbd, is not a hard requirement of Quickemu, but if present quickemu will enable Samba file sharing.
pull/80/head
Martin Wimpress 3 years ago
parent ca9c01eec2
commit ec89223b22
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
  1. 1
      README.md
  2. 6
      quickemu

@ -34,6 +34,7 @@ comprehensive support for macOS and Windows**.
* Full SPICE support including host/guest clipboard sharing
* VirtIO-webdavd file sharing for Linux and Windows guests
* VirtIO-9p file sharing for Linux and macOS guests
* Samba file sharing for Linux, macOS and Windows guests (*if `smbd` is installed on the host*)
* VirGL acceleration
* USB device pass-through
* Smartcard pass-through

@ -615,6 +615,12 @@ function vm_boot() {
fi
fi
# If smbd is available and ~/Public is present export it to the guest via samba
if [[ -e "/usr/sbin/smbd" && -n ${PUBLIC} ]]; then
NET="${NET},smb=${HOME}"
echo " - smbd: On guest: smb://10.0.2.4/qemu"
fi
enable_usb_passthrough
# Boot the VM

Loading…
Cancel
Save