
Sudo apt install -y libguestfs-tools wimtools In addition, it uses executables from the wimtools package, where WIM stands for Windows IMage. It uses libguestfs-tools which provides the utility hivexregedit. In addition, distrobuilder, although it is a snap package, it has the classic confinement, which means that it uses packages from the host. Once you perform the repack, you may switch distrobuilder to the stable channel with sudo snap refresh distrobuilder -stable for the typical use of the tool. This means that distrobuilderas a snap package will be updated frequently, being the edge channel. Therefore, we have to add for now the -edge parameter.

Currently, the repack-windows option is available in the very latest version of distrobuilder. It is available as a snap package, using the classic type of confinement. Once the ISO file has been downloaded, move to the next section. At the time of writing, the ISO filename is Win10_20H2_v2_EnglishInternational_圆4.iso (I selected the English International version). Select your preferred language, and then choose the 64-bit version. Then, select a language for the Windows 10 ISO, and finally to select whether to download a 32-bit or 64-bit version.

You will be given the option to select Windows 10. You can download a Windows 10 ISO from Microsoft, through the following URL. Start the virtual machine from that prepared ISO and go through the installation.Prepare the ISO using distrobuilder (we do this once per ISO).


The benefit with running Windows through LXD is that you are using the familiar LXD workflow and takes away some of the the complexity from the other ways of running a VM (like virt-manager). In this post, we see how to run Windows in a LXD virtual machine. However, virtual machines can run other operating systems. System containers are lightweight because they are based solely on the Linux kernel for their virtualization features, and support Linux guests only. LXD is a hypervisor to run both system containers (a la LXC) and virtual machines (a la QEMU) on Linux distributions. Now, the stable version of distrobuilder is able to repack-windows and you do not need use the version from the edge channel. Update 27th April 2021: The post has been updated and rechecked.
