Why can't I boot any ISOs in Bhyve, getting frustrating.

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Please.

I'm pretty sure I managed to successfully RAW my VBox file - perhaps I DD'd it into the ZVOL wrong?
What do I need to do precisely, I'll write a guide after.
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Ok, made some progress. Installed dietpi via UEFI iso in Vbox. Converted VDI to RAW file. Copied RAW file to FN and used dd to copy RAW file to a zvol. Bhyve still drops to EFI shell but you can navigate to efi files. It falls to boot. Looks like I failed to correctly turn VDI into a useable zvol. I'll leave it for today.

Hi Kris.

I did exactly the following:

I made a new ZVOL, 10,000MB, no compression, no deuplication, no force size.
I typed

dd if=/mnt/ARRAY/media/DietPi.RAW of=/dev/zvol/SSD/VM/DPi
It copied in (slowly) at around 33MB/s
(Raw file is only 8GB)

Then I added a disk to my VM
Pointed to the ZVOL
Mode: AHCI
Sector Default (16)
Order 1

When I boot into it, end of the day, I can't type "fs0" like you can.
"fs0" is not a correct mapping.
So I need to know if my RAW file is no good, or my methodology is no good?
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Bingo! Not sure why dd from VDI to zvol went wrong 1st time, but this dietpi on bhyve. ( EFI boot and fdisk size mismtch to fix)


So Kris, what did you do to get this going?

I downloaded this file:
(LINK)

I then double clicked the OVA which imported a pre-built DietPi Virtual Box into Vbox - resulting in a VMDK file that has never been booted (!) nice and clean and fresh (?)


I then used Vboxmanage to convert this clean VMDK into a RAW file, on my new Ubuntu system I did this on, I got no errors during the conversion this time,........ (so I thought I'd finally solved this)

I then DD'd this RAW file into a ZVOL and used that ZVOL to try and boot, but no luck.
Do I need to do something else to make it bootable?

I'd really like to make a 'clean' RAW file for people, easy to import into FreeNAS.
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Ok I have progressed, it's a sloppy setup which makes me sad but it works.

It will *NOT* boot on its own.
I can manually navigate through the menu to "boot from file" choose GRUB64 in the EFI dir and it works.

How do I commit this to disk so it actually boots.
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
Anyone? PLEASE see post above - it's the last thing I need, I'm sorry but I'm not smart enough.

I believe I need to lay down some bootable files to the OS, simple as that - does anyone know what the precise commands I need to do are?
Can I do it from within the OS, once I manually boot the Grub file or do I need to revert to booting from the original ISO to then lay down the files?

Anyone?
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
I was able to follow your lead and get the same outcome.

I was also able to get it to boot automatically by copying /boot/efi/EFI/debian/grubx64.efi to /boot/efi/EFI/BOOT/bootx64.efi (needed to mkdir /boot/efi/EFI/BOOT first)

This command, did not render my system bootable sadly.

EDIT: wrong - just needed to note the filename change too - thanks !
 
Top