forked from crc-org/snc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Update gvisor-tap service by using nmcli and binary from conta…
…iner image The service file is based on the upstream one https://github.com/containers/gvisor-tap-vsock/blob/main/contrib/systemd/user-network.service after containers/gvisor-tap-vsock#207 is merged.
- Loading branch information
Showing
2 changed files
with
29 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=gvisor-tap-vsock Network Traffic Forwarder | ||
After=NetworkManager.service | ||
BindsTo=sys-devices-virtual-net-%i.device | ||
After=sys-devices-virtual-net-%i.device | ||
|
||
[Service] | ||
Environment=GV_VSOCK_PORT="1024" | ||
EnvironmentFile=-/etc/sysconfig/gv-user-network | ||
ExecStart=/usr/libexec/podman/gvforwarder -preexisting -iface %i -url vsock://2:${GV_VSOCK_PORT}/connect | ||
|
||
[Install] | ||
WantedBy=multi-user.target |