Bug 1281578 - virt-inspector returns version 6.3 for win10 images (should return 10.0)
Summary: virt-inspector returns version 6.3 for win10 images (should return 10.0)
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-12 20:44 UTC by Richard Tollerton
Modified: 2015-11-13 19:00 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-13 19:00:11 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard Tollerton 2015-11-12 20:44:12 UTC
Allegedly HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion is now locked at 6.3 (i.e. win8.1) and there are new, undocumented values HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentMajorVersionNumber and HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentMinorVersionNumber that need to be checked. cf http://stackoverflow.com/questions/31072543/reliable-way-to-get-windows-version-from-registry.

Workaround is to use ProductName instead.

Comment 1 Richard W.M. Jones 2015-11-12 22:45:33 UTC
Oh that is nuts.  Thanks for altering me to this change.

Comment 2 Richard Tollerton 2015-11-12 23:14:34 UTC
Related question: I only care about this because virt-install isn't autodetecting --os-variant on an existing disk image (or at least it's not documented as doing so). Should I file a bug report with them on this? Or are virt-manager dependencies on libguestfs a problem?

Comment 3 Richard W.M. Jones 2015-11-13 08:51:50 UTC
(In reply to Richard Tollerton from comment #2)
> Related question: I only care about this because virt-install isn't
> autodetecting --os-variant on an existing disk image (or at least it's not
> documented as doing so). Should I file a bug report with them on this? Or
> are virt-manager dependencies on libguestfs a problem?

Yes, file separate bugs for anything that affects a different component.

Comment 4 Richard W.M. Jones 2015-11-13 11:50:24 UTC
Untested patch posted:
https://www.redhat.com/archives/libguestfs/2015-November/thread.html#00137

Comment 5 Richard Tollerton 2015-11-13 18:47:05 UTC
I have validated the fix in a build from patched master.

Comment 6 Richard W.M. Jones 2015-11-13 18:52:05 UTC
For reference, the correct fix was:
https://www.redhat.com/archives/libguestfs/2015-November/msg00141.html

Comment 7 Richard W.M. Jones 2015-11-13 19:00:11 UTC
Fixed in 1.31.26.


Note You need to log in before you can comment on or make changes to this bug.