Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic check for bhyve support. #153

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add basic check for bhyve support. Not guaranteed, but a bit better t…
…hen nothing.
  • Loading branch information
Brandon Schneider committed Apr 29, 2016
commit 9f9eb99933fe0b62bccea2779b6200a68cd90b87
5 changes: 5 additions & 0 deletions iohyve
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
# Set proper path thanks to iocage
PATH=${PATH}:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin

if ! $(cat /var/run/dmesg.boot | egrep -q 'VT-x|EPT') ; then
echo "Your CPU does not seem to support bhyve."
exit 1
fi

# Check whether a given command requires root
__root_req_cmd () {
case "$1" in
Expand Down