Nikolay Ivanets
2022-Mar-30 23:08 UTC
[Libguestfs] inspect-os cannot detect Windows hostname
Hello I've faced several different cases where inspect-os cannot detect Windows hostname. I see the following message during inspect-os call (in debug mode): check_windows_system_registry: cannot locate HKLM\SYSTEM\ControlSet001\Services\Tcpip\Parameters and/or Hostname key inspect-get-hostname returns 'unknown' in such case:><fs> inspect-get-hostname /dev/sda1unknown However, hostname can be read using:><fs> mount /dev/sda1 / ><fs> debug sh 'hivexget /sysroot/Windows/System32/config/SYSTEMControlSet001\\Services\\Tcpip\\Parameters hostname' MidServerNew A sample registry hive is attached. -- Mykola Ivanets -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libguestfs/attachments/20220331/3e7d19e7/attachment-0001.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: SYSTEM.xz Type: application/octet-stream Size: 6325592 bytes Desc: not available URL: <http://listman.redhat.com/archives/libguestfs/attachments/20220331/3e7d19e7/attachment-0001.obj>