Skip to content

Instantly share code, notes, and snippets.

View hyvanix's full-sized avatar

Philip Brown hyvanix

View GitHub Profile
@hyvanix
hyvanix / cilium-bgp-peering-policy.yaml
Created April 19, 2024 19:36
Quick and dirty jumpstart to peer Cilium with OpenBSD using the built-in OpenBGPD routing daemon.
apiVersion: "cilium.io/v2alpha1"
kind: CiliumBGPPeeringPolicy
metadata:
name: cilium-bgp-peering-policy
spec:
nodeSelector:
matchLabels:
bgp: active
virtualRouters:

OmniOS specific info for Postfix Configuration

logs to check:

/var/adm/messages
/var/log/syslog

location of smtpd.conf

old host:

zadm poweroff guest
zadm show guest > guest.json
zfs snapshot rpool/guest@20210520
zfs send rpool/guest@20210520 > guest@20210520
scp guest.json guest@20210520 new-host:

new host:

+-----------------------------------------------
Resizing FreeBSD disk under Bhyve (OmniOS) Host
+-----------------------------------------------
// show the details of the bhyve guest zfs dataset:
OmniOS #: zfs get volsize rpool/freebsd-guest
NAME PROPERTY VALUE SOURCE
rpool/freebsd-guest volsize 5G local

Create req.conf

# cat req.conf
[req]
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no
[req_distinguished_name]
C = PL
install centos under OmniOS via bhyve and the new zone administration tool 'zadm'
----------------------------
install zadm & illumos brand
----------------------------
global:# pkg install zadm brand/bhyve
--------------------------------------
create a zfs mountpoint to store zones
{
"acpi" : "on",
"autoboot" : "false",
"bootargs" : "",
"bootorder" : "cd",
"cdrom" : "/zones/iso/FreeBSD-12.1-RELEASE-amd64-disc1.iso",
"bootdisk" : {
"blocksize" : "8K",
"path" : "rpool/bsd1",
"size" : "20G",
Create a "private virtual network" on OmniOS and install a zone into
the "private virtual network" with internet connectivity.
More info: https://docs.oracle.com/cd/E26502_01/html/E28992/ggiyq.html#ggkfr
----------------------------
install zadm & illumos brand
----------------------------
global# pkg install zadm brand/illumos
--------------------------------------