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 :
What's the problem? Is the size of the root partition of the qcow2 image. It's only 4 GB. Basically I can't do anything of important with it because the space becomes full immediately. I'm looking for some working method to increase it, but at the moment I haven't found the right road. I tried to mount the qcow2 file with this command before to resize it :
What it means? What should I do? Do u have a full tutorial where I can learn the whole procedure?
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 if=none,file=/root/Desktop/zi/Work/Android/OS/freebsd/FreeBSD-13.0-RELEASE-arm64-aarch64.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
Code:
# qemu-nbd -c /dev/nbd0 FreeBSD-13.0-RELEASE-arm64-aarch64.qcow2
qemu-nbd: Kernel /dev/nbdN support not available
What it means? What should I do? Do u have a full tutorial where I can learn the whole procedure?