microsoft / microsoft/WSL

OS Deployment fails due to permissions on lxss files

Open
#1,636 21 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
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

  1. Create Hyper-V VM (configuration 8) with 8GB RAM (dedicated) AND 80gb drive space
  2. Installed Windows 10 1607 from Microsoft ISO
  3. Installed all updates to OS
  4. Installed Developer Features
  5. Installed Windows Subsystem for Linux
  6. Setup BASH
  7. Used apt-get to install Firefox
  8. Installed Xming
  9. Tested Firefox opening in Xming Window
  10. Restarted and made Hyper-V checkpoint
  11. Ran sysprep from inside Windows with Generalize and Shutdown options set
  12. Upon completion, booted to DVD with WinPE ISO attached
  13. 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"
  14. When completed, created Operating System Image in SCCM from wim
  15. Distributed OS Image
  16. Created Task Sequence to deploy image (attached)
  17. Deployed image to Dell Optiplex 7020 with 8GB RAM and 250GB HDD, Intel i7 CPU
  18. 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)
  19. Rebooted into WinPE and gathered smsts.log (attached)

Details
Windows Build: 14393.693
Ubuntu Build: 14.04.5 LTS

BASHTEST_TS.zip

smsts.txt

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.