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

    Problem laying image on a virtual machine

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    27
    4.5k
    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
      davemccracken @Quazz
      last edited by

      @Quazz @george1421 @Sebastian-Roth

      Okay, I now went to the tasks page and deleted all tasks, then to the “List all Hosts” page and started the deploy task checking the box next to debug. Whatever I had done before, when clicking deploy it didn’t give me those options, but this time it did, so I must have done something different.

      These are the output screens with the lsblk command before and after the Fog run.
      b45952b4-5377-4dd0-a25b-4933bdd616a8-image.png

      b636510e-7906-4110-97f2-de5913eba731-image.png

      Thank you for your responses. They are really helping me.

      Dave
      Dave

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

        @davemccracken Good start but read my message again. After you hit the error now manually run: sgdisk -gl /images/Win10-Gold/d1.mbr /dev/sda

        Take a picture and post here.

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

          @davemccracken So in Sebastian’s thoughts, what is the size of the source disk where you captured the image from? I see the target disk is 40GB, what happens if you bump that to 60GB on the target computer?

          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
            davemccracken @Sebastian Roth
            last edited by

            @Sebastian-Roth

            The final screen

            ca67624c-95f1-40cd-9dfa-767af2107909-image.png

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

              @davemccracken Your destination disk seems to be too small. Make it 60GB and try again.

              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

              george1421G 1 Reply Last reply Reply Quote 0
              • D
                davemccracken @davemccracken
                last edited by

                @george1421 @Sebastian-Roth @Quazz

                Thank you all. It was indeed a disk size issue, as the last screenshot showed. I recreated the hard drive the same size as the one on the VM used for the image source and it is now working.

                I am learning the things to watch out for so the next test, I will not run into such basic issues again. Thank you.

                Dave

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

                  @Sebastian-Roth I’m wondering if there is some way to trap this error prior to image deployment? I know we can capture the lsblk output with lsblk -d |awk '{print $1 " " $4}' (note this command was a quick hack to solve a problem in another thread) to return the target disk size. Is there some way to build the minimum space needed from the metadata collected during image capture?

                  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
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @george1421 said in Problem laying image on a virtual machine:

                    Is there some way to build the minimum space needed from the metadata collected during image capture?

                    I am sure there is. Something like tail -1 d1.partitions | awk '{print $4+$6}' (or d1.minimum.partitions if that exists) would get the minimum sector count of the destination disk needed. And for sector count of the disk in question I’d run blockdev --getsz $disk

                    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
                      davemccracken @Sebastian Roth
                      last edited by

                      @Sebastian-Roth @george1421

                      The image was deployed, but when I booted the virtual machine, there isn’t a valid boot file at SCSI 0,0 found. I should probably start a new thread?

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        davemccracken @davemccracken
                        last edited by

                        @davemccracken @george1421 @Sebastian-Roth

                        This is the current screen I get when I try to boot the target VM

                        46044701-9789-42c5-a090-904815997e3f-image.png

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

                          @davemccracken Understand we are still testing here, but if you run the recovery tools can you fix the problem with boot?

                          Its still not clear if its something wrong with your image or the way FOG has deployed to this target computer. If you can fix the issue with the recovery tools we will know that FOG has deployed the image intact.

                          Another question, did you sysprep this image before it was captured?

                          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!

                          D 1 Reply Last reply Reply Quote 0
                          • D
                            davemccracken @george1421
                            last edited by

                            @george1421

                            Yes, I syspreped before capture.

                            I will try the recovery tools. One question which comes to mind though, although since the partition tables are recreated I doubt this is the case, but does that target drive have to have had a working operating system on it prior to the FOG deployment?

                            Thank you,
                            Dave

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

                              @davemccracken said in Problem laying image on a virtual machine:

                              does that target drive have to have had a working operating system on it prior to the FOG deployment?

                              No FOG doesn’t care what was there before to deploy it. The point being you can deploy to bare metal or a previous OS, FOG doesn’t care because it destroys the partition table and creates a new one. This error kind of tells me the boot partition is not in a sane state.

                              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!

                              D 1 Reply Last reply Reply Quote 0
                              • D
                                davemccracken @george1421
                                last edited by

                                @george1421 Okay, but the gold image VM boots fine, and so, I am somewhat unsure what would cause a block by block copy of it to have a bad boot partition.

                                Interestingly, once I booted from a Win10 ISO file, it then says the registry is missing or has errors. This has me wondering if I should just try to deploy again, as maybe something got lost or corrupted between the image and the target.

                                What do you think? Can this be a possibility?

                                Dave

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

                                  @davemccracken said in Problem laying image on a virtual machine:

                                  I am somewhat unsure what would cause a block by block copy of it to have a bad boot partition.

                                  Using image type MPS (Multiple Partitions Single Disk) is not really a block by block copy. Although it is pretty save to properly deploy to another system fine! As you didn’t use the resizable image type (as we see in the picture you posted) partition problems are not very likely. My guess is this has something to do with how you sysprep.

                                  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 0
                                  • D
                                    davemccracken @Sebastian Roth
                                    last edited by

                                    @Sebastian-Roth

                                    I agree with you that something must be wrong with the image. It has done the same thing on 3 virtual machines so far. I originally had done a multicast for the first 2 and a single machine deploy for the last.

                                    I am going to go back to the VM with the gold image, and re-sysprep and capture it. Then try the deploy again. Do you have recommended sysprep parameters? I was using /oobe /shutdown

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

                                      @davemccracken Here is my unattend.xml file and the sysprep command I use: https://forums.fogproject.org/topic/11920/windows-10-1803-sysprep-problem/7

                                      Make sure you put the unattend.xml file in c:\windows\panther only.

                                      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!

                                      D 1 Reply Last reply Reply Quote 0
                                      • D
                                        davemccracken @george1421
                                        last edited by

                                        @george1421 @Sebastian-Roth @Quazz

                                        Thanks George, I tried to use your unattend file, but it kept bluescreening on the host once imaged, so I tried creating a new one today and it worked fine. I probably didn’t change enough things in it, and missed something important, but I got around it now.

                                        I greatly appreciate all the help you kind folks have provided. It is very much appreciated. I couldn’t have gotten to this point without it,

                                        Dave

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

                                        162

                                        Online

                                        12.0k

                                        Users

                                        17.3k

                                        Topics

                                        155.2k

                                        Posts
                                        Copyright © 2012-2024 FOG Project