[Libguestfs] Virt-win-reg gives weird error

Richard W.M. Jones rjones at redhat.com
Tue Apr 11 18:43:06 UTC 2017


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/




More information about the Libguestfs mailing list