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

    Problem with deployment in a physical machine / connection timeout

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    42
    15.7k
    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.
    • george1421G
      george1421 Moderator
      last edited by

      Have you imaged with this FOG server before or is it new?

      The reason why I ask is the error is not related to WOL, but more of an nfs issue reaching the FOG server.

      Is it also safe to assume that 192.168.230.10 is your FOG server IP address?

      And finally, execute this command on your fog server showmount -e 127.0.0.1 and post the results here.

      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
      • A
        Andre
        last edited by

        No, I already have imaged with this FOG Server but in virtual. I have imaged virtual machines, but now I want imaged with Wake On Lan and I must image in a physical machine.

        192.168.230.10 is my fog server’s address, I’m sure. But I have a switch connected between my FOG Server and my physical machine. I don’t know if the problem come here.

        Here is the results :

        0_1493122284066_Showmount.jpeg

        1 Reply Last reply Reply Quote 0
        • Q
          Quazz Moderator
          last edited by Quazz

          It’s possible a firewall is blocking the port, which would cause it to timeout.

          Might also want to doublecheck Storage Node settings

          A 1 Reply Last reply Reply Quote 0
          • A
            Andre @Quazz
            last edited by

            @Quazz
            my firewall is disabled in my FOG Server. And my storage node, i haven’t touched anything. I don’t know if I must do anything in Storage Management in FOG Web UI

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

              @Andre OK lets do a bit of detective work.

              I want you to schedule another capture or deploy (doesn’t matter) but before you hit the button to schedule the task, make sure you check the debug option. Then pxe boot the target computer. This feature will drop the pxe booting computer to a command prompt after a few pages of text. This is the command prompt of the FOS engine (customized linux OS for capture and deploying on the target computer).

              Once at the command prompt see if you can ping the fog server.
              If that works then we can try to nfs mount the 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!

              A 1 Reply Last reply Reply Quote 0
              • A
                Andre @george1421
                last edited by

                @george1421 Yes I can ping my server

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

                  @Andre just for clarity you get a ping response from the FOS engine (pxe booted hardware)?

                  See if the FOS engine has the showmount command. In this case you want showmount -e <fog_server_ip>

                  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!

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    Andre @george1421
                    last edited by

                    @george1421 Yes I did my ping from FOS Engine
                    For the command showmount, it says that “command not found”

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

                      @Andre OK from FOS do this

                      mkdir /mnt
                      mount -t nfs <fog_server_ip>:/images/dev /mnt
                      ls -la /mnt
                      

                      The idea is to connect from the FOS back to the fog server using nfs.

                      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!

                      A 2 Replies Last reply Reply Quote 0
                      • A
                        Andre @george1421
                        last edited by

                        @george1421 I tried what you told me to do. But when I do the command for mounting, I have the same error “Connection Timeout” .

                        1 Reply Last reply Reply Quote 0
                        • A
                          Andre @george1421
                          last edited by Andre

                          @george1421 But I don’t understand why in virtual it works and in physical it doesn’t work. I can deploy or capture virtual machines without problem, and physical machines I can’t.

                          1 Reply Last reply Reply Quote 0
                          • Tom ElliottT
                            Tom Elliott
                            last edited by

                            This sounds an aweful lot like the nic of the fogserver is setup in Nat mode vs. bridged mode. I say this because of the “it works in virtual systems, but not on physical machines.”

                            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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                            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

                            A 1 Reply Last reply Reply Quote 0
                            • A
                              Andre @Tom Elliott
                              last edited by

                              @Tom-Elliott My Fogserver is setup in bridged mode

                              1 Reply Last reply Reply Quote 0
                              • A
                                Andre
                                last edited by

                                Nobody has a solution for my problem ?

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

                                  @Andre There has to be something we are not seeing here.

                                  Lets just recap where we are here.

                                  1. You have a new fog server that is running FOG 1.3.5 that is a physical server (not really relevant that its physical)
                                  2. Your fog server’s IP address is 192.168.230.10
                                  3. Your target computer IS talking to the FOG server because it can check in, plus FOS does load and is running.
                                  4. NFS is sharing the proper directories.
                                  5. NFS is timing out in that it can’t connect.

                                  Possible issues.

                                  1. The firewall is running on the FOG server blocking nfs mounting.
                                  2. selinux is not set to permissive on the FOG server.
                                  3. There is some kind of screening router between the target computer and FOG server
                                  4. Not all of the nfs services are running on the FOG server
                                  5. Since there is a second fog server in the environment maybe it is playing a part in the target computer’s booting process that is unknown to us.

                                  Since the target computer can’t seem to mount the nfs share on the physical fog server and you have a second virtual fog server, I would try to mount the nfs shares on the phy fog server from the vm fog server to confirm that nfs is working on the phy fog server.

                                  from the vm fog server

                                  mount -t nfs 192.168.230.10:/images /mnt
                                  ls -la /mnt
                                  umount /mnt
                                  

                                  The above command should mount the images share on the phy fog server, list the contents of the directory and then unmount the images directory. When you run this command I would expect to see something like this:

                                  drwxrwxrwx  5 fog  root 4096 Apr  4 06:37 .
                                  drwxr-xr-x 25 root root 4096 Apr 15 21:35 ..
                                  drwxrwxrwx  3 fog  root 4096 Apr  4 06:37 dev
                                  -rwxrwxrwx  1 fog  root    0 Sep 24  2016 .mntcheck
                                  drwxrwxrwx  2 fog  root 4096 Sep 24  2016 postdownloadscripts
                                  

                                  Not directly related to your issue, i would update your FOG server to the latest RC build of 1.4.0 to test to see if 1.3.5 is the issue. Only do this on your phy fog server.
                                  https://wiki.fogproject.org/wiki/index.php/Upgrade_to_trunk

                                  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!

                                  A 4 Replies Last reply Reply Quote 0
                                  • A
                                    Andre @george1421
                                    last edited by

                                    @george1421 I just have one server FOG and it is virtual. I don’t have a Physical server FOG.

                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      Andre @george1421
                                      last edited by

                                      @george1421 I tried to mount what do you said, in a Virtual machine, on which I have already capture his image. But when I execute the command “mount -t nfs 192.168.230.10:/images /mnt”, in FOS engine. It say “connection refused”.

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        Andre @george1421
                                        last edited by

                                        @george1421 I tried with these commands in FOS Engine, with my virtual machine :
                                        mkdir /images
                                        mkdir /images/dev
                                        mount -o nolock,proto=tcp,rsize=32768,intr,noatime 192.168.230.10:/images /images
                                        mount -o nolock,proto=tcp,rsize=32768,intr,noatime 192.168.230.10:/images/dev/ /images/dev

                                        And it works, I can mount

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          Andre @george1421
                                          last edited by

                                          @george1421 And when I tried to do the same thing in my physical machine, it doesn’t work

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

                                            @Andre This is not logical.

                                            back on the fog server can you execute this command:

                                            cat /etc/exports

                                            You should get something that looks like this

                                            /images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)
                                            /images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)
                                            

                                            The key to look for is the space, star ( * ) right after the share name. This restricts nfs access to specific hosts. The start means everyone.

                                            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!

                                            A 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 3 / 3
                                            • First post
                                              Last post

                                            156

                                            Online

                                            12.1k

                                            Users

                                            17.3k

                                            Topics

                                            155.4k

                                            Posts
                                            Copyright © 2012-2024 FOG Project