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

    can't deploy image.

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    8
    1.6k
    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.
    • D
      dingir
      last edited by

      Hi,
      long story short:
      Deployed FOG with latest version on centos7, firewall disabled, selinux permissive.
      I have an image that is called hdd and have pc that is trying to deploy this image via partclone.
      So, if I use settings like on the first picture0_1506007552060_Screen Shot 2017-09-21 at 6.25.05 PM.png
      Im facing with error like here:
      0_1506007697282_FullSizeRender.jpg

      Ok, lets create a folder under /images/hdd and move our image file there (don’t forget about changing owner to fog:root)
      ls -lah /images/hdd/
      total 2.4G
      drwxrwxrwx. 2 fog root 17 Sep 21 11:31 .
      drwxrwxrwx. 7 fog root 92 Sep 21 11:31 …
      -rwxrwxrwx. 1 fog root 2.4G Sep 21 10:07 hdd

      and restart deployment:
      0_1506008214145_Screen Shot 2017-09-21 at 6.36.25 PM.png

      Im a little-bit confused. Whats wrong? can someone share experience with me?

      Thank you.

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

        @dingir Not very many people use FOG the way you do. Just dumping a normal dd image to disk is not possible because we use partclone which can work in a dd mode but still adds its own header information to the dump file. So you’d need to convert your dd image before being able to use FOG to deploy it.

        So convert the image by running this commands on your FOG server (make sure you have enough free space on the disk!!😞

        shell> yum install partclone
        shell> cd /images/hdd
        shell> partclone.imager -c -s hdd -O hdd_new
        shell> mv -i hdd_new hdd
        mv: overwrite ‘hdd’? y
        shell> chmod 777 hdd
        

        After that you should be able to deploy the image as expected.

        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

        D 1 Reply Last reply Reply Quote 1
        • george1421G
          george1421 Moderator
          last edited by

          Well I think we need to add a bit more to the story.

          What system did you capture that image on and what system did you capture it from?

          Has this fog server ever deployed to a target system yet?

          What hardware are you deploying to?

          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
            last edited by

            I’m going to guess you moved files from another location to this 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!

            1 Reply Last reply Reply Quote 0
            • D
              dingir
              last edited by

              1. Its a xenserver, raw format
              2. yes, but unsuccessfully
              3. hp z230 WS

              I created a raw image of hdd by using dd and was thinking to use FOG for deploying it on PC/Servers.

              x23piracyX 1 Reply Last reply Reply Quote 0
              • x23piracyX
                x23piracy @dingir
                last edited by x23piracy

                @dingir erm no 🙂 fog doesn’t use dd (why raw? space wasting)
                Ever thougth about capturing it with fog itself? Yes it can 😉

                Bild Text

                ║▌║█║▌│║▌║▌█

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

                  @dingir Not very many people use FOG the way you do. Just dumping a normal dd image to disk is not possible because we use partclone which can work in a dd mode but still adds its own header information to the dump file. So you’d need to convert your dd image before being able to use FOG to deploy it.

                  So convert the image by running this commands on your FOG server (make sure you have enough free space on the disk!!😞

                  shell> yum install partclone
                  shell> cd /images/hdd
                  shell> partclone.imager -c -s hdd -O hdd_new
                  shell> mv -i hdd_new hdd
                  mv: overwrite ‘hdd’? y
                  shell> chmod 777 hdd
                  

                  After that you should be able to deploy the image as expected.

                  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

                  D 1 Reply Last reply Reply Quote 1
                  • D
                    dingir @Sebastian Roth
                    last edited by

                    @sebastian-roth

                    Thank you Sebastian,
                    let me try to do this.

                    1 Reply Last reply Reply Quote 0
                    • D
                      dingir
                      last edited by dingir

                      Your solution work pretty good, but there is one mark:
                      With ‘yum install partclone’ you will have the latest version, instead of this you need to download version 0.2.89 and compile it.

                      Please mark this topic as solved.

                      Thank you.

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

                      129

                      Online

                      12.1k

                      Users

                      17.3k

                      Topics

                      155.4k

                      Posts
                      Copyright © 2012-2024 FOG Project