mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +00:00
Merge pull request #2933 from pcfdev-forks/master
Configure guest with 9P mount and vsock port when using existing VPNKit instance
This commit is contained in:
commit
adebf0377c
@ -245,6 +245,10 @@ func runHyperKit(args []string) {
|
|||||||
if len(netMode) > 2 {
|
if len(netMode) > 2 {
|
||||||
vpnkitPortSocket = netMode[2]
|
vpnkitPortSocket = netMode[2]
|
||||||
}
|
}
|
||||||
|
// The guest will use this 9P mount to configure which ports to forward
|
||||||
|
h.Sockets9P = []hyperkit.Socket9P{{Path: vpnkitPortSocket, Tag: "port"}}
|
||||||
|
// VSOCK port 62373 is used to pass traffic from host->guest
|
||||||
|
h.VSockPorts = append(h.VSockPorts, 62373)
|
||||||
} else {
|
} else {
|
||||||
// Start new VPNKit instance
|
// Start new VPNKit instance
|
||||||
h.VPNKitSock = filepath.Join(*state, "vpnkit_eth.sock")
|
h.VPNKitSock = filepath.Join(*state, "vpnkit_eth.sock")
|
||||||
|
Loading…
Reference in New Issue
Block a user