RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1387125 - QEMU guest agent VSS Provider is crashed after snapshot deletion
Summary: QEMU guest agent VSS Provider is crashed after snapshot deletion
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virtio-win
Version: 7.3
Hardware: x86_64
OS: Windows
unspecified
high
Target Milestone: rc
: 7.4
Assignee: Yvugenfi@redhat.com
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1401400
TreeView+ depends on / blocked
 
Reported: 2016-10-20 07:39 UTC by boruvka.michal
Modified: 2017-08-01 12:53 UTC (History)
18 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 12:53:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
windows error if I create snapshot (68.00 KB, application/octet-stream)
2016-10-20 07:39 UTC, boruvka.michal
no flags Details
windows error after snapshot deletion (68.00 KB, application/octet-stream)
2016-10-20 07:40 UTC, boruvka.michal
no flags Details
Create snapshot - error in ovirt (763.92 KB, image/jpeg)
2016-10-27 05:06 UTC, boruvka.michal
no flags Details
screenshot before deletion (803.92 KB, image/jpeg)
2016-10-27 05:07 UTC, boruvka.michal
no flags Details
screenshot after deletion (782.45 KB, image/jpeg)
2016-10-27 05:08 UTC, boruvka.michal
no flags Details
qemu-ga-freeze-thaw-error (98.66 KB, image/png)
2016-11-17 07:51 UTC, xiagao
no flags Details
error info (97.97 KB, image/png)
2016-11-22 03:20 UTC, xiagao
no flags Details
freeze-error (92.23 KB, image/png)
2016-11-22 07:53 UTC, xiagao
no flags Details
thaw-error (87.69 KB, image/png)
2016-11-22 07:54 UTC, xiagao
no flags Details
create and delete snapshot by rhevm (747.43 KB, application/x-gzip)
2016-11-26 09:21 UTC, xiagao
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2341 0 normal SHIPPED_LIVE virtio-win bug fix and enhancement update 2017-08-01 16:52:38 UTC

Description boruvka.michal 2016-10-20 07:39:32 UTC
Created attachment 1212375 [details]
windows error if I create snapshot

Description of problem:
QEMU guest agent VSS Provider is crashed after snapshot deletion.
If I create snapshot in Windows VM log is some permission problem.


Version-Release number of selected component (if applicable):
Windows 2012R2
Qemu guest agent 7.3.2
ovirt guest tools 4.0-1
ovirt engine 4.0.4.4-1

How reproducible:
always

Steps to Reproduce:
1. create snapshot
2. delete snapshot
3.

Actual results:
QEMU guest agent VSS Provider is crashed after snapshot deletion

Expected results:


Additional info:
If I create snapshot in ovirt dialog is message:
Could not detect Guest Agent on the VM. Note that without a Guest Agent the data on the created snapshot may be inconsistent.

Comment 1 boruvka.michal 2016-10-20 07:40:53 UTC
Created attachment 1212376 [details]
windows error after snapshot deletion

Comment 2 Sandro Bonazzola 2016-10-24 07:58:30 UTC
Moving to virtio-win according to https://fedoraproject.org/wiki/Windows_Virtio_Drivers

In oVirt guest tools we can only consume a fix provided by virtio-win if available.

Please open a rebase bug for oVirt/ovirt guest tools when / if a fix is available.

Comment 3 Xueqiang Wei 2016-10-27 02:46:24 UTC
To reproduce this bug, use ovirt guest tools 4.0-1 and ovirt engine 4.0.4.4-1 are necessary, right? Please tell me some details, many thanks.

I can not reproduce this bug by the below steps on Windows 2012R2

1. install Qemu guest agent 7.3.2, and start qemu-ga/QEMU guest agent VSS Provider service
2. create snapshot
HMP: #(qemu) snapshot_blkdev drive-virtio-disk-0 /some/place/my-image qcow2
QMP: #{ "execute": "snapshot_blkdev", "arguments": { "device": "drive-virtio-disk-0", "snapshot-file": "/some/place/my-image", "format": "qcow2" } }
3. delete snapshot
4. lookup event viewer in guest, not found QEMU guest agent VSS Provider is crashed

Comment 4 boruvka.michal 2016-10-27 05:06:21 UTC
Created attachment 1214484 [details]
Create snapshot - error in ovirt

Comment 5 boruvka.michal 2016-10-27 05:07:25 UTC
Created attachment 1214485 [details]
screenshot before deletion

Comment 6 boruvka.michal 2016-10-27 05:08:15 UTC
Created attachment 1214486 [details]
screenshot after deletion

Comment 7 boruvka.michal 2016-10-27 05:13:48 UTC
I tested it in ovirt 4.0.4.4-1 and 3.6.7.5-1 and situation is same. Qemu GA is installed from oVirt-toolsSetup_4.0-1.fc23.iso. Some screenshots are in attachement.

Comment 8 Vadim Rozenfeld 2016-10-27 07:50:08 UTC
(In reply to boruvka.michal from comment #7)
> I tested it in ovirt 4.0.4.4-1 and 3.6.7.5-1 and situation is same. Qemu GA
> is installed from oVirt-toolsSetup_4.0-1.fc23.iso. Some screenshots are in
> attachement.

Hi Michal,

Can it be that you have any third-party anti-virus installed and running on your system?

Thanks,
Vadim.

Comment 9 boruvka.michal 2016-10-27 07:54:14 UTC
No. There is no antivirus. Its fresh windows instalation.

Comment 11 Xueqiang Wei 2016-11-02 05:40:19 UTC
(In reply to Amnon Ilan from comment #10)
> Xueqiang, Have you managed to reproduce it?


I can not reproduce this bug by the below steps on Windows 2012R2.

host info: kernel-3.10.0-510.el7.x86_64, qemu-kvm-rhev-2.6.0-28.el7

1. install Qemu guest agent 7.3.2, and start qemu-ga/QEMU guest agent VSS Provider service
2. create snapshot
HMP: #(qemu) snapshot_blkdev drive-virtio-disk-0 /some/place/my-image qcow2
QMP: #{ "execute": "snapshot_blkdev", "arguments": { "device": "drive-virtio-disk-0", "snapshot-file": "/some/place/my-image", "format": "qcow2" } }
3. delete snapshot
4. lookup event viewer in guest, not found QEMU guest agent VSS Provider is crashed


This issue maybe due to ovirt guest tools 4.0-1 and ovirt engine 4.0.4.4-1. I will test with ovirt tools.

Comment 12 boruvka.michal 2016-11-16 10:20:50 UTC
Hello,
did you find any solution for my problem?
M.

Comment 13 Xueqiang Wei 2016-11-16 11:15:21 UTC
(In reply to boruvka.michal from comment #12)
> Hello,
> did you find any solution for my problem?
> M.

I can not reproduce it under qemu commandline. Suggest you ask libvirt qe for help. Maybe they're familiar with the ovirt tools.

Comment 14 Miya Chen 2016-11-16 14:10:54 UTC
Michal, please have a check of Xueqiang's test in comment#11 and see what's the difference with yours.

Comment 15 lijin 2016-11-17 03:03:18 UTC
could you provide the virtio-serial driver version?
steps:
device manager ---> System Device ---> VirtIO Serial Driver ---> double click ---> select Driver tab ---> Driver Version

Comment 16 boruvka.michal 2016-11-17 06:26:14 UTC
Driver Date: 5/30/2016
Driver Version: 62.73.104.11800

Comment 17 xiagao 2016-11-17 07:50:23 UTC
Hi all,

I reproduced this bug on Win7-32 guest with virtio-win-1.8.0-1.el6 version. I think the root cause is the qemu-ga cmd of "guest-fsfreeze-freeze/guest-fsfreeze-thaw". 


The following are the detailed info.

host:
kernel:2.6.32-667.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.496.el6.x86_64

guest:
virtio-win-1.8.0-1.el6
win7-32

1.boot up guest with cmd line
 /usr/libexec/qemu-kvm -S -name avocado-vt-vm1 -machine rhel6.6.0 -nodefaults -vga std -m 8G -smp 8 -drive file=/home/win7-32-virtio.qcow2,if=none,id=drive-ide0-0-0,format=qcow2,cache=none -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=0 -drive id=drive_virtio,if=none,snapshot=off,aio=native,cache=none,media=cdrom,file=/usr/share/virtio-win2/virtio-win-1.8.0.iso -device ide-drive,id=virtio,drive=drive_virtio,bootindex=4,bus=ide.1,unit=1 -netdev tap,script=/etc/qemu-ifup,downscript=no,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=00:52:0a:5c:f1:1d -vnc :1 -rtc base=localtime,clock=host,driftfix=slew -boot order=cd,menu=on -enable-kvm -monitor stdio -qmp tcp:0:1235,server,nowait -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x7 -chardev socket,path=/tmp/qga.sock,server,nowait,id=qga0 -device virtserialport,bus=virtio-serial0.0,chardev=qga0,name=org.qemu.guest_agent.0

2.install serial driver and qemu-ga-x86.msi in guest
check windows guest ,qemu-ga and qemu-ga vss provider service is running well

3.Send commands in the host side to freeze guest:
#nc -U /tmp/qga.sock
{"execute":"guest-fsfreeze-status"}
{"return": "thawed"}
{"execute":"guest-fsfreeze-freeze"}
{"return": 2}
{"execute":"guest-fsfreeze-status"}
{"return": "frozen"}


4.Cont to send commands in the host side to thaw guest: 

{"execute":"guest-fsfreeze-thaw"}
{"error": {"desc": "couldn't hold writes: fsfreeze is limited up to 10 seconds:  (error: 80042314)"}}
{"execute":"guest-fsfreeze-status"}
{"return": "thawed"}

5.Check event viewer => Windows Logs =>Application in guest.

Actual result:
VSS ERROR log occured.(refer the attachment)


Other info:
1. Hit this issue on virtio-win-1.9.0-3.el7 + qemu-kvm-rhev-2.6.0-27.el7.x86_64 version 
2. Hit thie issue on virtio-win-1.7.5-1.el6 , the difference is only hit it when send {"execute":"guest-fsfreeze-thaw"} cmd.

Comment 18 xiagao 2016-11-17 07:51:41 UTC
Created attachment 1221502 [details]
qemu-ga-freeze-thaw-error

Comment 19 xiagao 2016-11-17 07:52:57 UTC
I think when doing snapshot creation operation on ovirt, qemu actually did "guest-fsfreeze-freeze"+snapshot+"guest-fsfreeze-thaw" operation.

Hi Michal,

 could you help check whether hit this issue when you create snapshot ? 

Thanks
xiagao

Comment 20 boruvka.michal 2016-11-21 10:22:07 UTC
(In reply to xiagao from comment #19)
> I think when doing snapshot creation operation on ovirt, qemu actually did
> "guest-fsfreeze-freeze"+snapshot+"guest-fsfreeze-thaw" operation.
> 
> Hi Michal,
> 
>  could you help check whether hit this issue when you create snapshot ? 
> 
> Thanks
> xiagao

Hello xiagao,
if I was reproduced your steps I got same error as you. But ovirt probably call different commands, because in VM I was get different error.
Michal

Comment 21 xiagao 2016-11-22 03:17:32 UTC
(In reply to boruvka.michal from comment #20)
> (In reply to xiagao from comment #19)
> > I think when doing snapshot creation operation on ovirt, qemu actually did
> > "guest-fsfreeze-freeze"+snapshot+"guest-fsfreeze-thaw" operation.
> > 
> > Hi Michal,
> > 
> >  could you help check whether hit this issue when you create snapshot ? 
> > 
> > Thanks
> > xiagao
> 
> Hello xiagao,
> if I was reproduced your steps I got same error as you. But ovirt probably
> call different commands, because in VM I was get different error.
> Michal

Hi Michal,

I tried again and i think the error info is the same with you, the error info in attachment,could you check?

BTW,during snapshot creation the guest will momentarily be halted by QEMU to make the data consistent. 
So,when you create snapshot on ovirt,qemu does three things:
1.(agent) guest-fsfreeze-freeze
2.(qemu) snapshot_blkdev drive-ide0-0-0 /home/my-image qcow2
3.(agent) guest-fsfreeze-thaw

Comment 22 xiagao 2016-11-22 03:20:44 UTC
Created attachment 1222563 [details]
error info

Michal, could you tell me the difference between your error and mine.

Comment 23 boruvka.michal 2016-11-22 03:46:10 UTC
(In reply to xiagao from comment #22)
> Created attachment 1222563 [details]
> error info
> 
> Michal, could you tell me the difference between your error and mine.

I have in log some permission error:

Volume Shadow Copy Service error: Unexpected error querying for the IVssWriterCallback interface.  hr = 0x80070005, Access is denied.
. This is often caused by incorrect security settings in either the writer or requestor process. 

Operation:
   Gathering Writer Data

Context:
   Writer Class Id: {e8132975-6f93-4464-a53e-1050253ae220}
   Writer Name: System Writer
   Writer Instance ID: {e6c095ec-b8a4-4891-a86e-cf1900687685}

Comment 24 xiagao 2016-11-22 07:52:08 UTC
(In reply to boruvka.michal from comment #23)
> (In reply to xiagao from comment #22)
> > Created attachment 1222563 [details]
> > error info
> > 
> > Michal, could you tell me the difference between your error and mine.
> 
> I have in log some permission error:
> 
> Volume Shadow Copy Service error: Unexpected error querying for the
> IVssWriterCallback interface.  hr = 0x80070005, Access is denied.
> . This is often caused by incorrect security settings in either the writer
> or requestor process. 
> 
> Operation:
>    Gathering Writer Data
> 
> Context:
>    Writer Class Id: {e8132975-6f93-4464-a53e-1050253ae220}
>    Writer Name: System Writer
>    Writer Instance ID: {e6c095ec-b8a4-4891-a86e-cf1900687685}

Thanks for your quick response.
I tried win2012r2-64 guest, hit the same error above when do guest-fsfreeze-freeze action. hit another error when do uest-fsfreeze-thaw action.
refer to the following attachment.

Comment 25 xiagao 2016-11-22 07:53:48 UTC
Created attachment 1222612 [details]
freeze-error

Comment 26 xiagao 2016-11-22 07:54:39 UTC
Created attachment 1222613 [details]
thaw-error

Comment 27 boruvka.michal 2016-11-22 09:47:30 UTC
Hi xiagao,
Yes. I have the same error. But this thaw-error arrives only, if the time limit is exceeded. 
Michal

Comment 28 xiagao 2016-11-23 03:26:58 UTC
(In reply to boruvka.michal from comment #27)
> Hi xiagao,
> Yes. I have the same error. But this thaw-error arrives only, if the time
> limit is exceeded. 
> Michal

Hi Michal,

 Does vss service crash everytime when you create snapshot and delete snapshot?

Thanks,
xiagao

Comment 29 boruvka.michal 2016-11-23 07:47:33 UTC
Hi xiagao,
vss service crashes everytime when I create snapshot by ovirt. If I call freeze/thaw by hand without creating snapshot, in VM are the same errors, but service VSS don't crash.
M.

Comment 30 xiagao 2016-11-26 09:21:00 UTC
Created attachment 1224529 [details]
create and delete snapshot by rhevm

Test with rhevm env.

hypervisor: qemu-kvm-rhev-2.6.0-27.el7.x86_64
virtio-win: virtio-win-1.9.0.iso
vm: win2012-r2

Tested with rhevm 
1.install win2012r2 guest with rhevm
2.install qemu-ga in guest and start qemu guest agent vss service
QEMU Guest Agent and QEMU Guest Agent VSS Provider are running status

3.create snapshot with rhevm
prompt a tip:
"Could not detect Guest Agent on the VM.Note that without a Guest Agent the data on the created snapshot may be inconsistent."
Continue to create sn successfully and there is no error and vss crash in guest.(refer to the attachment)
windows event viewer: The VSS service is shutting down due to idle timeout.

4.delete snapshot
successful and no error in guest.

Comment 31 boruvka.michal 2016-12-05 13:19:47 UTC
Hello,
I have tested it in RHEV too. I have in RHEV VM same permission errors as in ovirt VM. The VSS is crashed after create/delete snapshot.
If I create snapshot, I have no error in RHEV GUI: "Could not detect Guest Agent on ..."

Red Hat Virtualization Manager Version: 4.0.5.5-0.1.el7ev
hypervisor: qemu-kvm-rhev-2.6.0-27.el7.x86_64
qemu GA: 7.3.2
VM: fresh W2012R2 installation

M.

Comment 32 boruvka.michal 2016-12-12 07:33:08 UTC
Hi xiagao,
did you find any sollution?
M.

Comment 33 xiagao 2016-12-12 08:45:03 UTC
(In reply to boruvka.michal from comment #32)
> Hi xiagao,
> did you find any sollution?
> M.

Michal hi,

I didn't reproduce the bug. 
I was blocked with RHEVM GUI: "Could not detect Guest Agent on ..." , but i checked the vm and find the qemu-guest-agent and qemu-guest-agent vss services were running well. 

Red Hat Virtualization Manager Version: 4.0.6-0.1.el7ev
hypervisor: qemu-kvm-rhev-2.6.0-27.el7.x86_64
qemu GA: 7.3.2
VM: fresh W2012R2 installation

Comment 34 xiagao 2016-12-12 08:58:37 UTC
Hi Yan,

For comment 23's error info , i can reproduce it but no VSS crash when i run guest-fsfreeze-freeze cmd. 

Is there any relation between vss error and vss crash?

Do you have any idea about this bug?

Thanks,
xiagao

Comment 35 Yvugenfi@redhat.com 2016-12-19 13:14:47 UTC
(In reply to xiagao from comment #34)
> Hi Yan,
> 
> For comment 23's error info , i can reproduce it but no VSS crash when i run
> guest-fsfreeze-freeze cmd. 
> 
> Is there any relation between vss error and vss crash?
> 
> Do you have any idea about this bug?
> 
> Thanks,
> xiagao

I am looking into this bug now

Comment 36 Yvugenfi@redhat.com 2016-12-19 14:49:15 UTC
Can you please try the following:

Cause:
Note: If this error is logged along with Event ID 12293, please see KB article Error: VSS Snapshot Creation Failed.

This error is caused by incorrect or missing COM access permissions and does not affect the use of Image for Windows.

Solution:

To set the correct permissions and prevent the error from occurring, follow the instructions below:

1. Press and hold the Windows key and press R to pull up the Run dialog. Alternatively, if Run... is available from the Start Menu you can access it from there.

2. Type dcomcnfg into the box and click OK. The Component Services window will appear.

3.In the left portion of the window, expand the Component Services section and then expand the Computers section.

4. Right-click on My Computer (listed in the Computers section) and select Properties from the pop-up menu.

5. Click the COM Security tab. The My Computer Properties dialog will appear.

6. Click the Edit Default... button in the Access Permissions section. The Access Permission dialog will appear.

7. Under the Group or user names box, click the Add... button.

8. Type Network Service into the box and click OK.

9. Click OK on both the Access Permission and My Computer Properties dialogs to close them.

10. Restart Windows.

Comment 37 xiagao 2016-12-20 05:30:16 UTC
(In reply to Yan Vugenfirer from comment #36)
> Can you please try the following:
> 
> Cause:
> Note: If this error is logged along with Event ID 12293, please see KB
> article Error: VSS Snapshot Creation Failed.
> 
> This error is caused by incorrect or missing COM access permissions and does
> not affect the use of Image for Windows.
> 
> Solution:
> 
> To set the correct permissions and prevent the error from occurring, follow
> the instructions below:
> 
> 1. Press and hold the Windows key and press R to pull up the Run dialog.
> Alternatively, if Run... is available from the Start Menu you can access it
> from there.
> 
> 2. Type dcomcnfg into the box and click OK. The Component Services window
> will appear.
> 
> 3.In the left portion of the window, expand the Component Services section
> and then expand the Computers section.
> 
> 4. Right-click on My Computer (listed in the Computers section) and select
> Properties from the pop-up menu.
> 
> 5. Click the COM Security tab. The My Computer Properties dialog will appear.
> 
> 6. Click the Edit Default... button in the Access Permissions section. The
> Access Permission dialog will appear.
> 
> 7. Under the Group or user names box, click the Add... button.
> 
> 8. Type Network Service into the box and click OK.
> 
> 9. Click OK on both the Access Permission and My Computer Properties dialogs
> to close them.
> 
> 10. Restart Windows.



Befor setting the COM access permissions, hit Event ID 12293,8194.

Reproduce steps:
1.start win2012-64 guest with serial driver
2.install serial driver and qemu-ga-x86.msi in guest
3.Send commands in the host side to freeze guest:
#nc -U /tmp/qga.sock
{"execute":"guest-fsfreeze-freeze"}
{"return": 2}
4.check Computer management=>Event Viewer=>Windows Logs=>Application, hit 8194 or 12293 error.



Add Network Service access permission to COM Security as your solution 

Run=>input dcomcnfg and enter=>Componet Services=>Computers=>My computer=>Properties=>COM Security=>Edit default(Access permissions)=>Add=>Type Network Service=>ok... =>restart guest

Reproduce steps:
1.start win2012-64 guest with serial driver
2.install serial driver and qemu-ga-x86.msi in guest
3.Send commands in the host side to freeze guest:
#nc -U /tmp/qga.sock
{"execute":"guest-fsfreeze-freeze"}
{"return": 2}
4.check Computer management=>Event Viewer=>Windows Logs=>Application
no 8194 or 12293 error.


Michal hi,

Could you please add that solution to your env and check if there is crash?

Thanks
xiagao

Comment 38 xiagao 2016-12-20 08:11:45 UTC
(In reply to xiagao from comment #37)
> (In reply to Yan Vugenfirer from comment #36)
> > Can you please try the following:
> > 
> > Cause:
> > Note: If this error is logged along with Event ID 12293, please see KB
> > article Error: VSS Snapshot Creation Failed.
> > 
> > This error is caused by incorrect or missing COM access permissions and does
> > not affect the use of Image for Windows.
> > 
> > Solution:
> > 
> > To set the correct permissions and prevent the error from occurring, follow
> > the instructions below:
> > 
> > 1. Press and hold the Windows key and press R to pull up the Run dialog.
> > Alternatively, if Run... is available from the Start Menu you can access it
> > from there.
> > 
> > 2. Type dcomcnfg into the box and click OK. The Component Services window
> > will appear.
> > 
> > 3.In the left portion of the window, expand the Component Services section
> > and then expand the Computers section.
> > 
> > 4. Right-click on My Computer (listed in the Computers section) and select
> > Properties from the pop-up menu.
> > 
> > 5. Click the COM Security tab. The My Computer Properties dialog will appear.
> > 
> > 6. Click the Edit Default... button in the Access Permissions section. The
> > Access Permission dialog will appear.
> > 
> > 7. Under the Group or user names box, click the Add... button.
> > 
> > 8. Type Network Service into the box and click OK.
> > 
> > 9. Click OK on both the Access Permission and My Computer Properties dialogs
> > to close them.
> > 
> > 10. Restart Windows.
> 
> 
> 
> Befor setting the COM access permissions, hit Event ID 12293,8194.
> 
> Reproduce steps:
> 1.start win2012-64 guest with serial driver
> 2.install serial driver and qemu-ga-x86.msi in guest
> 3.Send commands in the host side to freeze guest:
> #nc -U /tmp/qga.sock
> {"execute":"guest-fsfreeze-freeze"}
> {"return": 2}
> 4.check Computer management=>Event Viewer=>Windows Logs=>Application, hit
> 8194 or 12293 error.
> 
> 
> 
> Add Network Service access permission to COM Security as your solution 
> 
> Run=>input dcomcnfg and enter=>Componet Services=>Computers=>My
> computer=>Properties=>COM Security=>Edit default(Access
> permissions)=>Add=>Type Network Service=>ok... =>restart guest
> 
> Reproduce steps:
> 1.start win2012-64 guest with serial driver
> 2.install serial driver and qemu-ga-x86.msi in guest
> 3.Send commands in the host side to freeze guest:
> #nc -U /tmp/qga.sock
> {"execute":"guest-fsfreeze-freeze"}
> {"return": 2}
> 4.check Computer management=>Event Viewer=>Windows Logs=>Application
> no 8194 or 12293 error.
> 
> 
> Michal hi,
> 
> Could you please add that solution to your env and check if there is crash?
> 
> Thanks
> xiagao

Yan hi,

I tested it again, still hit Event ID 12293 after adding Network Service access permission to COM Security as your solution, but the 12293 id event comes about 50s later.

Comment 39 xiagao 2016-12-20 08:15:16 UTC
 Michal hi,
 
 Could you please add that solution from comment 36 to your env and check if there is crash?
 
 Thanks
 xiagao

Comment 40 boruvka.michal 2016-12-20 20:29:55 UTC
Hi,
now I have in Event log this:
Event ID: 4879
MSDTC encountered an error (HR=0x80000171) while attempting to establish a secure connection with system W12T1.
and 3 min later
Event ID: 8224
The VSS service is shutting down due to idle timeout. 

And QEMU Guest Agent VSS Provider is crashed now.

M.

Comment 41 xiagao 2016-12-21 03:03:01 UTC
(In reply to boruvka.michal from comment #40)
> Hi,
> now I have in Event log this:
> Event ID: 4879
> MSDTC encountered an error (HR=0x80000171) while attempting to establish a
> secure connection with system W12T1.
> and 3 min later
> Event ID: 8224
> The VSS service is shutting down due to idle timeout. 
> 
> And QEMU Guest Agent VSS Provider is crashed now.
> 
> M.

Yan hi,

Could you pls check this comment and comment 38 ?

thanks

Comment 42 Yvugenfi@redhat.com 2016-12-22 08:23:06 UTC
(In reply to xiagao from comment #41)
> (In reply to boruvka.michal from comment #40)
> > Hi,
> > now I have in Event log this:
> > Event ID: 4879
> > MSDTC encountered an error (HR=0x80000171) while attempting to establish a
> > secure connection with system W12T1.
> > and 3 min later
> > Event ID: 8224
> > The VSS service is shutting down due to idle timeout. 
> > 
> > And QEMU Guest Agent VSS Provider is crashed now.
> > 
> > M.
> 
> Yan hi,
> 
> Could you pls check this comment and comment 38 ?
> 
> thanks

I am continue to looking into it

Comment 43 James Laming 2016-12-29 22:56:10 UTC
Hi,

I am seeing the same behaviour with windows 2012 R2 on top of a KVM backed Openstack while running Qemu Guest Tools version 7.2.1 and 7.3.2 (including matched Serial driver).

Before making any changes to COM Security I receive the Volume Shadow copy errors, once I have added Network Services to the COM Permission I see a MSDTC error as above.

Editing the "Local DTC" Security, Allowing Network DTC Access and "Transaction Manager Communication" with anonymous permission stops the "MSDTC" Errors from showing in the Event Log BUT!

The VVS writers are not being engaged with a snapshot and no windows event logs of any related kind are being raised, so it is a little difficult to trouble shoot further {unless there is a Qeum log file hidden in the guest somewhere)?

For reference I am using the Cloudbase windows Eval image (should make it more straight forward to replicate), mounted on Ceph in a RAW format (non-Quiescent Snaps work perfectly).

Comment 45 xiagao 2017-03-27 05:54:43 UTC
Test it in qemu-ga-win-7.4.2-1 and virtio-win-1.9.0-3.el7.


Steps:
1.boot up Win2012r2 guest with virtio serial device.
2.install virtio serial driver
3.install qemu-ga-x64.msi in guest
4.Add Network Service access permission to COM Security as your solution 
 Run=>input dcomcnfg and enter=>Componet Services=>Computers=>My
 computer=>Properties=>COM Security=>Edit default(Access
 permissions)=>Add=>Type Network Service=>ok... =>restart guest
5.Send commands in the host side to freeze guest:
 #nc -U /tmp/qga.sock
 {"execute":"guest-fsfreeze-freeze"}
 {"return": 2}
 {"execute":"guest-fsfreeze-thaw"}
 {"return": 2}
6.check Computer management=>Event Viewer=>Windows Logs=>Application

Actual result:
Thereis no vss error.

Bug have a warning log in Event log this:
Event ID: 4879
MSDTC encountered an error (HR=0x80000171) while attempting to establish a secure connection with system WIN-TOKCUGHM6RV.

And 5 mins later
Event ID: 8224
The VSS service is shutting down due to idle timeout. 


Reproduced,so set ASSIGNED status.

Comment 46 Nick Koefoed 2017-03-30 10:14:37 UTC
(In reply to xiagao from comment #45)
> Test it in qemu-ga-win-7.4.2-1 and virtio-win-1.9.0-3.el7.
> 
> 
> Steps:
> 1.boot up Win2012r2 guest with virtio serial device.
> 2.install virtio serial driver
> 3.install qemu-ga-x64.msi in guest
> 4.Add Network Service access permission to COM Security as your solution 
>  Run=>input dcomcnfg and enter=>Componet Services=>Computers=>My
>  computer=>Properties=>COM Security=>Edit default(Access
>  permissions)=>Add=>Type Network Service=>ok... =>restart guest
> 5.Send commands in the host side to freeze guest:
>  #nc -U /tmp/qga.sock
>  {"execute":"guest-fsfreeze-freeze"}
>  {"return": 2}
>  {"execute":"guest-fsfreeze-thaw"}
>  {"return": 2}
> 6.check Computer management=>Event Viewer=>Windows Logs=>Application
> 
> Actual result:
> Thereis no vss error.
> 
> Bug have a warning log in Event log this:
> Event ID: 4879
> MSDTC encountered an error (HR=0x80000171) while attempting to establish a
> secure connection with system WIN-TOKCUGHM6RV.
> 
> And 5 mins later
> Event ID: 8224
> The VSS service is shutting down due to idle timeout. 
> 
> 
> Reproduced,so set ASSIGNED status.
Someone correct me if I'm wrong, but;

I think you are missing the point here. There is no VSS Snapshot taken when you quiesce a guest machine. It simply flushes and holds writes for a couple of seconds so the hypervisor can take the snapshot and create the delta file. After that it releases writes so the guest continues writing (to the new delta file). Don't expect to see VSS taking an actual snapshot - that's not what VSS is used for here. 

I think the error about MSDTC is a red herring, however it was easily fixed by what James said in Comment 43.

Comment 47 Yvugenfi@redhat.com 2017-03-30 12:26:21 UTC
(In reply to Nick Koefoed from comment #46)
> (In reply to xiagao from comment #45)
> > Test it in qemu-ga-win-7.4.2-1 and virtio-win-1.9.0-3.el7.
> > 
> > 
> > Steps:
> > 1.boot up Win2012r2 guest with virtio serial device.
> > 2.install virtio serial driver
> > 3.install qemu-ga-x64.msi in guest
> > 4.Add Network Service access permission to COM Security as your solution 
> >  Run=>input dcomcnfg and enter=>Componet Services=>Computers=>My
> >  computer=>Properties=>COM Security=>Edit default(Access
> >  permissions)=>Add=>Type Network Service=>ok... =>restart guest
> > 5.Send commands in the host side to freeze guest:
> >  #nc -U /tmp/qga.sock
> >  {"execute":"guest-fsfreeze-freeze"}
> >  {"return": 2}
> >  {"execute":"guest-fsfreeze-thaw"}
> >  {"return": 2}
> > 6.check Computer management=>Event Viewer=>Windows Logs=>Application
> > 
> > Actual result:
> > Thereis no vss error.
> > 
> > Bug have a warning log in Event log this:
> > Event ID: 4879
> > MSDTC encountered an error (HR=0x80000171) while attempting to establish a
> > secure connection with system WIN-TOKCUGHM6RV.
> > 
> > And 5 mins later
> > Event ID: 8224
> > The VSS service is shutting down due to idle timeout. 
> > 
> > 
> > Reproduced,so set ASSIGNED status.
> Someone correct me if I'm wrong, but;
> 
> I think you are missing the point here. There is no VSS Snapshot taken when
> you quiesce a guest machine. It simply flushes and holds writes for a couple
> of seconds so the hypervisor can take the snapshot and create the delta
> file. After that it releases writes so the guest continues writing (to the
> new delta file). Don't expect to see VSS taking an actual snapshot - that's
> not what VSS is used for here. 
> 
> I think the error about MSDTC is a red herring, however it was easily fixed
> by what James said in Comment 43.

Correct. The main question is - if hypervisor did the expected work or not.

Comment 48 xiagao 2017-03-30 14:05:27 UTC
(In reply to Yan Vugenfirer from comment #47)
> (In reply to Nick Koefoed from comment #46)
> > (In reply to xiagao from comment #45)
> > > Test it in qemu-ga-win-7.4.2-1 and virtio-win-1.9.0-3.el7.
> > > 
> > > 
> > > Steps:
> > > 1.boot up Win2012r2 guest with virtio serial device.
> > > 2.install virtio serial driver
> > > 3.install qemu-ga-x64.msi in guest
> > > 4.Add Network Service access permission to COM Security as your solution 
> > >  Run=>input dcomcnfg and enter=>Componet Services=>Computers=>My
> > >  computer=>Properties=>COM Security=>Edit default(Access
> > >  permissions)=>Add=>Type Network Service=>ok... =>restart guest
> > > 5.Send commands in the host side to freeze guest:
> > >  #nc -U /tmp/qga.sock
> > >  {"execute":"guest-fsfreeze-freeze"}
> > >  {"return": 2}
> > >  {"execute":"guest-fsfreeze-thaw"}
> > >  {"return": 2}
> > > 6.check Computer management=>Event Viewer=>Windows Logs=>Application
> > > 
> > > Actual result:
> > > Thereis no vss error.
> > > 
> > > Bug have a warning log in Event log this:
> > > Event ID: 4879
> > > MSDTC encountered an error (HR=0x80000171) while attempting to establish a
> > > secure connection with system WIN-TOKCUGHM6RV.
> > > 
> > > And 5 mins later
> > > Event ID: 8224
> > > The VSS service is shutting down due to idle timeout. 
> > > 
> > > 
> > > Reproduced,so set ASSIGNED status.
> > Someone correct me if I'm wrong, but;
> > 
> > I think you are missing the point here. There is no VSS Snapshot taken when
> > you quiesce a guest machine. It simply flushes and holds writes for a couple
> > of seconds so the hypervisor can take the snapshot and create the delta
> > file. After that it releases writes so the guest continues writing (to the
> > new delta file). Don't expect to see VSS taking an actual snapshot - that's
> > not what VSS is used for here. 
> > 
> > I think the error about MSDTC is a red herring, however it was easily fixed
> > by what James said in Comment 43.
> 
> Correct. The main question is - if hypervisor did the expected work or not.

Thanks Yan and Nick, QE will verify this bug in hypervisor.
Btw, i have two questions.
> > > 4.Add Network Service access permission to COM Security as your solution
1.Is the step 4 is necessary to create snapshot in hypervisor. 

> > Event ID: 8224
> > The VSS service is shutting down due to idle timeout. 
2. What does thie error mean? 

Thanks,
xiagao

Comment 49 Nick Koefoed 2017-03-30 23:09:02 UTC
Hi Xiagao,
1. I think Step 4 is necessary, however if you don't see VSS/volsnap/timeout errors in Windows, I think the quiesce was successful. The MSDTC error might be a red herring, however it doesn't hurt to fix it so we don't get the errors in the event logs, right? The fix is quite simple anyway. 
2. This is not an error. This is an informational event log whereby the system is saying VSS hasn't received any commands for a while, so it's shutting itself down. If you do another quiesce snapshot you'll probably see an event for it to start back up again.

I'm not sure what you mean by "QE will verify this bug in hypervisor" - I'm quite new to all this (although an experienced windows Sysadmin) - but this doesn't seem like a Red-Hat/KVM bug to me, more a configuration misalignment :) 

Best regards

Comment 50 Nick Koefoed 2017-03-30 23:13:28 UTC
So, in response to Yan's post, if you don't see any errors about failure to flush & hold writes, or VSS permission denied, the hypervisor has infact done the correct work in quiesceing the guest file system!

Comment 51 xiagao 2017-03-31 02:35:40 UTC
(In reply to Nick Koefoed from comment #49)
> Hi Xiagao,
> 1. I think Step 4 is necessary, however if you don't see VSS/volsnap/timeout
> errors in Windows, I think the quiesce was successful. The MSDTC error might
> be a red herring, however it doesn't hurt to fix it so we don't get the
> errors in the event logs, right? The fix is quite simple anyway. 
> 2. This is not an error. This is an informational event log whereby the
> system is saying VSS hasn't received any commands for a while, so it's
> shutting itself down. If you do another quiesce snapshot you'll probably see
> an event for it to start back up again.
> 
> I'm not sure what you mean by "QE will verify this bug in hypervisor" - I'm
> quite new to all this (although an experienced windows Sysadmin) - but this
> doesn't seem like a Red-Hat/KVM bug to me, more a configuration misalignment
> :) 
> 
> Best regards

Nick hi,
Thanks for your quick response and nice explaination.
About "QE will verify this bug in hypervisor" I mean verifing  comment 0 and comment 23's issue in hypervisor env.

BR,
xiagao

Comment 52 Nick Koefoed 2017-03-31 03:20:44 UTC
Thanks Xiagao. I understand now. 

Comment 0 and 23 is not a Hypervisor issue - it's windows configuration. Correctly setting DCOM will resolve this. His other "error" is just VSS shutting down due to idle timeout - not an issue at all :) 

boruvka.michal - we need more information, have you tried the suggested Windows configuration fixes? I did this last night and now my snapshots (KVM) and quiesce's (Guest) work perfectly.

Comment 53 Yvugenfi@redhat.com 2017-04-02 07:48:53 UTC
>>> > > The VSS service is shutting down due to idle timeout. 

In any case the behaviour will be in the new build not to run VSS qemu-gaservice always, but only when snapshot is requested.

Comment 54 Nick Koefoed 2017-04-03 05:56:00 UTC
>not to run VSS qemu-gaservice always

This won't matter as it's the Windows VSS service that's shutting down due to idle timeout. So you'll still get this message after a Quiesce is performed anyway, because it turns itself off when it's done ;)

Comment 55 boruvka.michal 2017-04-05 10:10:28 UTC
Hi,
I tested it with qemu-ga 7.4.4. It works fine after correct DCOM setting.
Could you set DCOM permission during installation qemu-ga?
M.

Comment 56 xiagao 2017-04-13 08:44:45 UTC
(In reply to boruvka.michal from comment #55)
> Hi,
> I tested it with qemu-ga 7.4.4. It works fine after correct DCOM setting.
> Could you set DCOM permission during installation qemu-ga?
> M.

Hi Yan,
Could you help to answer this question?

thanks,
xiagao

Comment 57 Yvugenfi@redhat.com 2017-04-18 08:05:54 UTC
(In reply to boruvka.michal from comment #55)
> Hi,
> I tested it with qemu-ga 7.4.4. It works fine after correct DCOM setting.
> Could you set DCOM permission during installation qemu-ga?
> M.

Let's open new BZ for this.

Comment 58 lijin 2017-04-24 03:21:54 UTC
change status to verified according to comment#55.

open a new bug(bz1444702) to track DCOM permission issue

Comment 61 errata-xmlrpc 2017-08-01 12:53:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2341


Note You need to log in before you can comment on or make changes to this bug.