OS Deployment fails due to permissions on lxss files
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
I am attempting to develop a solution in which I can deploy Windows 10 with WSL installed and configured with pre-defined apps. I created a Windows image with WSL installed and Firefox loaded inside it. Tests in the VM were successful. After I sysprep the VM and prepare it for deployment via SCCM, the task sequence fails on the applying image step with the following error:
C:\Users\Administrator\AppData\Local\lxss\rootfs\lib\xtables\libip6t_HL.so. Permissions on the requested may be configured incorrectly. Access is denied. (Error: 80070005; Source: Windows)
When I changed the permissions on that file (to 777) and went through the whole process again, it failed again on another file. My guess is that there are a ton of files that will give me problems.
Ultimately, I need to be able to deploy a Windows 10 image with WSL installed with pre-installed apps that is in the default profile so all new users will get the setup ready to go. Assistance is appreciated.
Steps Taken
- Create Hyper-V VM (configuration 8) with 8GB RAM (dedicated) AND 80gb drive space
- Installed Windows 10 1607 from Microsoft ISO
- Installed all updates to OS
- Installed Developer Features
- Installed Windows Subsystem for Linux
- Setup BASH
- Used apt-get to install Firefox
- Installed Xming
- Tested Firefox opening in Xming Window
- Restarted and made Hyper-V checkpoint
- Ran sysprep from inside Windows with Generalize and Shutdown options set
- Upon completion, booted to DVD with WinPE ISO attached
- Opened command prompt and performed a dism command: Dism /Capture-Image /ImageFile:N:\BASHTEST.wim /CaptureDir:C:\ /Compress:fast /CheckIntegrity /Name:"BASHTEST" /Description:"BASH for Windows TEST"
- When completed, created Operating System Image in SCCM from wim
- Distributed OS Image
- Created Task Sequence to deploy image (attached)
- Deployed image to Dell Optiplex 7020 with 8GB RAM and 250GB HDD, Intel i7 CPU
- Deployment completes image download and fails on Applying Image step. Error: WIM error:C:\Users\Administrator\AppData\Local\lxss\rootfs\lib\xtables\libip6t_HL.so. Permissions on the requested may be configured incorrectly. Access is denied. (Error: 80070005; Source: Windows)
- Rebooted into WinPE and gathered smsts.log (attached)
Details
Windows Build: 14393.693
Ubuntu Build: 14.04.5 LTS
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the attached smsts.txt and the WIM Apply Image failure for the lxss file permissions. Review the listed DISM capture, sysprep, and SCCM deployment steps, then verify whether an image containing WSL and its pre-installed apps can deploy successfully to a new machine and populate the default profile.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ubuntu
- Domain
- devops, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100