Skip to content
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

Windows 10 + Vagrant + Virtualbox #485

Open
rbruhn opened this issue Jul 30, 2015 · 2 comments
Open

Windows 10 + Vagrant + Virtualbox #485

rbruhn opened this issue Jul 30, 2015 · 2 comments

Comments

@rbruhn
Copy link
Contributor

rbruhn commented Jul 30, 2015

I wanted to post this in case anyone had issues with Vaprobash and Windows 10.

Eldair's post helped me get it running.
https://laracasts.com/discuss/channels/general-discussion/windows-10-vagrant-virtualbox-homestead

  1. Install Virtualbox 5 and Vagrant 1.7.4
  2. In Virtualbox preferences -> network -> host-only networks create Host-Only adapter and add the IP address you are using in the Vagrantfile: IPv4 192.168.22.10, Mask 255.255.0.0
  3. Vaprobash Vagrantfile: Comment line config.vm.network :private_network, ip: server_ip
  4. Comment line 64: b.use ClearNetworkInterfaces in action.rb (path ~\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.7.4\plugins\providers\virtualbox\action.rb)
  5. Run vagrant up

Be sure to select the correct host-only network in the Vaprobash box: settings -> network -> adapter 2 and select Host-only network

@fideloper
Copy link
Owner

Thanks!

On Thu, Jul 30, 2015 at 3:17 PM rbruhn [email protected] wrote:

I wanted to post this in case anyone had issues with Vaprobash and Windows
10.

Eldair's post helped me get it running.

https://laracasts.com/discuss/channels/general-discussion/windows-10-vagrant-virtualbox-homestead

  1. Install Virtualbox 5 and Vagrant 1.7.4
  2. In Virtualbox preferences -> network -> host-only networks create
    Host-Only adapter and add the IP address you are using in the Vagrantfile:
    IPv4 192.168.22.10, Mask 255.255.0.0
  3. Vaprobash Vagrantfile: Comment line config.vm.network
    :private_network, ip: server_ip
  4. Comment line 64: b.use ClearNetworkInterfaces in action.rb (path
    ~\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.7.4\plugins\providers\virtualbox\action.rb)
  5. Run vagrant up

Be sure to select the correct host-only network in the Vaprobash box:
settings -> network -> adapter 2 and select Host-only network


Reply to this email directly or view it on GitHub
#485.

@rbruhn
Copy link
Contributor Author

rbruhn commented Jul 30, 2015

Unfortunately, I've not been able to figure out how to access a URL without using the 8000 port. In other words, I need to do http://mysite.loc:8000 to get there.

Edit: For anyone looking, I was able to resolve the need for the port in the url.

The host-only adapter in VB needs to be created by hand, and the information added to interface config in the VM.
In my case, my Vagrant file IP is 192.168.56.20.
I configured the host-only adapter in VB as:
IPv4: 192.168.56.1
Mask: 255.255.255.0

Editing the interface.... added the following
$ sudo nano /etc/network/interfaces.d/eth0.cfg

# Host-only interface
auto eth1
iface eth1 inet static
address         192.168.56.20
netmask         255.255.255.0
network         192.168.56.0
broadcast       192.168.56.255

This will work until Vagrant and VBox gets fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants