-
-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect path for smbd on NixOS #722
Comments
Hello there 👋 In the meantime you might want to join the Wimpys World Discord 🗣 where we have a large community of Linux 🐧 enthusiasts and passionate open source developers 🧑💻 You might also be interested in following Wimpys World Twitch 📡 channel where Wimpy streams let's code video, including this project, several times a week. A back catalog of past live stream and other Linux related content is available on Wimpys World YouTube 📺 channel. |
Tested by updating the smbd check to use For those also on NixOS, you will need to add an overlay for the QEMU package to enable smbdSupport on top of having samba installed. qemu = prev.qemu.override { smbdSupport = true; }; |
Re-opening this issue as it seems like updating the smbd filepath check is in fact required for NixOS alongside enabling smbdSupport for QEMU. I have a fork that is working for me on NixOS. There is only a single line-change involved; however, I have not tested this on other devices. --- a/quickemu
+++ b/quickemu
@@ -886,7 +886,7 @@ function vm_boot() {
fi
# If smbd is available and ~/Public is present export it to the guest via samba
- if [[ -e "/usr/sbin/smbd" && -n ${PUBLIC} ]]; then
+ if [[ -x "$(command -v smbd)" && -n ${PUBLIC} ]]; then
NET="${NET},smb=${PUBLIC}"
echo " - smbd: On guest: smb://10.0.2.4/qemu"
fi |
As best as I can tell this is not fixed.
|
Confirming that this is still an issue for me as well. Something is still not quite right here. |
I've just had the same issue. It only works when disabling Samba on my config. |
-quickemu
+(quickemu.override { qemu = qemu_full; }) Works for me. |
For anyone that isn't aware, in NixOS 24.05 this should be fixed, as |
Expected behaviour
With the samba package installed on NixOS, QuickEMU should detect smbd and enable access to the guest VM
Actual behaviour
Even with samba package installed, the smbd service is not detected and therefore the mount is unavailable in the guest VM.
Steps to reproduce the behaviour
Temporary solution
I was able to get the samba mount working by symlinking the path for smbd on NixOS to /usr/sbin/smbd
So perhaps there is another way QuickEMU should try to detect for smbd as opposed to how it is currently done. (reference)
Quickemu output
Linux Distribution & Kernel
Run the following and paste the output.
No LSB modules are available. Distributor ID: NixOS Description: NixOS 23.11 (Tapir) Release: 23.11 Codename: tapir Linux omer-laptop 6.1.31 #1-NixOS SMP PREEMPT_DYNAMIC Tue May 30 13:03:33 UTC 2023 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: