Bug 682098 - kernel panic when boot guest with virtio blk after boot guest with ide blk
Summary: kernel panic when boot guest with virtio blk after boot guest with ide blk
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel
Version: 5.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Red Hat Kernel Manager
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: Rhel5KvmTier2
TreeView+ depends on / blocked
 
Reported: 2011-03-04 05:51 UTC by Shirley Zhou
Modified: 2015-03-05 00:52 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-10 04:31:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screen shot (21.89 KB, image/png)
2011-03-04 05:54 UTC, Shirley Zhou
no flags Details

Description Shirley Zhou 2011-03-04 05:51:20 UTC
Description of problem:
Install RHEL5.6 guest with virtio block, then shutdown this guest after installation finish, then start this guest with ide block, then start guest with virtio block, guest kernel panic.

Version-Release number of selected component (if applicable):
kernel-2.6.18-238.5.1.el5

How reproducible:
100%

Steps to Reproduce:
1.install guest with virtio block
2.shutdown guest after guest finish  installation
3.start guest with ide block
4. shutdown guest, start guest with virtio block 
  
Actual results:
after step 4, guest become kernel panic as attached screen shot, guest can not boot up.

Expected results:
Guest should boot ok

Additional info:

Comment 1 Shirley Zhou 2011-03-04 05:54:13 UTC
Created attachment 482227 [details]
screen shot

Comment 2 FuXiangChun 2011-06-09 11:37:36 UTC
tested on

host info:
# uname -r
2.6.32-156.el6.x86_64
#rpm -qa|grep kvm
qemu-kvm-0.12.1.2-2.164.el6.x86_64

guest info:
# uname -r
2.6.18-267.el5

steps to test:
1.install guest with virtio block

/usr/libexec/qemu-kvm -m 4G -smp 2 -usbdevice tablet -drive file=rhel5.7-64,if=none,id=drive-virtio0,werror=stop,rerror=stop,cache=none -boot c -device virtio-blk-pci,drive=drive-virtio0,id=virtio-blk-pci0 -netdev tap,id=hostnet0,script=/etc/qemu-ifup -device virtio-net-pci,netdev=hostnet0,mac=02:00:ff:3F:2f:1f,bus=pci.0 -uuid `uuidgen` -name rhel57 -cdrom RHEL-Server-5.7-x86_64-DVD -monitor stdio -vnc :1

2.shutdown guest after guest finish  installation
3.start guest with ide block

/usr/libexec/qemu-kvm -m 10G -smp 4,sockets=2,cores=2,threads=1 -name tt -uuid `uuidgen` -boot c -drive file=/usr/tools/rhel6-3-1.raw,if=none,id=drive-ide0-0-0,format=raw -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -net nic,macaddr=20:43:50:12:23:21,model=virtio,vlan=2 -net tap,script=/etc/qemu-ifup,vlan=2 -vnc :3 -monitor stdio


4. shutdown guest, start guest with virtio block

/usr/libexec/qemu-kvm -m 4G -smp 2 -usbdevice tablet -drive file=rhel5.7-64,if=none,id=drive-virtio0,werror=stop,rerror=stop,cache=none -boot c -device virtio-blk-pci,drive=drive-virtio0,id=virtio-blk-pci0 -netdev tap,id=hostnet0,script=/etc/qemu-ifup -device virtio-net-pci,netdev=hostnet0,mac=02:00:ff:3F:2f:1f,bus=pci.0 -uuid `uuidgen` -name rhel57  -monitor stdio -vnc :1 

Actual results:
guest can boot successful

Based on above ,this bug can not be reproduced in host 6.1.

Comment 3 juzhang 2011-06-10 04:31:29 UTC
According to comment1, close this issue as worksforeme,if anybody hit this issue again,please re-open it.


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