Hello.
I'm trying to boot a physical installation of NetBSD using Bhyve on FreeBSD 13R. The partitions where I have installed NetBSD follow the following scheme :
so :
ada1 is the disk where I have installed NetBSD
ada1p1 is the EFI partition
ada1p2 is the data partition
I tried all the various disk mapping combinations inside the bhyve script,but none of them worked. The error is still the same. disk not found...
For example :
or
I have also tried to mount the partitions and to use the folder /mnt instead of dev, but the error is still there. For example :
or
what's the right combination here?
I'm trying to boot a physical installation of NetBSD using Bhyve on FreeBSD 13R. The partitions where I have installed NetBSD follow the following scheme :
Code:
=> 2048 976771087 ada1 GPT (466G)
2048 262144 1 efi (128M)
264192 909692909 2 netbsd-ffs (434G)
909957101 19 - free - (9.5K)
909957120 66816015 3 netbsd-swap (32G)
so :
ada1 is the disk where I have installed NetBSD
ada1p1 is the EFI partition
ada1p2 is the data partition
I tried all the various disk mapping combinations inside the bhyve script,but none of them worked. The error is still the same. disk not found...
For example :
Code:
bhyve -S -c 8 -m 8G -w -H \
-s 0,hostbridge \
-s 1,ahci-hd,/dev/ada1
-s 4:0,passthru,1/0/0,rom=TU102.rom \
-s 4:1,passthru,1/0/1 \
-s 4:2,passthru,1/0/2 \
-s 4:3,passthru,1/0/3 \
-s 6,virtio-net,tap0 \
-s 29,fbuf,tcp=`[`0.0.0.0:5900`](https://0.0.0.0:5900)`,w=1440,h=900,wait \
-s 30,xhci,tablet \
-s 31,lpc \
-l com1,stdio \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
vm0
or
Code:
bhyve -S -c 8 -m 8G -w -H \
-s 0,hostbridge \
-s 1,ahci-hd,/dev/ada1p1
-s 4:0,passthru,1/0/0,rom=TU102.rom \
-s 4:1,passthru,1/0/1 \
-s 4:2,passthru,1/0/2 \
-s 4:3,passthru,1/0/3 \
-s 6,virtio-net,tap0 \
-s 29,fbuf,tcp=`[`0.0.0.0:5900`](https://0.0.0.0:5900)`,w=1440,h=900,wait \
-s 30,xhci,tablet \
-s 31,lpc \
-l com1,stdio \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
vm0
I have also tried to mount the partitions and to use the folder /mnt instead of dev, but the error is still there. For example :
mount -v -t msdosfs /dev/ada1p1 /mnt/ada1p1
or
mount -v -t ufs /dev/ada1p2 /mnt/ada1p2
Code:
bhyve -S -c 8 -m 8G -w -H \
-s 0,hostbridge \
-s 1,ahci-hd,/mnt/ada1p1 or /mnt/ada1p2
-s 4:0,passthru,1/0/0,rom=TU102.rom \
-s 4:1,passthru,1/0/1 \
-s 4:2,passthru,1/0/2 \
-s 4:3,passthru,1/0/3 \
-s 6,virtio-net,tap0 \
-s 29,fbuf,tcp=`[`0.0.0.0:5900`](https://0.0.0.0:5900)`,w=1440,h=900,wait \
-s 30,xhci,tablet \
-s 31,lpc \
-l com1,stdio \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
vm0
what's the right combination here?