Conrad Meyer 17722c169c bhyve: Support /domain/bootloader configuration for non-FreeBSD guests.
We still default to bhyveloader(1) if no explicit bootloader
configuration is supplied in the domain.

If the /domain/bootloader looks like grub-bhyve and the user doesn't
supply /domain/bootloader_args, we make an intelligent guess and try
chainloading the first partition on the disk (or a CD if one exists,
under the assumption that for a VM a CD is likely an install source).

Caveat: Assumes the HDD boots from the msdos1 partition. I think this is
a pretty reasonable assumption for a VM. (DrvBhyve with Bhyveload
already assumes that the first disk should be booted.)

I've tested both HDD and CD boot and they seem to work.
2014-11-12 09:55:22 +01:00
..
2013-12-02 10:21:26 +08:00
2014-03-01 23:44:58 +04:00
2014-10-06 13:15:31 +02:00
2014-03-03 17:41:26 +04:00
2013-12-02 10:21:26 +08:00
2014-03-01 23:44:58 +04:00
2014-11-03 14:32:39 +08:00
2013-12-02 10:21:26 +08:00
2013-09-12 17:18:32 +08:00
2013-11-26 18:37:09 +08:00
2014-07-03 12:22:37 +02:00