Virt-win-reg gives weird error
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? Regards, Peter
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
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@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
On Tue, Apr 11, 2017 at 09:17:32PM +0300, Keresztes Péter-Zoltán wrote:
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.
--merge is expecting a .reg file containing the key that you want to merge, eg: virt-win-reg --merge vm-1057-disk-1.qcow2 input.reg There's no way to specify a single key on the command line (and even if there was, you'd have to quote it properly). See: http://libguestfs.org/virt-win-reg.1.html Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
participants (2)
-
Keresztes Péter-Zoltán -
Richard W.M. Jones