Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1965159

Summary: [viogpudo] Reboot/shutdown/Reset failed and hit black screen after installing viogpudo driver on win2012-64
Product: Red Hat Enterprise Linux 9 Reporter: dehanmeng <demeng>
Component: virtio-winAssignee: Vadim Rozenfeld <vrozenfe>
virtio-win sub component: virtio-win-prewhql QA Contact: dehanmeng <demeng>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: juzhang, lijin, mdean, qizhu, vrozenfe, yvugenfi
Version: 9.0Keywords: Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 9.0   
Hardware: x86_64   
OS: Windows   
Whiteboard:
Fixed In Version: 218 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 10:45:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description dehanmeng 2021-05-27 03:23:21 UTC
Description of problem:
Win2012-64(q35) guest couldn't reboot/shutdown normally after installing 199 viogpudo driver, the guest will hang for a while and then go to black screen situation. and then I tried to kill its process directly and boot it up again manually. but the guest still was black screen.

Version-Release number of selected component (if applicable):
RHEL-8.5.0-20210506.n.0
qemu-kvm-6.0.0-16.module+el8.5.0+10848+2dccc46d.x86_64
kernel-4.18.0-305.1.el8.x86_64
seabios-bin-1.14.0-1.module+el8.4.0+8855+a9e237a9.noarch
virtio-win-prewhql-199.iso

How reproducible:
100%

Steps to Reproduce:
1. bootup guest with following qemu-cli
/usr/libexec/qemu-kvm \
    -name 'win2012-64'  \
    -sandbox on  \
    -machine q35 \
    -device pcie-root-port,id=pcie-root-port-0,multifunction=on,bus=pcie.0,addr=0x1,chassis=1 \
    -device pcie-pci-bridge,id=pcie-pci-bridge-0,addr=0x0,bus=pcie-root-port-0  \
    -nodefaults \
    -device virtio-vga,id=video0 \
    -m 4096  \
    -smp 10,maxcpus=10,cores=5,threads=1,dies=1,sockets=2  \
    -cpu Skylake-Server,hv_stimer,hv_synic,hv_time,hv_vpindex,hv_relaxed,hv_spinlocks=0xfff,hv_vapic,hv_frequencies,hv_runtime,hv_tlbflush,hv_reenlightenment,hv_stimer_direct,hv_ipi \
    -device pvpanic,ioport=0x505,id=idAw3tKn \
    -device pcie-root-port,id=pcie-root-port-1,port=0x1,addr=0x1.0x1,bus=pcie.0,chassis=2 \
    -device qemu-xhci,id=usb1,bus=pcie-root-port-1,addr=0x0 \
    -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1 \
    -device pcie-root-port,id=pcie-root-port-2,port=0x2,addr=0x1.0x2,bus=pcie.0,chassis=3 \
    -device virtio-scsi-pci,id=virtio_scsi_pci0,bus=pcie-root-port-2,addr=0x0 \
    -blockdev node-name=file_image1,driver=file,auto-read-only=on,discard=unmap,aio=threads,filename=win2012-64-virtio-scsi.qcow2,cache.direct=on,cache.no-flush=off \
    -blockdev node-name=drive_image1,driver=qcow2,read-only=off,cache.direct=on,cache.no-flush=off,file=file_image1 \
    -device scsi-hd,id=image1,drive=drive_image1,write-cache=on \
    -device pcie-root-port,id=pcie-root-port-3,port=0x3,addr=0x1.0x3,bus=pcie.0,chassis=4 \
    -device virtio-net-pci,mac=9a:aa:3c:f4:36:fb,id=iddZeBQu,netdev=idDOmGd4,bus=pcie-root-port-3,addr=0x0  \
    -netdev tap,id=idDOmGd4,vhost=on \
    -cdrom /home/kvm_autotest_root/iso/windows/virtio-win-prewhql-0.1-199.iso \
    -vnc :9  \
    -chardev socket,server=on,wait=off,path=/tmp/avocado_wojsvlg0/monitor-qmpmonitor1-20210522-021250-p57eGDBS,id=qmp_id_qmpmonitor1  \
    -mon chardev=qmp_id_qmpmonitor1,mode=control \
    -rtc base=localtime,clock=host,driftfix=slew  \
    -boot menu=off,order=cdn,once=c,strict=off \
    -enable-kvm \
2.install prewhql199 viogpudo driver via device manager.
3.run cmd "shutdown -r -t 0"

Actual results:
guest hang for a while and then hit black screen.

Expected results:
reboot/shutdown successfully like normal operation.
Additional info:

Comment 1 Vadim Rozenfeld 2021-05-28 02:06:33 UTC
the fix included into
https://github.com/virtio-win/kvm-guest-drivers-windows/pull/586

Comment 2 Vadim Rozenfeld 2021-06-04 02:16:31 UTC
Please give a try to build 200
https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=37224650

Comment 3 dehanmeng 2021-06-05 04:09:22 UTC
(In reply to Vadim Rozenfeld from comment #2)
> Please give a try to build 200
> https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=37224650

Hi Vadim,

Thanks for your effort, I've tried 200 build for this issue a lot of times, but this problem still be there. Guest couldn't reboot/shutdown after installing viogpudo driver. Could you please have another shot with it?

Thanks
Dehan

Comment 4 Vadim Rozenfeld 2021-06-06 03:38:36 UTC
(In reply to dehanmeng from comment #3)
> (In reply to Vadim Rozenfeld from comment #2)
> > Please give a try to build 200
> > https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=37224650
> 
> Hi Vadim,
> 
> Thanks for your effort, I've tried 200 build for this issue a lot of times,
> but this problem still be there. Guest couldn't reboot/shutdown after
> installing viogpudo driver. Could you please have another shot with it?
> 
> Thanks
> Dehan

Hi Dehan,

Since virtio-win drivers are not cross-signed anymore can you please to the following things:
1. Enable test signing on your testing machine ("Bcdedit.exe -set TESTSIGNING ON")
2. Install virogpudo driver with "devcon install" (https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/devcon-install)
rather than with Device Manager
 .

Thanks,
Vadim.

Comment 7 dehanmeng 2021-06-08 08:28:41 UTC
(In reply to Vadim Rozenfeld from comment #4)
> (In reply to dehanmeng from comment #3)
> > (In reply to Vadim Rozenfeld from comment #2)
> > > Please give a try to build 200
> > > https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=37224650
> > 
> > Hi Vadim,
> > 
> > Thanks for your effort, I've tried 200 build for this issue a lot of times,
> > but this problem still be there. Guest couldn't reboot/shutdown after
> > installing viogpudo driver. Could you please have another shot with it?
> > 
> > Thanks
> > Dehan
> 
> Hi Dehan,
> 
> Since virtio-win drivers are not cross-signed anymore can you please to the
> following things:
> 1. Enable test signing on your testing machine ("Bcdedit.exe -set
> TESTSIGNING ON")
> 2. Install virogpudo driver with "devcon install"
> (https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/devcon-
> install)
> rather than with Device Manager
>  .
> 
> Thanks,
> Vadim.

As we talked before as mail. this method you suggested I've tried before, but issue still there, so update this situation here. 
THanks
Dehan

Comment 10 dehanmeng 2021-06-09 08:26:45 UTC
Add TestBlocker keyword for this bug because I need to use a new system image for testing next other cases if I hit this issue, so set a TestBlocker.

Comment 20 dehanmeng 2022-02-09 02:47:50 UTC
Hi Vadim,
How's going on this issue? The DTM is 23(2.7), but the bug's status still is assigned. so Do we have any progress of it? or if there are any risk please let me know. thanks.

BRs
Dehan Meng

Comment 22 Vadim Rozenfeld 2022-02-09 09:10:43 UTC
(In reply to dehanmeng from comment #20)
> Hi Vadim,
> How's going on this issue? The DTM is 23(2.7), but the bug's status still is
> assigned. so Do we have any progress of it? or if there are any risk please
> let me know. thanks.
> 
> BRs
> Dehan Meng


Hi Dehan,
I will submit a fix for this bug shortly,
Best,
Vadim.

Comment 25 dehanmeng 2022-04-19 10:00:41 UTC
Reproduce this bug as comment0, can be reproduced successfully.

Verify:

version:
virtio-win-prewhql-218.iso
win2012-64/win2012R2-64

Steps as comments

Actual result:
Reboot/Reset/Shutdown successfully.

Expected result:
Reboot/Reset/Shutdown successfully.

Comment 28 errata-xmlrpc 2022-11-15 10:45:57 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 (virtio-win bug fix and enhancement update), 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-2022:8261