*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

[Extension]Bhyve - Virtual Machines

XigmaNAS Extensions / Add-ons

Moderator: crest

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
alexey123
Moderator
Moderator
Posts: 1563
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [HOWTO] bhyve under NAS4Free

#1

Post by alexey123 » 06 Feb 2016 10:51

I make different extension for bhyve, may be this way is simple

Extension based on very nice framework https://github.com/churchers/vm-bhyve , I just make adopt it for Nas4Free

Before install check CPU and motherboard.
For Intel CPUs execute

Code: Select all

grep -i vt-x /var/run/dmesg.boot
Must be ANY answer, for example my lab server say
VT-x: (disabled in BIOS) PAT,HLT,MTF,PAUSE,EPT,UG,VPID
disabled in BIOS - also no good.
For AMD CPU

Code: Select all

grep -i svm /var/run/dmesg.boot
Must be ANY answer also, for example my home server say
AMD Features2=0x35ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,IBS,SKINIT,WDT>
SVM: NP,NRIP,NAsids=8
I mark bold needed futuries.

Then, some as Thebrig instalation procedure

Code: Select all

fetch https://raw.githubusercontent.com/alexey1234/vmbhyve_nas4free/master/bhyve_install.sh
then

Code: Select all

sh bhyve_install.sh /mnt/PATH/TO/EXTENSION/FOLDER
Confirm installation over extension config page

WebGui functions now : enable, disable, uninstal, update. I add manual page also


I plan built extension some as TheBrig, + webconsole to VMs

Extesion link is https://github.com/alexey1234/vmbhyve_nas4free
Home11.0.0.4 - Sayyadina (revision 4249)/ x64-embedded on SAPPHIRE Pure Mini E350 / 8G RAM / UPS Ippon Back Power Pro 600
Lab 10.2.0.2 - Prescience (revision 2545) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
New XigmanasXigmaNAS version 11.2.0.4.6026 on x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM
TEST1 11.0.0.4 - Pilingitam (revision 4333) bpi-embedded on Allwinner a20 / 1015MiB RAM

User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1417
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: [HOWTO] bhyve under NAS4Free

#2

Post by ernie » 06 Feb 2016 13:08

Thanks alexey123.

I am interesting for testing. But before I have a question:

What is advantage of bhyve vs phpvirtualbox ?

I see this
https://b3n.org/vmware-vs-bhyve-performance-comparison/

But I am noob and based on the schemes of the above link, I am not sure to understand the advantage. Based on Barechart it is more clear.

A opinion of advantage of bhyve will help me

Thanks
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, extendedGUI, BTSync, zrep, rclone), nfs, UPS,
NAS2: OBI (extendedGUI, zrep (backup mode))

User avatar
alexey123
Moderator
Moderator
Posts: 1563
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [HOWTO] bhyve under NAS4Free

#3

Post by alexey123 » 06 Feb 2016 13:45

I also noob :lol:
I tried simple way to create virtual machine and when it work, I see - this is good idea, considerably faster than virtual box.
I begin to build extension, and after few minutes googled, I find very nice framework - only sh scripts, without binaries, such CBSD.

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 498
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: [HOWTO] bhyve under NAS4Free

#4

Post by MikeMac » 09 Feb 2016 22:01

ernie wrote:What is advantage of bhyve vs phpvirtualbox ?
Hopefully - performance

We could have with bhyve performance similar with serious hypervisors, like Xen or KVM. But virtualbox normally is considered to be much slower.

See f.e.
http://www.phoronix.com/scan.php?page=a ... virt&num=1

User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1417
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: [Extension]Bhyve - Virtual Machines

#5

Post by ernie » 01 Aug 2016 15:13

Hello

As now nas4free has a web page for phpvirtual box, can we install the extension Bhyve of axeley ?

Or there is incompability ?
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, extendedGUI, BTSync, zrep, rclone), nfs, UPS,
NAS2: OBI (extendedGUI, zrep (backup mode))

User avatar
alexey123
Moderator
Moderator
Posts: 1563
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [Extension]Bhyve - Virtual Machines

#6

Post by alexey123 » 02 Aug 2016 09:06

I begin to work on bhyve gui, but I not have cpu for test ( I have amd64*2 athlon, Atom525 and bananapi ) - I canot use main server for experiments, because during reboot I lost network and iscsi drivers
Home11.0.0.4 - Sayyadina (revision 4249)/ x64-embedded on SAPPHIRE Pure Mini E350 / 8G RAM / UPS Ippon Back Power Pro 600
Lab 10.2.0.2 - Prescience (revision 2545) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
New XigmanasXigmaNAS version 11.2.0.4.6026 on x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM
TEST1 11.0.0.4 - Pilingitam (revision 4333) bpi-embedded on Allwinner a20 / 1015MiB RAM

User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1417
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: [Extension]Bhyve - Virtual Machines

#7

Post by ernie » 02 Aug 2016 10:53

I can test with a vm in phpvirtualbox. Or if not possible on 1 of my nas: I have a G3220 of Intel.
But you will have to guide me as I am not a developer.
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, extendedGUI, BTSync, zrep, rclone), nfs, UPS,
NAS2: OBI (extendedGUI, zrep (backup mode))

kenZ71
Advanced User
Advanced User
Posts: 403
Joined: 27 Jun 2012 20:18
Location: Northeast, USA
Status: Offline

Re: [Extension]Bhyve - Virtual Machines

#8

Post by kenZ71 » 03 Aug 2016 04:06

Looks quite interesting, will give a try.
11.2-RELEASE-p3 | ZFS Mirror - 2 x 8TB WD Red | 28GB ECC Ram
HP ML10v2 x64-embedded on Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz

Extra memory so I can host a couple VMs
1) Unifi Controller on Ubuntu
2) Librenms on Ubuntu

buratinovod
NewUser
NewUser
Posts: 1
Joined: 14 Aug 2016 01:03
Status: Offline

Re: [HOWTO] bhyve under NAS4Free

#9

Post by buratinovod » 14 Aug 2016 01:17

alexey123 wrote:I also noob :lol:
I tried simple way to create virtual machine and when it work, I see - this is good idea, considerably faster than virtual box.
I begin to build extension, and after few minutes googled, I find very nice framework - only sh scripts, without binaries, such CBSD.
In your place , I would have contacted with CBSD author about CBSD+Nas4Free integration. Im sure, the author would not mind :-)

almirjakubaitis
NewUser
NewUser
Posts: 14
Joined: 19 Jun 2016 04:52
Status: Offline

Re: [Extension]Bhyve - Virtual Machines

#10

Post by almirjakubaitis » 17 Aug 2016 14:26

Hi Alexey.
I can try test it with a "x64-embedded on Intel(R) Xeon(R) CPU X3430" and Grep results: "VT-x: PAT,HLT,MTF,PAUSE,EPT,VPID"

Also I'm not a developer in Freebsd or shell, but I used to program web pages and could understand some code with explanation.

The lastest version is https://github.com/alexey1234/vmbhyve_nas4free ?

Thanks
alexey123 wrote:I begin to work on bhyve gui, but I not have cpu for test ( I have amd64*2 athlon, Atom525 and bananapi ) - I canot use main server for experiments, because during reboot I lost network and iscsi drivers
System specs:
NAS #1
Version: NAS4Free 11.0.0.4 (revision 5019) CPU: Supermicro X8SIL /x64 Xeon(R) CPU L3406 @ 2.27GHz
RAM: 16GB DDR3 ECC UDIMM/ STORAGE: 5x 2TB HTSG raidz1-0 @ zfs

NAS #2
Version: NAS4Free 11.0.0.4 (revision 5019) CPU: Supermicro X8SIL /x64 Xeon(R) CPU X3430 @ 2.40GHz
RAM: 16GB DDR3 ECC RDIMM/ STORAGE: 5x 2TB raidz1-0 @ zfs

NAS #3
Version: NAS4Free 11.0.0.4 (revision 5019) CPU: x64-embedded on Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
RAM: 8GB DDR2 / STORAGE: 1x 8TB Stripe @ zfs

almirjakubaitis
NewUser
NewUser
Posts: 14
Joined: 19 Jun 2016 04:52
Status: Offline

Re: [Extension]Bhyve - Virtual Machines

#11

Post by almirjakubaitis » 17 Aug 2016 14:30

Do you Know some about Docker to Freebsd? Could it be faster than Bhyve ?
(I know that VM is something different but in use looks similar)
alexey123 wrote:I begin to work on bhyve gui, but I not have cpu for test ( I have amd64*2 athlon, Atom525 and bananapi ) - I canot use main server for experiments, because during reboot I lost network and iscsi drivers
System specs:
NAS #1
Version: NAS4Free 11.0.0.4 (revision 5019) CPU: Supermicro X8SIL /x64 Xeon(R) CPU L3406 @ 2.27GHz
RAM: 16GB DDR3 ECC UDIMM/ STORAGE: 5x 2TB HTSG raidz1-0 @ zfs

NAS #2
Version: NAS4Free 11.0.0.4 (revision 5019) CPU: Supermicro X8SIL /x64 Xeon(R) CPU X3430 @ 2.40GHz
RAM: 16GB DDR3 ECC RDIMM/ STORAGE: 5x 2TB raidz1-0 @ zfs

NAS #3
Version: NAS4Free 11.0.0.4 (revision 5019) CPU: x64-embedded on Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
RAM: 8GB DDR2 / STORAGE: 1x 8TB Stripe @ zfs

tomekada
NewUser
NewUser
Posts: 1
Joined: 15 Feb 2017 01:12
Status: Offline

Re: [Extension]Bhyve - Virtual Machines

#12

Post by tomekada » 15 Feb 2017 01:21

Looks like this is one thing that the freenas 10 folks cannot get right. With all the fighting between freenas 10 and freenas 9 freenas got forked yet again, no surprise there, by folks wanting to stay away from the jagernaught called freenas 10. The new fork is zfstor. The reason this is relevant :D is that the guys from freenas 9 where smart enough to grab ZFStor's version of Bhyve and commit it to FreeNAS 9 a few days ago.
https://github.com/freenas/freenas/comm ... ed63810b35
I figure it may be worth NAS4Free to take a look ant see about teaming up with zfstor, at least in regards to Bhyve.

maddes8cht
NewUser
NewUser
Posts: 12
Joined: 07 Jun 2017 18:26
Status: Offline

Re: [Extension]Bhyve - Virtual Machines

#13

Post by maddes8cht » 07 Jun 2017 20:43

Anyone any experiences with this?
Does it work?
What kind of frontend does one get to access the vms?
Is there also a VNC frontend?

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 498
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: [Extension]Bhyve - Virtual Machines

#14

Post by MikeMac » 08 Jun 2017 09:55

maddes8cht wrote:
07 Jun 2017 20:43
Anyone any experiences with this?
I regret to inform, but the extension still is in early (pre)alpha state.
I hope for future development too.

patrick
NewUser
NewUser
Posts: 6
Joined: 06 Jun 2014 08:35
Status: Offline

Re: [Extension]Bhyve - Virtual Machines

#15

Post by patrick » 16 Sep 2017 12:53

I understand that the extension is in early alpha state and things might/will change. However, would ik be possible to write some notes on how to use it?

I am trying to install alpine-linux in bhyve, but I cannot get it to work.
The [Extensions > Virtual Machine BHYVE > Edit] Does not seem to store whatever I enter there. So that does not yet work.
Can you give an example of how to use the extension to get a VM working?

jasch
experienced User
experienced User
Posts: 144
Joined: 25 Jun 2012 10:25
Location: Germany
Status: Offline

Re: [EXTENSION] OneButtonInstaller

#16

Post by jasch » 16 Apr 2018 11:10

Hi
On new fresh install i used OBI to to install .
When try to start from ext. Menu.

Warning: Use of undefined constant bhyve_VERSION - assumed 'bhyve_VERSION' (this will throw an Error in a future version of PHP) in /mnt/Extensions/bhyve/conf/ext/extensions_bhyve_config.php on line 5 Warning: session_start(): Cannot start session when headers already sent in /etc/inc/session.inc on line 52 Warning: Cannot modify header information - headers already sent by (output started at /mnt/Extensions/bhyve/conf/ext/extensions_bhyve_config.php:5) in /usr/local/www/auth.inc on line 40

wbr Alex
XigmaNAS 12.0.0.4 (6625)@PROXMOX 5.V - Supermicro X8DTH-6F | 2x Xeon L5640 | 96GB ECC | LSI 9210-8i|LSI 9500-8e|LSI 9201-16i | 40GBe IB Mellanox |

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 873
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [Extension]Bhyve - Virtual Machines

#17

Post by crest » 29 Apr 2018 06:34

Hello jasch,
jasch wrote:
16 Apr 2018 11:10
Hi
On new fresh install i used OBI to to install .
When try to start from ext. Menu.

Warning: Use of undefined constant bhyve_VERSION - assumed 'bhyve_VERSION' (this will throw an Error in a future version of PHP) in /mnt/Extensions/bhyve/conf/ext/extensions_bhyve_config.php on line 5 Warning: session_start(): Cannot start session when headers already sent in /etc/inc/session.inc on line 52 Warning: Cannot modify header information - headers already sent by (output started at /mnt/Extensions/bhyve/conf/ext/extensions_bhyve_config.php:5) in /usr/local/www/auth.inc on line 40

wbr Alex
I moved your post into the bhyve extension topic to let alexey123 know about the PHP 7.2 related problem.

Regards
crest
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

jmarc
Starter
Starter
Posts: 20
Joined: 27 Mar 2013 18:10
Status: Offline

[Extension]Bhyve - Virtual Machines

#18

Post by jmarc » 25 Aug 2018 03:16

jasch wrote:
16 Apr 2018 11:10
Hi
On new fresh install i used OBI to to install .
When try to start from ext. Menu.

Warning: Use of undefined constant bhyve_VERSION - assumed 'bhyve_VERSION' (this will throw an Error in a future version of PHP) in /mnt/Extensions/bhyve/conf/ext/extensions_bhyve_config.php on line 5 Warning: session_start(): Cannot start session when headers already sent in /etc/inc/session.inc on line 52 Warning: Cannot modify header information - headers already sent by (output started at /mnt/Extensions/bhyve/conf/ext/extensions_bhyve_config.php:5) in /usr/local/www/auth.inc on line 40

wbr Alex
Hi,
i have the same problem.
regards
XigmaNAS 11.2.0.4 - Omnius (revision 5762) x64-embedded AMD Athlon(tm) 5350 APU with Radeon(tm) R3 / 16G RAM / ZFS raidz2 10x3To WD / 8G log-mirror / 90G cache / ups eaton ps 650

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 873
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [Extension]Bhyve - Virtual Machines

#19

Post by crest » 25 Aug 2018 10:43

Hello jmarc,
jmarc wrote:
25 Aug 2018 03:16
jasch wrote:
16 Apr 2018 11:10
Hi
On new fresh install i used OBI to to install .
When try to start from ext. Menu.

Warning: Use of undefined constant bhyve_VERSION - assumed 'bhyve_VERSION' (this will throw an Error in a future version of PHP) in /mnt/Extensions/bhyve/conf/ext/extensions_bhyve_config.php on line 5 Warning: session_start(): Cannot start session when headers already sent in /etc/inc/session.inc on line 52 Warning: Cannot modify header information - headers already sent by (output started at /mnt/Extensions/bhyve/conf/ext/extensions_bhyve_config.php:5) in /usr/local/www/auth.inc on line 40

wbr Alex
Hi,
i have the same problem.
regards
Under actual releases this extension is no longer working until Alexey will find the time to update the extension, sorry.

Regards
crest
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

dimitry
Starter
Starter
Posts: 19
Joined: 11 Oct 2017 10:43
Status: Offline

Re: [Extension]Bhyve - Virtual Machines

#20

Post by dimitry » 31 Aug 2018 12:54

As the temp fix you can go to the file ".../Extensions/bhyve/conf/ext/extensions_bhyve_config.php ", and edit line 5:

Code: Select all

define ( bhyve_VERSION, 0);
to

Code: Select all

define ("bhyve_VERSION", 0);
This fix allows to see (at least, I haven't had a chance to check other stuff) the extension's GUI

Post Reply

Return to “Extensions / Add-ons”