Fog setup question
-
fog doesn’t detect is all it says 'would you like to change default network interface from ? "
centos has named it enp2s0 by default fog doesn’t see that does it need to be changed to eth0 before i run fog install? -
@pdit ok that’s odd, you should just supply the correct interface name to the installer when it asks that question.
Would you mind sharing the output of these command please, so that we might see what’s going wrong?
ip addr
ifconfig
-
@pdit Wayne is definitely on the right track there I think. Follow his instructions and post that information here. As well you might take a picture of the output “would you like to change default network interface from ?” so I might check if we have a bug in the installer as well.
-
here it is.
-
@Sebastian-Roth Here is screen shot from FOG installer. FYI the enp2s0 is set to DHCP right now.we change it to static ip 172.31.1.10 (same as fog server) when we are using fog in isolated network. and back to DHCP if we need to update anything that requires internet connection.
-
@pdit does
ip addr
not work? -
-
-
@pdit Well here is what happens. You seem to switch between those IPs forth and back but this cannot be handled by FOG and its installer.
If your IP is currently set to 10.10.30.218 (from DHCP because you need internet) you cannot simply tell FOG to use a different IP (172.31.1.10) which is not configured on your network interface at that moment.
Be aware that changing the FOG IP involves more than just changing the IP in the Linux network config. See our wiki article on this: https://wiki.fogproject.org/wiki/index.php/Change_FOG_Server_IP_Address
As well we have a script that does all the changes for you: https://github.com/FOGProject/fog-community-scripts/tree/master/updateIP
I might try to improve the installer to give a more clear answer to the user if an IP is given that does not exist on the machine right now.
Edit: The installer was updated in
dev-branch
to ask for the interface first and select the IP in the same step. We’ll release FOG 1.5.6 soon and this should have prevented what you are trying to do here in the first place. -
i don’t mind setting static non routable IP in centos but only doing because this guide of your tells us to do it. it says you need internet connection. if installing FOG doesn’t require internet i will just set static IP in centos.
https://wiki.fogproject.org/wiki/index.php/FOG_on_an_Isolated_Network -
@pdit Do you have a second network adapter you can use even temporarily? It appears what you are doing is similar to having an isolated imaging network and a business network. The business network has internet access and the imaging network only can be used for imaging. While this isn’t a standard setup, it is a pretty common configuration. All you need to do in this configuration is ensure the business network adapter has a route to the internet and you know the name of the imaging network, network adapter like emo1 (or what ever you have). When you install fog here, you TELL IT to use emo1 (or the name of your network adapter) and it will configure fog to use that adapter and its IP address. The business network adapter can be dhcp or static, fog doesn’t care because its using the network adapter you told it to use. This imaging network adapter MUST have a static IP address and the IP address of this adapter must not change after fog is installed.
-
Resolve this please.