* can kvm tool load vmlinux?
@ 2011-12-14 21:24 David Evensky
2011-12-15 0:49 ` Matt Evans
0 siblings, 1 reply; 2+ messages in thread
From: David Evensky @ 2011-12-14 21:24 UTC (permalink / raw)
To: kvm
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?
Thanks,
\dae
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: can kvm tool load vmlinux?
2011-12-14 21:24 can kvm tool load vmlinux? David Evensky
@ 2011-12-15 0:49 ` Matt Evans
0 siblings, 0 replies; 2+ messages in thread
From: Matt Evans @ 2011-12-15 0:49 UTC (permalink / raw)
To: David Evensky; +Cc: kvm
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-15 0:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-14 21:24 can kvm tool load vmlinux? David Evensky
2011-12-15 0:49 ` Matt Evans
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).