[wip] nix_flakes support #14

Open
mwojcik wants to merge 12 commits from mwojcik/wfvm:nix_flakes into master
mwojcik commented 6 months ago
Owner

I was about to say that I'm done... exported makeWindowsImage functions, layers, utils as used by nix scripts, moved everything to the flake, updated win10 iso/vs community hashes; however it hangs though after a while on RESTRICTDIST-windows.img> qxl_send_events: spice-server bug: guest stopped, ignoring

Full log:

❯ nix build .#demo-image-impure -L
RESTRICTDIST-windows.img> + export PATH=/nix/store/ch7z638xhdfx6ch1fi4ji17yx4rv9476-p7zip-17.04/bin:/nix/store/s0zkqdk4z5832l5nkby38sbx8g947gxc-qemu-6.1.0/bin:/nix/store/hs12w3nvfmik68cwn978yaj1z3hsjayz-libguestfs-1.44.1/bin:/nix/store/vprdpm59zphrw5vn17lpfcs69g53cyvr-wimlib-1.13.4/bin:/nix/store/bqmg7l0jn6nhgjlfc981g1imzb6ny8xl-patchelf-0.13/bin:/nix/store/jd1y449cf66yx5d1hwyjvc4562b1p1am-coreutils-9.0/bin:/nix/store/jjvw20r6pz3ff7pn91yhvfx8s7izsqan-findutils-4.8.0/bin:/nix/store/ndd6gh8zigjy0j68arj7nyrbcw4kcw01-diffutils-3.8/bin:/nix/store/bpg0ia8nkavzw7s66avi1f9nz72i1p3r-gnused-4.8/bin:/nix/store/df3ff57sbkgbdhc4ar19zs4y0hrhggii-gnugrep-3.7/bin:/nix/store/4fv981732jqzirah3h2y6ynmlsfbxb37-gawk-5.1.1/bin:/nix/store/k5ifa08z0qlkknnb8s1bdh2kdrx0qmd0-gnutar-1.34/bin:/nix/store/dcird3wn9xywy49w3qq1hpjwvjfn3lph-gzip-1.11/bin:/nix/store/s85iyc3p9nbinwvwx9rcqirf1m68zpmm-bzip2-1.0.6.0.2-bin/bin:/nix/store/msncxcf5lgy5by9cqjyxchxd26x47d64-gnumake-4.3/bin:/nix/store/bm7jr70d9ghn5cczb3q0w90apsm05p54-bash-5.1-p8/bin:/nix/store/gi3psbgxbf2fmvgi36pmw77nnh58vq3l-patch-2.7.6/bin:/nix/store/sqb20f4rk80lw21j4is85qwljlphmn3g-xz-5.2.5-bin/bin
RESTRICTDIST-windows.img> + PATH=/nix/store/ch7z638xhdfx6ch1fi4ji17yx4rv9476-p7zip-17.04/bin:/nix/store/s0zkqdk4z5832l5nkby38sbx8g947gxc-qemu-6.1.0/bin:/nix/store/hs12w3nvfmik68cwn978yaj1z3hsjayz-libguestfs-1.44.1/bin:/nix/store/vprdpm59zphrw5vn17lpfcs69g53cyvr-wimlib-1.13.4/bin:/nix/store/bqmg7l0jn6nhgjlfc981g1imzb6ny8xl-patchelf-0.13/bin:/nix/store/jd1y449cf66yx5d1hwyjvc4562b1p1am-coreutils-9.0/bin:/nix/store/jjvw20r6pz3ff7pn91yhvfx8s7izsqan-findutils-4.8.0/bin:/nix/store/ndd6gh8zigjy0j68arj7nyrbcw4kcw01-diffutils-3.8/bin:/nix/store/bpg0ia8nkavzw7s66avi1f9nz72i1p3r-gnused-4.8/bin:/nix/store/df3ff57sbkgbdhc4ar19zs4y0hrhggii-gnugrep-3.7/bin:/nix/store/4fv981732jqzirah3h2y6ynmlsfbxb37-gawk-5.1.1/bin:/nix/store/k5ifa08z0qlkknnb8s1bdh2kdrx0qmd0-gnutar-1.34/bin:/nix/store/dcird3wn9xywy49w3qq1hpjwvjfn3lph-gzip-1.11/bin:/nix/store/s85iyc3p9nbinwvwx9rcqirf1m68zpmm-bzip2-1.0.6.0.2-bin/bin:/nix/store/msncxcf5lgy5by9cqjyxchxd26x47d64-gnumake-4.3/bin:/nix/store/bm7jr70d9ghn5cczb3q0w90apsm05p54-bash-5.1-p8/bin:/nix/store/gi3psbgxbf2fmvgi36pmw77nnh58vq3l-patch-2.7.6/bin:/nix/store/sqb20f4rk80lw21j4is85qwljlphmn3g-xz-5.2.5-bin/bin
RESTRICTDIST-windows.img> + mkdir -p win
RESTRICTDIST-windows.img> + mkdir -p win/nix-win
RESTRICTDIST-windows.img> + 7z x -y /nix/store/1ny6v2pvywb7qi6d8hmm3yh6vflwwqg8-Win10_21H2_English_x64.iso -owin
RESTRICTDIST-windows.img> 7-Zip [64] 17.04 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28
RESTRICTDIST-windows.img> p7zip Version 17.04 (locale=C,Utf16=off,HugeFiles=on,64 bits,16 CPUs x64)
RESTRICTDIST-windows.img> Scanning the drive for archives:
RESTRICTDIST-windows.img> 1 file, 5883697152 bytes (5612 MiB)
RESTRICTDIST-windows.img> Extracting archive: /nix/store/1ny6v2pvywb7qi6d8hmm3yh6vflwwqg8-Win10_21H2_English_x64.iso
RESTRICTDIST-windows.img> --           
RESTRICTDIST-windows.img> Path = /nix/store/1ny6v2pvywb7qi6d8hmm3yh6vflwwqg8-Win10_21H2_English_x64.iso
RESTRICTDIST-windows.img> Type = Udf
RESTRICTDIST-windows.img> Physical Size = 5883697152
RESTRICTDIST-windows.img> Comment = CCCOMA_X64FRE_EN-US_DV9
RESTRICTDIST-windows.img> Cluster Size = 2048
RESTRICTDIST-windows.img> Created = 2021-10-07 00:00:00
RESTRICTDIST-windows.img> Everything is Ok                                                             
RESTRICTDIST-windows.img> Folders: 85
RESTRICTDIST-windows.img> Files: 904
RESTRICTDIST-windows.img> Size:       5878269629
RESTRICTDIST-windows.img> Compressed: 5883697152
RESTRICTDIST-windows.img> + wimsplit win/sources/install.wim win/sources/install.swm 4090
RESTRICTDIST-windows.img> Splitting WIM: 4693 MiB of 4693 MiB (100%) written, part 2 of 2
RESTRICTDIST-windows.img> Finished splitting "win/sources/install.wim"
RESTRICTDIST-windows.img> + rm win/sources/install.wim
RESTRICTDIST-windows.img> + cp /nix/store/yg0fwsliizvi9baaszh0znn18gldwciy-autounattend.xml win/autounattend.xml
RESTRICTDIST-windows.img> + virt-make-fs --partition --type=fat win/ usbimage.img
RESTRICTDIST-windows.img> + rm -rf win
RESTRICTDIST-windows.img> + qemu-img create -f qcow2 c.img 70G
RESTRICTDIST-windows.img> Formatting 'c.img', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=75161927680 lazy_refcounts=off refcount_bits=16
RESTRICTDIST-windows.img> + qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -m 4G -M q35 -vga qxl -rtc base=2020-04-20T14:21:42 -device qemu-xhci -device virtio-net-pci,netdev=n1 -bios /nix/store/2nlx8nyyxbdfm5bwrjpgmh987h2dp23g-OVMF-202108-fd/FV/OVMF.fd -display none -drive id=virtio-win,file=/nix/store/zrqfzpbq5317r1sm46j79s8n7v3xnbbz-bootstrap-win-pkgs.img,if=none,format=raw,readonly=on -device usb-storage,drive=virtio-win -drive id=win-install,file=usbimage.img,if=none,format=raw,readonly=on,media=disk -device usb-storage,drive=win-install -drive file=c.img,index=0,media=disk,if=virtio,cache=unsafe -netdev user,id=n1,net=192.168.1.0/24,restrict=on
RESTRICTDIST-windows.img> qxl_send_events: spice-server bug: guest stopped, ignoring

So in current state do not merge, any clues how to go about the issue would be appreciated

I was about to say that I'm done... exported makeWindowsImage functions, layers, utils as used by nix scripts, moved everything to the flake, updated win10 iso/vs community hashes; however it hangs though after a while on ``RESTRICTDIST-windows.img> qxl_send_events: spice-server bug: guest stopped, ignoring`` Full log: ``` ❯ nix build .#demo-image-impure -L RESTRICTDIST-windows.img> + export PATH=/nix/store/ch7z638xhdfx6ch1fi4ji17yx4rv9476-p7zip-17.04/bin:/nix/store/s0zkqdk4z5832l5nkby38sbx8g947gxc-qemu-6.1.0/bin:/nix/store/hs12w3nvfmik68cwn978yaj1z3hsjayz-libguestfs-1.44.1/bin:/nix/store/vprdpm59zphrw5vn17lpfcs69g53cyvr-wimlib-1.13.4/bin:/nix/store/bqmg7l0jn6nhgjlfc981g1imzb6ny8xl-patchelf-0.13/bin:/nix/store/jd1y449cf66yx5d1hwyjvc4562b1p1am-coreutils-9.0/bin:/nix/store/jjvw20r6pz3ff7pn91yhvfx8s7izsqan-findutils-4.8.0/bin:/nix/store/ndd6gh8zigjy0j68arj7nyrbcw4kcw01-diffutils-3.8/bin:/nix/store/bpg0ia8nkavzw7s66avi1f9nz72i1p3r-gnused-4.8/bin:/nix/store/df3ff57sbkgbdhc4ar19zs4y0hrhggii-gnugrep-3.7/bin:/nix/store/4fv981732jqzirah3h2y6ynmlsfbxb37-gawk-5.1.1/bin:/nix/store/k5ifa08z0qlkknnb8s1bdh2kdrx0qmd0-gnutar-1.34/bin:/nix/store/dcird3wn9xywy49w3qq1hpjwvjfn3lph-gzip-1.11/bin:/nix/store/s85iyc3p9nbinwvwx9rcqirf1m68zpmm-bzip2-1.0.6.0.2-bin/bin:/nix/store/msncxcf5lgy5by9cqjyxchxd26x47d64-gnumake-4.3/bin:/nix/store/bm7jr70d9ghn5cczb3q0w90apsm05p54-bash-5.1-p8/bin:/nix/store/gi3psbgxbf2fmvgi36pmw77nnh58vq3l-patch-2.7.6/bin:/nix/store/sqb20f4rk80lw21j4is85qwljlphmn3g-xz-5.2.5-bin/bin RESTRICTDIST-windows.img> + PATH=/nix/store/ch7z638xhdfx6ch1fi4ji17yx4rv9476-p7zip-17.04/bin:/nix/store/s0zkqdk4z5832l5nkby38sbx8g947gxc-qemu-6.1.0/bin:/nix/store/hs12w3nvfmik68cwn978yaj1z3hsjayz-libguestfs-1.44.1/bin:/nix/store/vprdpm59zphrw5vn17lpfcs69g53cyvr-wimlib-1.13.4/bin:/nix/store/bqmg7l0jn6nhgjlfc981g1imzb6ny8xl-patchelf-0.13/bin:/nix/store/jd1y449cf66yx5d1hwyjvc4562b1p1am-coreutils-9.0/bin:/nix/store/jjvw20r6pz3ff7pn91yhvfx8s7izsqan-findutils-4.8.0/bin:/nix/store/ndd6gh8zigjy0j68arj7nyrbcw4kcw01-diffutils-3.8/bin:/nix/store/bpg0ia8nkavzw7s66avi1f9nz72i1p3r-gnused-4.8/bin:/nix/store/df3ff57sbkgbdhc4ar19zs4y0hrhggii-gnugrep-3.7/bin:/nix/store/4fv981732jqzirah3h2y6ynmlsfbxb37-gawk-5.1.1/bin:/nix/store/k5ifa08z0qlkknnb8s1bdh2kdrx0qmd0-gnutar-1.34/bin:/nix/store/dcird3wn9xywy49w3qq1hpjwvjfn3lph-gzip-1.11/bin:/nix/store/s85iyc3p9nbinwvwx9rcqirf1m68zpmm-bzip2-1.0.6.0.2-bin/bin:/nix/store/msncxcf5lgy5by9cqjyxchxd26x47d64-gnumake-4.3/bin:/nix/store/bm7jr70d9ghn5cczb3q0w90apsm05p54-bash-5.1-p8/bin:/nix/store/gi3psbgxbf2fmvgi36pmw77nnh58vq3l-patch-2.7.6/bin:/nix/store/sqb20f4rk80lw21j4is85qwljlphmn3g-xz-5.2.5-bin/bin RESTRICTDIST-windows.img> + mkdir -p win RESTRICTDIST-windows.img> + mkdir -p win/nix-win RESTRICTDIST-windows.img> + 7z x -y /nix/store/1ny6v2pvywb7qi6d8hmm3yh6vflwwqg8-Win10_21H2_English_x64.iso -owin RESTRICTDIST-windows.img> 7-Zip [64] 17.04 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28 RESTRICTDIST-windows.img> p7zip Version 17.04 (locale=C,Utf16=off,HugeFiles=on,64 bits,16 CPUs x64) RESTRICTDIST-windows.img> Scanning the drive for archives: RESTRICTDIST-windows.img> 1 file, 5883697152 bytes (5612 MiB) RESTRICTDIST-windows.img> Extracting archive: /nix/store/1ny6v2pvywb7qi6d8hmm3yh6vflwwqg8-Win10_21H2_English_x64.iso RESTRICTDIST-windows.img> -- RESTRICTDIST-windows.img> Path = /nix/store/1ny6v2pvywb7qi6d8hmm3yh6vflwwqg8-Win10_21H2_English_x64.iso RESTRICTDIST-windows.img> Type = Udf RESTRICTDIST-windows.img> Physical Size = 5883697152 RESTRICTDIST-windows.img> Comment = CCCOMA_X64FRE_EN-US_DV9 RESTRICTDIST-windows.img> Cluster Size = 2048 RESTRICTDIST-windows.img> Created = 2021-10-07 00:00:00 RESTRICTDIST-windows.img> Everything is Ok RESTRICTDIST-windows.img> Folders: 85 RESTRICTDIST-windows.img> Files: 904 RESTRICTDIST-windows.img> Size: 5878269629 RESTRICTDIST-windows.img> Compressed: 5883697152 RESTRICTDIST-windows.img> + wimsplit win/sources/install.wim win/sources/install.swm 4090 RESTRICTDIST-windows.img> Splitting WIM: 4693 MiB of 4693 MiB (100%) written, part 2 of 2 RESTRICTDIST-windows.img> Finished splitting "win/sources/install.wim" RESTRICTDIST-windows.img> + rm win/sources/install.wim RESTRICTDIST-windows.img> + cp /nix/store/yg0fwsliizvi9baaszh0znn18gldwciy-autounattend.xml win/autounattend.xml RESTRICTDIST-windows.img> + virt-make-fs --partition --type=fat win/ usbimage.img RESTRICTDIST-windows.img> + rm -rf win RESTRICTDIST-windows.img> + qemu-img create -f qcow2 c.img 70G RESTRICTDIST-windows.img> Formatting 'c.img', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=75161927680 lazy_refcounts=off refcount_bits=16 RESTRICTDIST-windows.img> + qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -m 4G -M q35 -vga qxl -rtc base=2020-04-20T14:21:42 -device qemu-xhci -device virtio-net-pci,netdev=n1 -bios /nix/store/2nlx8nyyxbdfm5bwrjpgmh987h2dp23g-OVMF-202108-fd/FV/OVMF.fd -display none -drive id=virtio-win,file=/nix/store/zrqfzpbq5317r1sm46j79s8n7v3xnbbz-bootstrap-win-pkgs.img,if=none,format=raw,readonly=on -device usb-storage,drive=virtio-win -drive id=win-install,file=usbimage.img,if=none,format=raw,readonly=on,media=disk -device usb-storage,drive=win-install -drive file=c.img,index=0,media=disk,if=virtio,cache=unsafe -netdev user,id=n1,net=192.168.1.0/24,restrict=on RESTRICTDIST-windows.img> qxl_send_events: spice-server bug: guest stopped, ignoring ``` So in current state do not merge, any clues how to go about the issue would be appreciated
mwojcik added 6 commits 6 months ago
Owner
* I don't think you need to put everything into ``flake.nix``, nor is it desirable. Can you try to stay closer to the original organization? Would also help review. * There are known problems with newer nixpkgs. The version that works is here: https://git.m-labs.hk/M-Labs/nix-scripts/src/branch/master/artiq-fast/wfvm.nix Might be useful to bisect the problem.
Owner

Is there a URL with a fixed version of the ISO download?

Is there a URL with a fixed version of the ISO download?
mwojcik added 1 commit 6 months ago
mwojcik added 1 commit 6 months ago
Poster
Owner

Even on downgraded nixpkgs it still hangs, same place just without the error noted.

RESTRICTDIST-windows.img> + qemu-img create -f qcow2 c.img 70G
RESTRICTDIST-windows.img> Formatting 'c.img', fmt=qcow2 size=75161927680 cluster_size=65536 lazy_refcounts=off refcount_bits=16
RESTRICTDIST-windows.img> + qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -m 4G -M q35 -vga qxl -rtc base=2020-04-20T14:21:42 -device qemu-xhci -device virtio-net-pci,netdev=n1 -bios /nix/store/jygyr3aki83fypn30s5k8vxzx19y3iz2-OVMF-201905-fd/FV/OVMF.fd -display none -drive id=virtio-win,file=/nix/store/1gk7bagjgs5jd3gljqy5q28axg64vj49-bootstrap-win-pkgs.img,if=none,format=raw,readonly=on -device usb-storage,drive=virtio-win -drive id=win-install,file=usbimage.img,if=none,format=raw,readonly=on,media=disk -device usb-storage,drive=win-install -drive file=c.img,index=0,media=disk,if=virtio,cache=unsafe -netdev user,id=n1,net=192.168.1.0/24,restrict=on
[1/8/10 built, 43 copied (1319.1/1319.2 MiB), 231.7 MiB DL] building RESTRICTDIST-windows.img
Even on downgraded nixpkgs it still hangs, same place just without the error noted. ``` RESTRICTDIST-windows.img> + qemu-img create -f qcow2 c.img 70G RESTRICTDIST-windows.img> Formatting 'c.img', fmt=qcow2 size=75161927680 cluster_size=65536 lazy_refcounts=off refcount_bits=16 RESTRICTDIST-windows.img> + qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -m 4G -M q35 -vga qxl -rtc base=2020-04-20T14:21:42 -device qemu-xhci -device virtio-net-pci,netdev=n1 -bios /nix/store/jygyr3aki83fypn30s5k8vxzx19y3iz2-OVMF-201905-fd/FV/OVMF.fd -display none -drive id=virtio-win,file=/nix/store/1gk7bagjgs5jd3gljqy5q28axg64vj49-bootstrap-win-pkgs.img,if=none,format=raw,readonly=on -device usb-storage,drive=virtio-win -drive id=win-install,file=usbimage.img,if=none,format=raw,readonly=on,media=disk -device usb-storage,drive=win-install -drive file=c.img,index=0,media=disk,if=virtio,cache=unsafe -netdev user,id=n1,net=192.168.1.0/24,restrict=on [1/8/10 built, 43 copied (1319.1/1319.2 MiB), 231.7 MiB DL] building RESTRICTDIST-windows.img ```
Owner

Could be the different Windows ISO perhaps?
I put the original one in your home folder. xks67i4frg8k7rmlv5298aac0s4n5nih-RESTRICTDIST-release_svc_refresh_CLIENT_LTSC_EVAL_x64FRE_en-us.iso

Could be the different Windows ISO perhaps? I put the original one in your home folder. xks67i4frg8k7rmlv5298aac0s4n5nih-RESTRICTDIST-release_svc_refresh_CLIENT_LTSC_EVAL_x64FRE_en-us.iso
Poster
Owner

How long should it take? Doesn't seem like the older ISO helped, but maybe I should leave it on for an hour or two.

How long should it take? Doesn't seem like the older ISO helped, but maybe I should leave it on for an hour or two.
Owner

If you use the "impure" mode to debug, you should be able to see the VM screen.

If you use the "impure" mode to debug, you should be able to see the VM screen.
Poster
Owner

Would it make sense that it's actually stuck on the OS choosing screen? MS may have changed the installer's behaviour...

image

Would it make sense that it's actually stuck on the OS choosing screen? MS may have changed the installer's behaviour... ![image](/attachments/bbb05816-003a-4866-a294-6f8e7d541b37)
mwojcik added 1 commit 6 months ago
Owner

It's supposed to do a fully unattended install based on the provided XML data generated by wfvm/autounattend.nix. But just like a lot of Microsoft software, the XML parser for such installs is crippled with bugs and other problems; obscure failures without an error message are common. Those were sorted out before though, and the ISO I gave you is supposed to install without such trouble. Are you sure you are still generating and feeding the XML data exactly as before?

It's supposed to do a fully unattended install based on the provided XML data generated by wfvm/autounattend.nix. But just like a lot of Microsoft software, the XML parser for such installs is crippled with bugs and other problems; obscure failures without an error message are common. Those were sorted out before though, and the ISO I gave you is supposed to install without such trouble. Are you sure you are still generating and feeding the XML data exactly as before?
Poster
Owner

Yeah, the XML data should be fed, I haven't changed a thing from the previous file and the bootstrap img file is still created.

All the files called by qemu-system-x86_64 are present, autounattend is created too, but qemu itself is still complaining about missing files? Could that be the issue, that it's not actually seeing the XML file?

image

Although newer ISO first complained about being unable to read <ProductKey> from the unattend file, but then throws this error anyway:

image

Yeah, the XML data should be fed, I haven't changed a thing from the previous file and the bootstrap img file is still created. All the files called by qemu-system-x86_64 are present, autounattend is created too, but qemu itself is still complaining about missing files? Could that be the issue, that it's not actually seeing the XML file? ![image](/attachments/a400e717-aeeb-4ac6-9d31-72bfd785a5d2) Although newer ISO first complained about being unable to read ``<ProductKey>`` from the unattend file, but then throws this error anyway: ![image](/attachments/e62d3de0-c61b-4fda-9282-926aede93851)
mwojcik added 2 commits 5 months ago
ebbcf84c4b * install first image instead by name
mwojcik added 1 commit 5 months ago
Poster
Owner

Just realized that it's stuck at that because the image name doesn't match. Replaced the name in autounattend with index.

Image will now build but now it's stuck at DisablePasswordExpiry.

❯ nix build .#demo-image -L
RESTRICTDIST-DisablePasswordExpiry.img> Formatting 'c.img', fmt=qcow2 size=75161927680 backing_file=/nix/store/pa20i1q99prn4cqqi7g8w6d3b2m98zbl-RESTRICTDIST-windows.img cluster_size=65536 lazy_refcounts=off refcount_bits=16
RESTRICTDIST-DisablePasswordExpiry.img> Waiting for SSH...
RESTRICTDIST-DisablePasswordExpiry.img> Connection timed out during banner exchange
RESTRICTDIST-DisablePasswordExpiry.img> Retrying in 1 second, timing out in 600 seconds

However, this also seems to be the case for the non-nix build process:

building '/nix/store/306ykn3w4awaai6r2ciiiwf5nnbc3ipj-RESTRICTDIST-DisablePasswordExpiry.img.drv'...
qemu-img: c.img: Backing file specified without backing format
Detected format of qcow2.
error: builder for '/nix/store/306ykn3w4awaai6r2ciiiwf5nnbc3ipj-RESTRICTDIST-DisablePasswordExpiry.img.drv' failed with exit code 1;
       last 2 log lines:
       > qemu-img: c.img: Backing file specified without backing format
       > Detected format of qcow2.
       For full logs, run 'nix log /nix/store/306ykn3w4awaai6r2ciiiwf5nnbc3ipj-RESTRICTDIST-DisablePasswordExpiry.img.drv'.
Just realized that it's stuck at that because the image name doesn't match. Replaced the name in autounattend with index. Image will now build but now it's stuck at DisablePasswordExpiry. ``` ❯ nix build .#demo-image -L RESTRICTDIST-DisablePasswordExpiry.img> Formatting 'c.img', fmt=qcow2 size=75161927680 backing_file=/nix/store/pa20i1q99prn4cqqi7g8w6d3b2m98zbl-RESTRICTDIST-windows.img cluster_size=65536 lazy_refcounts=off refcount_bits=16 RESTRICTDIST-DisablePasswordExpiry.img> Waiting for SSH... RESTRICTDIST-DisablePasswordExpiry.img> Connection timed out during banner exchange RESTRICTDIST-DisablePasswordExpiry.img> Retrying in 1 second, timing out in 600 seconds ``` However, this also seems to be the case for the non-nix build process: ``` building '/nix/store/306ykn3w4awaai6r2ciiiwf5nnbc3ipj-RESTRICTDIST-DisablePasswordExpiry.img.drv'... qemu-img: c.img: Backing file specified without backing format Detected format of qcow2. error: builder for '/nix/store/306ykn3w4awaai6r2ciiiwf5nnbc3ipj-RESTRICTDIST-DisablePasswordExpiry.img.drv' failed with exit code 1; last 2 log lines: > qemu-img: c.img: Backing file specified without backing format > Detected format of qcow2. For full logs, run 'nix log /nix/store/306ykn3w4awaai6r2ciiiwf5nnbc3ipj-RESTRICTDIST-DisablePasswordExpiry.img.drv'. ```
Owner

RESTRICTDIST-DisablePasswordExpiry.img> Retrying in 1 second, timing out in 600 seconds

Did you let it retry? Sometimes it takes a few attempts.

> RESTRICTDIST-DisablePasswordExpiry.img> Retrying in 1 second, timing out in 600 seconds Did you let it retry? Sometimes it takes a few attempts.
Poster
Owner

I let it run for the entire 600 seconds, to no avail.

I let it run for the entire 600 seconds, to no avail.
This pull request is marked as a work in progress.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.