vagrant-xhyve
vagrant-xhyve copied to clipboard
Implement port forwarding
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…"
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.
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.
dlite used to use socat
before it is built in golang.
https://github.com/nlf/dlite/tree/7211c50ebeab397d1875491199c8885fc377c0c2
It might be helpful for you.
I use port forwarding all the time. Would love to switch from Virtualbox to xhyve for my Vagrant uses once port forwarding is implemented.