FreshPorts -- The Place For Ports If you buy from Amazon USA, please support us by using this link.
Follow us
Blog
Twitter

Port details
bhyve-rc FreeBSD RC script for starting bhyve guests in tmux
3 sysutils on this many watch lists=3 search for ports that depend on this port Find issues related to this port Report an issue related to this port
Maintainer: freebsd@grem.de search for ports maintained by this maintainer
Port Added: 21 Aug 2014 15:06:25
License: not specified in port
FreeBSD RC script to start bhyve guests in tmux.
SVNWeb : PortsMon

To install the port: cd /usr/ports/sysutils/bhyve-rc/ && make install clean
To add the package: pkg install bhyve-rc

PKGNAME: bhyve-rc

distinfo: There is no distinfo for this port.


NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.

Runtime dependencies:
  1. tmux : sysutils/tmux
There are no ports dependent upon this port

Configuration Options
     No options to configure

pkg-mesage:
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: 6

Commit History - (may be incomplete: see SVNWeb link above for full details)
DateByDescription
03 Jan 2017 11:01:06
Original commit files touched by this commit  3
Revision:430454  Sanity Test Failure
mat search for other commits by this committer
Cleanup BROKEN/IGNORE for 10.3-

Sponsored by:	Absolight
01 Apr 2016 14:25:18
Original commit files touched by this commit  3
Revision:412349
mat search for other commits by this committer
Remove ${PORTSDIR}/ from dependencies, categories r, s, t, and u.

With hat:	portmgr
Sponsored by:	Absolight
16 Nov 2015 19:01:22
Original commit files touched by this commit  3
Revision:401782
grembo search for other commits by this committer
Fix to start bhyve properly on 10.2.

PR:		204111
Approved by:	mentors (implicit)
22 Jun 2015 18:13:24
Original commit files touched by this commit  2
Revision:390307
grembo search for other commits by this committer
Fix for newer versions of behyve (-S was removed).

PR:		201044
Submitted by:	Denys Razumov <zxzharmlesszxz@gmail.com>
01 Apr 2015 22:19:34
Original commit files touched by this commit  1
Revision:382964
jgh search for other commits by this committer
- remove do_nada and use options in favor of pre for osversion checking

Approved by:	portmgr (blanket)
21 Aug 2014 15:06:16
Original commit files touched by this commit  1
Revision:365563
adamw search for other commits by this committer
Add sysutils/bhyve-rc: FreeBSD RC script to start bhyve guests in tmux.

PR:		183604
Submitted by:	Michael Gmelin

Number of commits found: 6

Login
User Login
Create account

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD

This site
What is FreshPorts?
About the authors
Issues
FAQ
How big is it?
The latest upgrade!
Privacy
Forums
Blog
Contact

Search
Enter Keywords:
 
more...

Latest Vulnerabilities
icoutilsJan 19
mysql55-serverJan 18
mysql56-serverJan 18
mysql57-serverJan 18
powerdnsJan 18
powerdns-recursorJan 18
groovyJan 15
irssi*Jan 15
mysql57-client*Jan 15
mysql57-server*Jan 15
rabbitmqJan 15
wordpressJan 15
wordpressJan 15
wordpressJan 15
wordpressJan 15

28 vulnerabilities affecting 71 ports have been reported in the past 14 days

* - modified, not new

All vulnerabilities


Ports
Home
Categories
Deleted ports
Sanity Test Failures
Newsfeeds

Statistics
Graphs
NEW Graphs (Javascript)
Traffic

Calculated hourly:
Port count 27651
Broken 299
Deprecated 127
Ignore 563
Forbidden 1
Restricted 204
No CDROM 83
Vulnerable 71
Expired 11
Set to expire 117
Interactive 0
new 24 hours 16
new 48 hours19
new 7 days67
new fortnight562
new month741

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2014 Dan Langille. All rights reserved.