내용으로 건너뛰기

Image Builder windows sysprep settings

0

I've noticed some things are not retained (e.g. nvidia drivers, desktop shortcut) when I build a custom windows image via image builder vs running my install script manually and then doing EC2Launch v2 > shutdown with sysprep and manually imaging in the aws console. It is as if the CopyProfile and PersistAllDeviceInstalls flags are not being used. But it could also be due to some other unknown-to-me differences in the image builder environment.

Is there any documentation re: how sysprep is called by image builder? (I tried copying the ec2Launch v2 version of unattend.xml into C:\Windows\Panther\ but this did not seem to correct the behavior.)

질문됨 일 년 전564회 조회
1개 답변
1
수락된 답변

One possible issue is that AWS Image Builder might not be using the same unattend.xml settings you're familiar with, including the CopyProfile and PersistAllDeviceInstalls flags. Although AWS Image Builder automates the sysprep process, it may have its own custom configurations that differ from your manual approach. Unfortunately, there isn't always direct documentation about how sysprep is invoked specifically in Image Builder, but I would recommend checking the latest AWS Image Builder docs, especially for customization options like using custom components, as well as reviewing log files (such as those in the Panther directory) for more clues about what's being applied. It might also be worth exploring Image Builder pipelines to ensure the unattend.xml is correctly utilized.

답변함 일 년 전
전문가
검토됨 일 년 전
  • Thank you. I was able to find in the sysprep logs that it was being called with same unattend file as the ec2launch v2 method. However, by putting some log print statements in my build components, I was able to see that the build user is not Administrator, like I had assumed, but rather the system default user. So whoami = nt authority\system, and Home directory = C:\Windows\system32\config\systemprofile. This does pose some quirks, but at least knowing this I should be able to work around them. (The nvidia driver issue was separate and simply due to the fact that the build instance also needs to have a gpu or the driver won't install.)

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠