FreeBSD bhyve – CheckPoint SMS

So letz move the CheckPoint SMS over to Bhyve. Basicly the same as for the FortiManager.

guest=linux
loader="grub"
uefi_vars="yes"
grub_run_partition="1"
grub_run_dir="/grub"
grub_run0="root (hd0,0)"
grub_run0="linux /vmlinuz-3.10.0-957.21.3cpx86_64 ro root=/dev/mapper/vg_splat-lv_current grub_mode=64bit-normal vmalloc=256M panic=15 console=SERIAL crashkernel=0M-35G:280M,35G-250G:768M,
250G-:1G intel_idle.max_cstate=0 eagerfpu=on spectre_v2=off nopti 3 quiet"
grub_run1="initrd /initrd-3.10.0-957.21.3cpx86_64.img"
memory="8192"
disk0_type="ahci-hd"
disk0_name="disk0.img"
network0_switch="VM"
network0_type="e1000"
network1_switch="VM"
network2_switch="VM"
network3_switch="VM"
network1_type="e1000"
network2_type="e1000"
network3_type="e1000"
cpu="2"

One thing we still need to figure out how to boot this with generic entries. Based on https://github.com/churchers/vm-bhyve/blob/master/sample-templates/gentoo.conf this should load the grub.cfg

# Make sure to modify the "root" variable according to your partitioning scheme.
grub_run0="set root=(hd0,gpt1)"
grub_run1="set timeout=1"
grub_run2="configfile /grub/grub.conf"

ok this loads the config but console goes blank and does not boot….

But the the CheckPoint grub.conf seams to have a generic entry, lets use this.

grub_run0="linux /vmlinuz-x86_64 ro root=/dev/mapper/vg_splat-lv_current grub_mode=64bit-normal vmalloc=256M panic=15 console=ttyS0 crashkernel=0M-35G:280M,35G-250G:768M,250G-:1G intel_idl
e.max_cstate=0 eagerfpu=on spectre_v2=off nopti 3 quiet"
grub_run1="initrd /initrd-x86_64"

So it will at least it is alive :-).

cpmg> show version all
Product version Check Point Gaia R81.10
OS build 335
OS kernel version 3.10.0-957.21.3cpx86_64
OS edition 64-bit
cpmg> show asset all
Platform: BHYVE
CPU Model: Intel(R) Pentium(R) CPU G4560T
CPU Frequency: 2900.000 Mhz
Number of Cores: 2
CPU Hyperthreading: Disabled

Disk emulation

[Expert@cpmg:0]# fdisk -l
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

Disk /dev/sda: 536.9 GB, 536870912000 bytes, 1048576000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 65536 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
disk0_opts="sectorsize=512"
[Expert@cpmg:0]# fdisk -l
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

Disk /dev/sda: 536.9 GB, 536870912000 bytes, 1048576000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt
Disk identifier: 3CD7E882-FE36-460F-A81F-B7CA0484F8AC


# Start End Size Type Name
1 34 614433 300M EFI System
2 614434 33435228 15.7G Linux swap
3 33435229 1048575966 484.1G Linux LVM

One Reply to “”

Comments are closed.