Windows conatiner setup

Please help ! I am stack in this state :pensive:
root@lxd1:/path/to/iso# sudo snap install distrobuilder --classic
snap “distrobuilder” is already installed, see ‘snap help refresh’

root@lxd1:/path/to/iso# sudo apt install -y libguestfs-tools wimtools
Reading package lists… Done
Building dependency tree
Reading state information… Done
libguestfs-tools is already the newest version (1:1.40.2-7ubuntu5).
wimtools is already the newest version (1.13.1-1).
0 upgraded, 0 newly installed, 0 to remove and 52 not upgraded.

root@lxd1:/path/to/iso# sudo distrobuilder repack-windows Win10_20H2_English_x64.iso Win10_20H2_English_x64_distrobuilder.iso
INFO Mounting Windows ISO
INFO Mounting driver ISO
INFO Modifying WIM file {“file”: “boot.wim”, “index”: 2}
INFO Modifying WIM file {“file”: “install.wim”, “index”: 1}
INFO Modifying WIM file {“file”: “install.wim”, “index”: 2}
INFO Modifying WIM file {“file”: “install.wim”, “index”: 3}
INFO Modifying WIM file {“file”: “install.wim”, “index”: 4}
INFO Modifying WIM file {“file”: “install.wim”, “index”: 5}
INFO Modifying WIM file {“file”: “install.wim”, “index”: 6}
INFO Modifying WIM file {“file”: “install.wim”, “index”: 7}
INFO Modifying WIM file {“file”: “install.wim”, “index”: 8}
INFO Modifying WIM file {“file”: “install.wim”, “index”: 9}
INFO Modifying WIM file {“file”: “install.wim”, “index”: 10}
INFO Modifying WIM file {“file”: “install.wim”, “index”: 11}
INFO Generating new ISO

root@lxd1:/path/to/iso# lxc init win10 --empty --vm -c security.secureboot=false
Creating win10

root@lxd1:/path/to/iso# lxc config device override win10 root size=30GiB
Device root overridden for win10

root@lxd1:/path/to/iso# lxc config device add win10 iso disk source=/path/to/iso/windows.iso boot.priority=10 windows.iso

root@lxd1:/path/to/iso# lxc config device add win10 iso disk source=/path/to/iso/Win10_20H2_English_x64_distrobuilder.iso boot.priority=10 Device iso added to win10

root@lxd1:/path/to/iso# lxc start win10 --console=vga
X11 connection rejected because of wrong authentication.
Unable to init server: Could not connect: Connection refused

(remote-viewer:4176671): Gtk-WARNING **: 08:02:40.776: cannot open display: localhost:10.0

Is this something you can help with @monstermunchkin?

This seems to be an issue on your side. A quick Google search led me to this: https://unix.stackexchange.com/a/162983

Also, try starting/running the VM as a normal user, not root. There is no need to run any lxc command as root.