• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Cheetah2003
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 27
    • Best 2
    • Controversial 0
    • Groups 0

    Posts made by Cheetah2003

    • RE: FOG 1.5.6: Auto resize is unpredictable

      @Quazz said in FOG 1.5.6: Auto resize is unpredictable:

      @Cheetah2003 OS-built recovery partitions have the partition flags that keeps them fixed size.

      @Quazz Argh. As I said several times, this isn’t a OS built recovery partition. I built it myself. Are you even reading my posts???

      @Eric-Johnson Welcome. And yeah, what you’re describing sounds very similar to the issue I had with the previous version of FOG that required I move my recovery partition to be before the OS partition, making the OS partition last on the disk for resize to work properly.

      @Sebastian-Roth Sure sure. I’ll do some experiments and report back any findings. Might be a few days, so I hope you’re not in a hurry.

      posted in Bug Reports
      Cheetah2003C
      Cheetah2003
    • RE: FOG 1.5.6: Auto resize is unpredictable

      @Sebastian-Roth said in FOG 1.5.6: Auto resize is unpredictable:

      @Cheetah2003 Are you still keen to look into this?

      I’d be happy to. What do you want me to do?

      Also, for what it’s worth, I’m not sure multi-partition resizing is really necessary. I can’t really think of any use cases for this ‘feature.’

      The percentage thing described earlier sounds pretty dubious, especially if you’re capturing 5 partitions from a 50GB disk… and the recovery partition is 20% of that space (10GB)… you don’t need that taking 20% of a target drive. That would be kinda crazy.

      So really, IMHO, a percentage of the original drive captured from seems kinda not-useful. I still think this should be controllable entirely from the image specification. But I think that would require the image specification to actually pull info out of the captured image to offer the user options for how to handle the partitions contained within that image. Probably a pretty big rewrite of that entire part of the system. I’d love to see this, but yeah, it’s going to be a big task from my perspective.

      So I’ll be happy to peek/test whatever you need help with, as time permits, but I’m a little unsure of the goal.

      posted in Bug Reports
      Cheetah2003C
      Cheetah2003
    • RE: FOG 1.5.6: Windows unattended.xml is intermittently failing to work

      I’m back! New results!

      I prepared my same image again, just to be sure it’s ship-shape. I captured the image with ‘Multiple Partition Image - Single Disk (Not Resizable)’ setting on the image.

      4 out of 4 deploys worked flawlessly. Think we can call this case closed. Resizing NTFS partitions is dubious with the linux based tools and is causing intermittent issues with UEFI systems.

      Why this doesn’t affect legacy deployments, you got me. Ask Microsoft? I’m going to just put a powershell script to have windows do my resize operations after setup completes.

      Thanks to all who helped me track this issue down to it’s cause. Back to work, for me!

      For developers looking to remedy this issue, I’d look into this error message (which I’m not getting anymore with that no-resize setting!!):

      The protective MBR's 0xEE partition is oversized!  Auto-repairing.
      

      I’d bet money this has something to do with it breaking on UEFI systems.

      posted in Windows Problems
      Cheetah2003C
      Cheetah2003
    • RE: FOG 1.5.6: Windows unattended.xml is intermittently failing to work

      @george1421 said in FOG 1.5.6: Windows unattended.xml is intermittently failing to work:

      @Cheetah2003 Ok what happens if you create your master image on a 70GB disk (smaller than anything currently in a productive environment) and make the last partition your 😄 drive. Then capture and deploy as single disk non-resizable. Maybe the FOG resize code is make things unstable for UEFI (not sure why your case is unique at the moment).

      Before fog support single disk resizable I had code in my setup complete.cmd file that would instruct windows to expand the last partition to the size of the disk. I have to look to see if I can find that code again, but it basically automated diskpart to expand the partition.

      Yeah, I considered using SetupComplete.cmd to automated that resize myself. I was studying all the fancy powershell commands to manipulate partitions. Automating the resize with powershell script should be mostly trivial.

      I’ll do you one better, I’ve squeezed down my image to 50GB. When it’s ready, I will try both some raw disk captures/deploys and no-resize partition capture/deploy as well and report back. Should have more information on Monday.

      posted in Windows Problems
      Cheetah2003C
      Cheetah2003
    • RE: FOG 1.5.6: Windows unattended.xml is intermittently failing to work

      New information, and alas it’s not good.

      On a hunch, given the circumstances, I decided to switch the images from partition captures to just a raw disk capture (dd.) Oh god it’s slow.

      But 5 out of 5 deployments worked, no hiccups. I’m afraid I believe FOG is damaging the UEFI partitions some of the time?

      What should I try next in my diagnosis? I can work with DD/raw disk images, just an extra step later in our process and it’s kind of slow. But it’s working?

      Could this be related to that strange error message I always get when capturing UEFI/GPT disks? I do get this message several times during a capture. It’s never caused a problem in the past, but maybe it has something to do with this?

      The protective MBR's 0xEE partition is oversized!  Auto-repairing.
      

      I’m presently preparing a new image that’s as small as I can get it, to do more deployments in mass, to get a better sample of success vs. failure rate (five isn’t a great sample size.)

      posted in Windows Problems
      Cheetah2003C
      Cheetah2003
    • RE: FOG 1.5.6: Auto resize is unpredictable

      @Sebastian-Roth said in FOG 1.5.6: Auto resize is unpredictable:

      Please go ahead, dive in the code and find out.

      Yeah, I understand you’re just an open source project, and most likely short handed. If time permits, I would love to study under the hood and figure out how it all works.

      But like everyone else, I have to survive first. So we’ll see. I have non-production fog server on my desktop at home, already (I set that up to get all those screen shots for you guys!), so maybe as time and interest permits, I will do just that!

      And I apologize for the bold. Just been asking that question ALL WEEK and never got a response until I asked again in bold. So… hard to buy ‘shouting not needed’ when that’s what finally got a reply.

      Anyway, thanks for all your help, I do appreciate it!

      posted in Bug Reports
      Cheetah2003C
      Cheetah2003
    • RE: FOG 1.5.6: Auto resize is unpredictable

      @Quazz said in FOG 1.5.6: Auto resize is unpredictable:

      There was some discussion about which direction to go forward in and ideally we’d do things in a more clever way, but for the time being we landed on using partition flags (such as boot, hidden, reserved) to determine whether or not they should be attempted to resized.

      Me I’m rather unconcerned with auto-detection of partition types. It’s going to be dubious at best, under any circumstance. This is why I started this thread with the suggestion: We need to be able to specify how to handle partition resizing in the image specification, for better control over the behavior.

      So putting aside the detection or lack there of… a manual scheme would be wonderful. This is what I’ve been advocating for all along. I’ve already figured out how to ‘trick’ FOG into leaving my recovery partition alone. I mentioned that in the very first post, as well.

      And I just have to ask again: What should it be doing when it encounters more than one resizeable partition? How does it decide how to expand these on a target disk? No one seems interested in answering this?

      If I capture 5 partitions, and 2 are auto-resized… how should I expect them to be put onto a target disk? This is where the unpredictablity comes in. In my experience, in that scenario, the target disk layout is pretty much random. Sometimes I get totally minimal partitions on both of them, sometimes it expands one to some odd size, and leaves the other one at minimum. Sometimes it expands the last partition to fill the entire disk. It’s completely unpredictable! So what should it actually be doing?

      I’m asking all this stuff, cuz at the end of the day… I actually would like my recovery partition resized to minimum size and left that way on the target disk. It’s not supposed to be written to ever again anyway. But until I understand how the resize mechanisms actually work, how to control their behavior, I’m pretty much stuck with an unpredictable result.

      posted in Bug Reports
      Cheetah2003C
      Cheetah2003
    • RE: FOG 1.5.6: Auto resize is unpredictable

      @Quazz said in FOG 1.5.6: Auto resize is unpredictable:

      @Cheetah2003 So did your recovery partition have no label at all or what was it exactly? (should clarify that label is basically the user editable “name” of the partition such as “System Reserved”)

      If it didn’t have a label, then I’m kind of confused about how it wouldn’t get resized since it most certainly should have.

      It has a label. I put the label when I create the partition. It’s just called “RECOVERY” However, perhaps you’re confused. “System reserved” would be a partition type. That is too long for a label anyway. Doesn’t seem like FOG is even looking at the volume labels. They’re not in any of the files? Like the operating system partition’s label is “OS” but you don’t see that anywhere either. The ‘names’ you’re seeing in those two files is the partition type. If you fire up ‘fdisk’ in linux and change the type of a partition, you’ll note the UUID types line up precisely to the names fog has in those two files. So I dunno what it’s doing there, the ‘name’ field seems redundant, since it’s just a text representation of the UUID partition type.

      I will also clarify why I said ‘incorrect’ in my previous post. I was refering to the prior version of FOG doing anything based on a volume label. It did not. As I explained, my original setup I put my Recovery partition LAST on the disk. And would get resized, and the operating system partition directly before it would not. So I moved my recovery partition to be BEFORE the operating system partition. This fixed my issue in the previous version of fog, it would only attempt to resize the last partition, regardless of it’s label. Now it’s resizing both of them.

      @Quazz said in FOG 1.5.6: Auto resize is unpredictable:

      There’s actually something very strange in this case, which is that your partitions and min.partitions file is the same. (maybe you accidentally pasted the wrong one?)

      Yes, I thought that looked strange and I did recheck I was pasting the right file. Alas, that is 100% accurate. That’s what was in my fog server’s folder.

      alt text
      EDIT: I notice there is a difference between the files now. But I swear, they were the same before. This is several captures later, so I dunno. I’ve been trying to debug another issue and have recaptured that image several times.

      On another note: I’m not sure why I can’t get someone to answer this for me: What is the expected behavior when you have more than one resizeable partition?

      posted in Bug Reports
      Cheetah2003C
      Cheetah2003
    • RE: FOG 1.5.6: Windows unattended.xml is intermittently failing to work

      Same issue. Very consistently 50% of the computers fail, with the message in that screenshot.

      Deployed to 8 identical machines, half of them boot to setup normally, the other half fail with the error. Curious I tried clicking ‘ok’ on some of the machines that failed, but they just reboot and fail again. Only redeploying will give a chance for it to work.

      Got some different machines, by a different manufacturer, got 4 of those, deployed the image. 2 boot normally, 2 fail at the error.

      Anyone got any ideas what to try next? I’m stumped. I posted on M$ technet about this as well.

      posted in Windows Problems
      Cheetah2003C
      Cheetah2003
    • RE: FOG 1.5.6: Windows unattended.xml is intermittently failing to work

      Just chiming in. That subtle tiny change to the unattended.xml made no difference. I’m starting to suspect the target machines, at this point.

      Today, I will try completely different target machines, and see if I still get the problem.

      posted in Windows Problems
      Cheetah2003C
      Cheetah2003
    • RE: FOG 1.5.6: Auto resize is unpredictable

      @Quazz said in FOG 1.5.6: Auto resize is unpredictable:

      I’m guessing the partition label is something like “Recovery” which is why the old inits picked it up.

      Incorrect. At least from my perspective. In prior version of FOG (again, very sorry, don’t have the version), it would just resize the LAST partition on the disk.

      This is precisely why my procedure has me opening a gap between the operating system partition and any partitions before it, to insert a new partition with my recovery stuff on it. Because FOG always just resized only the last partition. I initially had my recovery partition as the last partition, but i ran into that problem. So I moved it, problem solved.

      This version of FOG resizes BOTH of them, unless I tweak the recovery partition’s type to look like a reserved partition.

      That said, I’m still curious what the expected behavior is supposed to be.

      What is it supposed to be doing when it encounters two or more resizable partitions?

      This is where my claim of ‘its unpredictable’ comes from. As I stated initially, the current behavior, regardless of how it decides which partitions should be resized or not, is an unknown. It’s not producing the same target disk layout on every deployment when deploying an image that has more than one resizable partition.

      posted in Bug Reports
      Cheetah2003C
      Cheetah2003
    • RE: FOG 1.5.6: Windows unattended.xml is intermittently failing to work

      @george1421 Initially I thought there’s no difference. Then I spotted one tiny little change:
      processorArchitecture=“amd64” This is how it was in the old file.
      processorArchitecture=“wow64” This is how it is in the new file.

      I will try regenerating images using this new file and see if it makes any difference.

      posted in Windows Problems
      Cheetah2003C
      Cheetah2003
    • RE: FOG 1.5.6: Windows unattended.xml is intermittently failing to work

      @george1421 So I just got a patch for WSIM off Technet. I’ll regenerate my answer files and report back results.

      posted in Windows Problems
      Cheetah2003C
      Cheetah2003
    • RE: FOG 1.5.6: Windows unattended.xml is intermittently failing to work

      @george1421 I understand what you’re saying.

      However, I did generate this answer file with WSIM. This is what it spits out when you generate a catalog from installation media and flip that copyprofile option to True in the specialize step, then tell it to generate the file. So I’m a little (hopefully understandably) skeptical when you tell me my file is incomplete. This is what WSIM spits out.

      I was thinking the publickeytokens are not quite correct and it might be confusing setup some of the time. Why it never breaks on legacy deployments, your guess is as good as mine. Unfortunately, I can’t get WSIM to build a catalog for the current installation media. I’m on technet trying to resolve that problem. It’s a fun one… WSIM complains I need a specific version of ADK, but when I click ‘help->about’ on WSIM, it is the exact version it says I need. Fun times. Have a screenshot of that joy:
      alt text

      The generated file and it’s tokens has been an issue in the past, where previously generated unattended.xml would not work with newer versions, due to mismatches on those tokens. That hasn’t been an issue for about 3 or 4 update cycles, and previously, it would not even sysprep at all if the tokens were bad. I was hoping re-generating my unattended.xml with WSIM, using 1903 image as a reference would solve this issue. But I can’t get that going right now (See screenshot.)

      Thank you for moving the thread to a more appropriate place. I edited the topic to reflect the issue more clearly, as well.

      posted in Windows Problems
      Cheetah2003C
      Cheetah2003
    • RE: FOG 1.5.6: Windows unattended.xml is intermittently failing to work

      @george1421 said in FOG 1.5.6: Deploy is leaving remnants of previous data:

      @Cheetah2003 said in FOG 1.5.6: Deploy is leaving remnants of previous data:

      If y’all don’t wanna help anymore, that’s perfectly understandable. I’ll eventually figure it out.

      I don’t believe anyone said about not helping, I wanted to clarify that at this point the actual issue is in opposition to this thread subject line.

      As for the copyprofile… My experience is that it doesn’t work or at least appears to not work as it did with Win7 in how the profile was managed. But that, I guess is just my experience.

      Yeah. There was a point where it stopped working briefly, I think 1709 was the ugly release that broke copyprofile, but it was fixed a few weeks later. don’t quote me on that, this was a couple years ago. foggy memory.

      As to the topic. I agree, this should move elsewhere and be renamed. I’ve been editing the initial post as we’ve discovered things. It can probably just be entirely renamed and moved elsewhere. It’s not a FOG problem.

      However, my initial ‘request’ still stands. I think it would be useful if FOG’s deploy could be configured to zero a portion or all of the target drive before dumping the image onto the target.

      I would still be interested with my unattend.xml file if OOBE/WinSetup runs correctly in uefi mode.

      I appreciate this sentiment. But my process requires CopyProfile. I’m not really interested in reinventing my entire image creation process. I want to fix it so it works like it always has, not change to completely new arrangement. You’ve no idea how loudly I screamed on technet for microsoft to fix CopyProfile back when they broke it a couple years ago. Gawd I hope they didn’t screw something up with it again.

      Not convinced it’s entirely CopyProfile’s problem, the fact things work half the time on UEFI deployments, and work 100% of the time on CSM deployments suggests something…else.

      Someday, I’ll migrate away from CopyProfile. But while it still works, I plan on using it. It really simplifies my entire workflow, and avoids having to author a bunch of ugly powershell scripts to replicate what CopyProfile does. I’ll cross that bridge when I absolutely have to.

      posted in Windows Problems
      Cheetah2003C
      Cheetah2003
    • RE: FOG 1.5.6: Windows unattended.xml is intermittently failing to work

      @george1421 said in FOG 1.5.6: Deploy is leaving remnants of previous data:

      Secondly that unattend.xml file and its copyprofile tag does nothing with windows 10. M$ removed the copyprofile feature when windows 10 was released. This alone has caused so much angst with image creators.

      ??? It works. It’s always worked, since day 1 of Windows 10’s release. I did have some issues at one point with it malfunctioning, but updates from M$ fixed it again.

      It copies the profile exactly as it says it will. So I dunno man.

      But you are right about one thing, this is not a FOG issue. I said that in my previous post. We’ve figured that out.

      If y’all don’t wanna help anymore, that’s perfectly understandable. I’ll eventually figure it out.

      posted in Windows Problems
      Cheetah2003C
      Cheetah2003
    • RE: FOG 1.5.6: Windows unattended.xml is intermittently failing to work

      @george1421 @Sebastian-Roth First, want to thank both of you for helping me with these issues. You’ve both been great. Despite this moving away from FOG issues to more of a Windows issue.

      Anyway, as per @george1421 's recommendation, here’s setuperr.log. As expected from Microsoft, it’s rather cryptic and doesn’t really tell me what’s gone wrong.

      setuperr.log:

      2019-07-02 09:49:33, Error                        [setup.exe] [Action Queue] : Unattend action failed with exit code 4
      2019-07-02 09:49:33, Error                        [setup.exe] Execution of unattend GCs failed; hr = 0x0; pResults->hrResult = 0x8030000b
      
      posted in Windows Problems
      Cheetah2003C
      Cheetah2003
    • RE: FOG 1.5.6: Windows unattended.xml is intermittently failing to work

      @george1421 Thanks for the info.

      However… Sysprep verifies the answer file at sysprep invocation. This is typically when a ‘problem’ will show up. This is partly why this problem is so frustrating.

      Additionally, this is the SAME exact answer file I use for six different Windows images. It works flawlessly on all 4 legacy images (for BIOS/Legacy/CSM targets.) It’s only the 2 UEFI images (Pro and Home) that have issues, and even then, only sometimes. Sometimes it works great. Sometimes it pukes during that first boot. It makes no sense.

      Lastly, my answer file is simplicity itself, the only thing in it is the directive to copy admin profile to the newly created user during setup. That’s it, there’s nothing else in there.

      Here it is, if you don’t believe me!

      <?xml version="1.0" encoding="utf-8"?>
      <unattend xmlns="urn:schemas-microsoft-com:unattend">
          <settings pass="specialize">
              <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                  <CopyProfile>true</CopyProfile>
              </component>
          </settings>
          <cpi:offlineImage cpi:source="wim:c:/users/administrator/desktop/install.wim#Windows 10 Home" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
      </unattend>
      

      I will however study the log files for an affected machine, because you’re right, there may be a clue there.

      @Sebastian-Roth Here’s the requested picture:

      Just an FYI, in order to fetch that picture, we deployed the UEFI image to 8 identical computers. 4 failed, 3 succeeded, 1 was still working it when i got picture.

      posted in Windows Problems
      Cheetah2003C
      Cheetah2003
    • RE: FOG 1.5.6: Windows unattended.xml is intermittently failing to work

      @Sebastian-Roth said in FOG 1.5.6: Deploy is leaving remnants of previous data:

      @Cheetah2003 said in FOG 1.5.6: Deploy is leaving remnants of previous data:

      It’s complaining my unattended setup answer file is invalid during the first boot of the deployed image

      Please give us the exact error message. Best if you can take a picture and post here. The more precise the info the better we can help…

      Sure I can do this. I’ll get a pic with my cell phone on one of the machines we deployed to. Should have it sometime tomorrow.

      posted in Windows Problems
      Cheetah2003C
      Cheetah2003
    • RE: FOG 1.5.6: Auto resize is unpredictable

      @Sebastian-Roth Hope this helps.

      alt text

      alt text

      I wasn’t sure how to get out of that debug mode, so I just cancelled the task, rebooted the VM, and made a new task to capture normally.

      Here, I also took a snap of it resizing both /dev/sda4 and /dev/sda5, along with complaining about protective MBR?? I’ve always gotten that message, dunno what it means, it’s never been an issue AFAIK. ie: it usually works despite that message, at least it used to.

      alt text

      d1.partitions:

      label: gpt
      label-id: 6D7D4E9F-F276-4554-945E-D42EF1DB667D
      device: /dev/sda
      unit: sectors
      first-lba: 34
      last-lba: 209715166
      
      /dev/sda1 : start=        2048, size=     1083392, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=0E09A256-6313-43EA-9C45-1BDB234A17A3, name="Basic data partition", attrs="RequiredPartition GUID:63"
      /dev/sda2 : start=     1085440, size=      202752, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=E004F3EB-3497-45AC-8BC2-40BF62ECF868, name="EFI system partition", attrs="GUID:63"
      /dev/sda3 : start=     1288192, size=       32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=B4553686-67E2-4177-BC7D-AC092860D2CF, name="Microsoft reserved partition", attrs="GUID:63"
      /dev/sda4 : start=     1320960, size=    20961280, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=0005FBFB-A630-456B-9938-D501F6F70B00, name="Basic data partition"
      /dev/sda5 : start=    22284288, size=   187428864, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=5F76FA4B-76D2-43B0-8ECB-F3EB8596E490, name="Basic data partition"
      

      d1.minimum.partitions:

      label: gpt
      label-id: 6D7D4E9F-F276-4554-945E-D42EF1DB667D
      device: /dev/sda
      unit: sectors
      first-lba: 34
      last-lba: 209715166
      
      /dev/sda1 : start=        2048, size=     1083392, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=0E09A256-6313-43EA-9C45-1BDB234A17A3, name="Basic data partition", attrs="RequiredPartition GUID:63"
      /dev/sda2 : start=     1085440, size=      202752, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=E004F3EB-3497-45AC-8BC2-40BF62ECF868, name="EFI system partition", attrs="GUID:63"
      /dev/sda3 : start=     1288192, size=       32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=B4553686-67E2-4177-BC7D-AC092860D2CF, name="Microsoft reserved partition", attrs="GUID:63"
      /dev/sda4 : start=     1320960, size=    20961280, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=0005FBFB-A630-456B-9938-D501F6F70B00, name="Basic data partition"
      /dev/sda5 : start=    22284288, size=   187428864, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=5F76FA4B-76D2-43B0-8ECB-F3EB8596E490, name="Basic data partition"
      

      d1.fixed_size_partitions:

      :2:3:1:1:2:3
      
      posted in Bug Reports
      Cheetah2003C
      Cheetah2003
    • 1 / 1