:: Re: [DNG] Which qemu version is shi…
Etusivu
Poista viesti
Vastaa
Lähettäjä: Mario Marietto
Päiväys:  
Vastaanottaja: Ralph Ronnquist
Kopio: dng
Aihe: Re: [DNG] Which qemu version is shipped by default with devuan 3 ?
Are you sure that you copied the UEFI files inside the directory /run ? I
did it,but when I reboot,they are deleted. And this is what happens when I
copy them into /run :

root@devuan:~/Dati# cp /usr/share/AAVMF/AAVMF32_VARS.fd /run
root@devuan:~/Dati# cp /usr/share/AAVMF/AAVMF32_CODE.fd /run
cp: error writing '/run/AAVMF32_CODE.fd': No space left on device

/mnt/./monta-fisso
sleep 2

UEFICODE=/run/AAVMF32_CODE.fd
UEFIVARS=/run/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

ERROR : qemu-system-arm: device requires 67108864 bytes, block backend
provides 35745792 bytes

it seems that /run is not the right place.

On Sun, Aug 13, 2023 at 4:16 PM Ralph Ronnquist <rrq@???> wrote:

> On Sun, Aug 13, 2023 at 04:03:00PM +0200, Mario Marietto wrote:
> > 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 ?
>
> Well, I think the UEFI emulation requires write permission on both
> $UEFICODE and $UEFIVARS. I solved that by copying them to my run
> directory.
>
> > ...
> >
> > --
> > Mario.
>
> regards,
>
> Ralph.
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>



--
Mario.