From: "Nguyen Anh Quynh" Subject: Re: Using -kernel .. with -drive ... Date: Tue, 22 Apr 2008 11:33:15 +0900 Message-ID: <9cde8bff0804211933p74f2f2f4v8a3bba3e28d8b1a9@mail.gmail.com> References: <20080421143006.GA19404@legolas.on.net.mk> <1208788957.7077.6.camel@frecb07144> <20080421155945.GA22360@legolas.on.net.mk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel@lists.sourceforge.net, Laurent Vivier To: Damjan Return-path: In-Reply-To: <20080421155945.GA22360@legolas.on.net.mk> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org On Tue, Apr 22, 2008 at 12:59 AM, Damjan wrote: > > > If I try > > > $ qemu -kernel minimal-kernel -drive file=jeos-devel.img,if=virtio > > > I get the following error: > > > A disk image must be given for 'hda' when booting a Linux kernel > > > is this neccesseary? > > > Hi, i don't know if it is always needed (I saw some patches to avoid > > that) but you can use: > > > > qemu -kernel minimal-kernel -drive file=jeos-devel.img,if=virtio -hda /dev/zero > > cool that works, thanks Try the linuxboot option ROM, and you might not need the trick "-hda /dev/zero" Thanks, Q ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone