Bug 700705

Summary: Can not start RHEL 3u9 virtio disk after install kmod-virtio
Product: Red Hat Enterprise Linux 3 Reporter: Mike Cao <bcao>
Component: virtioAssignee: Miroslav Rezanina <mrezanin>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 3.9CC: bcao, juzhang, michen, xfu
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-29 10:21:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
screendump none

Description Mike Cao 2011-04-29 05:53:29 UTC
Description of problem:


Version-Release number of selected component (if applicable):
host info (intel host):
# uname -r
2.6.32-131.0.7.el6.x86_64
# rpm -q qemu-kvm
qemu-kvm-0.12.1.2-2.160.el6.x86_64


guest info :
2.4.21-66.ELsmp

How reproducible:
always

Steps to Reproduce:
1.install RHEL3u9_32 guest with if=ide
CLI:/usr/libexec/qemu-kvm -S -M rhel6.1.0 -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name rhel3 -uuid 250ed76e-5593-2e4f-8557-42d700755855 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/rhel3.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -boot c -drive file=/home/rhel3,if=none,id=drive-ide0-0-0,format=raw,cache=none -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -netdev tap,fd=22,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=52:54:00:8c:71:d6,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -usb -vnc 127.0.0.1:0 -vga cirrus -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
2.in the guest ,install kernel-smp-2.4.21-66.EL.i686.rpm
3.in the guest ,install kmod-virtio-0.1-19.el3.i686.rpm
4.poweroff the guest ,then restart the guest with -if=virtio

Actual results:
it shows disk error ,can not successfully boot up(referring to screendump).

Expected results:


Additional info:
also tried 
#mkinitrd --with=virtio --with=virtio_pci --with=virtio_ring --with=virtio_blk --with=virtio_net -f /boot/initrd-2.4.21-66.smp_mike.img 2.4.21-66.ELsmp 
in the guest ,after restart with if=virtio ,guest kernel panic.

Comment 1 Mike Cao 2011-04-29 05:54:30 UTC
Created attachment 495714 [details]
screendump

Comment 3 Miroslav Rezanina 2011-04-29 06:09:18 UTC
Hi,
did you install kvm-virtio in i686 kernel or x86_64 kernel? Can you please check if the device files (/dev/xvd*) are created?

Comment 4 Mike Cao 2011-04-29 06:17:24 UTC
(In reply to comment #3)
> Hi,
> did you install kvm-virtio in i686 kernel or x86_64 kernel? Can you please
> check if the device files (/dev/xvd*) are created?

I install kmod-virtio-0.1-19.el3.i686.rpm in i686 bit kernel

I did not find /dev/xvd* under /dev.

Comment 5 FuXiangChun 2011-04-29 10:21:23 UTC
hi,
 according to the following steps, bug can not be reproduced. and guest work well.

1.install one of three kernels and start guest with it.
2.install corresponding virtio drive
3.poweroff guest, and using above kernel restart guest with virtio drive

or

1. install all kernels 
2. select one kernels to start guest and install corresponding virtio drive
3. using above kernel to restart guest with virtio drive

so it is not bug.