[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: Mario Marietto
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 19:26:46 +0200

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".

On Fri, Aug 11, 2023 at 6:17 PM Peter Maydell <peter.maydell@linaro.org> wrote:
On Fri, 11 Aug 2023 at 17:05, Mario Marietto <marietto2008@gmail.com> wrote:
> I made some progress,but unfortunately I've got an error :
> root@devuan:~/Desktop/qemu-v5.1.0# ./configure --target-list=arm-softmmu --enable-opengl --enable-gtk --enable-kvm --enable-guest-agent --enable-spice --audio-drv-list="oss pa" --enable-libusb
> no errors here.
> root@devuan:~/Desktop/qemu-v5.1.0# make
> .......
>   CC      hw/usb/hcd-xhci.o
> hw/usb/hcd-xhci.c: In function ‘usb_xhci_realize’:
> hw/usb/hcd-xhci.c:3358:66: error: ‘%d’ directive output may be truncated writing between 1 and 8 bytes into a region of size 5 [-Werror=format-truncation=]
>  3358 |             snprintf(port->name, sizeof(port->name), "usb2 port #%d", i+1);
>       |                                                                  ^~
> hw/usb/hcd-xhci.c:3358:54: note: directive argument in the range [1, 89478486]
>  3358 |             snprintf(port->name, sizeof(port->name), "usb2 port #%d", i+1)
>       |                                                      ^~~~~~~~~~~~~~~
> In file included from /usr/include/stdio.h:867,
>                  from /root/Desktop/qemu-v5.1.0/include/qemu/osdep.h:85,
>                  from hw/usb/hcd-xhci.c:22:
> /usr/include/arm-linux-gnueabihf/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 13 and 20 bytes into a destination of size 16

This is the kind of thing you get when you try to build an
old QEMU on a newer compiler -- the new compiler complains about
more things, and we fix them in new QEMU.

Pass configure '--disable-werror', which will mean that these
are all just warnings, not errors. Then see if there are
any problems still remaining that are real compile failures.

-- PMM


reply via email to

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