From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Evans Subject: Re: can kvm tool load vmlinux? Date: Thu, 15 Dec 2011 11:49:46 +1100 Message-ID: <4EE9442A.7070400@ozlabs.org> References: <20111214212418.GD11075@dancer.ca.sandia.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: David Evensky Return-path: Received: from ozlabs.org ([203.10.76.45]:33212 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758175Ab1LOAst (ORCPT ); Wed, 14 Dec 2011 19:48:49 -0500 In-Reply-To: <20111214212418.GD11075@dancer.ca.sandia.gov> Sender: kvm-owner@vger.kernel.org List-ID: On 15/12/11 08:24, David Evensky wrote: > > I've been trying see if I can use a vmlinux kernel binary image with kvm tool. > If use a bzImage as > > lkvm run -k .../bzImage --console serial -d /dev/null > > which runs until it expectedly dies since I didn't give it an initramfs or disk. > However, when I try: > > lkvm run -k .../bzImage --console serial -d /dev/null > > I get the following printed and then nothing: > > # kvm run -k .../vmlinux -m 448 -c 4 --name guest-12289 > Warning: .../vmlinux is not a bzImage. Trying to load it as a flat binary... > > > Is this supposed to work? Hi David, Currently there are loaders for bzImages and flat binaries only. Since your vmlinux is not detected as a bzImage (it's a plain ELF), kvmtool will assume it's a flat binary (which it isn't) & try that. Boom! An ELF loader would be cool though. (Maybe if I find time...) Cheers, Matt