unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#26797: qemu looks for smbd at /usr/sbin
@ 2017-05-06 10:26 Ricardo Wurmus
  2017-05-06 12:45 ` Ludovic Courtès
  2020-04-07 19:22 ` Marius Bakke
  0 siblings, 2 replies; 7+ messages in thread
From: Ricardo Wurmus @ 2017-05-06 10:26 UTC (permalink / raw)
  To: 26797

Qemu comes with support for sharing files with a guest via Samba.  This
is done by appending something like this to the qemu-system-*
invocation:

    … -net user,smb=$HOME/Downloads -net nic

Qemu needs to be told *at configure time* where the smbd executable will
be at runtime.  By default this is /usr/sbin/smbd.  Users can work
around this problem by installing the “samba” package and creating a
link from /usr/sbin/smbd to the actual executable.

It would be better to fix this, but this would require adding samba as a
dependency to Qemu, so that the location can be set at configure time.
Alternatively, we could patch Qemu to look for smbd depending on an
environment variable.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#26797: qemu looks for smbd at /usr/sbin
  2017-05-06 10:26 bug#26797: qemu looks for smbd at /usr/sbin Ricardo Wurmus
@ 2017-05-06 12:45 ` Ludovic Courtès
  2017-05-06 13:03   ` Ricardo Wurmus
  2017-05-06 14:42   ` Marius Bakke
  2020-04-07 19:22 ` Marius Bakke
  1 sibling, 2 replies; 7+ messages in thread
From: Ludovic Courtès @ 2017-05-06 12:45 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 26797

Ricardo Wurmus <rekado@elephly.net> skribis:

> Qemu comes with support for sharing files with a guest via Samba.  This
> is done by appending something like this to the qemu-system-*
> invocation:
>
>     … -net user,smb=$HOME/Downloads -net nic
>
> Qemu needs to be told *at configure time* where the smbd executable will
> be at runtime.  By default this is /usr/sbin/smbd.  Users can work
> around this problem by installing the “samba” package and creating a
> link from /usr/sbin/smbd to the actual executable.
>
> It would be better to fix this, but this would require adding samba as a
> dependency to Qemu, so that the location can be set at configure time.
> Alternatively, we could patch Qemu to look for smbd depending on an
> environment variable.

See commit b344c505f4dff2ecbe981f0a0a3c3d67b222dcca, which removed the
dependency and Samba.  Prior to that commit, QEMU recorded the absolute
file name of ‘smbd’.

The problem is that Samba is big:

--8<---------------cut here---------------start------------->8---
$ guix size qemu |tail -1
total: 710.5 MiB
$ guix size qemu samba |tail -1
total: 1203.5 MiB
--8<---------------cut here---------------end--------------->8---

Thus it’d be best if we modified QEMU to search for ‘smbd’ in $PATH.

WDYT?

Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#26797: qemu looks for smbd at /usr/sbin
  2017-05-06 12:45 ` Ludovic Courtès
@ 2017-05-06 13:03   ` Ricardo Wurmus
  2017-05-06 14:42   ` Marius Bakke
  1 sibling, 0 replies; 7+ messages in thread
From: Ricardo Wurmus @ 2017-05-06 13:03 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 26797


Ludovic Courtès <ludo@gnu.org> writes:

> See commit b344c505f4dff2ecbe981f0a0a3c3d67b222dcca, which removed the
> dependency and Samba.  Prior to that commit, QEMU recorded the absolute
> file name of ‘smbd’.
>
> The problem is that Samba is big:
>
> --8<---------------cut here---------------start------------->8---
> $ guix size qemu |tail -1
> total: 710.5 MiB
> $ guix size qemu samba |tail -1
> total: 1203.5 MiB
> --8<---------------cut here---------------end--------------->8---

Right, that’s not good.

> Thus it’d be best if we modified QEMU to search for ‘smbd’ in $PATH.

I agree!  I can’t work on this right now, unfortunately, but I’ll
revisit this at some point in the future if nobody else beats me to it.

Thanks for your input!

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#26797: qemu looks for smbd at /usr/sbin
  2017-05-06 12:45 ` Ludovic Courtès
  2017-05-06 13:03   ` Ricardo Wurmus
@ 2017-05-06 14:42   ` Marius Bakke
  2017-05-06 18:48     ` Leo Famulari
  2017-05-07 15:33     ` Ludovic Courtès
  1 sibling, 2 replies; 7+ messages in thread
From: Marius Bakke @ 2017-05-06 14:42 UTC (permalink / raw)
  To: Ludovic Courtès, Ricardo Wurmus; +Cc: 26797

[-- Attachment #1: Type: text/plain, Size: 1601 bytes --]

Ludovic Courtès <ludo@gnu.org> writes:

> Ricardo Wurmus <rekado@elephly.net> skribis:
>
>> Qemu comes with support for sharing files with a guest via Samba.  This
>> is done by appending something like this to the qemu-system-*
>> invocation:
>>
>>     … -net user,smb=$HOME/Downloads -net nic
>>
>> Qemu needs to be told *at configure time* where the smbd executable will
>> be at runtime.  By default this is /usr/sbin/smbd.  Users can work
>> around this problem by installing the “samba” package and creating a
>> link from /usr/sbin/smbd to the actual executable.
>>
>> It would be better to fix this, but this would require adding samba as a
>> dependency to Qemu, so that the location can be set at configure time.
>> Alternatively, we could patch Qemu to look for smbd depending on an
>> environment variable.
>
> See commit b344c505f4dff2ecbe981f0a0a3c3d67b222dcca, which removed the
> dependency and Samba.  Prior to that commit, QEMU recorded the absolute
> file name of ‘smbd’.
>
> The problem is that Samba is big:
>
> --8<---------------cut here---------------start------------->8---
> $ guix size qemu |tail -1
> total: 710.5 MiB
> $ guix size qemu samba |tail -1
> total: 1203.5 MiB
> --8<---------------cut here---------------end--------------->8---
>
> Thus it’d be best if we modified QEMU to search for ‘smbd’ in $PATH.

Tangentially, would it make sense to add a "qemu-full" package? I'd like
to add RBD support when Ceph is stable on Hydra, but that adds another
~300MiB to the closure (and a very expensive dependency..).

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#26797: qemu looks for smbd at /usr/sbin
  2017-05-06 14:42   ` Marius Bakke
@ 2017-05-06 18:48     ` Leo Famulari
  2017-05-07 15:33     ` Ludovic Courtès
  1 sibling, 0 replies; 7+ messages in thread
From: Leo Famulari @ 2017-05-06 18:48 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 26797

[-- Attachment #1: Type: text/plain, Size: 1862 bytes --]

On Sat, May 06, 2017 at 04:42:59PM +0200, Marius Bakke wrote:
> Ludovic Courtès <ludo@gnu.org> writes:
> 
> > Ricardo Wurmus <rekado@elephly.net> skribis:
> >
> >> Qemu comes with support for sharing files with a guest via Samba.  This
> >> is done by appending something like this to the qemu-system-*
> >> invocation:
> >>
> >>     … -net user,smb=$HOME/Downloads -net nic
> >>
> >> Qemu needs to be told *at configure time* where the smbd executable will
> >> be at runtime.  By default this is /usr/sbin/smbd.  Users can work
> >> around this problem by installing the “samba” package and creating a
> >> link from /usr/sbin/smbd to the actual executable.
> >>
> >> It would be better to fix this, but this would require adding samba as a
> >> dependency to Qemu, so that the location can be set at configure time.
> >> Alternatively, we could patch Qemu to look for smbd depending on an
> >> environment variable.
> >
> > See commit b344c505f4dff2ecbe981f0a0a3c3d67b222dcca, which removed the
> > dependency and Samba.  Prior to that commit, QEMU recorded the absolute
> > file name of ‘smbd’.
> >
> > The problem is that Samba is big:
> >
> > --8<---------------cut here---------------start------------->8---
> > $ guix size qemu |tail -1
> > total: 710.5 MiB
> > $ guix size qemu samba |tail -1
> > total: 1203.5 MiB
> > --8<---------------cut here---------------end--------------->8---
> >
> > Thus it’d be best if we modified QEMU to search for ‘smbd’ in $PATH.
> 
> Tangentially, would it make sense to add a "qemu-full" package? I'd like
> to add RBD support when Ceph is stable on Hydra, but that adds another
> ~300MiB to the closure (and a very expensive dependency..).

If qemu-full is something that would be generically useful, sure.
Otherwise, maybe you could bring it to the potluck!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#26797: qemu looks for smbd at /usr/sbin
  2017-05-06 14:42   ` Marius Bakke
  2017-05-06 18:48     ` Leo Famulari
@ 2017-05-07 15:33     ` Ludovic Courtès
  1 sibling, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2017-05-07 15:33 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 26797

Marius Bakke <mbakke@fastmail.com> skribis:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>> Ricardo Wurmus <rekado@elephly.net> skribis:
>>
>>> Qemu comes with support for sharing files with a guest via Samba.  This
>>> is done by appending something like this to the qemu-system-*
>>> invocation:
>>>
>>>     … -net user,smb=$HOME/Downloads -net nic
>>>
>>> Qemu needs to be told *at configure time* where the smbd executable will
>>> be at runtime.  By default this is /usr/sbin/smbd.  Users can work
>>> around this problem by installing the “samba” package and creating a
>>> link from /usr/sbin/smbd to the actual executable.
>>>
>>> It would be better to fix this, but this would require adding samba as a
>>> dependency to Qemu, so that the location can be set at configure time.
>>> Alternatively, we could patch Qemu to look for smbd depending on an
>>> environment variable.
>>
>> See commit b344c505f4dff2ecbe981f0a0a3c3d67b222dcca, which removed the
>> dependency and Samba.  Prior to that commit, QEMU recorded the absolute
>> file name of ‘smbd’.
>>
>> The problem is that Samba is big:
>>
>> --8<---------------cut here---------------start------------->8---
>> $ guix size qemu |tail -1
>> total: 710.5 MiB
>> $ guix size qemu samba |tail -1
>> total: 1203.5 MiB
>> --8<---------------cut here---------------end--------------->8---
>>
>> Thus it’d be best if we modified QEMU to search for ‘smbd’ in $PATH.
>
> Tangentially, would it make sense to add a "qemu-full" package? I'd like
> to add RBD support when Ceph is stable on Hydra, but that adds another
> ~300MiB to the closure (and a very expensive dependency..).

The day after someone will suggest adding “qemu-fuller”.  ;-)

Seriously yes, why not; just wondering whether it should be called
“qemu-ceph-enabled” or something along these lines.

Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#26797: qemu looks for smbd at /usr/sbin
  2017-05-06 10:26 bug#26797: qemu looks for smbd at /usr/sbin Ricardo Wurmus
  2017-05-06 12:45 ` Ludovic Courtès
@ 2020-04-07 19:22 ` Marius Bakke
  1 sibling, 0 replies; 7+ messages in thread
From: Marius Bakke @ 2020-04-07 19:22 UTC (permalink / raw)
  To: Ricardo Wurmus, 26797-done

[-- Attachment #1: Type: text/plain, Size: 659 bytes --]

Ricardo Wurmus <rekado@elephly.net> writes:

> Qemu comes with support for sharing files with a guest via Samba.  This
> is done by appending something like this to the qemu-system-*
> invocation:
>
>     … -net user,smb=$HOME/Downloads -net nic
>
> Qemu needs to be told *at configure time* where the smbd executable will
> be at runtime.  By default this is /usr/sbin/smbd.  Users can work
> around this problem by installing the “samba” package and creating a
> link from /usr/sbin/smbd to the actual executable.

This was fixed by Rutger back in
84276503059d46c0a42240f8770f59090614d863 and
0e5d0f66b56221b7de49ab28b607633e413c9110.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-04-07 19:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-06 10:26 bug#26797: qemu looks for smbd at /usr/sbin Ricardo Wurmus
2017-05-06 12:45 ` Ludovic Courtès
2017-05-06 13:03   ` Ricardo Wurmus
2017-05-06 14:42   ` Marius Bakke
2017-05-06 18:48     ` Leo Famulari
2017-05-07 15:33     ` Ludovic Courtès
2020-04-07 19:22 ` Marius Bakke

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).