guestfs-tools updates, flakify, Windows 11 #15

Merged
sb10q merged 1 commits from astro/wfvm:master into master 2024-08-17 17:37:23 +08:00
Collaborator

Pick esp. the guestfs-tools commit if you want to update your dependencies. The package is only now in nixos-unstable, eventually arriving in nixos-22.11.

I am using WFVM as a Flake now.

Pick esp. the guestfs-tools commit if you want to update your dependencies. The package is only now in nixos-unstable, eventually arriving in nixos-22.11. I am using WFVM as a Flake now.
astro added 9 commits 2022-10-13 09:36:31 +08:00
tools like virt-make-fs have been split off into a separate package.
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/c5924154f000e6306030300592f4282949b2db6c' (2022-10-08)
  → 'github:nixos/nixpkgs/285e77efe87df64105ec14b204de6636fb0a7a27' (2022-10-11)
required since qemu 6.1.0
astro changed title from Updates to guestfs-tools updates, flakify 2022-10-13 09:36:49 +08:00
sb10q requested review from mwojcik 2022-10-13 10:29:53 +08:00
Owner

@astro Thanks a lot!

@astro Thanks a lot!
Owner

Looks good to me. Simple enough.

I'd just ask for updating README instructions with flake with at least a mention - maybe add demo-image derivation there too, although that's not entirely necessary.

Looks good to me. Simple enough. I'd just ask for updating README instructions with flake with at least a mention - maybe add demo-image derivation there too, although that's not entirely necessary.
Owner

Actually I would be very curious how you actually use it with flakes, as I can't get it to work. I'd be very grateful if you left me some more instructions maybe, either here or Mattermost.
I got the original Win10_21H1 ISO file, however calling:

nix repl
:lf .
:b lib.makeWindowsImage { imageSelection = "Windows 10 Pro"; productKey = "..."; }```
causes it to hang at:

[1/3/5 built, 0.0 MiB DL] building RESTRICTDIST-windows.img: qxl_send_events: spice-server bug: guest stopped, ignoring


which is something I have experienced already...
Actually I would be very curious how you actually use it with flakes, as I can't get it to work. I'd be very grateful if you left me some more instructions maybe, either here or Mattermost. I got the original Win10_21H1 ISO file, however calling: ``` nix repl :lf . :b lib.makeWindowsImage { imageSelection = "Windows 10 Pro"; productKey = "..."; }``` causes it to hang at: ``` [1/3/5 built, 0.0 MiB DL] building RESTRICTDIST-windows.img: qxl_send_events: spice-server bug: guest stopped, ignoring ``` which is something I have experienced already...
astro added 4 commits 2022-10-14 05:50:40 +08:00
Author
Collaborator

I can reproduce the hang with demo-image...

I can reproduce the hang with demo-image...
Owner

Side note: maybe the MSVC stuff should be done as impure derivations, which have recently landed in Nix. In true Windows ME fashion, Microsoft worked very hard to make downloads and installations of the VS trashware as non-reproducible as possible, and the hashes there aren't really useful as they don't last longer than a few weeks.

Eventually we will move to MSYS2 which doesn't have this kind of problem, and also does not contain spyware.

Side note: maybe the MSVC stuff should be done as impure derivations, which have recently landed in Nix. In true Windows ME fashion, Microsoft worked very hard to make downloads and installations of the VS trashware as non-reproducible as possible, and the hashes there aren't really useful as they don't last longer than a few weeks. Eventually we will move to MSYS2 which doesn't have this kind of problem, and also does not contain spyware.
Author
Collaborator

The demo-image only hangs for me in pure mode, not with impureMode = true. Upon the 20th retry the installation went through. This heisenbug makes me desperate, I need new ideas.

The demo-image only hangs for me in pure mode, not with `impureMode = true`. Upon the 20th retry the installation went through. This heisenbug makes me desperate, I need new ideas.
Author
Collaborator

Also, the msvc layer requires an image to run on. In Windows 10 21H2 however the installation aborts early (hangs the build) if productKey is missing.

If running without a product key is still your use-case we should find an up to date version that runs for 90d like that.

Also, the msvc layer requires an image to run on. In Windows 10 21H2 however the installation aborts early (hangs the build) if `productKey` is missing. If running without a product key is still your use-case we should find an up to date version that runs for 90d like that.
astro added 12 commits 2023-05-25 21:59:44 +08:00
astro changed title from guestfs-tools updates, flakify to guestfs-tools updates, flakify, Windows 11 2023-05-25 22:00:12 +08:00
Author
Collaborator

Hi!

My fork is now updated to Windows 11. I found a fix to run with productKey = null; by adding <Key/> to the unattended.xml.

Please evaluate and consider merging.

Hi! My fork is now updated to Windows 11. I found a fix to run with `productKey = null;` by adding `<Key/>` to the unattended.xml. Please evaluate and consider merging.
astro added 1 commit 2023-05-26 06:15:25 +08:00
astro requested review from sb10q 2023-05-26 18:10:02 +08:00
sb10q merged commit 3694b0a9f2 into master 2023-05-27 14:51:28 +08:00
Owner

@astro Thanks!

@astro Thanks!
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/wfvm#15
No description provided.