Installing RedHat CRC in a CentOS VM – Troubleshooting CRC DNS

Published by Tobias Hofmann on

2 min read

Network Manager

Network Manager is a requirement from CRC for handling network. After installing CentOS install Network Manager.

yum install NetworkManager

To see if NetworkManager is able to handle the interfaces the cli can be used:

  • nmcli
  • nmtui

DNS resolution

dnsmasq

Configure and install dnsmasq.

yum install dnsmasq
Ein Bild, das Text enthält.

Automatisch generierte Beschreibung

Edit dnsmasq configuration at

/etc/dnsmasq.conf

It should include the following parameters:

server=8.8.8.8
user=dnsmasq
group=dnsmasq
listen-address=127.0.0.1,::1,192.168.0.221
conf-dir=/etc/dnsmasq.d,.rpmnew,.rpmsave,.rpmorig

Note

The listen-address line makes dnsmasq listen on that IP address. The last one 192.168.0.221 is the IP address of my CentOS VM. As DNS server 8.8.8.8 is going to be used. That’s Google, so put one you like or trust more.

Enable the service, start it and check its status:

systemctl enable dnsmasq
systemctl start dnsmasq
systemctl status dnsmasq

In case CRC cannot start because of a DNS issue: check that NetworkManager and dnsmasq are both working. I had the case that NetworkManager started its embedded dnsmasq and that did not work. I had to enable dnsmasq as a normal service and then deactivate the embedded one in NetworkManager.

/etc/NetworkManager/conf.d/crc-nm-dnsmasq.conf
[main]
# dns=dnsmasq

Check that the firewall allows connection for dns / dhcp

firewall-cmd --add-service=dns --permanent
firewall-cmd --add-service=dhcp --permanent
firewall-cmd --reload
Ein Bild, das Text enthält.

Automatisch generierte Beschreibung
Let the world know

Tobias Hofmann

Doing stuff with SAP since 1998. Open, web, UX, cloud. I am not a Basis guy, but very knowledgeable about Basis stuff, as it's the foundation of everything I do (DevOps). Performance is king, and unit tests is something I actually do. Developing HTML5 apps when HTML5 wasn't around. HCP/SCP user since 2012, NetWeaver since 2002, ABAP since 1998.

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.