:: Re: [DNG] Which qemu version is shi…
Page principale
Supprimer ce message
Répondre à ce message
Auteur: Mario Marietto
Date:  
À: Ralph Ronnquist
CC: dng
Sujet: Re: [DNG] Which qemu version is shipped by default with devuan 3 ?
Very thanks,I tried to apply your suggestions,as follows :

/mnt/./monta-fisso
sleep 2

UEFICODE=/usr/share/AAVMF/AAVMF32_CODE.fd
UEFIVARS=/usr/share/AAVMF/AAVMF32_VARS.fd
CD1=/mnt/fisso/OS/ISO/BSD/FreeBSD-13.2-RELEASE-arm-armv7-GENERICSD.img
CD2=/mnt/fisso/OS/ISO/Linux/bookworm_mini_armhf.iso
DISK=/mnt/fisso/bhyve/img/FreeBSD/FreeBSD.img

qemu-system-arm \
-enable-kvm -serial stdio \
-m 512 -M virt -cpu cortex-a15 \
-drive if=pflash,format=raw,unit=0,file=$UEFICODE \
-drive if=pflash,format=raw,unit=1,file=$UEFIVARS \
-cdrom $CD2 \
-drive file=$DISK,format=raw \
-device virtio-net,netdev=net0,mac="52:54:00:12:34:55" \
-netdev type=user,id=net0 \
-device virtio-gpu-pci \
-usb -device nec-usb-xhci \
-device usb-kbd -device usb-mouse \
-device vmware-svga,id=video0,vgamem_mb=16

but the error is always there. Am I missing something ?

On Sun, Aug 13, 2023 at 1:20 AM Ralph Ronnquist <rrq@???> wrote:

> On Sat, Aug 12, 2023 at 06:42:54PM +0200, Mario Marietto wrote:
> > Hello. I'm trying to boot and virtualize FreeBSD 13 for arm 32 bit on my
> > ARM chromebook,where I have installed devuan 4. These are the parameters
> > used :
> >
> > qemu-system-arm \
> >     -enable-kvm -serial stdio \
> >     -m 512 -M virt -cpu cortex-a15 \
> >     -drive
> if=pflash,format=raw,unit=1,file=/usr/share/AAVMF/AAVMF32_VARS.fd \
> >     -drive
> if=pflash,format=raw,unit=0,file=/usr/share/AAVMF/AAVMF32_CODE.fd \
> >     -boot d \
> >     -cdrom
> /mnt/fisso/OS/ISO/BSD/FreeBSD-13.2-RELEASE-arm-armv7-GENERICSD.img \
> >     -drive
> file=/mnt/fisso/bhyve/img/FreeBSD/FreeBSD.img,id=virtio-blk,if=none \
> >     -device virtio-blk,drive=virtio-blk \
> >     -device virtio-net,netdev=net0,mac="52:54:00:12:34:55" \
> >     -netdev type=user,id=net0 \
> >     -device virtio-gpu-pci \
> >     -device vmware-svga,id=video0,vgamem_mb=16

>
> Right; I don't have too much experience with either of that cpu, that
> machine, using UEFI on arm7 nor that FreeBSD image. But I jumped into
> this and got it started with the following setup:
> ----------
> UEFICODE=AAVMF32_CODE.fd
> UEFIVARS=AAVMF32_VARS.fd
> CD=FreeBSD-13.2-RELEASE-arm-armv7-GENERICSD.img
> DISK=FreeBSD.img
>
> qemu-system-arm \
> -serial stdio \
> -m 512 -M virt -cpu cortex-a15 \
> -drive if=pflash,format=raw,unit=0,file=$UEFICODE \
> -drive if=pflash,format=raw,unit=1,file=$UEFIVARS \
> -cdrom $CD \
> -drive file=$DISK,format=raw \
> -device virtio-net,netdev=net0,mac="52:54:00:12:34:75" \
> -netdev type=user,id=net0 \
> -device virtio-gpu-pci \
> -device vmware-svga,id=video0,vgamem_mb=16
> ----------
>
> 1) For some reason qemu objected to using the system UEFI emulation
> files but was happy when I copied them (to `pwd`). I also reordered
> the pflash parameters (for clarity).
>
> 2) My host is amd64 so arm emulation cannot use kvm.
>
> 3) Don't need "-boot" (or shouldn't use?) parameter with UEFI, but
> drive order is important.
>
> 4) I added "format=raw" to the disk image since qemu warns about that.
>
> 5) I dropped the "virtio-blk" name and equipment are default in the
> "virt" machine so you may leave out those.
>
> Probably only 1 and 2 are important to make it work.
>
> regards,
>
> Ralph.
>
> >
> >
> > but nope,it does not boot :
> >
> >
> > [image: 2023-08-12_13-29.png]
> > you know what's wrong ? thanks.
> >
> > On Fri, Aug 11, 2023 at 12:59 PM Ralph Ronnquist <rrq@???> wrote:
> >
> > > On Fri, Aug 11, 2023 at 11:50:24AM +0200, Mario Marietto via Dng wrote:
> > > > Hello to everyone.
> > > >
> > > > I need to install a version of qemu less than 5.0 on my devuan for
> armhf
> > > on
> > > > my ARM Chromebook,because it is needed if I want that kvm works in
> > > > combination with it,as stated here :
> > > >
> > > > >From
> > > https://lists.gnu.org/archive/html/qemu-devel/2020-09/msg02074.html
> > > >
> > > > We deprecated the support for KVM on 32-bit Arm hosts in time
> > > > for release 5.0, which means that our deprecation policy allows
> > > > us to drop it in release 5.2. Remove the code.
> > > >
> > > >
> > > > At the moment I'm using devuan 4 and I see that it has qemu 5.2 as
> > > default
> > > > and it's not good. So,I have two options :
> > > >
> > > > 1) to install devuan 3 on the sd card (if it is shipped with qemu
> less
> > > than
> > > > 5.0)
> > > >
> > > > 2) to use devuan 4 ; in this case,I need to recompile qemu less than
> 5.0
> > > > from source code.
> > > >
> > > > Which option do you prefer ? thanks.
> > >
> > > Since beowulf's qemu is only version 3.1, I'd suggest that compiling
> > > from source would be the better option if you're comfortable with
> > > that. (see https://pkginfo.devuan.org/qemu-system-arm)
> > >
> > > Ralph.
> > >
> > > >
> > > > --
> > > > Mario.
> > >
> > > > _______________________________________________
> > > > Dng mailing list
> > > > Dng@???
> > > > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
> > >
> > > _______________________________________________
> > > Dng mailing list
> > > Dng@???
> > > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
> > >
> >
> >
> > --
> > Mario.
>
>
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>



--
Mario.