qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] Allow -kernel without -hda


From: Ed Swierk
Subject: [Qemu-devel] [PATCH] Allow -kernel without -hda
Date: Sun, 30 Apr 2006 20:11:39 -0700

The qemu -kernel option currently requires specifying a hard disk
image with -hda. Ostensibly at least one hard disk is needed for
qemu's boot loader to populate the partition table in its array of
boot sectors.

Passing -hda /dev/zero tricks qemu into booting, which demonstrates
that the requirement is unnecessary. Booting with no disk image is
needed to support diskless configurations where a remote NFS directory
is used as the root filesystem. In this scenario, the user invokes
qemu with -kernel and -initrd options, with a specially configured
initrd that NFS-mounts a filesystem on / before passing control to the
real init.

The attached patch permits using the -kernel option with no disk
images, and skips copying the partition table in this case.

--Ed

Attachment: qemu-kernel-without-hda.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]