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

    WIM files and FOG

    Scheduled Pinned Locked Moved Solved
    Windows Problems
    4
    43
    12.4k
    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
      Dhruvin.T
      last edited by

      Hello all, how do I import my WIM files into FOG? I have a WIM file which I sysprepped.
      My next step is to inject the drivers for models of PC we use in prod. Once I am done with that (prrly tomorrow) ill have to inject the WIM into FOG. Any help is much appreciated!!

      Also is there an easier way to inject the drivers into the wim post sysprep other than the commands below?

      Dism /Get-ImageInfo /ImageFile:C:\test\images\install.wim

      then

      Dism /Mount-Image /ImageFile:C:\test\images\install.wim /Name:“Windows Drive” /MountDir:C:\test\offline

      then

      Dism /Image:C:\test\offline /Add-Driver /Driver:C:\drivers\mydriver.inf

      Any help is greatly appreciated.

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

        FOG does not / can not use WIM files. WIM files are MS imaging centric. You need to collect your image from the target computer using FOG’s image collection tool.

        As for injecting the drivers there are a few different ways.

        1. Copy the drivers to a specific location and then tell windows to search there first.

        2. Copy the drivers to a specific location then run the dism command to import the drivers in the setupcomplete.cmd file.

        3. Do a combination of 1 and 2 to ensure you get all drivers loaded, especially hardware that hides behind other hardware.
          I could go on a bit more, but it would help to know what hardware you are 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!

        D 1 Reply Last reply Reply Quote 0
        • D
          Dhruvin.T @george1421
          last edited by

          @george1421 Thanks for the prompt reply

          I have Windows 10 sysprepped right now. I used WinPE to capture the sysprepped image.

          I have all the drivers needed for my models which are Lenovo T440,50,60&70 series sitting in a folder.

          I just installed FOG yesterday and is now properly configured.

          D george1421G 2 Replies Last reply Reply Quote 0
          • D
            Dhruvin.T @Dhruvin.T
            last edited by

            @dhruvin-t said in WIM files and FOG:

            @george1421 Thanks for the prompt reply

            I have Windows 10 sysprepped right now. I used WinPE to capture the sysprepped image.

            I have all the drivers needed for my models which are Lenovo T440,50,60&70 series sitting in a folder.

            I just installed FOG yesterday and is now properly configured.

            Also if it helps, I have the win 10 build on a VM.

            1 Reply Last reply Reply Quote 0
            • george1421G
              george1421 Moderator @Dhruvin.T
              last edited by

              @dhruvin-t said in WIM files and FOG:

              I have Windows 10 sysprepped right now. I used WinPE to capture the sysprepped image.

              At this point you need to use fog image capture tool to capture your sysprep’d image. Your WinPE image (wim file) is no value to FOG. FOG uses partclone to capture disk images and compress them for storage on the FOG repository.

              I have all the drivers needed for my models which are Lenovo T440,50,60&70 series sitting in a folder.

              For the LENOVO systems, you need to ensure the drivers are in the INF format and not compressed .EXE installers.

              I just installed FOG yesterday and is now properly configured.

              Great I assume you have FOG 1.4.4 installed. Can we assume that you did not install the FOG Client into your reference system?

              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
                Dhruvin.T @george1421
                last edited by

                @george1421

                I have the drivers in the INF format in a folder. I did install the 1.4.4 and I did install the FOG service (client) before i sysprepped the VM. I suppose I need to network boot into FOG and do a capture that way? What do I do with the INF files as far as the drivers go. Does FOG somehow integrate them into the image?

                george1421G 1 Reply Last reply Reply Quote 0
                • george1421G
                  george1421 Moderator @Dhruvin.T
                  last edited by

                  @dhruvin-t said in WIM files and FOG:

                  @george1421

                  I have the drivers in the INF format in a folder.

                  OK good on this front. FOG doesn’t have a built in tool to inject drivers so it will require a little coordination between FOG and your Win10 image. Lets circle back to this in a moment since the task is a bit involved.

                  I did install the 1.4.4 and I did install the FOG service (client) before i sysprepped the VM.

                  Did you follow the recommendations to disable the FOG service before you sysprep’d it? If not you will have issues during OOBE where the FOG client kicks in too soon and starts doing its thing before OOBE is finished, creating a botched install.

                  I suppose I need to network boot into FOG and do a capture that way?
                  Yes, you will need to do a few things.

                  1. Go into the FOG Web GUI and create an image definition for this Win10 image.
                  2. PXE boot into the FOG iPXE menu with the target computer (its best to do this before you sysprep the image because you don’t want the sysprep’d image to boot into windows unexpectedly.)
                  3. From the FOG iPXE menu pick full registration. You will be asked for the computer name, image definition and so on.
                  4. Once the reference image has been captured and rebooted from inventory make sure you power it off. You don’t want it to boot into Windows.
                  5. Now from in the FOG Webgui you should see the host you just registered. Create a capture task for that host to capture the image and upload it to FOG. Make sure you check the box to power off the reference computer after image capture.
                  6. Now pxe boot the target computer once again. It should start to capture the disk right away. Once image capture is done the target computer should shut down.

                  Now test deploy to another VM just to ensure that you can capture and deploy to VMs and OOBE runs as expected. You will need to register that second VM before you can deploy to it.

                  Also it may be helpful for your VMs once you enter the capture phase of the reference image, you change the boot order to have pxe booting first.

                  What do I do with the INF files as far as the drivers go. Does FOG somehow integrate them into the image?

                  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 2 Replies Last reply Reply Quote 0
                  • D
                    Dhruvin.T @george1421
                    last edited by

                    @george1421 I believe I did disable the FOG service before I sysprep’d. However I have a snapshot of the VM I can revert back to. I took a snapshot just before I hit the OK on Sysprep. So since I already have the wim captured, I will revert back to that snapshot. I will create image def and follow steps you mentioned to capture this image. Unfortunately this is going to have to wait till tomorrow since its getting late for me. I will update again tomorrow on how it went. Thanks again George!

                    george1421G 1 Reply Last reply Reply Quote 0
                    • george1421G
                      george1421 Moderator @Dhruvin.T
                      last edited by

                      @dhruvin-t Great, get your captures and deploys working (even to the lenovo hardware) without the driver integration first. Since this is a new FOG install get comfortable with the process before you move into the more complex stuff. I do have some tutorial on FOG driver injection (3 to be exact) that we can reference when you get there. I may need to review/rewrite them since Win10 is now more prevalent than when I wrote them.

                      But anyway, get your deployment processes down and your workflow created then move into the driver injection.

                      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
                        Dhruvin.T @george1421
                        last edited by

                        @george1421

                        Hey George back at it man!

                        alt text

                        These are the only options when i try to pxe. No full registration option

                        1 Reply Last reply Reply Quote 0
                        • D
                          Dhruvin.T
                          last edited by

                          @dhruvin-t

                          https://ibb.co/fP8Csm

                          D 1 Reply Last reply Reply Quote 0
                          • D
                            Dhruvin.T @Dhruvin.T
                            last edited by

                            @dhruvin-t

                            so I was messing around and did approve this host. I went to the website and saw the host in there so I set the task to capture. I turned on the VM and it ran some commands and eventually got stuck on init.xz ok…

                            I turned off the VM again. Deleted the host from website and turned on the vm. It went into pxe and this time it showed the full reg option. I clicked on it and it ran some commands and now it is sitting in a black screen with a _ cursor. I think its stuck but I dont want to touch it incase its doing the capture in the background. Your thoughts?

                            Tom ElliottT 1 Reply Last reply Reply Quote 0
                            • Tom ElliottT
                              Tom Elliott @Dhruvin.T
                              last edited by

                              @dhruvin-t it’s stuck And based on what I’m reading you’re booting pie via legacy but hdd is booting Uefi. Please change host bios exit to refind and see if that helps.

                              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

                              D 1 Reply Last reply Reply Quote 0
                              • D
                                Dhruvin.T @Tom Elliott
                                last edited by

                                @tom-elliott said in WIM files and FOG:

                                change host bios exit to refind

                                Hello Tom

                                thanks for the help sir. I am not following you. My vmware options are set following. I have unchecked the option “Boot with EFI instead of BIOS”. If I enable (check) that, bios boots doesnt boot into pxe because it doesnt find the nbp file and it fails. Heres the link

                                link text

                                https://ibb.co/hN5BJR

                                Tom ElliottT 1 Reply Last reply Reply Quote 0
                                • Tom ElliottT
                                  Tom Elliott @Dhruvin.T
                                  last edited by

                                  @dhruvin-t all I did was take a guess. The next guess I might have is the disk for the vm doesn’t have an OS yet. I don’t know many details though.

                                  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

                                  D 1 Reply Last reply Reply Quote 0
                                  • D
                                    Dhruvin.T @Tom Elliott
                                    last edited by

                                    @tom-elliott

                                    No worries at all, I do have win 10 installed on the disk on the VM. Its very confusing. It wont budge!

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

                                      @dhruvin-t please set cm to efi but do not boot pxe this time. Does it boot? If not uncheck efi. No pxe, does it boot?

                                      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

                                      D 1 Reply Last reply Reply Quote 0
                                      • D
                                        Dhruvin.T @Tom Elliott
                                        last edited by

                                        @tom-elliott

                                        It does boot for both scenarios. I was trying to change the host management to assign the image to the host that is going to be captured but it keeps on saying “Cannot change image.
                                        Host is in a tasking.”

                                        what does this mean?

                                        george1421G 1 Reply Last reply Reply Quote 0
                                        • george1421G
                                          george1421 Moderator @Dhruvin.T
                                          last edited by

                                          @dhruvin-t I’m a bit confused where you are at right now.

                                          Where you first posted today, the fog server saw that you launched the fog client on your reference image and was waiting for you to approve the system. It basically put the system in a hold state "pending’ until you approved it on the FOG server WebUI.

                                          Now lets understand you have a win10 reference image on a VM. Was that system setup as a UEFI system or a BIOS (legacy) system. Its important for 2 reasons.

                                          1. To PXE boot that system, the pxe boot loader kernel needs to match the mode the reference image computer is running in.
                                          2. When you deploy your captured image, it can only be deployed to a like mode system (i.e. captured uefi -> uefi target computer, captured bios -> bios (legacy mode) target computer).

                                          Now we have seen some cruddy uefi firmware on some systems (like Lenovo) that don’t transition very well between iPXE and FOS (the linux OS that runs on the target computer) where it will hang just after init.xz…

                                          If this happens and you have a Lenovo or any other brand, make sure your firmware version is up to date.

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

                                            @dhruvin-t said in WIM files and FOG:

                                            saying “Cannot change image.
                                            Host is in a tasking.”

                                            This probably means that you have a running task on the FOG server and it won’t let you adjust the settings with a pending tasks. On the FOG tool tray (in the web ui) select tasks icon. It should show you the running tasks. Remove the task if it has failed to deploy. That should release the image settings.

                                            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
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post

                                            215

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project