Bug 506435 - kvm: -kernel option seems broken
Summary: kvm: -kernel option seems broken
Keywords:
Status: CLOSED DUPLICATE of bug 506443
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: 11
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Glauber Costa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-17 09:58 UTC by Stefan Assmann
Modified: 2009-06-17 13:17 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-06-17 12:06:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Stefan Assmann 2009-06-17 09:58:49 UTC
Description of problem:
I tried to run the stock F11 kernel in kvm with
qemu-kvm -kernel /boot/vmlinuz-2.6.29.4-167.fc11.x86_64
but it didn't boot the kernel and only displayed:
FATAL: no bootable device.

Version-Release number of selected component (if applicable):
qemu-kvm-0.10.5-2.fc11.x86_64

How reproducible:
always

Steps to Reproduce:
1. qemu-kvm -kernel /boot/vmlinuz-2.6.29.4-167.fc11.x86_64
  
Actual results:
FATAL: no bootable device.

Expected results:
boot of kernel vmlinuz-2.6.29.4-167.fc11.x86_64

Comment 1 Mark McLoughlin 2009-06-17 10:46:55 UTC
Thanks, I can reproduced. It works with latest qemu-kvm.git/master

Comment 2 Daniel Berrangé 2009-06-17 11:12:04 UTC
Historically when using  -kernel, it has been compulsory to add a IDE hard disk. This is because -kernel is implemented as a sick, disgusting, evil hack where we copy a fake boot sector into the first IDE hard drive, to make the BIOS boot the kernel specified. I think latest upstream has finally switched to using a proper option ROM to avoid this gross hack.

Comment 3 Stefan Assmann 2009-06-17 11:47:00 UTC
Hi Daniel,

my original idea was to do the following:

qemu-kvm -kernel /boot/vmlinuz-2.6.29.4-167.fc11.x86_64 -initrd /boot/initrd-2.6.29.4-167.fc11.x86_64.img F11.img

and later on replace kernel and initrd with my custom builds for testing but that didn't work so I simplified it to realize that

qemu-kvm -kernel /boot/vmlinuz-2.6.29.4-167.fc11.x86_64

didn't work either.

If there is some other boot option to try just let me know.

Comment 4 Mark McLoughlin 2009-06-17 12:06:00 UTC

*** This bug has been marked as a duplicate of bug 506443 ***


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