Skip to content

Update output format and do a build check - #30

Closed
MahatiC wants to merge 1 commit into
mainfrom
output-changes
Closed

Update output format and do a build check#30
MahatiC wants to merge 1 commit into
mainfrom
output-changes

Conversation

@MahatiC

@MahatiC MahatiC commented Apr 10, 2026

Copy link
Copy Markdown
Member

No description provided.

Comment thread cmd/dmverity-vhd/cim.go
// Debug mode: warn but allow execution
log.WithFields(log.Fields{
"current_build": build,
"required_build": 26100,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need the more than this. 26100 => Windows 2025. There is a version number of WS2025 (today's one) that we require. Note that my Windows 11 25H2 is 26200.7985 and it is not suitable. I guess you need to check xxxxx.yyyy where xxxxx == 26100 and yyyy >= today's build.

Comment thread README.md
- `roothash` command outputs JSON with `layers` array and `mounted_cim` field

**Note:** Windows CIM creation requires the Windows cimwriter.dll. On Linux, you can use WSL2 with Windows interop enabled to run the `.exe` binary. But to get deterministic hashes on image repull, you need to use this tool on a WS2025 OS.
**Note:** Windows CIM creation requires the Windows CimWriter.dll. On Linux, you can use WSL2 to run the `.exe` binary. For deterministic hashes on image repull, you need to use this tool on Windows Server 2025 or later.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to specify the particular minimum WS2025

Comment thread cmd/dmverity-vhd/main.go
tarballFlag = "tarball"
hashDeviceVhdFlag = "hash-dev-vhd"
dataVhdFlag = "data-vhd"
debugSkipVersionFlag = "debug-skip-version-check"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not entirely debug. We'll need it when using base2-hyp. Can I suggest "ignore-windows-version". There might also be a check in the hcsshim code BTW.

@KenGordon

Copy link
Copy Markdown
Contributor

BTW this windows check is not critical path. I will approve the PR if you think it will take time to sort out. In particular you can't know the actual version to check until Monday most likely.

@MahatiC

MahatiC commented Apr 10, 2026

Copy link
Copy Markdown
Member Author

Closing in favour of #31

@MahatiC MahatiC closed this Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants