-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSX, Vagrant, Fusion, vagrant-vmware-desktop always launches ssh/portforward via ipv6 on host #77
Comments
Hi @EnorMOZ - thanks for the report. We'll try to get this reproduced and follow up. |
When running via Fusion only: /Library/Preferences/VMware\ Fusion/networking
vmnet2/nat.conf
vmnet8/nat.conf
lsof -i -P |egrep "vmn.*:22"
Not sure if I am doing it properly on the vagrant side. Or somehow it is always defaulting to using ipv6 |
Hi @EnorMOZ. Would you please provide a gist of the output generated from running:
And if you can provide a minimal Vagrantfile that's producing the issue, that would be great. Thanks! |
While powered and started
While powered off
|
Let me know if you need any additional information. Same issue is occurring on Vagrant 2.3.5, Fusion 13.0.2 , and vagrant-vmware-desktop (3.0.3) |
@EnorMOZ Hi! One thing that would be helpful: can you provide the output from |
|
When using Vagrant 2.3.4, Fusion 13.0.2 , and vagrant-vmware-desktop (3.0.) provider on a m1 mac running 13.3.1 it will always forward ssh port using ipv6 even if the host currently has ipv6 disable for the network device and host_ip is assigned at localhost/127.0.0.1 and not ipv6.
How do I tell it to use ipv4 and not ipv6 ?
config.vm.network "forwarded_port", guest: 22, host: 2222, host_ip: "127.0.0.1", id: "ssh"
On mac it shows 2222 is utilizing ipv6
vagrant-v 4578 root 12u IPv6 0xeb5f3de393e534d3 0t0 TCP *:2222 (LISTEN)
Expected behavior
vagrant-v 4578 root 12u IPv4 0x2cc683a1668ce0db 0t0 TCP localhost:2222 (LISTEN)
Actual behavior
"forwarded_port" is using ipv6
vagrant-v 4578 root 12u IPv6 0xeb5f3de393e534d3 0t0 TCP *:2222 (LISTEN)
Reproduction information
Run OSX and run vagrant up
Vagrant version
Vagrant 2.3.4
Host operating system
OSX 13.3.1 M1 chip
Guest operating system
RockyLinux9, Ubuntu 22.04
Steps to reproduce
Run vagrant
Vagrantfile
config.vm.network "forwarded_port", guest: 22, host: 2222, host_ip: "127.0.0.1", id: "ssh"
The text was updated successfully, but these errors were encountered: