diff --git a/README.md b/README.md index 09c6918..2306b85 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/quickemu b/quickemu index 47e8676..f118190 100755 --- a/quickemu +++ b/quickemu @@ -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