Skip to contentSkip to conversation

it works !

Qemu-devel [email protected] 3 participants 3 messages Mar 25, 2004 – Mar 26, 2004

lore
Share & tools
lore
#0 lore raw

Here is a little trick to allow "already installed" partitions to boot. (As I said, with only "dd if=/dev/hda of=file.img count=6M" and "qemu file.img", bootloaders crash)

1- create and install the partition in "normal mode", ( on hda1 for example ) (do not do the same mistake as me, prepare a linux boot disk before !!!) make a copy of hda1 under linux, skiping the first 63 blocks :
dd if=/dev/hda of=original.img count=6M skip=63

2- prepare the file "qemu_hd.img" with qemu .fdisk. format it, and install the OS too. after the reboot, it should fail, complaining about a memory allocation problem. Don't care, shut down.

3- use the option "seek" on the two files :
dd if=original.img of=qemu_hd.img seek=63 (qemu_hd.img must already have been created, as said before)

4- qemu -hda=qemu_hd.img -boot c
Youpi !

notice : harware detection does not work yet. notice 2 : block size on mandrake 10 is 512, not 1024 !

#1 lore raw
Quoted 1 line · Le jeudi 25 Mars 2004 20:56, [email protected] a écrit :

Here is a little trick to allow "already installed" partitions to boot.

Thanks for the info. I did a normal installation on SuSE 8.2 too and booted in Qemu without problem. But it takes a long time. Wouldn't it be easier to install GNU/Linux directly in qemu using a CD-ROM installer?

Installers for Mandrake 10, Mandrake 9.x, RedHat 9.x or even Fedora RC-2 are derived from a RedHat base. In all cases, installation in text mode fails because of CD-ROM recognition problems (see my screenshots on
http://am.xs4all.nl/phpwiki/index.php/Qemu).

Is there a way of loading the CDROM module manually, with IRQ and hardware address (like it is the case for the "ne" network driver)?

Cheers,
Jean-Michel

#2 lore raw
Quoted 7 lines · Jean-Michel POURE
Quoted 1 line · Le jeudi 25 Mars 2004 20:56, [email protected] a écrit :

Here is a little trick to allow "already installed" partitions to boot.

Thanks for the info. I did a normal installation on SuSE 8.2 too and booted in Qemu without problem. But it takes a long time. Wouldn't it be easier to install GNU/Linux directly in qemu using a CD-ROM installer?

Quoted 7 lines

Installers for Mandrake 10, Mandrake 9.x, RedHat 9.x or even Fedora RC-2 are derived from a RedHat base. In all cases, installation in text mode fails because of CD-ROM recognition problems (see my screenshots on
http://am.xs4all.nl/phpwiki/index.php/Qemu).

Is there a way of loading the CDROM module manually, with IRQ and hardware address (like it is the case for the "ne" network driver)?

there are various kernel parameters that might help. From my head I recall
ideX=base,ctrl,irq
hdX=ide-cd|ide-scsi
Some docs are directly in the kernel source.

Richard