Thanks,
Turned out I need to install libhivex-bin in order to work, however now when I run the
command before I am getting the following error:
virt-win-reg --merge vm-1057-disk-1.qcow2
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"Test"="C:\\Users\\Administrator\\test.bat" --debug
launching libguestfs ... at /usr/local/bin/virt-win-reg line 245.
inspecting guest ... at /usr/local/bin/virt-win-reg line 294.
open: [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRunOnce]: No such file or
directory at /usr/local/bin/virt-win-reg line 359.
Any suggestions?
Regards,
Peter
On 11 Apr 2017, at 20:37, Richard W.M. Jones
<rjones(a)redhat.com> wrote:
On Tue, Apr 11, 2017 at 02:12:26PM +0300, Keresztes Péter-Zoltán wrote:
> Hello,
>
> I have just compiled the libguestfs version 1.34.2.
>
> When I run virt-win-reg vm-1051-disk-1.qcow2
'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce'
"Test"="c:\\Users\Administrator\test.bat” I get the following error:
>
> Can't exec "hivexget": No such file or directory at
/usr/local/bin/virt-win-reg line 351.
> hivexget failed: -1 at /usr/local/bin/virt-win-reg line 351.
>
> Any idea how to fix it?
Yup, you need to install that program in order to export single keys.
It should be a dependency of virt-win-reg, assuming you installed it
from a distro package. If not then it's part of the hivex package.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW