osx - can't reach vagrant box over private network -


my vagrant box stop working unknown reason , if reinstall box trough ansible script, don't want reached http://192.168.33.10/.

here vagrant file :

vagrant.configure(2) |config|   config.vm.box = "centos67vm"    config.vm.synced_folder "../../pjt" , "/var/www/pjt", owner: "pjt", group: "pjt", mount_options: ["dmode=777,fmode=777"]   config.vm.synced_folder "../../library" , "/var/library"    config.vm.network :private_network, ip: "192.168.33.10"   config.vm.provision :shell, path: "ansible.sh"    config.vm.provider :virtualbox |vb|     vb.name = "dev-pjt"   end  end 

when ping ip got :

ping 192.168.33.10 ping 192.168.33.10 (192.168.33.10): 56 data bytes request timeout icmp_seq 0 request timeout icmp_seq 1 request timeout icmp_seq 2 request timeout icmp_seq 3 request timeout icmp_seq 4 ^c --- 192.168.33.10 ping statistics --- 6 packets transmitted, 0 packets received, 100.0% packet loss 

the ifconfig in box give me :

ifconfig eth0      link encap:ethernet  hwaddr 08:00:27:1b:2f:cc           inet adr:10.0.2.15  bcast:10.0.2.255  masque:255.255.255.0           adr inet6: fe80::a00:27ff:fe1b:2fcc/64 scope:lien           broadcast running multicast  mtu:1500  metric:1           rx packets:967 errors:0 dropped:0 overruns:0 frame:0           tx packets:635 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 lg file transmission:1000           rx bytes:100532 (98.1 kib)  tx bytes:85600 (83.5 kib)  eth1      link encap:ethernet  hwaddr 08:00:27:2a:fe:79           inet adr:192.168.33.10  bcast:192.168.33.255  masque:255.255.255.0           adr inet6: fe80::a00:27ff:fe2a:fe79/64 scope:lien           broadcast running multicast  mtu:1500  metric:1           rx packets:0 errors:0 dropped:0 overruns:0 frame:0           tx packets:27 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 lg file transmission:1000           rx bytes:0 (0.0 b)  tx bytes:1974 (1.9 kib)  lo        link encap:boucle locale           inet adr:127.0.0.1  masque:255.0.0.0           adr inet6: ::1/128 scope:hôte           loopback running  mtu:65536  metric:1           rx packets:0 errors:0 dropped:0 overruns:0 frame:0           tx packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 lg file transmission:0           rx bytes:0 (0.0 b)  tx bytes:0 (0.0 b) 

i'm don't know need dig in find solution (my mac or virtualbox ?) , hope can me.

finally resolve problem... don't know how... here steps did :

  • sudo route -n flush
  • rebooted macbook
  • deactivated little snitch , nod32 antivirus
  • vagrant up
  • successfully ping , go http://192.168.33.10/
  • vagrant halt
  • reactivated little snitch , nod32 antivirus
  • vagrant
  • successfully ping , go http://192.168.33.10/

i don't know if it's "sudo route -n flush" or reboot made connection work again.

hope ;)


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -