minione
minione copied to clipboard
After reboot some setup is missing (CentOS 8)
After deploying minione on the CentOS 8 with this command:
bash minione --yes --password somepass --sunstone-port 9869
Everything is fine but once the machine is rebooted, there is not the iptables Masquerade (SNAT/DNAT) anymore and dnsmasq service is not started (VMs need it to be able resolve dns as it seems).
I recently installed open nebula using miniONE script on Linux Mint 20.3 and faced the same issue and found the solution.
I searched a bit and found this question on askubuntu. In my case the problem was in names of files that miniONE creates inside /etc/network/interfaces.d/
. The .
(dot) is problematic character. If name contains dot then this file is skipped when reading configuration. (Dnsmasq was crashing at boot because of missing network interface.) I simply renamed files to names without dot and after reboot everything seemed working again.
sudo -su root
cd /etc/network/interfaces.d/
mv minionebr.cfg minionebr
mv tap.cfg tap
IMHO this issue should be addressed/fixed by maintainers of miniONE.
I could not reproduce missing iptables rules, dnsmasq should be fixed. The network interfaces name should be fixed by https://github.com/OpenNebula/minione/pull/90
Maybe I misread the commit's content but I think the problem is with names of created files and I do not see commit fixing it.
Lets look at manual for source-directory in ubuntu. There is fragment:
Similarly, "source-directory" keyword is used to source multiple files at once, without
specifying them individually or using shell globs. Additionally, when "source-directory"
is used, names of the files are checked to match the following regular expression:
^[a-zA-Z0-9_-]+$. In other words, the names must consist entirely of ASCII upper- and
lower-case letters, ASCII digits, ASCII underscores, and ASCII minus-hyphens. In the
directory path, shell wildcards may be used as well.
The regex for filename is ^[a-zA-Z0-9_-]+$
which does not contain a dot as legal character. So path /etc/network/interfaces.d/minionebr.cfg
is invalid from manual perspective. I guess that some distributions may have problem with that while others do not.