Hello.
I've installed and succesfully booted NiceHash OS from my USB stick using bhyve and at the same time I have passed through the USB controller and the graphic card. So. The NiceHash bootloader is the only bootloader that allows me to do that. I've installed Ubuntu and Void Linux on the same USB stick but they haven't been able to boot. To achieve that goal I have used two tricks :
1) I've used a "special" bhyve bootloader compiled for me by Corvin Kohne,called "BHYVE_BHF_CODE.fd" ; any other offocial bhyve bootloader provided by FreeBSD 13R,FreeBSD 13-STABLE and FreeBSD 14-CURRENT will not work in this scenario. It means that any OS will be not able to boot.
2) I've attached to the USB controller the USB stick where I have installed the NiceHASH os img file (wrote to the usb stick using the command : dd if=nhos-1.2.9.img of=/dev/da3 (the USB stick's device )
I've realized that using the UEFI bootloader provided by Corvin I can boot only the NiceHash OS. Now,I don't want that you get involved into this bhyve's problem. I don't want that you know how has been compiled the Corvin's boot loader. I would like that you point your attention to the bootloader of the NiceHash OS. My idea is that if I'm able to understand which kind of bootloader it is,I can use it to boot all the OS that actually aren't able to boot. The only "keyword" that can help to understand why it works is the word "gfxterm.mod" that I see as soon as NiceHash OS will start booting.
I've also recorded a short video,to show you what happens.
You can give a look at it here : https://drive.google.com/file/d/1buezaHbfJAV5xitQWXogQeGwhmu4H3eO/view?usp=sharing
The bhyve arguments which work (only with the bootloader of the NiceHash OS) are the following :
I've installed and succesfully booted NiceHash OS from my USB stick using bhyve and at the same time I have passed through the USB controller and the graphic card. So. The NiceHash bootloader is the only bootloader that allows me to do that. I've installed Ubuntu and Void Linux on the same USB stick but they haven't been able to boot. To achieve that goal I have used two tricks :
1) I've used a "special" bhyve bootloader compiled for me by Corvin Kohne,called "BHYVE_BHF_CODE.fd" ; any other offocial bhyve bootloader provided by FreeBSD 13R,FreeBSD 13-STABLE and FreeBSD 14-CURRENT will not work in this scenario. It means that any OS will be not able to boot.
2) I've attached to the USB controller the USB stick where I have installed the NiceHASH os img file (wrote to the usb stick using the command : dd if=nhos-1.2.9.img of=/dev/da3 (the USB stick's device )
I've realized that using the UEFI bootloader provided by Corvin I can boot only the NiceHash OS. Now,I don't want that you get involved into this bhyve's problem. I don't want that you know how has been compiled the Corvin's boot loader. I would like that you point your attention to the bootloader of the NiceHash OS. My idea is that if I'm able to understand which kind of bootloader it is,I can use it to boot all the OS that actually aren't able to boot. The only "keyword" that can help to understand why it works is the word "gfxterm.mod" that I see as soon as NiceHash OS will start booting.
I've also recorded a short video,to show you what happens.
You can give a look at it here : https://drive.google.com/file/d/1buezaHbfJAV5xitQWXogQeGwhmu4H3eO/view?usp=sharing
The bhyve arguments which work (only with the bootloader of the NiceHash OS) are the following :
Code:
bhyve -S -c sockets=2,cores=2,threads=2 -m 8G -w -H -A \
-s 0,hostbridge \
-s 1:0,passthru,1/0/0 \
-s 2:0,passthru,2/0/0 \
-s 2:1,passthru,2/0/1 \
-s 2:2,passthru,2/0/2 \
-s 2:3,passthru,2/0/3 \
-s 9,virtio-net,tap0 \
-s 10,virtio-9p,sharename=/ \
-s 29,fbuf,tcp=0.0.0.0:5900,w=1440,h=900 \
-s 30,xhci,tablet \
-s 31,lpc \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_BHF_CODE.fd \
-l com1,stdio \
vm0
Last edited: