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

Homestead requires net-tools package for IP access to work. #534

Closed
david-polak opened this issue Apr 1, 2017 · 5 comments
Closed

Homestead requires net-tools package for IP access to work. #534

david-polak opened this issue Apr 1, 2017 · 5 comments

Comments

@david-polak
Copy link

david-polak commented Apr 1, 2017

Versions

Vagrant 1.9.2
VirtualBox Version 5.1.18 r114002
Homestead HEAD detached at v5.1.0

Host operating system

Arch Linux 4.10.6-1-ARCH

Homestead.yaml

ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/Data/Code/laravel
      to: /home/vagrant/laravel

sites:
    - map: photshr.app
      to: /home/vagrant/laravel/photshr/public

databases:
    - photshr

/etc/hosts

#
# /etc/hosts: static lookup table for host names
#

#<ip-address>	<hostname.domain.org>	<hostname>
127.0.0.1	localhost.localdomain	localhost
::1		localhost.localdomain	localhost
127.0.0.1	dntb.localdomain	dntb

192.168.10.10  	photshr.app

Expected behavior

photoshr.app should be accessible by ping or http

Actual behavior

photoshr.app was not accessible. Fixed by installing deprecated net-tools package.

Steps to reproduce

  1. Remove net-tools package
  2. vagrant destroy
  3. vagrant up
@svpernova09
Copy link
Contributor

I don't think this is a Homestead issue, this is an issue that your Host Operating System is missing networking packages.

@david-polak
Copy link
Author

david-polak commented Apr 2, 2017

It depends on net-tools which was deprecated and is unmaintained for 7 years now. I don't know how much longer will distributions continue supplying it in the repositories. At least it would be good to mention the dependency in docs.

Or should I post this somewhere else? Vagrant perhaps? Not really sure about where to put this...

@raulpegan
Copy link

Arch Linux has the option to install net-tools. But as David said, relying on deprecated software is a bad idea, regardless of what the host operating system is.

@ali-wells
Copy link

I think this should be re-opened, this one had me at a standstill for a couple of days when I was getting Homestead setup on a Ubuntu 17 install.

@svpernova09
Copy link
Contributor

So it looks like there's some issues on the Vagrant repo that may provide some light into the issue.

Seem to be a similar issue but solved with "just install net-tools".

Is a similar issue (I believe), but they're only aware of it on Cent/RH.

References the Cent/RH issue but point out Debian is having the same issues as Cent/RH.

It sounds like Vagrant needs to completely deprecate the need for net-tools and switch to whatever the replacement is. It also sounds like this may be underway.

Taking all of this into account, there is nothing we can do here at the Homestead level. We can only support the operating systems that Vagrant (and our other dependencies such as Virtualbox, etc) requires. "Just install net-tools" isn't an answer I'm happy about, but it seems to be the answer Vagrant is content with at the moment.

Now if you're using an operating system that has completely removed support for net-tools and you're trying to use an application that depends on it, you're not using a supported operating system and therefore will likely run into issues. The resolution here is "use a supported operating system".

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

4 participants