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

              @georgI have the same lines as you

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

                @Andre Well then…

                On the fog server can you run this command

                rpcinfo -p
                You will get an output like this

                   program vers proto   port  service
                    100000    4   tcp    111  portmapper
                    100000    3   tcp    111  portmapper
                    100000    2   tcp    111  portmapper
                    100000    4   udp    111  portmapper
                    100000    3   udp    111  portmapper
                    100000    2   udp    111  portmapper
                    100003    2   tcp   2049  nfs
                    100003    3   tcp   2049  nfs
                    100003    4   tcp   2049  nfs
                    100227    2   tcp   2049
                    100227    3   tcp   2049
                    100003    2   udp   2049  nfs
                    100003    3   udp   2049  nfs
                    100003    4   udp   2049  nfs
                    100227    2   udp   2049
                    100227    3   udp   2049
                    100021    1   udp  44805  nlockmgr
                    100021    3   udp  44805  nlockmgr
                    100021    4   udp  44805  nlockmgr
                    100021    1   tcp  39255  nlockmgr
                    100021    3   tcp  39255  nlockmgr
                    100021    4   tcp  39255  nlockmgr
                    100005    1   udp  37435  mountd
                    100005    1   tcp  45499  mountd
                    100005    2   udp  40066  mountd
                    100005    2   tcp  33852  mountd
                    100005    3   udp  59675  mountd
                    100005    3   tcp  33362  mountd
                

                The keys are to ensure that you have at least one portmapper and nfs and nfslockmgr entry.

                And then please run this command
                sudo ipables -L
                The output should look like this:

                Chain INPUT (policy ACCEPT)
                target     prot opt source               destination         
                
                Chain FORWARD (policy ACCEPT)
                target     prot opt source               destination         
                
                Chain OUTPUT (policy ACCEPT)
                target     prot opt source               destination     
                

                The last check is to ensure selinux has been set to permissive. The key is current mode == permissive.
                sestatus
                output:

                SELinux status:                 enabled
                SELinuxfs mount:                /selinux
                Current mode:                   permissive
                Mode from config file:          permissive
                Policy version:                 21
                Policy from config file:        targeted
                

                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 Ok, for the first command I have this :
                  0_1493722352488_First_Command.PNG

                  For the second command (sudo ipables -L), it says command not found

                  And for the third command (sestatus). I have to install “policycoreutils” and I have do this. And the result of the command “sestatus” :
                  0_1493722548495_Third_Command.PNG

                  Tom ElliottT george1421G 2 Replies Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott @Andre
                    last edited by

                    @Andre This still sounds, very much, like a “NAT” vs. “Bridged” network problem.

                    I say this BECAUSE the connection is allowed from virtual space, but not a real machine.

                    Particularly your FOG Server is IP Address 192.168.230.10.

                    What’s the IP address your physical machines are pickin gup.

                    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 The IP address of my physical machine is 192.168.230.23. I can ping my server FOG and my server FOG can ping my physical machine.

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

                        @Andre From the Physical machine can you please run:

                        passwd
                        

                        Set a simple password
                        Hit me in chat
                        I want to remote in and help if at all possible via AnyDesk.

                        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 where I run this command ?
                          And my network is a local network. I don’t have access to internet.

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

                            The passwd command would be on the machine you’re trying to image from.

                            If your machine that IS connected to the internet is able to communicate to your fogserver and your computer trying to be imaged, then the local network doesn’t need internet.

                            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 I can’t run this command in my physical machine in cmd. My physical machine turns on Windows 10

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

                                @Andre You’re trying to image it? You would boot it like you’re doing an imaging task.

                                Make the task a debug by checking the “Schedule as Debug” before confirming the tasking.

                                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 ok, but if you want to remote, I must have access to internet in my physical machine.

                                  Tom ElliottT george1421G 2 Replies Last reply Reply Quote 0
                                  • Tom ElliottT
                                    Tom Elliott @Andre
                                    last edited by

                                    @Andre NO internet is not required. As long as the machine you’re talking to me with here has internet AND can communicate with the FOG Server at the same time, the physical machine does not need internet.

                                    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

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

                                      @Andre OK I’m getting lost here (sorry only one small cup of coffee so far).

                                      Lets get some terminology defined here so I can understand what is going on.

                                      We have a FOG server that is running on a vm. That shall be called the FOG or fog server.

                                      We have a target computer that is what we are wanting to capture and deploy from. That shall be call FOS or the target computer (I don’t care if its physical, virtual or imaginary).

                                      What is confusing is that we have an original fog server that I think keeps getting mixed into the conversation.

                                      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
                                      • george1421G
                                        george1421 Moderator @Andre
                                        last edited by george1421

                                        @Andre said in Problem with deployment in a physical machine / connection timeout:

                                        For the second command (sudo ipables -L), it says command not found

                                        For this command you are missing a letter. Its sudo iptables -L This one is important to know because this is the firewall on the fog server.

                                        Your other commands are showing that nfs is up and operational on the FOG server.

                                        And selinux is disabled. So we’ve almost ruled out the FOG server for being at fault here.

                                        Looking at the IP addresses involved here, the FOG server is at IP address 192.168.230.10 and the target computer is at 192.168.230.23. So they are on the same subnet which rules out some kind of screening router between the two devices (FOG and FOS-target).

                                        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 Ok I do the command (sudo iptables -L) and I have the same as you

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

                                            @Andre What OS is the physical computer that hosts the virtual FOG server running?

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

                                            207

                                            Online

                                            12.1k

                                            Users

                                            17.3k

                                            Topics

                                            155.4k

                                            Posts
                                            Copyright © 2012-2024 FOG Project