vagrant-xhyve icon indicating copy to clipboard operation
vagrant-xhyve copied to clipboard

Implement port forwarding

Open sirn opened this issue 8 years ago • 4 comments

Xhyve do not natively support port forwarding, so to forward from VM to local, we'll have to use either:

  • pf — need to run as root (so probably not going to use this one)
  • socat — require extra package, but we can make a helpful message saying "please install…"

sirn avatar Apr 15 '16 02:04 sirn

I think we don't need port forwarding much, because we can use <IP Address>:<Port> for that. And Parallels provider used to do this way.

ailispaw avatar Apr 15 '16 02:04 ailispaw

Port forwarding is something of my own personal use, since I have *.dev perma-mapped to 127.0.0.1 but I can see this being not very important. I'll see if spawning socat is not too hard or I'll skip it for the time being.

sirn avatar Apr 15 '16 02:04 sirn

dlite used to use socat before it is built in golang. https://github.com/nlf/dlite/tree/7211c50ebeab397d1875491199c8885fc377c0c2 It might be helpful for you.

ailispaw avatar Apr 15 '16 02:04 ailispaw

I use port forwarding all the time. Would love to switch from Virtualbox to xhyve for my Vagrant uses once port forwarding is implemented.

btubbs avatar Apr 25 '16 22:04 btubbs