Changing Server IP in VirtualBox?
-
Attempting to run FOG 1.15.10 in a stand-alone network.
FOG 1.15.10 installed on internet machine and then exported as OVA to stand-alone network. From stand-alone, my host is a Win10 running VirtualBox 6.10. I successfully imported OVA and set networking to Bridged adapter. I can log into FOG CLI, but cannot access the web GUI. I changed the IP in FOG network adapter and in the 001-fog.conf in Apache2 dir. Are there any other locations I need to update the IP in the FOG server (guest VM)?
-
@jfenner This DocPage might get you moving in the right direction. https://docs.fogproject.org/en/latest/kb/reference/change-fog-server-ip-address/
-
@george1421 No luck.
I can ping outbound from the VM, but I cannot connect to the web interface.
Error log only shows:
Testing DNS name resolution (neverssl.com)... Failed Testing DNS name resolution (httpbin.org)... Failed Testing HTTP Connection (http://neverssl.com)... Failed Testing HTTP Connection (http://httpbin.com)... Failed
Both of these would make sense since I’m on a stand-alone network. Additionally, I am attempting to connect via IP address, so name resolution shouldn’t be an issue.
Are there any internal checks I can run, something like a
systemctl status fog? -
@george1421 Error reinstalling fog after changing IP
I am attempting to reinstall fog after changing the IP, but I am running into an error. My server is running in a stand-alone network with no internet connectivity, and during the installation, I encounter the error:
* Downloading kernel, init, and fog client binaries................. * Could not download init.xz properly
Anyway to bypass this step? Nothing in the settings or installation script options appears to address this step.
-
@jfenner Can you install a second network adapter for installing fog only? That second network adapter should have internet access where the primary network adapter will not. After fog is installed then you can remove/disable this second network adapter.
-
@george1421 I’ll check with our admins, but our environment is fairly rigid.
-
@jfenner It can be a usb ethernet adapter too. It just needs to exist log enough to get FOG installed. When you reinstall FOG it will ask which is the imaging interface, just give it the forever nic card name.
-
@jfenner said in Changing Server IP in VirtualBox?:
I’ll check with our admins, but our environment is fairly rigid.
If you can’t run a second network, then there should be only two places outside of the web ui that you need to update.
- a hidden file
/opt/fog/.fogsettings
and/tftpboot/default.ipxe
- Inside the web ui FOG Configuration->FOG Settings and hit the expand all button. Search for the old IP address and replace it with the new. Press the save button in each section where you find the replaced IP address
- Then in Storage Nodes -> Default storage node there is an ip address in there.
Once those three have been changed and then rebooted it should work on an isolated network. Its best to rerun the fog installer script but it should work without it as long as if you change the IP address in those locations.
- a hidden file