Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lxd-imagebuilder: Improve win repack (from Incus) #86

Merged
merged 14 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ ifeq ($(shell command -v golangci-lint 2> /dev/null),)
go install github.com/golangci/golangci-lint/cmd/[email protected]
endif
golangci-lint run --timeout 5m
run-parts --exit-on-error --regex '.sh' test/lint
run-parts $(shell run-parts -V 2> /dev/null 1> /dev/null && echo -n "--exit-on-error --regex '.sh'") test/lint
1 change: 1 addition & 0 deletions doc/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ Ubuntu
UI
UUID
VM
XP
YAML
19 changes: 18 additions & 1 deletion doc/tutorials/use.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,24 @@ lxc-start -n myContainerImage
With LXD it's possible to run Windows VMs. All you need is a Windows ISO and a bunch of drivers.
To make the installation a bit easier, `lxd-imagebuilder` added the `repack-windows` command. It takes a Windows ISO, and repacks it together with the necessary drivers.

Currently, `lxd-imagebuilder` supports Windows 10, Windows Server 2012, Windows Server 2016, Windows Server 2019 and Windows Server 2022. The Windows version will automatically be detected, but in case this fails you can use the `--windows-version` flag to set it manually. It supports the values `w10`, `2k12`, `2k16`, `2k19` and `2k22` for Windows 10, Windows Server 2012, Windows Server 2016, Windows Server 2019 and Windows Server 2022 respectively.
The `lxd-imagebuilder` will automatically detect the Windows version, however, it is possible to set the version manually using `--windows-version` flag, which allows the following values:

Flag value | Version
---------- | ----------------------
`w11` | Windows 11
`w10` | Windows 10
`w8` | Windows 8
`w8.1` | Windows 8.1
`w7` | Windows 7
`xp` | Windows XP
`2k22` | Windows Server 2022
`2k19` | Windows Server 2019
`2k16` | Windows Server 2016
`2k12` | Windows Server 2012
`2k12r2` | Windows Server 2012 R2
`2k8` | Windows Server 2008
`2k8r2` | Windows Server 2008 R2
`2k3` | Windows Server 2003

Here's how to repack a Windows ISO:

Expand Down
Loading
Loading