Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

network_entry_redhat.erb in vagrant/templates missing DEVICE key #382

Closed
rubiojr opened this Issue · 1 comment

2 participants

@rubiojr

The network_entry_redhat.erb template is missing the DEVICE key. ifup command fails when there are multiple NICS in the system (host-only networking in boxes). Looks like adding:

DEVICE=eth<%= net_options[:adapter] %>

to network_entry_redhat.erb fixes the issue.

Env

Vagrant 0.7.5
Vagrant host CentOS 5
Virtualbox 4.0.8
Vagrant boxes based on CentOS 5

Output

[v2v] Running any VM customizations...
[v2v] Clearing any previously set forwarded ports...
[v2v] Forwarding ports...
[v2v] -- ssh: 22 => 2222 (adapter 1)
[v2v] Creating shared folders metadata...
[v2v] Preparing host only network...
[v2v] Creating new host only network for environment...
[v2v] Booting VM...
[v2v] Waiting for VM to boot. This can take a few minutes.
[v2v] VM booted and ready for use!
[v2v] Enabling host only network...

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

sudo /sbin/ifup eth1

The output of the command prior to failing is outputted below:

Usage: arping [-fqbDUAV] [-c count] [-w timeout] [-I device] [-s source] destination
-f : quit on first reply
-q : be quiet
-b : keep broadcasting, don't go unicast
-D : duplicate address detection mode
-U : Unsolicited ARP mode, update your neighbours
-A : ARP answer mode, update your neighbours
-V : print version and exit
-c count : how many packets to send
-w timeout : how long to wait for a reply
-I device : which ethernet device to use (eth0)
-s source : source ip address
destination : ask for what ip address
Error, some other host already uses address 10.0.0.3.

@mitchellh
Owner

Thanks, I've taken into account your change and I will push it shortly.

@mitchellh mitchellh closed this
@mitchellh mitchellh referenced this issue from a commit
@mitchellh Added DEVICE option to RedHat host only networking template. [GH-382]
This allows the networking to work even when the VM has multiple adapters.
c9d03cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.