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

Improve initial network settings to allow static IPs #18

Closed
micw opened this issue Oct 27, 2014 · 3 comments
Closed

Improve initial network settings to allow static IPs #18

micw opened this issue Oct 27, 2014 · 3 comments

Comments

@micw
Copy link

micw commented Oct 27, 2014

To allow static IPs in the machines, please add the following:

  • default dns should point to something like 8.8.8.8 so that name resolution works if there's no dhcp
  • add a script to the image that replaces /etc/network/interfaces with a version without eth0 settings. This script can simply be run with lxc.hook.start to switch dhcp off.
@fgrehm
Copy link
Owner

fgrehm commented Oct 28, 2014

Would you mind submiting a PR with that improvement? I'm not sure exactly what needs to be done =/

Thanks in advance!

micw pushed a commit to micw/vagrant-lxc-base-boxes that referenced this issue Oct 29, 2014
micw pushed a commit to micw/vagrant-lxc-base-boxes that referenced this issue Oct 29, 2014
@micw
Copy link
Author

micw commented Oct 29, 2014

I have added the pull request for debian image. For other distries it should be similar. The changes are minimal.

Unfortunately I don't have a build environment where I can test it. But I modified your original Image (cleared /etc/resolv.conf) and added my script there and testet it.

I added my example Vagrantfile which I used for testing.

Please let me know if you accept the pull request and the new images are available.

@fgrehm
Copy link
Owner

fgrehm commented Dec 6, 2015

I've stepped down as a maintainer of the plugin and I'm no longer maintaining this repo. Feel free to use it as a starting point for your own boxes and if you need any help with that just LMK! 🍻

@fgrehm fgrehm closed this as completed Dec 6, 2015
DavBfr pushed a commit to DavBfr/vagrant-lxc-base-boxes that referenced this issue Dec 4, 2016
Update salt repositories and key path
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