Is FOG able to fit my needs?
-
@eadhor I still think we need to understand the work flow here.
FOG requires pxe booting for imaging to work. You can use static IP mapping for the client computers. But you will need to have a dhcp server on this network. The fog server can act as a dhcp server if needed. If the customer is using a static IP addressing schema as a security measure then FOG is not a good fit here.
If you do use static IP and a dhcp server is possible, then we have some options. The target OS will need to have a way to identify the machine and to configure a static IP address for itself since FOG can’t do this for you.
FOG isn’t designed to be a multi-tenant in design. If you are an admin in fog you can see all images installed on the fog server. One option would be to setup multiple fog servers. Depending on your scale of deployment you could use an intel nuc as your FOG server. The FOG server doesn’t require much CPU for imaging. I know of someone creating a docker version of FOG, but its not clear if you can have more than one docker fog container per docker server.
Do each of the sub customers have their own isolated network or do they share the same network and subnet IP range?
-
@george1421
Alle sub-customers use the same subnet IP range.I have talked to a lot of people the last few hours. It COULD be possible to use the FOG Server as DHCP.
@Sebastian-Roth
The PC’s could be delivered by our supplier with a pre-installed FOG-Client. The problem working with the PC’s is the following. If u want to plug somthin in, you have to jump over a wall, or maybe walk around it, unlock a cage, plug it in, walk or jump back, do what u gotta do, jump over again, unplug it, lock the cage. It’s a high-security area. -
I have to be honest, if the information handling is meant to be this highly secure, I doubt there’s a single imaging solution that can meet your needs.
That all said, localized FOG Servers could do what you want, but the moment you think about “centrally managing” them, you start to break your own “Highly Secure” layout.
-
@eadhor Do you want the sub customers to be able to deploy images or will you manage the process from Germany?
The issue I’m seeing right now is isolation of each sub company’s images. Right now the FOG ACL system is pretty weak in that you are an admin or not an admin. If you are admin you have access to everything.
What we would need for this idea to work is to use the location plugin and then find a way to restrict images and IT admins to specific locations (this was a request of mine for several years now). In that IT admins from location A can only see images that are assigned to location A, location B and so on. Right now that level of control is missing in FOG.
-
@Tom-Elliott said in Is FOG able to fit my needs?:
you start to break your own “Highly Secure” layout
High physical security or high
ICTcomputer security not necessarily the same thing. -
Okay,
just to make it hopefully more clear. ! 0_1500915821660_Untitled Diagram.jpg
Of course it’s not a shopping mall. The Customers offer different services. You can imagine it like a self-service ticket station in a train station.
The network itself is high-security.
-
Hi all,
so now it’s getting serious. We are trying to implent FOG in our System. Therefore i am installing a reference system. The system is running on a ESXi Host. I have installed CentOS, but now i am stuck with the installation.
https://wiki.fogproject.org/wiki/index.php?title=CentOS_7
Here is written:
for service in http https tftp ftp mysql nfs mountd rpc-bind proxy-dhcp samba; do firewall-cmd --permanent --zone=public --add-service=$service;What does this mean and how do i do it? Because its not a command.
Can i disable firewalld? Because we are behind of a DMZ.Kind regards
Denny -
@eadhor
Ok… it’s just bash. Sorry^^ -
@eadhor Yeah right, it’s bash. Keep going and let us know when you need help. Pay attention to disabling SELinux as that can cause you a major problem if you don’t know how to handle it.
-
I made a stupid mistake.
I have started the installation. Went really well, but when this appeared: * Changing permissions on apache log files…OK
-
Backing up database…OK
-
You still need to install/update your database schema.
-
This can be done by opening a web browser and going to:
-
Press [Enter] key when database is updated/installed.^C
I wanted to copy the http adress and pressed cmd + c which aborted the installation.
So i thought i could start the installation all over again, but when i reach this point i get an error message:
- Changing permissions on apache log files…OK
- Backing up database…Failed!
How can i handle this?
-
-
@eadhor Try to open that URL http://139.2.247.233/fog/management and I guess you’ll see a error page. Then take a look at the apache error log (see my signature on where to find this). Post what you have in the apache log here.
-
@sebastian-roth
[Fri Dec 08 13:43:36.265102 2017] [core:notice] [pid 29364] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Fri Dec 08 13:43:36.266489 2017] [suexec:notice] [pid 29364] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Dec 08 13:43:36.330261 2017] [auth_digest:notice] [pid 29364] AH01757: generating secret for digest authentication …
[Fri Dec 08 13:43:36.331281 2017] [lbmethod_heartbeat:notice] [pid 29364] AH02282: No slotmem from mod_heartmonitor
[Fri Dec 08 13:43:36.355207 2017] [mpm_prefork:notice] [pid 29364] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.32 configured – resuming normal operations
[Fri Dec 08 13:43:36.355241 2017] [core:notice] [pid 29364] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
[Fri Dec 08 13:43:43.597688 2017] [:error] [pid 29373] [client 139.2.241.1:59690] PHP Fatal error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php on line 443
[Fri Dec 08 13:44:04.346207 2017] [:error] [pid 29374] [client 139.2.241.1:59691] PHP Fatal error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php on line 443
[Fri Dec 08 13:44:09.382076 2017] [:error] [pid 29372] [client 139.2.241.1:59695] PHP Fatal error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php on line 443I have made a snapshot before the installation and tried to install it again. Now i am a this point:
-
Changing permissions on apache log files…OK
-
Backing up database…OK
-
You still need to install/update your database schema.
-
This can be done by opening a web browser and going to:
-
Press [Enter] key when database is updated/installed.
But i still see nothin on the page. So above is the error.log
-
-
@eadhor Have you ever set a password for the database? Try connecting to the DB on the command line:
shell> mysql -u root -p Enter password: ... mysql> exit;
See if you can login. If you got the credentials please see if they match with those in
/var/www/fog/lib/fog/config.class.php
-
@sebastian-roth said in Is FOG able to fit my needs?:
/var/www/fog/lib/fog/config.class.php
Oh i think thats the Problem. I thaught i have to give an initial passwort during the installation. When i try to use mysql like this: mysql -u root -> i can log in
when i use the password which is indefine(‘DATABASE_PASSWORD’, “XXXXX”);
i have no access.
How shout it look without a password?define(‘DATABASE_PASSWORD’, “”);
Kind regards
Denny -
@eadhor Be sure to set the database username and password inside of
/opt/fog/.fogsettings
or you’re bound to break stuff later on when you upgrade (promise).Change settings for fog inside of the fogsettings file, then re-run the installer for those settings to take effect. Here’s documentation about the file:
https://wiki.fogproject.org/wiki/index.php?title=.fogsettingsThe settings you need to change are these:
snmysqluser='' snmysqlpass=''
Put the correct values into them, save, then re-run the installer.
-
@wayne-workman
Hey,
i have changed /opt/fog/.fogsettingssnmysqluser='root' snmysqlpass=''
and re-run the installer. But i got the error again.
* Changing permissions on apache log files....................OK * Backing up database.........................................Failed!
Server is up and running so far, but i get the problem with the updates Like i have said, there is no database password.
-
@eadhor Check your free space with
df -h
look for partitions that are 100% or 99% full.Also, inside of
/opt/fog/.fogsettings
set snmysqlhost to these two things, one at a time:localhost
and127.0.0.1
Running the installer after each to see if the setting works. -
And here ist my next question.
We have an existing DHCP-Server. What informations do i have to provide to the sysadmin? He wants to add a DHCP-Group for the two Clients.
Can i take an image of an existing Virtual Machine? If so. How?
Kind regards
DennyEDIT:
As far as i know, he needs the following information:
next-serve (FOG-Server IP?)
filename?? -
[root@qa-fog-server bin]# df -h
Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf
/dev/mapper/centos-root 20G 3,2G 17G 16% /
devtmpfs 3,9G 0 3,9G 0% /dev
tmpfs 3,9G 0 3,9G 0% /dev/shm
tmpfs 3,9G 8,6M 3,9G 1% /run
tmpfs 3,9G 0 3,9G 0% /sys/fs/cgroup
/dev/sda1 1014M 180M 835M 18% /boot
/dev/mapper/centos-images 271G 33M 271G 1% /images
tmpfs 783M 0 783M 0% /run/user/0Ive tried localhost and 127.0.0.1. Both failed
-
@eadhor Wherever you keep your
fogproject
directory, go there, then go intobin
and do a-ls -laht
you should see a new directory in there for errors and such. In there, there will be an output file from the fog installer. We need the last 20 or so lines from that output file, that should tell us what’s going wrong.