CentOS virtualbox no icfg-eth1 when adding secondary network interface

Solution 1:

Should icfg-eth1 have been generated when I added the host-only local connection in virtualbox?

No. Since you performed a minimal installation NetworkManager is not installed and so there's nothing on the system to detect new network interfaces and configure them for you. ifcfg-eth0 was created for you since the interface existed during installation.

If I have to create the icfg-eth* file myself, which tool should I use to generate it? Which package should I install to get it?

You could just create it by hand:

  1. Make a copy of the ifcfg-eth0 file and name it ifcfg-eth1
  2. Open ifcfg-eth1 in a text editor (e.g. vi)
  3. Update the DEVICE entry.
  4. Update (or remove) the HWADDR entry
  5. Remove the UUID entry (if it is there)
  6. Make any other changes you need.

Alternatively you could install and use the System-Config-Network tool:

yum install system-config-network-tui
system-config-network-tui

Should I ever manually edit the contents of /etc/sysconfig/network-scripts?

It is okay to do this, just make sure you're careful while doing so. Make copies of any files you are editing just in case you need to revert your changes. Also, ensure you have another way to access the system in case you completely break network access to it (e.g. console access).

It's a good idea to familiarise yourself with the structure and contents of that directory.