ok. I could extract the kernel files (so,between the qemu parameters I should put : initrd and vmlinuz,right ? How ?
-enable-kvm -serial stdio -kernel vmlinux -what here initrd \ from the ubuntu 22.10 img,but I'm sure that it does not have any dtb file. I never needed a dtb file when I booted my vms,neither with qemu,nor with bhyve. On Fri, Aug 11, 2023 at 7:44 PM Peter Maydell <peter.mayd...@linaro.org> wrote: > On Fri, 11 Aug 2023 at 18:27, Mario Marietto <marietto2...@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. > > thanks > -- PMM > -- Mario.