Bug 788024

Summary: win2k3 64bit guest can not boot with bus=ide.0
Product: Red Hat Enterprise Linux 6 Reporter: Mike Cao <bcao>
Component: qemu-kvmAssignee: Gleb Natapov <gleb>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.3CC: acathrow, bcao, bsarathy, juzhang, knoel, michen, mkenneth, tburke, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-08 21:33:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Mike Cao 2012-02-07 09:19:37 UTC
Description of problem:
we support ide disk in 4 slot namely , 
bus=ide.0,unit=0
bus=ide.0,unit=1
bus=ide.1,unit=0
bus=ide.1,unit=1

Version-Release number of selected component (if applicable):
# uname -r ; rpm -q qemu-kvm
2.6.32-228.el6.x86_64
qemu-kvm-0.12.1.2-2.222.el6.x86_64

How reproducible:
100%


Steps to Reproduce:
1.install win2k3_bit guest with use default ide and unit 
eg :-drive id=ide-0-0-0,XX \
-device ide-drive,,drive=drive-ide0-0-0,id=ide0-0-0
2.start this guest with bus=ide.0
-drive id=ide-0-0-0,XX \
-device ide-drive,*bus=ide.0*,unit=0,drive=drive-ide0-0-0,id=ide0-0-0
3.start this guest with bus=ide.0
-drive id=ide-0-0-1,XX \
-device ide-drive,*bus=ide.0*,unit=1,drive=drive-ide0-0-1,id=ide0-0-1
4 start this guest with bus=ide.1
-drive id=ide-0-1-0,XX \
-device ide-drive,*bus=ide.1*,unit=0,drive=drive-ide0-1-0,id=ide0-1-0
3.start this guest with 
-drive id=ide-0-1-1,XX \
-device ide-drive,*bus=ide.1*,unit=1,drive=drive-ide0-1-1,id=ide0-1-1
  
Actual results:

----------------------------------------------------------------------
    bus        unit       testing result
    ide.0       0            fail to boot 
    ide.0       1            fail to boot 
    ide.1       0            boot successfully
    ide.1       1            boot successfully

Expected results:

guest should boo successfully All the conditions above .

Additional info:
Add bootindex will not hit this problem

Comment 2 Dor Laor 2012-02-08 09:12:30 UTC
Doesn't it clashes with the cdrom? Please provide full description of this

Comment 3 Mike Cao 2012-02-08 09:33:57 UTC
(In reply to comment #2)
> Doesn't it clashes with the cdrom? Please provide full description of this

For this bug I don't think it is related with cdrom ,every time I use (qemu)info block to check the the block info , no default cdrom device showed 

I also tried start image which bus=ide.0 and append a -cdrom XXX.iso ,Guest still could not start ,it hang at "Booting from Hard Disk"

Comment 4 Gleb Natapov 2012-02-08 09:42:00 UTC
You should never ever even think about trying to move HDD between devices (or changing bootindex of HDD) and then complain about it not booting. It is not supposed to work. If it works this is because you got lucky this time. I am not sure what are you trying to test but you surely do it wrong.

Comment 5 Dor Laor 2012-02-08 21:33:25 UTC
Seems like Gleb 'thinks' :) its not a bug