Skip to content

Instantly share code, notes, and snippets.

View mgerdts's full-sized avatar

Mike Gerdts mgerdts

View GitHub Profile
@mgerdts
mgerdts / zonecfg.md
Created January 23, 2018 23:50
bhyve zone config
create -b
set zonepath=/zones/b2
set brand=bhyve
set autoboot=false
set limitpriv=default
set ip-type=exclusive
set uuid=fc0fbfdb-dbf6-c26d-9a5e-b20099b5ecf7
add net
set allowed-address=172.26.17.202
@mgerdts
mgerdts / b2.md
Created January 6, 2018 18:22
bhyve tantalizer
[root@emy-17 ~]# zoneadm -z b2 halt
[root@emy-17 ~]# zonecfg -z b2 info brand
brand: bhyve
[root@emy-17 ~]# uname -a
SunOS emy-17 5.11 joyent_20171230T062027Z i86pc i386 i86pc
[root@emy-17 ~]# zoneadm -z b2 boot; zlogin -C b2

Then grub appears

@mgerdts
mgerdts / no-666.patch
Last active December 31, 2017 05:10
OS-XXX sdev plugin should not force number of the beast
commit efd2c605947a09c8c641ec66ec327082fa62f239
Author: Mike Gerdts <[email protected]>
Date: Sat Dec 30 05:18:57 2017 +0000
OS-XXX sdev plugin should not force number of the beast
diff --git a/usr/src/uts/common/fs/dev/sdev_plugin.c b/usr/src/uts/common/fs/dev/sdev_plugin.c
index dd81a52..58f7256 100644
--- a/usr/src/uts/common/fs/dev/sdev_plugin.c
+++ b/usr/src/uts/common/fs/dev/sdev_plugin.c