• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Cliente não inicia servidor Fog via rede

    Scheduled Pinned Locked Moved
    Linux Problems
    3
    20
    2.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • U
      ultralivre @george1421
      last edited by

      @george1421 Tem algum rumo para este assunto ? um manual ou coisa do tipo? pretendo criar meu próprio servidor DHCP !!!

      george1421G 1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @ultralivre
        last edited by george1421

        @ultralivre Are you making a home lab ( network ) configuration with FOG?

        Do you have an existing DHCP server on your network?

        My answer will be based on how you answer above questions.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        U 1 Reply Last reply Reply Quote 0
        • U
          ultralivre @george1421
          last edited by

          @george1421 Home lab (Network).

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @ultralivre
            last edited by george1421

            @ultralivre said in Cliente não inicia servidor Fog via rede:

            Home lab (Network).

            OK for home lab, is your ISP (internet service provider) router your dhcp server? If yes then I have a solution for you.

            I can say home ISP routers are not good for having the options to configure for pxe booting.

            I have instructions to install dnsmasq on your fog server. This dnsmasq will only give pxe booting information to computers. Your IP address assignment is still given by your ISP router.

            If you follow these instructions exactly it will take about 10 minutes to install and configure dnsmasq on your FOG server. https://forums.fogproject.org/topic/12796/installing-dnsmasq-on-your-fog-server

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            U 1 Reply Last reply Reply Quote 0
            • U
              ultralivre @george1421
              last edited by

              @george1421 Muito Obrigado, minha maquina cliente encontrou o FOG, agora como faço o clone ?

              george1421G 1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @ultralivre
                last edited by

                @ultralivre The quick answer is

                1. Create an image definition to capture the image
                2. Register a new computer with FOG from pxe boot menu
                3. Assign the image definition you created in step 1 to new computer
                4. Schedule a capture task
                5. PXE boot source computer
                6. Image will be captured by FOG.

                Do same steps above but deploy an image to a new computer.

                Something you can read here: https://wiki.fogproject.org/wiki/index.php?title=Booting_into_FOG_and_Capturing_your_first_Image

                There are also youtube videos on capturing images with FOG if you learn better by seeing someone use FOG.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                U 1 Reply Last reply Reply Quote 0
                • U
                  ultralivre @george1421
                  last edited by

                  @george1421 Bom dia,

                  Maquinas cliente encontram o Fog porém mensagem: No Bootable devices.

                  fog.png

                  george1421G 1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Sebastian Roth

                    @ultralivre Ok, DHCP seems to work now. Question: Is 192.168.122.190 your FOG server IP?

                    Please run the following commands on your FOG server console (Linux shell) and post results here:

                    sudo -i
                    apt install net-tools
                    ls -al /tftpboot
                    ps ax | grep -e inet -e tftp
                    netstat -antup | grep -e inet -e tftp -e ":69"
                    

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    U 1 Reply Last reply Reply Quote 1
                    • george1421G
                      george1421 Moderator @ultralivre
                      last edited by

                      @ultralivre said in Cliente não inicia servidor Fog via rede:

                      Make sure that fog server IP is configured for static not dhcp assigned. FOG gets mad if IP address of fog server has changed after you install FOG. If 192.168.122.190 is FOG server it seems close IP range to target computer that has assigned IP address. This make me think FOG server was dhcp assigned at one time.

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                      1 Reply Last reply Reply Quote 0
                      • U
                        ultralivre @Sebastian Roth
                        last edited by

                        @sebastian-roth

                        gnuuser@gnufog:~$ sudo apt install net-tools
                        Lendo listas de pacotes… Pronto
                        Construindo árvore de dependências
                        Lendo informação de estado… Pronto
                        net-tools is already the newest version (1.60+git20180626.aebd88e-1).
                        0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
                        
                        gnuuser@gnufog:~$ ls -al /tftpboot
                        ls: não foi possível acessar ‘/tftpboot’: Arquivo ou diretório inexistente
                        
                        gnuuser@gnufog:~$ ps ax | grep -e inet -e tftp
                        601 ? Ss 0:00 /usr/sbin/xinetd -pidfile /run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6
                        1026 pts/0 S+ 0:00 grep -e inet -e tftp
                        
                        gnuuser@gnufog:~$ netstat -antup | grep -e inet -e tftp -e “:69”
                        (Nem todos os processos puderam ser identificados, informações sobre processos
                        de outrem não serão mostrados, você deve ser root para vê-los todos.)
                        
                        george1421G 1 Reply Last reply Reply Quote 0
                        • george1421G
                          george1421 Moderator @ultralivre
                          last edited by george1421

                          @ultralivre Ok I have a question how you installed FOG?

                          When you run the installfog.sh script. You must answer some questions. About 1/2 of the way through the installation the program asks you to use a web browser and access the web management page. After you do that, you must go back to the installer and press enter to complete the installation. Your results to Sebastian’s tasks seem to tell me you did not go back and finish the installation.

                          Please rerun the installfog.sh script. It will remember the options you picked the first time. Be sure to go back to the management web ui page, then come back to the installer script to complete the installation.

                          The missing tftp directory is created in step 2 of the installer script.

                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                          U 1 Reply Last reply Reply Quote 1
                          • S
                            Sebastian Roth Moderator
                            last edited by

                            @ultralivre Please run ip a s as well and post output here. Beside that follow George’s advice on re-running the installer!

                            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                            1 Reply Last reply Reply Quote 0
                            • U
                              ultralivre @george1421
                              last edited by

                              @george1421 Muito Obrigado, esta funcionando.
                              Uma pergunta: Posso utilizar esse ambiente para produção com um hub switch burro ?

                              george1421G 1 Reply Last reply Reply Quote 0
                              • george1421G
                                george1421 Moderator @ultralivre
                                last edited by

                                @ultralivre said in Cliente não inicia servidor Fog via rede:

                                One question: Can I use this environment for production with a dumb switch hub?

                                Yes you can use a bottom level switch like a cheap 5 port switch or an enterprise level switch. You might find that the cheap switches are not fast enough for image deployment. On a well designed 1GbE network you should get in the area of 4.5-6GB per minute as seen on the FOG Partclone screen to give you an idea of what is normal speeds.

                                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                U 1 Reply Last reply Reply Quote 0
                                • U
                                  ultralivre @george1421
                                  last edited by

                                  @george1421 Boa noite, como posso fazer caso precise distribuir IPs através do meu servidor Fog conectado a um HUB ou Switch burro?

                                  george1421G 1 Reply Last reply Reply Quote 0
                                  • george1421G
                                    george1421 Moderator @ultralivre
                                    last edited by

                                    @ultralivre Well you have a difficult question to answer since you have a VM fog server. The answer depends on what hypervisor you use.

                                    Your FOG server VM needs to be bridged to the physical NIC so external computers can talk to the FOG server. If you use a NAT interface that is incorrect, you need bridged. I can talk in terms of VMWare. You will connect the FOG server to an internal vSwitch inside vmware, then assign a physical nic to the vSwitch. You must be able to ping the FOG server IP address from a PC connected to the hub or switch. In this case your ISP DHCP server will still give out IP addresses, the FOG server’s dnsmasq will give out pxe boot information.

                                    In my home lab I have my fog server running on a proxmox hypervisor with my ISP router giving out IP addresses and dnsmasq on the FOG server giving pxe boot information. I can pxe boot physical computers with this configuration, so yes it works.

                                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                    U 1 Reply Last reply Reply Quote 0
                                    • U
                                      ultralivre @george1421
                                      last edited by

                                      @george1421 Muito bem, estou gostando muito desta aplicação e sua participação é muito importante. Eu pretendo utilizar esta VM em outras redes e acabei de me deparar com este erro (segue imagem), já verifiquei e alterei o IP nas configurações do FOG via web. Porém não funcionou e continua o mesmo erro, tem alguma maneira de eu poder modificar isso diretamente nos arquivos de configuração para usar a VM em outras redes? photo_2021-12-09_21-48-30.jpg

                                      george1421G 1 Reply Last reply Reply Quote 0
                                      • george1421G
                                        george1421 Moderator @ultralivre
                                        last edited by george1421

                                        @ultralivre Ok I tell you that FOG gets very angry if you change the IP address of the fog server after you install FOG.

                                        I can see from your screen shot that the fog server was at 10.1.140.108 when fog was installed, and now IP address is 10.1.142.73.

                                        If your fog server will not stay at 10.1.142.73 then you need to fix FOG settings.

                                        Update the hidden file /opt/fog/.fogsettings with the correct fog server IP address.

                                        Now rerun the installfog.sh script. It will load the previous answers from the .fogsettings file. No bad things will happen when you rerun the fog install script. But the fixed IP address in the .fogsettings file.

                                        Now that the installer fixed some things you need to go to the web gui and then FOG Settings -> FOG Configuration. Now hit the expand all button. Search for the old IP address and fix with new IP address. Save your settings.

                                        One more place you have to look is in the storage configuration. Look in the default storage node. Fix the IP address there too.

                                        Now fog should be happy again.

                                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                        1 Reply Last reply Reply Quote 0
                                        • 1 / 1
                                        • First post
                                          Last post

                                        152

                                        Online

                                        12.0k

                                        Users

                                        17.3k

                                        Topics

                                        155.2k

                                        Posts
                                        Copyright © 2012-2024 FOG Project