qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] booting a linux kernel from NFS
Date: Tue, 10 Oct 2006 12:00:36 -0400	[thread overview]
Message-ID: <200610101200.36417.rob@landley.net> (raw)
In-Reply-To: <452BC045.20905@bluegap.ch>

On Tuesday 10 October 2006 11:46 am, Markus Schiltknecht wrote:
> Hi,
> 
> I get this error, when I don't give qemu a 'hda':

Use "/dev/zero".  (Several people have suggested that qemu should default 
to /dev/zero when you give it a kernel but don't give it a hard drive, but 
last I checked it still wasn't doing that.)

> A disk image must be given for 'hda' when booting a Linux kernel.
> 
> Why is that?  Isn't it completely legal to start without a IDE drive?

Because the way -kernel works is to create a fake bootsector internally, 
present it to the bios as the start of hda, and tell the bios to boot from 
that.  If you haven't got an hda, it gets confused.  (It probably shouldn't, 
since it's not actually _using_ it, but it does.)

Note that if you mmap /dev/zero it counts as an anonymous mapping, so feeding 
in /dev/zero for hda works just fine here.

Rob
-- 
"Perfection is reached, not when there is no longer anything to add, but when 
there is no longer anything to take away." - Antoine de Saint-Exupery

  reply	other threads:[~2006-10-10 16:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-10 15:46 [Qemu-devel] booting a linux kernel from NFS Markus Schiltknecht
2006-10-10 16:00 ` Rob Landley [this message]
2006-10-10 16:17   ` Markus Schiltknecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200610101200.36417.rob@landley.net \
    --to=rob@landley.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).