* pkg install vm-bhyve grub2-bhyve
* zfs create zroot/vm
* sysrc vm_enable="YES"
* sysrc vm_dir="zfs:zroot/vm"
* service vm start
* vm switch create public
* vm switch add public alc0
* cp -p /usr/local/share/examples/vm-bhyve/*.conf /zroot/vm/.templates/
* vm create -t centos6 -s 30g bq-5208r-6.9
* fetch http://updates.blueonyx.it/pub/BlueOnyx/ISO/BlueOnyx-5208R-CentOS-6.9-20171025.iso
* mdconfig -f ~/BlueOnyx-5208R-CentOS-6.9-20171025.iso
* mount -t cd9660 /dev/md0 /mnt
* ack -C5 kick /mnt/isolinux/isolinux.cfg # grub2-bhyve で BlueOnyx のCDブートメニューを出す方法が分からいので直接選択
label linux
menu label Install BlueOnyx 5208R (Default Partitions)
menu default
kernel vmlinuz
append initrd=initrd.img ks=cdrom:/ks/kickstart.cfg
label small
menu label Install BlueOnyx 5208R (Small Servers)
kernel vmlinuz
append initrd=initrd.img ks=cdrom:/ks/kick_small.cfg
label expert
menu label Install BlueOnyx 5208R in Expert Mode
kernel vmlinuz
append initrd=initrd.img
* umount /mnt
* mdconfig -d -u md0
* vim /zroot/vm/bq-5208r-6.9/bq-5208r-6.9.conf
loader="grub"
cpu=1
memory=1G
network0_type="virtio-net"
network0_switch="public"
disk0_type="virtio-blk"
disk0_name="disk0.img"
uuid="212f5391-848b-11e9-840d-fcaa14e24f0e"
network0_mac="58:9c:fc:03:19:05"
network0_switch="public"
# grub> cat (cd0)/isolinux/isolinux.cfg
grub_install0="linux /isolinux/vmlinuz ks=cdrom:/ks/kickstart.cfg"
grub_install1="initrd /isolinux/initrd.img"
# grub> cat (hd0,msdos1)/grub/grub.conf
grub_run0="linux /vmlinuz-2.6.32-696.13.2.el6.x86_64 ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 console=ttyS0 crashkernel=auto rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM"
grub_run1="initrd /initrd-2.6.32-696.13.2.el6.x86_64.img"
* vm install bq-5208r-6.9 ~/BlueOnyx-5208R-CentOS-6.9-20171025.iso
* vm start bq-5208r-6.9
追記 BlueOnyx-5209R-CentOS-7.7-20191010.iso 用
grub_install0="linux /isolinux/vmlinuz inst.ks=hd:LABEL=BlueOnyx-5209R-x86_64:/ks/kickstart.cfg initrd=initrd.img inst.stage2=hd:LABEL=BlueOnyx-5209R-x86_64 rd.live.check quiet net.ifnames=0 biosdevname=0"
grub_install1="initrd /isolinux/initrd.img"
grub_run_dir="/grub2"