[Top][All Lists]

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

Re: Invalid accelerator kvm / error: kvm run failed Function not impleme

From: Peter Maydell
Subject: Re: Invalid accelerator kvm / error: kvm run failed Function not implemented ERRORS trying to virtualize a guest OS on the ARM Chromebook running with a relatively recent kernel version and KVM enabled
Date: Fri, 11 Aug 2023 18:44:18 +0100

On Fri, 11 Aug 2023 at 18:27, Mario Marietto <marietto2008@gmail.com> wrote:
> ok. I've been lucky. Qemu compiled successfully. Now I'm going to execute 
> this command :
> qemu-system-arm \
>     -enable-kvm -serial stdio -kernel zImage \
>     -m 512 -M vexpress-a15 -cpu cortex-a15 \
>     -drive 
> file=/mnt/fisso/bhyve/img/Linux/ubuntu2210.img,id=virtio-blk,if=none \
>     -device virtio-blk,drive=virtio-blk,transport=virtio-mmio.0 \
>     -device 
> virtio-net,transport=virtio-mmio.1,netdev=net0,mac="52:54:00:12:34:55" \
>     -netdev type=user,id=net0 \
>     -append "earlyprintk=ttyAMA0 console=ttyAMA0 mem=512M \
>              virtio_mmio.device=1M@0x4e000000:74:0 \
>              virtio_mmio.device=1M@0x4e100000:75:1 \
>              root=/dev/vda rw ip=dhcp --no-log"
> I would ask you : let's assume that I have already installed ubuntu 22.10 and 
> that it is inside the file called "ubuntu2210.img".
> I would like to know how to remove the parameter "-kernel zImage",because in 
> that case I don't need it.
> The problem is that if I remove it without adding some other parameter,it 
> says that I should use it.
> But I don't need it to declare the kernel within the qemu parameters because 
> it is inside the file "ubuntu2210.img".

You can't do that. There is no guest BIOS image for that machine
type which knows how to read disk images and boot from them.
So you must manually extract (or otherwise provide) a suitable
kernel (and perhaps also initrd and dtb file) and pass them
to QEMU, because QEMU's "built in bootloader" is very simple
and just loads the kernel file and jumps to it.

-- PMM

reply via email to

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