lxc / distrobuilder

System container image builder for LXC and Incus
https://linuxcontainers.org
Apache License 2.0
591 stars 171 forks source link

Fails when repacking Windows ISO created with Media Creation Tool #878

Closed foxtrotcz closed 2 months ago

foxtrotcz commented 3 months ago

Originally posted here: https://discuss.linuxcontainers.org/t/specifics-of-running-windows-vm-in-incus/21461/4?u=foxtrotcz

One of usual methods for creating Windows ISO is downloading and using official Media Creation Tool from Microsoft. But ISO created this way contains install.esd instead of install.wim. This means repack will fail with error Unable to find install.wim.

From what I have read ESD is newer format with better compression which Microsoft prefers for newer builds.

If I am not mistaken Distrobuilder uses wimlib which according to their website should be able to handle ESD files. So Distrobuilder maybe could be modified so it can also handle ESD files.

Thanks.