[Bug 268044] NUL-byte FS corruption using QCOW2 image for RISC-V
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 268044] NUL-byte FS corruption using QCOW2 image for RISC-V"
 - Go to: [ bottom of page ] [ top of archives ] [ this month ]
 
Date: Mon, 28 Nov 2022 17:32:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268044
--- Comment #2 from Tril <fbb@tril.bespin.org> ---
6.1.0 qemu script
#!/bin/sh
VID=1
NETDRIVER=virtio-net-pci
USER=tril
exec /home/tril/.guix-profile/bin/qemu-system-riscv64 \
        -machine virt \
        -nographic \
        -m 2048 \
        -smp 4 \
        -bios /home/tril/.guix-profile/fw_jump.elf \
        -kernel /home/tril/.guix-profile/libexec/u-boot \
        -net tap,ifname=tap${VID} \
        -net nic,model=$NETDRIVER,macaddr=52:54:00:12:46:0${VID} \
        -drive
file=FreeBSD-14.0-CURRENT-riscv-riscv64.qcow2,format=qcow2,if=virtio \
        -boot c \
        -runas $USER
5.2.0 qemu script
#!/bin/sh
exec qemu-system-riscv64 \
        -machine virt \
        -nographic \
        -m 2048 \
        -smp 4 \
        -bios /home/tril/.guix-profile/fw_jump.elf \
        -kernel /home/tril/.guix-profile/libexec/u-boot.bin \
        -device virtio-net-device,netdev=eth0 \
        -netdev user,id=eth0 \
        -drive
file=FreeBSD-14.0-CURRENT-riscv-riscv64.qcow2,format=qcow2,if=virtio \
        -cdrom
FreeBSD-14.0-CURRENT-riscv-riscv64-20221123-fd5882e1f2ca-259385-disc1.iso \
        -boot c
The only change necessary to fix it is to change the image to the raw image
with format=raw.
-- 
You are receiving this mail because:
You are the assignee for the bug.