Skip to contentSkip to conversation

Boot options.

Qemu-devel Martin Moeller 2 participants 2 messages Sep 29, 2004 – Sep 30, 2004

lore
Share & tools
lore
#0 lore raw

Hi all.

In some rare cases I would like to be able to boot off what will essentially be /dev/hdc in Qemu (this is because the machine the image I boot is meant for uses hdc for flash cards).
In 0.6.0 that is not possible since -boot c = /dev/hda and -boot d = cdrom. Could this functionality be expanded somewhat without too much trouble? I guess something like -boot hd:1-4 (maybe hd:0-3?) and ditto cd: or cdrom:
entries? Can I somehow force this to happen? Maybe with a floppy image booting off hdc?

Thanks for a great project. Immensely interesting...

/Martin.

#1 lore raw
Quoted 10 lines · Martin Moeller

Hi all.

In some rare cases I would like to be able to boot off what will essentially be /dev/hdc in Qemu (this is because the machine the image I boot is meant for uses hdc for flash cards).
In 0.6.0 that is not possible since -boot c = /dev/hda and -boot d = cdrom. Could this functionality be expanded somewhat without too much trouble? I guess something like -boot hd:1-4 (maybe hd:0-3?) and ditto cd: or cdrom:
entries? Can I somehow force this to happen? Maybe with a floppy image booting off hdc?

probably using a bootload might be sufficient,
luckily there are many different bootloaders
available (like lilo or grub) which can be used
for this ...

e.g. from the grub manual:

     # cd /usr/share/grub/i386-pc
     # dd if=stage1 of=/dev/fd0 bs=512 count=1
     1+0 records in
     1+0 records out
     # dd if=stage2 of=/dev/fd0 bs=512 seek=1
     153+1 records in
     153+1 records out
     #

now adapting this a little, you get

     # cat stage1/stage1 stage2/stage2 >grub.fd

and you can boot that with

     # qemu -m 16 -fda grub.fd -boot a

HTH,
Herbert

Quoted 10 lines

Thanks for a great project. Immensely interesting...

/Martin.

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel