# Example to boot an mfsbsd iso as a file from grub2, tested by # manually booting the iso from msdosfs using super grub disk # in qemu: (tpye 'c' to get a grub prompt, don't type the menuentry # line, finish by typing "boot".) # To repeat: # Copy/symlink mfsbsd iso here: # mfsbsd/fatfs/boot/boot-isos/mfsbsd-10.0-RELEASE-amd64.iso # them do: # qemu-system-x86_64 -cdrom super_grub2_disk_hybrid_2.00s2-rc5.iso -m 512 -hda fat:mfsbsd/fatfs -boot d -monitor stdio # References: # http://mfsbsd.vx.sk/ # https://github.com/mmatuska/mfsbsd/blob/master/scripts/mfsbsd # (for kFreeBSD.mfsbsd variables, goes to /etc/rc.d/mfsbsd # in the mfsroot) # http://www.supergrubdisk.org/category/download/supergrub2diskdownload/ # http://forja.cenatic.es/frs/download.php/file/1732/super_grub2_disk_hybrid_2.00s2-rc5.iso # http://bugs.debian.org/699002 (grub2 fix needed) menuentry "mfsbsd-10.0-RELEASE-amd64.iso" { set isofile=/boot/boot-isos/mfsbsd-10.0-RELEASE-amd64.iso loopback loop (hd0,1)$isofile kfreebsd (loop)/boot/kernel/kernel.gz -v # kfreebsd_loadenv (loop)/boot/device.hints # kfreebsd_module (loop)/boot/kernel/geom_uzip.ko kfreebsd_module (loop)/boot/kernel/ahci.ko kfreebsd_module (loop)/mfsroot.gz type=mfs_root set kFreeBSD.vfs.root.mountfrom="ufs:/dev/md0" set kFreeBSD.mfsbsd.autodhcp="YES" # Define a new root password # set kFreeBSD.mfsbsd.rootpw="foobar" # Alternatively define hashed root password # set kFreeBSD.mfsbsd.rootpwhash="" }