[NotSupported] Vagrant - Host-Only Adapter keep breaking on MacBook

This is for discussing general topics about how to use VirtualBox.
Post Reply
sbmaru
Posts: 2
Joined: 4. Dec 2019, 20:11

[NotSupported] Vagrant - Host-Only Adapter keep breaking on MacBook

Post by sbmaru »

Hi All,,
I use Vagrant and VirtualBox to spin up quick test vms on my MacBook and assign private_network IP to it.

Adapter1 - NAT 10.0.2.1/24 Adapter2 - Host-Only connected to vboxnet0 - 192.168.57.1/24
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 52:54:00:26:10:60 brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global noprefixroute dynamic eth0
       valid_lft 80258sec preferred_lft 80258sec
    inet6 fe80::5054:ff:fe26:1060/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:cc:53:c2 brd ff:ff:ff:ff:ff:ff
    inet 192.168.57.6/24 brd 192.168.57.255 scope global noprefixroute eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fecc:53c2/64 scope link
       valid_lft forever preferred_lft forever
Normally I can access the vm via to the 192.168.57.6.

I do not use this everyday so say once a month I need to comeback and check so stuff. Occasionally there is VirtualBox updates so I do perform update etc. I can access via "vagrant ssh vmname", but I have tools running against these servers via 192.168.57.6. Sometimes it stop working even when there was no update. On several occasions, I had to re-install VirtualBox to fix this. Any one running into this?? How can I get this back up without having to re-install everything every time??
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Vagrant - Host-Only Adapter keep breaking on MacBook

Post by scottgus1 »

Vagrant changes Virtualbox in ways we don't know about, so we don't troubleshoot Vagrant-influenced Virtualbox. You'll have to try the Vagrant forums.

If you can purge absolutely everything related to Vagrant and use the official Virtualbox from http://www.virtualbox.org, then we could help with problems you're having.
sbmaru
Posts: 2
Joined: 4. Dec 2019, 20:11

Re: Vagrant - Host-Only Adapter keep breaking on MacBook

Post by sbmaru »

Thanks!! Will do...
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: [NotSupported] Vagrant - Host-Only Adapter keep breaking on MacBook

Post by socratis »

Marking as [NotSupported], changed the title slightly from "VirtualBox - Host-Only Adapter keep breaking on MacBook" to "Vagrant - Host-Only Adapter keep breaking on MacBook" to better reflect reality...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply