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=2 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


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:
  1. http://distcache.FreeBSD.org/ports-distfiles/

Number of commits found: 5

Commit History - (may be incomplete: see SVNWeb link above for full details)
DateByDescription
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: 5

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
dnsmasq*Jun 30
dnsmasq-devel*Jun 30
haproxyJun 30
libtorrent-rasterbarJun 30
opensslJun 30
python33Jun 30
tomcat7Jun 26
tomcat8Jun 26
php55Jun 25
php55-gdJun 25
php55-mbstringJun 25
php55-wddxJun 25
php55-zipJun 25
php56Jun 25
php56-gdJun 25

20 vulnerabilities affecting 50 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 26142
Broken 279
Deprecated 272
Ignore 545
Forbidden 0
Restricted 202
No CDROM 85
Vulnerable 59
Expired 10
Set to expire 259
Interactive 0
new 24 hours 0
new 48 hours3
new 7 days20
new fortnight49
new month100

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