Building EFA, no network

Questions and answers about how to do stuff
Post Reply
User avatar
melchi0
Posts: 4
Joined: 10 Apr 2018 06:32

Building EFA, no network

Post by melchi0 »

Hello, i'm trying to build from scratch following https://wiki.efa-project.org/doku.php?id=building_e.f.a on a cloud KVM hypervisor
But at this stage, network is unreachable
Image

Any hint? Thanks :)
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Building EFA, no network

Post by pdwalker »

Did you set the DNS server during the setup?

The error message is saying that efa-project.org cannot be resolved which suggests your DNS server has not been specified correctly.
User avatar
melchi0
Posts: 4
Joined: 10 Apr 2018 06:32

Re: Building EFA, no network

Post by melchi0 »

Yep, tried recursive and manual one. Seems something network related into the os
Tried also to edit resolv.conf manually but losing config on each reboot.. where is the setup wizard located? So i can made some change/tests without rebooting
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Building EFA, no network

Post by pdwalker »

so, can this efa vm reach the internet?

can you use the nslookup command? if so, set your dns to 8.8.8.8 and see if you can resolve any addresses from that machine with those settings.
henk
Posts: 518
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: Building EFA, no network

Post by henk »

As we have no info whatsoever on your setup, besides dns doesn't work.So trying to get the picture, with my hands tied behind my back, while hung from one feet upside down,while swinging vigorously, and of course blindfolded. ;)
Yep, tried recursive and manual one
What do you mean by manual one?
on a cloud KVM hypervisor
Can you be more specific on the cloud part?
/\
Start the configure menu:

Code: Select all

/usr/local/sbin/EFA-Configure
The saved settings. So check this first :idea:

Code: Select all

/etc/EFA-Config
Did you assign the proper network to the (LAN) interface?
Did you assign the proper gateway?
Did you enable recursion?
It doesn't make sense to edit resolv.conf manually

Code: Select all

; generated by /sbin/dhclient-script  <-- (losing config on each reboot)
search EXAMPLE.LAN. EXAMPLE.MAN.
nameserver 127.0.0.1                 -<  unbound!
in /etc/sysconfig/network

Code: Select all

NETWORKING_IPV6=no
IPV6INIT=no
NETWORKING=yes
DHCPV6=no
IPV6_AUTOCONF=no
HOSTNAME=EFA.EXAMPLE.LAN
GATEWAY=xxx.xxx.xxx.xxx      < GATEWAY
For dhcp to generate fixed ip's, you need the mac address of the networkcard.
In the dhcp server (DHCP Static Mappings ) you can assign an ip for this mac address outside the dhcp range.


in /etc/sysconfig/network-scripts/ifcfg-eth0

Code: Select all

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
NetworkManager will manage the interfaces by default unless you add: NM_CONTROLLED=no
Check /etc/hosts

Code: Select all

127.0.0.1       localhost.localdomain   localhost localhost4 localhost4.localdomain4
xxx.xxx.xxx.xxx  EFA.EXAMPLE.LAN EFA
Check Unbound config ( and evt forwarders)
search google:

Code: Select all

site:forum.efa-project.org unbound  DNS
Last edited by henk on 11 Apr 2018 16:51, edited 1 time in total.
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
User avatar
melchi0
Posts: 4
Joined: 10 Apr 2018 06:32

Re: Building EFA, no network

Post by melchi0 »

Thank you all for the replies, this staging VM is hosted on Hetzner Cloud, the configuration is done via DHCP since, with CX vServers, the public IP is assigned to the interal IP via 1:1 NAT

Just made some tests:
Boot and configured DHCP, made networking works
Update EFA to the latest version
Issued EFA-Init and followed wizard, networking step takes right ip/sub/gateway
After confirm settings, the autoconfiguration give me the same error
Spawn a shell: ping 8.8.8.8 = Network is unreachable

A rapid look to changes:
resolv.conf modified (from hetzner DNS to 127.0.0.1)
/etc/sysconfig/network: new line added "GATEWAY=172.31.1.1" (correct gateway)
/etc/sysconfig/network-scripts/ifcfg-eth0 modified from DHCP to manual with right settings
routes modified, only a 169.254.0.0 present

Hope this help ;)
henk
Posts: 518
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: Building EFA, no network

Post by henk »

So DHCP provides network access also after reboot :?:

Did you check?

Code: Select all

/etc/udev/rules.d/70-persistent-net.rules
Check for duplicates ( mac <=> if-name)
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
Post Reply