Line 0
Link Here
|
|
|
1 |
--- lib/vm-util.orig |
2 |
+++ lib/vm-util |
3 |
@@ -55,7 +55,7 @@ |
4 |
# @modifies VM_NO_UG |
5 |
# |
6 |
util::check_bhyve_support(){ |
7 |
- local _mesg _result |
8 |
+ local _mesg _mesg1 _mesg2 _result |
9 |
|
10 |
# basic checks |
11 |
[ `id -u` -ne 0 ] && util::err "virtual machines can only be managed by root" |
12 |
@@ -73,7 +73,9 @@ |
13 |
fi |
14 |
|
15 |
# check ept for intel |
16 |
- _mesg=$(grep -E '^[ ]+VT-x' /var/run/dmesg.boot | tail -n 1) |
17 |
+ _mesg1=$(grep -E '^[ ]+VT-x' /var/run/dmesg.boot | tail -n 1) |
18 |
+ _mesg2=$(grep -E '^[ ]+Secondary Processor Controls' /var/run/dmesg.boot | tail -n 1) |
19 |
+ _mesg="${_mesg1}${_mesg2}" |
20 |
|
21 |
if [ -n "${_mesg}" ]; then |
22 |
|