Difference between revisions of "Set up iohyve in FreeBSD"

From Aram's Wiki
Jump to: navigation, search
(Bugs)
 
(9 intermediate revisions by the same user not shown)
Line 24: Line 24:
 
  iohyve_enable="YES"
 
  iohyve_enable="YES"
 
  iohyve_flags="kmod=1 net=bge0"
 
  iohyve_flags="kmod=1 net=bge0"
 +
 +
== Bugs ==
 +
 +
With non-UEFI guests, iohyve [https://github.com/pr1ntf/iohyve/issues/305 can't set RTC to UTC]. You need to either [[Configure Linux distributions that use systemd to use local time for RTC|set-up guests to use localtime]], or pass extra parameters to bhyve like this:
 +
 +
iohyve set ''guest'' bargs=-A_-H_-P_'''-u'''
 +
 +
Iohyve is unmaintained, perhaps try [[Set up vm-bhyve in FreeBSD | vm-bhyve]].
 +
 +
== See also ==
 +
 +
* [[Set up vm-bhyve in FreeBSD]]
  
 
== References ==
 
== References ==
  
 
* [https://github.com/pr1ntf/iohyve/wiki/Manual iohyve(8)]
 
* [https://github.com/pr1ntf/iohyve/wiki/Manual iohyve(8)]

Latest revision as of 16:03, 19 November 2019


Introduction

iohyve is a bhyve manager for FreeBSD, similar to iocage.

Prerequisites

Recent enough FreeBSD with ZFS. All commands below run as root.

Install

pkg install iohyve
pkg install grub2-bhyve # For non-FreeBSD guests

Configure

iohyve setup pool=tank1 kmod=1 net=bge0

Adjust ZFS pool and NIC as needed.

Add to rc.conf:

iohyve_enable="YES"
iohyve_flags="kmod=1 net=bge0"

Bugs

With non-UEFI guests, iohyve can't set RTC to UTC. You need to either set-up guests to use localtime, or pass extra parameters to bhyve like this:

iohyve set guest bargs=-A_-H_-P_-u

Iohyve is unmaintained, perhaps try vm-bhyve.

See also

References