Skip to main content

CentOS 8 on OVH - No network connection after cPanel installation

Comments

11 comments

  • andrew.n
    Although not with OVH but I had similar issues when I removed network manager after installing CentOS 8 and converting it over to AlmaLinux thereafter. @cPRex might want to have a closer look at the ticket cos I'm not sure it would be a good idea to ask for the content of network configs here.
    0
  • clopezi
    We have figured out, so I want to share the solution just in case someone found it useful: 1) Edit /run/cloud-init/instance-data.json an remove the IPv4 DHCP settings 2) Run ip addr to see what interfaces aire in use for IPv4 and IPv6, in our case was enp5s0f0 3) Remove old interfaces without use like eth0 4) Edit /etc/sysconfig/network-scripts/ifcfg-enp5s0f0 and set something like this: DEFROUTE=yes DEVICE=enp5s0f0 HWADDR=a0:42:3f:... IPV6ADDR=2001:41d0... IPV6INIT=yes IPV6_AUTOCONF=no IPV6_DEFAULTGW=2001:41d0:... IPV6_FORCE_ACCEPT_RA=no ONBOOT=yes TYPE=Ethernet USERCTL=no BOOTPROTO=static IPADDR=54.xxx NETMASK=255.255.255.0 GATEWAY=54.xxx.254 (in OVH, same like IPv4 with 254 at end) MTU=1500 STARTMODE=auto IPV4_FAILURE_FATAL=yes
    We still have some errors, like "RTNETLINK answers: File exists" on systemctl status network, but it's working. However, cPanel should support OVH configuration out of the box, I'm sure that a important number of cPanel users are on OVH...
    0
  • andrew.n
    Very well.
    0
  • cPRex Jurassic Moderator
    @andrew.n - we're definitely aware of issues people run into when installing CentOS 7 and CentOS 8. The problem for us is that each hosting provider, and in some cases even products under the same host (such as Amazon Lightsail vs EC2 systems) have different networking requirements, so we'd have to maintain custom installers at all providers to support those systems, and that's not something we are looking to do at this point. For example, less experienced admins have let us know that setting up a Google Cloud server is too complicated. I personally can get one going in a few minutes, but there are some steps that just have to be done over SSH, such as changing the root password, setting up the hostname, configuring the hostname fix script so it doesn't change on reboots, editing the static IP configuration, etc. So, do we work to automate that for every single type of Google instance, or do we hope users that are at the point of needing a dedicated machine but aren't so technical find their own solution? There isn't really a great answer to that to make all the sides happy. I wish the configuration options were easier as well, but with the cloud/virtualization technologies changing so quickly, there really isn't a great "one click" install platform.
    0
  • clopezi
    @andrew.n - we're definitely aware of issues people run into when installing CentOS 7 and CentOS 8. The problem for us is that each hosting provider, and in some cases even products under the same host (such as Amazon Lightsail vs EC2 systems) have different networking requirements, so we'd have to maintain custom installers at all providers to support those systems, and that's not something we are looking to do at this point. For example, less experienced admins have let us know that setting up a Google Cloud server is too complicated. I personally can get one going in a few minutes, but there are some steps that just have to be done over SSH, such as changing the root password, setting up the hostname, configuring the hostname fix script so it doesn't change on reboots, editing the static IP configuration, etc. So, do we work to automate that for every single type of Google instance, or do we hope users that are at the point of needing a dedicated machine but aren't so technical find their own solution? There isn't really a great answer to that to make all the sides happy. I wish the configuration options were easier as well, but with the cloud/virtualization technologies changing so quickly, there really isn't a great "one click" install platform.

    I understand it perfectly, it's almost impossible to maintain everything, but in this case, it's a dedicated server, bare metal, so I belive that it's easier to maintain it. However, I hope that OVH update their cPanel template with some RHEL 8 distro. On the other hand, I'm happy that you are aware of this problems, because yesterday in ticket support, it seemed that I was the only one and was the first time this happened. King regards,
    0
  • andrew.n
    @cPRex I do understand that. We experienced less network related issues with CentOS 7 than with AlmaLinux so far though but since it's pretty new the providers are probably not yet prepared for it either plus AlmaLinux became available basically anywhere by converting CentOS 8 which could lead to further issues. As an example is that converting CentOS 8 with cPanel to AlmaLinux is not yet supported however converting CentOS 8 to AlmaLinux and then installing cPanel works.
    0
  • Nathan Gerard
    Hello, We are seeing similar issues while installing cPanel on a server running CentOS 8 in OVH.
    We have figured out, so I want to share the solution just in case someone found it useful: 1) Edit /run/cloud-init/instance-data.json an remove the IPv4 DHCP settings 2) Run ip addr to see what interfaces aire in use for IPv4 and IPv6, in our case was enp5s0f0 3) Remove old interfaces without use like eth0 4) Edit /etc/sysconfig/network-scripts/ifcfg-enp5s0f0 and set something like this: DEFROUTE=yes DEVICE=enp5s0f0 HWADDR=a0:42:3f:... IPV6ADDR=2001:41d0... IPV6INIT=yes IPV6_AUTOCONF=no IPV6_DEFAULTGW=2001:41d0:... IPV6_FORCE_ACCEPT_RA=no ONBOOT=yes TYPE=Ethernet USERCTL=no BOOTPROTO=static IPADDR=54.xxx NETMASK=255.255.255.0 GATEWAY=54.xxx.254 (in OVH, same like IPv4 with 254 at end) MTU=1500 STARTMODE=auto IPV4_FAILURE_FATAL=yes
    We still have some errors, like "RTNETLINK answers: File exists" on systemctl status network, but it's working. However, cPanel should support OVH configuration out of the box, I'm sure that a important number of cPanel users are on OVH...

    Hi, We tried installing cPanel on a server running CentOS 8 in OVH and faced similar issues. # service network.service status Redirecting to /bin/systemctl status network.service ? network.service - LSB: Bring up/down networking Loaded: loaded (/etc/rc.d/init.d/network; generated) Active: failed (Result: exit-code) since Thu 2021-07-29 05:53:34 UTC; 12min ago Docs: man:systemd-sysv-generator(8) Process: 10142 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE) Tasks: 1 (limit: 822233) Memory: 8.9M CGroup: /system.slice/network.service ??2390 /sbin/dhclient -1 -q -lf /var/lib/dhclient/dhclient--enp97s0f0.lease -pf /run/dhclient-enp97s0f0.pid -H lms enp97s0f0 Jul 29 05:53:34 lms.ifp-learning.com network[10142]: RTNETLINK answers: File exists Jul 29 05:53:34 lms.ifp-learning.com network[10142]: RTNETLINK answers: File exists Jul 29 05:53:34 lms.ifp-learning.com network[10142]: RTNETLINK answers: File exists Jul 29 05:53:34 lms.ifp-learning.com network[10142]: RTNETLINK answers: File exists Jul 29 05:53:34 lms.ifp-learning.com network[10142]: RTNETLINK answers: File exists Jul 29 05:53:34 lms.ifp-learning.com network[10142]: RTNETLINK answers: File exists Jul 29 05:53:34 lms.ifp-learning.com network[10142]: RTNETLINK answers: File exists Jul 29 05:53:34 lms.ifp-learning.com systemd[1]: network.service: Control process exited, code=exited status=1 Jul 29 05:53:34 lms.ifp-learning.com systemd[1]: network.service: Failed with result 'exit-code'. Jul 29 05:53:34 lms.ifp-learning.com systemd[1]: Failed to start LSB: Bring up/down networking.
    Were you able to find a permenant fix for this or did OVH offer any support? Else can you please explain the lines you have commented out in run/cloud-init/instance-data.json. Also will these changes persist after a reboot?
    0
  • eadile
    Hello @Nathan Gerard, We are confronting the same problem with our Bare metal server and Cpanel, did you found a solution ? Thank you.
    0
  • andrew.n
    @Nathan Gerard and @eadile have you tried what @clopezi mentioned?
    0
  • eadile
    @Nathan Gerard and @eadile have you tried what @clopezi mentioned?

    Tried, not working
    0
  • andrew.n
    What is the error you are getting or simply the machine loses network after a reboot? are you able to manually bring up eth0 after a reboot?
    0

Please sign in to leave a comment.