• C
    bhyve: Support /domain/bootloader configuration for non-FreeBSD guests. · 17722c16
    Conrad Meyer 提交于
    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.
    17722c16
bhyve_command.c 14.2 KB