mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
This commit changes substantially the way that we get information about Windows guests. We now use the Windows Registry to get information such as the version, product name and much else. This uses Win::Hivex (ie. the hivex library). 'reged' is no longer needed or used. As an incidental change, this also tries harder to search for %systemroot%, in the case when we cannot find boot.ini (ie. Windows Vista and more recent). This ensures we can get more detail from those versions of Windows.
21 lines
569 B
XML
21 lines
569 B
XML
<operatingsystems>
|
|
<operatingsystem>
|
|
<name>windows</name>
|
|
<product_name>Microsoft Windows Server 2003</product_name>
|
|
<arch>i386</arch>
|
|
<major_version>5</major_version>
|
|
<minor_version>2</minor_version>
|
|
<root>/dev/sda1</root>
|
|
<mountpoints>
|
|
<mountpoint dev="/dev/sda1">/</mountpoint>
|
|
</mountpoints>
|
|
<filesystems>
|
|
<filesystem dev="/dev/sda1">
|
|
<type>ntfs</type>
|
|
<content>windows-root</content>
|
|
</filesystem>
|
|
</filesystems>
|
|
<applications></applications>
|
|
</operatingsystem>
|
|
</operatingsystems>
|