Re: [Libguestfs] [PATCH 0/2] Fixes and tweak to the installation of qemu-ga MSI

2020-02-05 Thread Tomáš Golembiovský
On Mon, Jan 27, 2020 at 04:59:55PM +0100, Pino Toscano wrote:
> On Thursday, 21 November 2019 12:11:00 CET Tomáš Golembiovský wrote:
> > This, together with the changes to common repo are fixes to the installation
> > qemu-ga MSI.
> 
> I pushed patch #1 because it is OK for me.
> 
> I did not push patch #2 because I do not have experience with
> powershell, so I cannot review it ATM.
> 
> > There is still an issue that I did not figure yet how to fix. On Windows 10 
> > it
> > fails to register the QEMU-GA service.
> 
> Can you please explain which kind of issues did you notice?

The main problem is this error that I get quite often is that qemu-ga
fails to register the VSS service. On the same guest it sometimes works
and sometimes it fails. And it happens only when installing in first
boot, installing manually always works.

>From installer log:

MSI (s) (C4:00) [13:59:58:205]: Executing op: 
ServiceInstall(Name=QEMU-GA,DisplayName=QEMU Guest Agent,ImagePath="C:\Program 
Files\Qemu-ga\qemu-ga.exe" -d 
--retry-path,ServiceType=16,StartType=2,ErrorControl=0,,Dependencies=[~],,StartName=LocalSystem,Password=**,Description=QEMU
 Guest Agent,,)
MSI (s) (C4:00) [13:59:58:205]: Executing op: ActionStart(Name=RegisterCom,,)
MSI (s) (C4:00) [13:59:58:221]: Executing op: 
CustomActionSchedule(Action=RegisterCom,ActionType=3122,Source=cmd.exe,Target=/c
 "C:\Program Files\Qemu-ga\qemu-ga.exe" -s vss-install,)
MSI (s) (C4:00) [14:00:00:299]: Note: 1: 1722 2: RegisterCom 3: cmd.exe 4: /c 
"C:\Program Files\Qemu-ga\qemu-ga.exe" -s vss-install 
MSI (s) (C4:00) [14:00:00:299]: Note: 1: 2262 2: Error 3: -2147287038 
CustomAction RegisterCom returned actual error code 1 (note this may not be 
100% accurate if translation happened inside sandbox)
MSI (s) (C4:00) [14:00:00:299]: Note: 1: 2262 2: Error 3: -2147287038 
MSI (s) (C4:00) [14:00:00:299]: Product: QEMU guest agent -- Error 1722. There 
is a problem with this Windows Installer package. A program run as part of the 
setup did not finish as expected. Contact your support personnel or package 
vendor.  Action RegisterCom, location: cmd.exe, command: /c "C:\Program 
Files\Qemu-ga\qemu-ga.exe" -s vss-install 

Error 1722. There is a problem with this Windows Installer package. A program 
run as part of the setup did not finish as expected. Contact your support 
personnel or package vendor.  Action RegisterCom, location: cmd.exe, command: 
/c "C:\Program Files\Qemu-ga\qemu-ga.exe" -s vss-install 


The cryptic error[1] code -2147287038 seems to be:

STG_E_INVALIDFUNCTION 0x80030001Unable to perform requested operation.

I haven't figured out yet why is it happening. 

Tomas

[1] https://docs.microsoft.com/en-us/windows/win32/com/com-error-codes-3


> 
> Thanks,
> -- 
> Pino Toscano



-- 
Tomáš Golembiovský 


___
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

Re: [Libguestfs] [PATCH 0/2] Fixes and tweak to the installation of qemu-ga MSI

2020-01-27 Thread Pino Toscano
On Thursday, 21 November 2019 12:11:00 CET Tomáš Golembiovský wrote:
> This, together with the changes to common repo are fixes to the installation
> qemu-ga MSI.

I pushed patch #1 because it is OK for me.

I did not push patch #2 because I do not have experience with
powershell, so I cannot review it ATM.

> There is still an issue that I did not figure yet how to fix. On Windows 10 it
> fails to register the QEMU-GA service.

Can you please explain which kind of issues did you notice?

Thanks,
-- 
Pino Toscano

signature.asc
Description: This is a digitally signed message part.
___
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

Re: [Libguestfs] [PATCH 0/2] Fixes and tweak to the installation of qemu-ga MSI

2019-12-04 Thread Richard W.M. Jones


Sorry I missed these patches before, thanks for reminding me.

Yes both series are fine.  I don't particularly care about needing
Powershell since I believe all *supported* versions of Windows now
have it, or (in the XP case) are upgradable to having it as long as
you make the very reasonable assumption that they are using a service
pack.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top

___
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs



[Libguestfs] [PATCH 0/2] Fixes and tweak to the installation of qemu-ga MSI

2019-11-21 Thread Tomáš Golembiovský
This, together with the changes to common repo are fixes to the installation
qemu-ga MSI.

There is still an issue that I did not figure yet how to fix. On Windows 10 it
fails to register the QEMU-GA service.

Tomáš Golembiovský (2):
  windows: fix detection of qemu-ga installer on RHV
  windows: small tweaks of qemu-ga firstboot script

 v2v/convert_windows.ml | 8 +++-
 v2v/windows_virtio.ml  | 5 ++---
 2 files changed, 9 insertions(+), 4 deletions(-)

-- 
2.24.0


___
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs