...unless I hang it as a sata-controller-hdd instead. In which case, it boots perfectly.
(Why do I care? I wanted to document the FreeNAS install process as authentically as possible, including device nomenclature.)
Can someone tell me either what I'm doing wrong, or show me some kinda detailed documentation about how this isn't supported?? THANKS!
Maybe this is well known and I'm the millionth guy to ask about it -- in which case, I apologize! I did try to do a decent amount of searching/researching but didn't find anything that stuck out as incredibly helpful due to the extremely general terms that comprise the issue. I did find virtualbox ticket #2935 (I can't post URLs yet) ...in which, 16 months ago, "Frank" said: "Booting from USB should be possible with VBox 5.1.x when using the EFI boot mechanism (enable EFI in the VM settings)."
This sounds like it applies to physical USBs though, and perhaps not USB-controller-based disk images???
What I done did:
- I created a 64-bit BSD virtual machine with an IDE-cdrom and a vdi as hdd-on-a-USB-controller (live-usb.vdi)
- I booted up the latest FreeNAS installer iso-image as the cdrom
- I installed FreeNAS onto the "usb drive" (/dev/da0) without any issue (as a uefi booter)
- Shutdown, remove cdrom, start machine: FAILURE. Fails-over to EFI shell without any mapping.
- Double-checked that live-usb.vdi was GPT disk with FAT16 partition0, with \EFI\BOOT\BOOTX64.EFI present
- I duplicated the live-usb.vdi, to new live-sata.vdi
- Shutdown, remove usb-controller, release/remove live-usb.vdi...
- Add sata-controller hdd: live-sata.vdi, start machine: SUCCESS.