Port details |
- bhyve-rc FreeBSD RC script for starting bhyve guests in tmux
- 4 sysutils =5 4Version of this port present on the latest quarterly branch.
- Maintainer: grembo@FreeBSD.org
- Port Added: 2014-08-21 15:06:25
- Last Update: 2022-07-20 14:23:05
- Commit Hash: ea71236
- People watching this port, also watch:: vm-bhyve, subversion, libpciaccess, netcat, py39-pycparser
- License: not specified in port
- Description:
- FreeBSD RC script to start bhyve guests in tmux.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- bhyve-rc>0:sysutils/bhyve-rc
- To install the port:
- cd /usr/ports/sysutils/bhyve-rc/ && make install clean
- To add the package, run one of these commands:
- pkg install sysutils/bhyve-rc
- pkg install bhyve-rc
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: bhyve-rc
- Flavors: there is no flavor information for this port.
- distinfo:
- There is no distinfo for this port.
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Runtime dependencies:
-
- tmux : sysutils/tmux
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- sysutils_bhyve-rc
- pkg-message:
- For install:
- Configuration is done completely though rc.conf.
The rc script won't touch any devices for you (neither disk, nor tap)
so you need to make sure all of those have been initialized properly.
General setup:
kldload vmm
net.link.tap.up_on_open=1
Make it persistent:
echo "net.link.tap.up_on_open=1" >> /etc/sysctl.conf
cat >> /boot/loader.conf << EOF
vmm_load="YES"
EOF
Minimal example:
cat >> /etc/rc.conf << EOF
cloned_interfaces="tap0 bridge0"
bhyve_enable="YES"
bhyve_diskdev="/dev/zvol/tank/bhyve/virt"
EOF
ifconfig tap0 create
ifconfig bridge0 create
service bhyve start
tmux list-sessions
tmux attach -t bhyve
service bhyve status
service bhyve stop
Multi profile configuration example:
cat >> /etc/rc.conf << EOF
cloned_interfaces="tap0 tap1 bridge0"
bhyve_enable="YES"
bhyve_profiles="virt1 virt2"
bhyve_virt1_diskdev="/dev/zvol/tank/bhyve/virt1"
bhyve_virt2_tapdev="tap1"
bhyve_virt2_diskdev="/dev/zvol/tank/bhyve/virt2"
bhyve_virt2_memsize="8192"
bhyve_virt2_ncpu="4"
EOF
ifconfig tap0 create
ifconfig tap1 create
ifconfig bridge0 create
service bhyve start # start all
service bhyve start virt2 # start individual
tmux attach -t bhyve_virt1
tmux attach -t bhyve_virt1
service bhyve stop virt2 # stop individual
service bhyve stop # stop all
(by default ctrl-b d detaches from tmux).
- Master Sites:
- There is no master site for this port.
|
Number of commits found: 12
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
4 20 Jul 2022 14:23:05 |
Tobias C. Berner (tcberner) |
sysutils: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* <jsmith@resonatingmedia.com>
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Landwehr <aaron@snaphat.com>
* Adam Weinberger <adamw@FreeBSD.org>
* Adrian Chadd
* Adrian Chadd <adrian@FreeBSD.org>
* Akinori MUSHA aka knu <knu@idaemons.org>
* Alan Eldridge <alane@FreeBSD.org>
* Alan Eldridge <alane@geeksrus.net>
* Aldis Berjoza <aldis@bsdroot.lv>
* Alex Deiter <alex.deiter@gmail.com> (Only the first 15 lines of the commit message are shown above ) |
4 16 Jun 2022 21:31:05 |
Bryan Drewery (bdrewery) |
sysutils/bhyve-rc: Fix writing to /dev/null in rc script |
3 06 Apr 2021 14:31:13 |
Mathieu Arnold (mat) |
all: Remove all other $FreeBSD keywords. |
3 06 Apr 2021 14:31:07 |
Mathieu Arnold (mat) |
Remove # $FreeBSD$ from Makefiles. |
3 08 Oct 2019 08:23:49 |
grembo |
Consolidate all my ports under my @FreeBSD.org address.
Also: Fix PORTSCOUT regex of devel/ice to include DISTVERSIONPREFIX. |
3 14 Aug 2019 12:16:13 |
mat |
Convert to UCL & cleanup pkg-message (categories s) |
3 03 Jan 2017 11:01:06 |
mat |
Cleanup BROKEN/IGNORE for 10.3-
Sponsored by: Absolight |
3 01 Apr 2016 14:25:18 |
mat |
Remove ${PORTSDIR}/ from dependencies, categories r, s, t, and u.
With hat: portmgr
Sponsored by: Absolight |
3 16 Nov 2015 19:01:22 |
grembo |
Fix to start bhyve properly on 10.2.
PR: 204111
Approved by: mentors (implicit) |
2 22 Jun 2015 18:13:24 |
grembo |
Fix for newer versions of behyve (-S was removed).
PR: 201044
Submitted by: Denys Razumov <zxzharmlesszxz@gmail.com> |
1 01 Apr 2015 22:19:34 |
jgh |
- remove do_nada and use options in favor of pre for osversion checking
Approved by: portmgr (blanket) |
1 21 Aug 2014 15:06:16 |
adamw |
Add sysutils/bhyve-rc: FreeBSD RC script to start bhyve guests in tmux.
PR: 183604
Submitted by: Michael Gmelin |
Number of commits found: 12
|