Skip to contentSkip to conversation

Using -kernel .. with -drive ...

DISCUSSION Damjan 2 participants 3 messages Apr 21, 2008 – Apr 22, 2008 1 message not in the archive KVM

lore
Share & tools
lore

Damjan

author
#0 lore raw

If I try

  $ qemu -kernel minimal-kernel -drive file=jeos-devel.img,if=virtio
I get the following error:
  A disk image must be given for 'hda' when booting a Linux kernel
is this neccesseary?
Signature · 13 lines
damjan | дамјан
This is my jabber ID -->         [email protected] 
 -- not my mail address, it's a Jabber ID --^ :)

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

A message that is not in the archive (sent off-list or not yet received): 1208788957.7077.6.camel@frecb07144

author
#2 lore raw
Quoted 10 lines
Quoted 5 lines

If I try

  $ qemu -kernel minimal-kernel -drive file=jeos-devel.img,if=virtio
I get the following error:
  A disk image must be given for 'hda' when booting a Linux kernel
is this neccesseary?

Hi, i don't know if it is always needed (I saw some patches to avoid that) but you can use:

qemu -kernel minimal-kernel -drive file=jeos-devel.img,if=virtio -hda /dev/zero

cool that works, thanks

Signature · 13 lines
damjan | дамјан
This is my jabber ID -->         [email protected] 
 -- not my mail address, it's a Jabber ID --^ :)

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel
#3 lore raw
Quoted 6 lines · Damjan
Quoted 5 lines
Quoted 5 lines

If I try

  $ qemu -kernel minimal-kernel -drive file=jeos-devel.img,if=virtio
I get the following error:
  A disk image must be given for 'hda' when booting a Linux kernel
is this neccesseary?
Quoted 6 lines
Quoted 4 lines

Hi, i don't know if it is always needed (I saw some patches to avoid that) but you can use:

qemu -kernel minimal-kernel -drive file=jeos-devel.img,if=virtio -hda /dev/zero

cool that works, thanks

Try the linuxboot option ROM, and you might not need the trick "-hda /dev/zero"

Thanks,
Q

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone