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 1097587

Summary: [virtio-win][vioscsi]Guest got BSOD after downgrade driver and change system disk from ide to scsi at the same time on win8-32 guest
Product: Red Hat Enterprise Linux 7 Reporter: Min Deng <mdeng>
Component: virtio-winAssignee: Amnon Ilan <ailan>
virtio-win sub component: virtio-win-prewhql QA Contact: Virtualization Bugs <virt-bugs>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: medium    
Priority: medium CC: hhuang, juzhang, knoel, lijin, mdeng, michen, phou, rbalakri, virt-maint, wyu
Version: 7.1   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-15 09:25:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot
none
screenshot none

Description Min Deng 2014-05-14 06:49:21 UTC
Created attachment 895380 [details]
screenshot

Description of problem:
Guest got BSOD after downgrade driver and then change system disk from ide to scsi on win8-32 guest at the same time 

Version-Release number of selected component (if applicable):
build80
virtio-win-1.7.0-1.el7
qemu-kvm-rhev-1.5.3-60.el7ev.x86_64
kernel-3.10.0-121.el7.x86_64

How reproducible:
3/3

Steps to Reproduce:
1.install guest with the following CLI
  /usr/libexec/qemu-kvm -M pc -m 2G -smp 2 -cpu Nehalem -usb -device usb-tablet -drive file=win8-32-four.raw,format=raw,if=none,id=drive-scsi-disk1,werror=stop,rerror=stop,cache=writeback -device ide-drive,drive=drive-scsi-disk1,id=ide -netdev tap,id=hostnet0,script=/etc/qemu-ifup -device e1000,netdev=hostnet0,id=net0 -uuid 4870b5fd-65d1-488a-9333-3c4e095285b0 -rtc-td-hack -no-kvm-pit-reinjection -chardev socket,id=a111,path=/tmp/monitor-win2012-serial,server,nowait -mon chardev=a111,mode=readline -vnc :11 -vga cirrus -monitor stdio -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -cdrom en_windows_8_enterprise_x86_dvd_917587.iso -device virtio-scsi-pci,id=scsi1 -drive file=test7.raw,if=none,id=drive-scsi-disk2,format=raw,serial=22,cache=writethrough -device scsi-hd,bus=scsi1.0,drive=drive-scsi-disk2,id=scsi-disk2

2.install driver build 80 and reboot guest if prompt

3.downgrade driver to virtio-win-1.7.0-1.el7

4.Boot up guest again and convert ide to scsi for system disk at the same time ,and make sure the data disk and system disk on the same virtio-scsi-pci.

  /usr/libexec/qemu-kvm -M pc -m 2G -smp 2 -cpu Nehalem -usb -device usb-tablet -drive file=win8-32-four.raw,format=raw,if=none,id=drive-scsi-disk1,werror=stop,rerror=stop,cache=writeback -device virtio-scsi-pci,id=scsi1 -device scsi-hd,drive=drive-scsi-disk1,bus=scsi1.0,id=scsi-disk1 -netdev tap,id=hostnet0,script=/etc/qemu-ifup -device e1000,netdev=hostnet0,id=net0 -uuid 4870b5fd-65d1-488a-9333-3c4e095285b0 -rtc-td-hack -no-kvm-pit-reinjection -chardev socket,id=a111,path=/tmp/monitor-win2012-serial,server,nowait -mon chardev=a111,mode=readline -vnc :11 -vga cirrus -monitor stdio -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -cdrom /usr/share/virtio-win/virtio-win.iso -drive file=test7.raw,if=none,id=drive-scsi-disk2,format=raw,serial=22,cache=writethrough -device scsi-hd,bus=scsi1.0,drive=drive-scsi-disk2,id=scsi-disk2

Actual results:
The guest got BSOD with issue "INACCESSIBLE_BOOT_DEVICE",please see screen shot 
Expected results:
The guest could work well

Additional info:
Though it hinted that the guest got BSOD but it was hardly to get dump file so only upload the screen shot for the time being.

Comment 2 ShupingCui 2014-06-18 02:52:38 UTC
Created attachment 909825 [details]
screenshot

met same issue too for win7.x86_64 guest:

1. install guest with virtio_scsi using virtio-win-prewhql-0.1-86
2. downgrade driver to virtio-win-1.7.0
3. boot guest with virtio_scsi

guest BSOD.

Comment 3 Vadim Rozenfeld 2014-06-18 09:24:19 UTC
(In reply to ShupingCui from comment #2)
> Created attachment 909825 [details]
> screenshot
> 
> met same issue too for win7.x86_64 guest:
> 
> 1. install guest with virtio_scsi using virtio-win-prewhql-0.1-86
> 2. downgrade driver to virtio-win-1.7.0
> 3. boot guest with virtio_scsi
> 
> guest BSOD.

Could you please post output from "pci info" before and after BSOD?
Thanks,
Vadim.

Comment 4 ShupingCui 2014-06-19 02:13:22 UTC
(In reply to Vadim Rozenfeld from comment #3)
> (In reply to ShupingCui from comment #2)
> > Created attachment 909825 [details]
> > screenshot
> > 
> > met same issue too for win7.x86_64 guest:
> > 
> > 1. install guest with virtio_scsi using virtio-win-prewhql-0.1-86
> > 2. downgrade driver to virtio-win-1.7.0
> > 3. boot guest with virtio_scsi
> > 
> > guest BSOD.
> 
> Could you please post output from "pci info" before and after BSOD?
> Thanks,
> Vadim.

Hi Vadim,

Before BSOD:

(qemu) info pci
  Bus  0, device   0, function 0:
    Host bridge: PCI device 8086:1237
      id ""
  Bus  0, device   1, function 0:
    ISA bridge: PCI device 8086:7000
      id ""
  Bus  0, device   1, function 1:
    IDE controller: PCI device 8086:7010
      BAR4: I/O at 0xc0a0 [0xc0af].
      id ""
  Bus  0, device   1, function 3:
    Bridge: PCI device 8086:7113
      IRQ 9.
      id ""
  Bus  0, device   2, function 0:
    VGA controller: PCI device 1b36:0100
      IRQ 10.
      BAR0: 32 bit memory at 0xf8000000 [0xfbffffff].
      BAR1: 32 bit memory at 0xfc000000 [0xfdffffff].
      BAR2: 32 bit memory at 0xfe058000 [0xfe059fff].
      BAR3: I/O at 0xc040 [0xc05f].
      BAR6: 32 bit memory at 0xffffffffffffffff [0x0000fffe].
      id ""
  Bus  0, device   3, function 0:
    Audio controller: PCI device 8086:2668
      IRQ 11.
      BAR0: 32 bit memory at 0xfe050000 [0xfe053fff].
      id ""
  Bus  0, device   4, function 0:
    Class 1920: PCI device 1af4:1003
      IRQ 11.
      BAR0: I/O at 0xc060 [0xc07f].
      BAR1: 32 bit memory at 0xfe05a000 [0xfe05afff].
      id "virtio_serial_pci0"
  Bus  0, device   5, function 0:
    USB controller: PCI device 1033:0194
      IRQ 10.
      BAR0: 64 bit memory at 0xfe054000 [0xfe057fff].
      id "usb1"
  Bus  0, device   6, function 0:
    SCSI controller: PCI device 1af4:1004
      IRQ 10.
      BAR0: I/O at 0xc000 [0xc03f].
      BAR1: 32 bit memory at 0xfe05b000 [0xfe05bfff].
      id "virtio_scsi_pci0"
  Bus  0, device   7, function 0:
    Ethernet controller: PCI device 1af4:1000
      IRQ 11.
      BAR0: I/O at 0xc080 [0xc09f].
      BAR1: 32 bit memory at 0xfe05c000 [0xfe05cfff].
      BAR6: 32 bit memory at 0xffffffffffffffff [0x0003fffe].
      id "idWe4mtu"

====================
After BSOD:

(qemu) info pci
  Bus  0, device   0, function 0:
    Host bridge: PCI device 8086:1237
      id ""
  Bus  0, device   1, function 0:
    ISA bridge: PCI device 8086:7000
      id ""
  Bus  0, device   1, function 1:
    IDE controller: PCI device 8086:7010
      BAR4: I/O at 0xc0a0 [0xc0af].
      id ""
  Bus  0, device   1, function 3:
    Bridge: PCI device 8086:7113
      IRQ 9.
      id ""
  Bus  0, device   2, function 0:
    VGA controller: PCI device 1b36:0100
      IRQ 10.
      BAR0: 32 bit memory at 0xf8000000 [0xfbffffff].
      BAR1: 32 bit memory at 0xfc000000 [0xfdffffff].
      BAR2: 32 bit memory at 0xfe058000 [0xfe059fff].
      BAR3: I/O at 0xc040 [0xc05f].
      BAR6: 32 bit memory at 0xffffffffffffffff [0x0000fffe].
      id ""
  Bus  0, device   3, function 0:
    Audio controller: PCI device 8086:2668
      IRQ 11.
      BAR0: 32 bit memory at 0xfe050000 [0xfe053fff].
      id ""
  Bus  0, device   4, function 0:
    Class 1920: PCI device 1af4:1003
      IRQ 11.
      BAR0: I/O at 0xc060 [0xc07f].
      BAR1: 32 bit memory at 0xfe05a000 [0xfe05afff].
      id "virtio_serial_pci0"
  Bus  0, device   5, function 0:
    USB controller: PCI device 1033:0194
      IRQ 10.
      BAR0: 64 bit memory at 0xfe054000 [0xfe057fff].
      id "usb1"
  Bus  0, device   6, function 0:
    SCSI controller: PCI device 1af4:1004
      IRQ 0.
      BAR0: I/O at 0xffffffffffffffff [0x003e].
      BAR1: 32 bit memory at 0xffffffffffffffff [0x00000ffe].
      id "virtio_scsi_pci0"
  Bus  0, device   7, function 0:
    Ethernet controller: PCI device 1af4:1000
      IRQ 11.
      BAR0: I/O at 0xc080 [0xc09f].
      BAR1: 32 bit memory at 0xfe05c000 [0xfe05cfff].
      BAR6: 32 bit memory at 0xffffffffffffffff [0x0003fffe].
      id "idWe4mtu"


Add info:
command line:
/bin/qemu-kvm \
    -name 'virt-tests-vm1'  \
    -sandbox off  \
    -M pc  \
    -nodefaults  \
    -vga qxl  \
    -global qxl-vga.vram_size=33554432 \
    -device intel-hda,bus=pci.0,addr=03 \
    -device hda-duplex  \
    -chardev socket,id=qmp_id_qmpmonitor1,path=/tmp/monitor-qmpmonitor1-20140616-142155-UXurtftM,server,nowait \
    -mon chardev=qmp_id_qmpmonitor1,mode=control  \
    -chardev socket,id=serial_id_serial0,path=/tmp/serial-serial0-20140616-142155-UXurtftM,server,nowait \
    -device isa-serial,chardev=serial_id_serial0 \
    -device virtio-serial-pci,id=virtio_serial_pci0,bus=pci.0,addr=04  \
    -chardev socket,id=devvs,path=/tmp/virtio_port-vs-20140616-142155-UXurtftM,server,nowait \
    -device virtserialport,chardev=devvs,name=vs,id=vs,bus=virtio_serial_pci0.0  \
    -chardev socket,id=seabioslog_id_20140616-142155-UXurtftM,path=/tmp/seabios-20140616-142155-UXurtftM,server,nowait \
    -device isa-debugcon,chardev=seabioslog_id_20140616-142155-UXurtftM,iobase=0x402 \
    -device nec-usb-xhci,id=usb1,bus=pci.0,addr=05 \
    -device virtio-scsi-pci,id=virtio_scsi_pci0,bus=pci.0,addr=06 \
    -drive id=drive_image1,if=none,cache=none,snapshot=off,aio=native,file=/root/staf-kvm-devel/autotest-devel/client/tests/virt/shared/data/images/win7-64-virtio.qcow2 \
    -device scsi-hd,id=image1,drive=drive_image1 \
    -device virtio-net-pci,mac=9a:11:12:13:14:15,id=idWe4mtu,vectors=4,netdev=idPFDur0,bus=pci.0,addr=07  \
    -netdev tap,id=idPFDur0,vhost=on \
    -m 4096  \
    -smp 1,maxcpus=1,cores=1,threads=1,sockets=2  \
    -cpu 'Opteron_G2',+kvm_pv_unhalt,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time \
    -drive id=drive_cd1,if=none,snapshot=off,aio=native,media=cdrom,file=/root/staf-kvm-devel/autotest-devel/client/tests/virt/shared/data/isos/windows/winutils.iso \
    -device ide-cd,id=cd1,drive=drive_cd1,bus=ide.0,unit=0 \
    -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1  \
    -spice port=3000,password=123456,addr=0,image-compression=auto_glz,zlib-glz-wan-compression=auto,streaming-video=all,agent-mouse=on,playback-compression=on,ipv4  \
    -rtc base=localtime,clock=host,driftfix=slew  \
    -boot order=cdn,once=c,menu=off \
    -enable-kvm \
    -monitor stdio

Comment 5 ShupingCui 2014-06-19 05:08:14 UTC
Hi Vadim,

re-test with virtio-win-1.7.1, not met this bug, guest boot up successfully.


Thanks,
Shuping

Comment 10 Ronen Hod 2014-08-10 09:46:20 UTC
Vadim will verify. It seems as if the installer needs to first install the drivers (to the drivers store), and only then do this.

Comment 14 Yu Wang 2017-08-15 07:34:01 UTC
Cannot reproduce this issue w/ build141, downgrade version is build136

Steps as comment#0

But it's strange that after step4 in comment#0, downgrade vioscsi to build136
1 if change ide device to vioscsi device and boot with this vioscsi device, check the version for vioscsi, it shows build141. 

boot command the same as comment#0 step4

2 If change former data disk to system disk, then boot to system disk, it is build 136.

boot cmd (same as comment#0 step1, change data disk to system disk):
/usr/libexec/qemu-kvm -M pc -m 2G -smp 2 -cpu Nehalem -usb -device usb-tablet -netdev tap,id=hostnet0,script=/etc/qemu-ifup -device e1000,netdev=hostnet0,id=net0 -uuid 4870b5fd-65d1-488a-9333-3c4e095285b0 -rtc-td-hack -no-kvm-pit-reinjection -chardev socket,id=a111,path=/tmp/monitor-win2012-serial,server,nowait -mon chardev=a111,mode=readline -vnc :11 -vga cirrus -monitor stdio -cdrom en_windows_8_enterprise_x86_dvd_917587.iso -device virtio-scsi-pci,id=scsi1 -drive file=137RNGWIN832YFR,if=none,id=drive-scsi-disk2,format=raw,serial=22,cache=writethrough -device scsi-hd,bus=scsi1.0,drive=drive-scsi-disk2,id=scsi-disk2

3 if uninstall build141, it can boot successfully on build 136.

How reproducible:
3/3

Version-Release number of selected component (if applicable):
guest: win8-32
virtio-win-prewhql-141
virtio-win-1.9.1-0.el7 (vioscsi build 136)
qemu-img-rhev-2.9.0-14.el7.x86_64
kernel-3.10.0-671.el7.x86_64

Comment 15 lijin 2017-08-15 09:25:03 UTC
According to comment#14,no bsod issue now and guest can works normally.
So close this bug.