File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 18
18
* ` bin/virtiofsd-run ` (
` [email protected] ` ) now starts the
19
19
multiple virtiofsd instances through supervisord.
20
20
* The ` microvm ` module allows configuration of
21
+ ` microvm.virtiofsd.group ` and
21
22
` microvm.virtiofsd.inodeFileHandles ` and
22
23
` microvm.virtiofsd.threadPoolSize ` now.
23
24
* Add the [ alioth VMM] ( https://github.com/google/alioth )
Original file line number Diff line number Diff line change 565
565
'' ;
566
566
} ;
567
567
568
+ virtiofsd . group = mkOption {
569
+ type = with types ; nullOr str ;
570
+ default = "kvm" ;
571
+ description = ''
572
+ The name of the group that will own the Unix domain socket file that virtiofsd creates for communication with the hypervisor.
573
+ If null, the socket will have group ownership of the user running the hypervisor.
574
+ '' ;
575
+ } ;
576
+
568
577
virtiofsd . extraArgs = mkOption {
569
578
type = with types ; listOf str ;
570
579
default = [ ] ;
Original file line number Diff line number Diff line change 10
10
inherit ( pkgs . python3Packages ) supervisor ;
11
11
supervisord = lib . getExe' supervisor "supervisord" ;
12
12
supervisorctl = lib . getExe' supervisor "supervisorctl" ;
13
-
14
- # TODO: don't hardcode
15
- group = "kvm" ;
16
-
17
13
in
18
14
{
19
15
microvm . binScripts = lib . mkIf requiresVirtiofsd {
45
41
fi
46
42
exec ${ lib . getExe pkgs . virtiofsd } \
47
43
--socket-path=${ lib . escapeShellArg socket } \
48
- --socket-group=${ group } \
44
+ ${ lib . optionalString ( config . microvm . virtiofsd . group != null )
45
+ "--socket-group=${ config . microvm . virtiofsd . group } "
46
+ } \
49
47
--shared-dir=${ lib . escapeShellArg source } \
50
48
$OPT_RLIMIT \
51
49
--thread-pool-size ${ toString config . microvm . virtiofsd . threadPoolSize } \
You can’t perform that action at this time.
0 commit comments