This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create guest | |
# iohyve create $name $size $con | |
__create() { | |
local name="$2" | |
local pool="$(zfs list | grep iohyve | head -n1 | cut -d '/' -f 1)" | |
local size="$3" | |
local con="$4" | |
echo "Creating $name..." | |
# create dataset in case there needs to be files to store in the future. (grub2-bhyve) | |
zfs create $pool/iohyve/$name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Yet Another bhyve Script v0.4 | |
# Use this to try and boot 9front, the Plan9 fork. | |
# Virtio emulation works better (ported drivers) | |
# PS/2 Mouse emulation requires updated bhyve(8) | |
# If you don't have it, patch is uploaded with this Gist | |
# When partitioning, I have had more success with MBR | |
# GPT may work for some people |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Yet Another bhyve Script v0.1.5 | |
# This was once used to test booting MacOS | |
# Don't expect it to work | |
name=clover | |
ram=8192M | |
cpu=4 | |
disk=clover-capitan.img |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# iohyve v0.2.5 2015/05/06 "ALL HAIL LINUS edition" | |
# Process command line | |
__parse_cmd () { | |
while [ $# -gt 0 ] ; do | |
case "$1" in | |
version) __version | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
// iterations of work unit | |
// iterprint for output at end of run | |
long double i = 1000000000; | |
long long int iterprint = i; | |
// variables for work unit | |
// pi starts at 0 | |
// pi1-3 are used by workunit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Yet Another bhyve Script v0.3 | |
# Use this example to boot Android-x86 | |
# Have not tested e1000 network emulation yet | |
# It will install to hd, but will get stuck in boot loop | |
# This should get you through the setup in live mode | |
# Be sure to kldload vmm | |
name=droid86 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myusername | |
yourusername | |
thatdogsusername | |
yurausername |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set root=(cd0,msdos2) | |
multiboot /boot/minix_latest/kernel rootdevname=c0d0p0s0 cttyline=0 cttybaud=9600 | |
module /boot/minix_latest/mod01_ds.gz | |
module /boot/minix_latest/mod02_rs.gz | |
module /boot/minix_latest/mod03_pm.gz | |
module /boot/minix_latest/mod04_sched.gz | |
module /boot/minix_latest/mod05_vfs.gz | |
module /boot/minix_latest/mod06_memory.gz | |
module /boot/minix_latest/mod07_tty.gz | |
module /boot/minix_latest/mod08_mfs.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Welcome! ### | |
# iohyve is an all in one quick start for utilizing built-in FreeBSD and ZFS | |
# tools for managing bhyve guests. iohyve acts much like @pannon's iocage and it's | |
# inspiration is drawn from it's ideas. iohyve's aim is to get a solid basis of how bhyve | |
# will interact with iocage's ideas. This includes resource limiting/management, store data in | |
# zfs proprieties, vnet, and UUID's in addition to creation, starting, stopping, and destroying | |
# live guests. Snapshoting and other features might be better saved for iocage integration. | |
# Big thanks to @pannon and @skarekrow for all their help, their code, and patience. :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create the VM | |
iohyve create debianvm 8G nmdm8 | |
# Set the correct bootloader | |
iohyve set debianvm loader=grub-bhyve | |
# Fetch the image | |
iohyve fetch http://cdimage.debian.org/debian-cd/8.1.0/amd64/iso-cd/debian-8.1.0-amd64-netinst.iso | |
# Install |
NewerOlder