qemu Mounting from cd9660:/dev/iso9660/13_0_RELEASE_AARCH64_CD failed with error 19.

Hello. I'm trying to emulate Freebsd for arm64 on my jetson nano (arm64) using qemu and kvm. This is the script that I'm using :

Code:
tunctl -t tap0
ifconfig tap0 up
brctl addif virbr0 tap0

/opt/qemu-5.2.0/build/aarch64-softmmu/./qemu-system-aarch64 -m 2048M -cpu cortex-a57 -M virt --enable-kvm \
       -bios /home/zi/Desktop/Work/I9/Virt/qemu/build/pc-bios/edk2-aarch64-code.fd --nographic \
       -drive id=cdrom0,if=none,format=raw,readonly=on,file=/home/zi/Desktop/Work/Android/OS/freebsd/FreeBSD-13.0-RELEASE-arm64-aarch64-disc1.iso \
       -device virtio-scsi-pci,id=scsi0 \
       -device scsi-cd,bus=scsi0.0,drive=cdrom0 \
       -drive if=none,file=/root/Desktop/zi/Work/Android/OS/freebsd/FreeBSD-13.qcow2,id=hd0 \
       -device virtio-blk-device,drive=hd0 \
       -device virtio-net-device,netdev=mynet \
       -netdev tap,id=mynet,ifname=tap0,script=no,downscript=no,vhost=on \
       -device virtio-gpu-pci,virgl=on,xres=1024,yres=768 \
       -display sdl,gl=on \
       -no-reboot

It does not work. The error message is the following one :

Code:
Trying to mount root from cd9660:/dev/iso9660/13_0_RELEASE_AARCH64_CD [ro]...
mountroot: waiting for device /dev/iso9660/13_0_RELEASE_AARCH64_CD...
Mounting from cd9660:/dev/iso9660/13_0_RELEASE_AARCH64_CD failed with error 19.

Loader variables:
  vfs.root.mountfrom=cd9660:/dev/iso9660/13_0_RELEASE_AARCH64_CD
  vfs.root.mountfrom.options=ro

Manual root filesystem specification:
  <fstype>:<device> [options]
      Mount <device> using filesystem <fstype>
      and with the specified (optional) option list.

    eg. ufs:/dev/da0s1a
        zfs:zroot/ROOT/default
        cd9660:/dev/cd0 ro
          (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)

  ?               List valid disk boot devices
  .               Yield 1 second (for background tasks)
  <empty line>    Abort manual input

mountroot> random: unblocking device.

I have also attached two screenshots. Where is the error ? how can I fix it ? Maybe the solution is here :

when he says :

Code:
You need to get a boot prompt and disable [I]ACPI[/I] support before booting:
# set debug.acpi.disabled ="hostres"
# boot

the problem is that as soon as the qemu window appears,no key pressed inside the window have some effect,so I can't have access to the boot options and I can't write those commands. I tried to remove the option "nographic" from qemu,but it does not work. Inside the qemu window I see the message "guest disabled display" and the installation does not procede.
 

Attachments

  • Screenshot_2021-07-10_22-35-26.png
    Screenshot_2021-07-10_22-35-26.png
    384.8 KB · Views: 232
Code:
mountroot> cd9660:/dev/cd0
Trying to mount root from cd9660:/dev/cd0 []...
mountroot: waiting for device /dev/cd0...
Mounting from cd9660:/dev/cd0 failed with error 19.
 
Is there a reason why you need to have scsi cdrom ? I always keep forgetting the new qemu syntax but when I ghetto it quickly and do:
Code:
       -cdrom FreeBSD-13.0-RELEASE-arm64-aarch64-bootonly.iso \
I'm able to boot it (used serial console as main output):
Code:
root@:~ # uname -a
FreeBSD  13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr  9 03:54:53 UTC 2021     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC  arm64
root@:~ #
 
this is the full command that u you have used ?
/opt/qemu-5.2.0/build/aarch64-softmmu/./qemu-system-aarch64 -m 2048M -cpu cortex-a57 -M virt --enable-kvm \
-bios /home/zi/Desktop/Work/I9/Virt/qemu/build/pc-bios/edk2-aarch64-code.fd --nographic \
-cdrom FreeBSD-13.0-RELEASE-arm64-aarch64-disc1.iso \
-drive if=none,file=/root/Desktop/zi/Work/Android/OS/freebsd/FreeBSD-13.qcow2,id=hd0 \
-device virtio-blk-device,drive=hd0 \
-device virtio-net-device,netdev=mynet \
-netdev tap,id=mynet,ifname=tap0,script=no,downscript=no,vhost=on \
-device virtio-gpu-pci,virgl=on,xres=1024,yres=768 \
-display sdl,gl=on \
-no-reboot
 
This one:
Code:
qemu-system-aarch64 -m 2048M -cpu cortex-a57 -M virt \
       -bios edk2-aarch64-code.fd --nographic \
       -cdrom FreeBSD-13.0-RELEASE-arm64-aarch64-bootonly.iso \
       -device virtio-scsi-pci,id=scsi0 \
       -drive if=none,file=FreeBSD-13.qcow2,id=hd0 \
       -device virtio-blk-device,drive=hd0 \
       -no-reboot
 
Your solution worked. You won a big thanks. This :
Code:
/opt/qemu-5.2.0/build/aarch64-softmmu/./qemu-system-aarch64 -m 2048M -cpu cortex-a57 -M virt --enable-kvm \
-bios edk2-aarch64-code.fd --nographic \
-cdrom FreeBSD-13.0-RELEASE-arm64-aarch64-disc1.iso \
-drive if=none,file=FreeBSD-13.qcow2,id=hd0 \
-device virtio-blk-device,drive=hd0 \
-device virtio-net-device,netdev=mynet \
-netdev tap,id=mynet,ifname=tap0,script=no,downscript=no,vhost=on \
-device virtio-gpu-pci,virgl=on,xres=1024,yres=768 \
-display sdl,gl=on \
-no-reboot
 
Back
Top