File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change 146146 then "console=ttyAMA0"
147147 else "" ;
148148
149- supportsNotifySocket = vsock . cid != null ;
150149
151150in
152151lib . warnIf ( mem == 2048 ) ''
@@ -155,16 +154,7 @@ lib.warnIf (mem == 2048) ''
155154 <https://github.com/astro/microvm.nix/issues/171>
156155''
157156{
158- inherit tapMultiQueue supportsNotifySocket ;
159-
160- preStart = ''
161- ${ microvmConfig . preStart }
162- '' + lib . optionalString supportsNotifySocket ''
163- # Start socat to forward systemd notify socket over vsock
164- if [ -n "'' ${NOTIFY_SOCKET-}" ]; then
165- ${ pkgs . socat } /bin/socat VSOCK-LISTEN:8888,fork UNIX-SENDTO:$NOTIFY_SOCKET &
166- fi
167- '' ;
157+ inherit tapMultiQueue ;
168158
169159 command = lib . escapeShellArgs (
170160 [
@@ -310,11 +300,6 @@ lib.warnIf (mem == 2048) ''
310300 lib . optionals ( vsock . cid != null ) [
311301 "-device"
312302 "vhost-vsock-${ devType } ,guest-cid=${ toString vsock . cid } "
313- # We are *supposed* to use SMBIOS here. But somehow, no matter how much I
314- # tried, SMBIOS Type 11 entries simply don't work. It looks like it might
315- # be broken on QEMU side. Why? I don't know.
316- "-fw_cfg"
317- "name=opt/io.systemd.credentials/vmm.notify_socket,string=vsock-stream:2:8888"
318303 ]
319304 ++
320305 extraArgs
You can’t perform that action at this time.
0 commit comments