qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] problem with qemu-img to create boot disk
@ 2007-05-23 11:39 kaiven long
  0 siblings, 0 replies; only message in thread
From: kaiven long @ 2007-05-23 11:39 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1354 bytes --]

Hi,folks
     I am using QEMU to debug Linux Kernel. And a boot disk is create
through qemu-img. It can cannot be booted with other built kernel. The
process is as the following show:
    create disk image like this:
           qemu-img create -f raw rootdisk.img 8G
    install redhat EL4 U4:
           qemu -boot d -cdrom rhel4u4-disc1.img -hda rootdisk.img
    during installation:
           /dev/hda1 ---> /boot ext2
           /dev/hda2 ----->/       ext2
           /dev/hda3------>    swap
    after the installation, file rootdisk.img, it shows:
           rootdisk.img:      x86 boot sector, code offset 0x48
     it can work like this:
           qemu rootdisk.img
     enter the system:fdisk -l, it shows that
         Partition table entries are not in disk order

     it also panics with other new built kernel like:
      qemu -kernel bzImage -hda rootdisk.img
     but the same kernel can work with the disk image down from qemu's
website:
      qemu -kernel bzImage -hda linux-0.2.img
      The only difference between rootdisk.img and linux-0.2.img is their
file atrributes as the following:
       rootdisk.img:      x86 boot sector, code offset 0x48
       linux-0.2.img:      x86 boot sector

       pls help check the above process. I will appreciate that anyone
points the potential errors.
      thank you~

best wishes,
kaiven

[-- Attachment #2: Type: text/html, Size: 2717 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-23 11:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-23 11:39 [Qemu-devel] problem with qemu-img to create boot disk kaiven long

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).