This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
[REQUEST] bhyve WebGUI support
- MikeMac
- Forum Moderator

- Posts: 429
- Joined: 07 Oct 2012 23:12
- Location: Moscow, Russia
- Contact:
- Status: Offline
-
kenZ71
- Advanced User

- Posts: 379
- Joined: 27 Jun 2012 20:18
- Location: Northeast, USA
- Status: Offline
Re: [REQUEST] bhyve WebGUI support
Curious how bhyve would compare to virtual box.
On occasion virtual box seems to lock up and or cause instability to my NAS4Free. Not sure if that is hardware limits or software.
But regardless, NAS4Free is a fantastic product. Asking a NAS to host VMs is pushing the boundaries or a NAS. Having said that, I keep pushing those limits

On occasion virtual box seems to lock up and or cause instability to my NAS4Free. Not sure if that is hardware limits or software.
But regardless, NAS4Free is a fantastic product. Asking a NAS to host VMs is pushing the boundaries or a NAS. Having said that, I keep pushing those limits
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
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
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: [REQUEST] bhyve WebGUI support
FreeBSD under bhyve work much faster, then FreeBSD under virtualbox on my E350 motherboard
But!
Bhyve not run on AMD A8-7600 , Virtualbox run perfect
But!
Bhyve not run on AMD A8-7600 , Virtualbox run perfect
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- MikeMac
- Forum Moderator

- Posts: 429
- Joined: 07 Oct 2012 23:12
- Location: Moscow, Russia
- Contact:
- Status: Offline
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: [REQUEST] bhyve WebGUI support
Bhyve extension need php framework for store bhyve configuration at his homefolder.
It may be xml file - in this way we have 90% ready at main sistem
It may be plain text file - we have 0% ready
It may be another way, as CBSD. This extension have self shell. But this shell written C, it must be recompile periodically.
Currently I work with bananaPI - thebrig and dhcp wait for repair some bugs
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- MikeMac
- Forum Moderator

- Posts: 429
- Joined: 07 Oct 2012 23:12
- Location: Moscow, Russia
- Contact:
- Status: Offline
Re: [REQUEST] bhyve WebGUI support
Yes, CBSD is tempting!
If this project integration into nas4free would be possible, I will be happy
By the way authors say about sh nature of CBSD https://www.bsdstore.ru/en/about.html
But I am not sure, after all "Most of the code" is not equal "100% of the code"Q: «Why CBSD written on sh:
Most of the code has been written in sh, since there are no demands for complex logic (details) - CBSD core should be considered as shell-command backend, which is achieved is necessary and in case of problems, any system engineer can always locate and correct the problem in the code.
The problems of the complexity of maintaining "large sh code" were originally solved by the modular structure of the project, where each script does only its task. The rest, more complex CBSD components (eg, a Frontend, which implements RestAPI for interfaces) written in a language go, nodejs, php, and is not part of CBSD Core.
-
olevole
- NewUser

- Posts: 1
- Joined: 08 Feb 2016 22:49
- Status: Offline
Re: [REQUEST] bhyve WebGUI support
Hi all
I am the author of CBSD and have long been on this forum
If you want integration NAS4Free with CBSD (as module) I will be happy and ready to help from CBSD side - a similar statement I voiced via FreeBSD quarterly report-2016-07-2016-09 when I was looking for an opportunity to get a web interface (in the end, I had to start making my own interface).
At the moment CBSD used noVNC (nodejs) for bhyve VNC , isc-dhcpd hooks/integration for controlling VM address and can use cloudinit and its own utility/services for initial configuration management (Including disk resizing) for deploy VM from ZFS snapshots.
In fact, in order to make the CBSD/NAS4Free integration, we need a person who knows how to write modules for Nas4Free. Therefore if someone has a desire to write a CBSD module - let me know, I will be happy to help.
I am the author of CBSD and have long been on this forum
Yes, CBSD is not 100% pure sh code. I added several С functions in /bin/sh (kqueue support, sqlite3 and several functions for working with strings), so CBSD used own sh-based shell (~120 kbytes) and has minimal dependencies for sqlite3, libssh2 (for multi-node). Other dependencies (such as VNC for jail) or support for wss:// notifications is optional.
If you want integration NAS4Free with CBSD (as module) I will be happy and ready to help from CBSD side - a similar statement I voiced via FreeBSD quarterly report-2016-07-2016-09 when I was looking for an opportunity to get a web interface (in the end, I had to start making my own interface).
At the moment CBSD used noVNC (nodejs) for bhyve VNC , isc-dhcpd hooks/integration for controlling VM address and can use cloudinit and its own utility/services for initial configuration management (Including disk resizing) for deploy VM from ZFS snapshots.
In fact, in order to make the CBSD/NAS4Free integration, we need a person who knows how to write modules for Nas4Free. Therefore if someone has a desire to write a CBSD module - let me know, I will be happy to help.
- crest
- Hardware & Software Guru

- Posts: 538
- Joined: 02 Jul 2012 22:25
- Location: Vienna, Austria - GMT+1
- Status: Offline
Re: [REQUEST] bhyve WebGUI support
Hello olevole,
Otherwise I could take care about the integration BUT I don't have experience with bhyve and such things. If it's only necessary to write a GUI for your implementation than this would be possible for me - it's just a question of my spare time since I have a lot of projects running/planing ...
Regards
crest
Sounds really interesting, maybe you know that Alexey123 already wrote an extension for bhyve (it's in an early Beta/Alpha state) so you could contact him for the WebGUI to integrate it.olevole wrote: ↑22 Jul 2017 12:33Hi all
I am the author of CBSD and have long been on this forum
Yes, CBSD is not 100% pure sh code. I added several С functions in /bin/sh (kqueue support, sqlite3 and several functions for working with strings), so CBSD used own sh-based shell (~120 kbytes) and has minimal dependencies for sqlite3, libssh2 (for multi-node). Other dependencies (such as VNC for jail) or support for wss:// notifications is optional.
If you want integration NAS4Free with CBSD (as module) I will be happy and ready to help from CBSD side - a similar statement I voiced via FreeBSD quarterly report-2016-07-2016-09 when I was looking for an opportunity to get a web interface (in the end, I had to start making my own interface).
At the moment CBSD used noVNC (nodejs) for bhyve VNC , isc-dhcpd hooks/integration for controlling VM address and can use cloudinit and its own utility/services for initial configuration management (Including disk resizing) for deploy VM from ZFS snapshots.
In fact, in order to make the CBSD/NAS4Free integration, we need a person who knows how to write modules for Nas4Free. Therefore if someone has a desire to write a CBSD module - let me know, I will be happy to help.
Otherwise I could take care about the integration BUT I don't have experience with bhyve and such things. If it's only necessary to write a GUI for your implementation than this would be possible for me - it's just a question of my spare time since I have a lot of projects running/planing ...
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:
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:
- gomario
- experienced User

- Posts: 111
- Joined: 17 Dec 2016 08:45
- Status: Offline
Re: [REQUEST] bhyve WebGUI support
How nice. Pleeease chaps: Try to make this happen. VirtualBox is no match for BHyve. The biggest issue with VB is the poor support (not to say ZERO support) for USB. I hope BH will have USB3 support 
-
texneus
- Starter

- Posts: 16
- Joined: 12 Oct 2017 05:02
- Status: Offline
Re: [REQUEST] bhyve WebGUI support
Hey there everyone in NAS4Free land. Long time lurker, first time poster (!)
. Been using NAS4Free since the V9 days, that I haven't needed to sign in before for help is a huge testament to the devs! But seeing this thread compelled me to contribute.
I have successfully setup a BHyve VM on NAS4Free 11.0, and it's been in operation for a good 3-4 months (now runs on 11.1). Currently it hosts Ubuntu Server which I use to run SageTV, for which there is no version available for FreeBSD. I do confess though, a functioning GUI for BHyve would make it much easier! There is quiet a bit of information out there on BHyve setup if you just search for it. There are some tools out there that make it easier, so make sure you have a guide that uses "raw" BHyve. It is a bit intimidating, but not very difficult.
A writeup of my BHyve setup exists here:
https://forums.sagetv.com/forums/showth ... ostcount=1
This guide was specifically created to setup Ubuntu and configure it for Docker and SageTV, but the same process can of course be adopted to other OS's and apps. The VM initialization sequence will likely be different (especially if it doesn't use Grub), but otherwise AFAIK it shouldn't be difficult to adapt. The only caveat is the third post in this thread, were I discovered BHyve and One Button Installer (possibly complicated by a stale BHyve extension install) seem to conflict. OBI must initialize first. Possibly this doesn't work at all unless the BHyve extension is installed first (no idea here, sorry).
As far as BHyve vs. Virtualbox. No contest! Bhyve is *significantly* faster and infinitely more stable. Speed isn't real critical for what I'm doing, but the difference is VERY noticeable. My experience is uptime with Vbox on NAS4Free was a few days. Uptime in BHyve has been months. The stability issue in Vbox is what drove me away from it. This is unfortunate as my prior experience with VBox on a Solaris server (pre NAS4Free) was very positive. Based on this, I concluded the NAS4Free (or perhaps underlying FreeBSD) implementation is flawed somehow.
Good luck!
I have successfully setup a BHyve VM on NAS4Free 11.0, and it's been in operation for a good 3-4 months (now runs on 11.1). Currently it hosts Ubuntu Server which I use to run SageTV, for which there is no version available for FreeBSD. I do confess though, a functioning GUI for BHyve would make it much easier! There is quiet a bit of information out there on BHyve setup if you just search for it. There are some tools out there that make it easier, so make sure you have a guide that uses "raw" BHyve. It is a bit intimidating, but not very difficult.
A writeup of my BHyve setup exists here:
https://forums.sagetv.com/forums/showth ... ostcount=1
This guide was specifically created to setup Ubuntu and configure it for Docker and SageTV, but the same process can of course be adopted to other OS's and apps. The VM initialization sequence will likely be different (especially if it doesn't use Grub), but otherwise AFAIK it shouldn't be difficult to adapt. The only caveat is the third post in this thread, were I discovered BHyve and One Button Installer (possibly complicated by a stale BHyve extension install) seem to conflict. OBI must initialize first. Possibly this doesn't work at all unless the BHyve extension is installed first (no idea here, sorry).
As far as BHyve vs. Virtualbox. No contest! Bhyve is *significantly* faster and infinitely more stable. Speed isn't real critical for what I'm doing, but the difference is VERY noticeable. My experience is uptime with Vbox on NAS4Free was a few days. Uptime in BHyve has been months. The stability issue in Vbox is what drove me away from it. This is unfortunate as my prior experience with VBox on a Solaris server (pre NAS4Free) was very positive. Based on this, I concluded the NAS4Free (or perhaps underlying FreeBSD) implementation is flawed somehow.
Good luck!
- gomario
- experienced User

- Posts: 111
- Joined: 17 Dec 2016 08:45
- Status: Offline
Re: [REQUEST] bhyve WebGUI support
Can you please confirm that USB 2.0 or 3.0, is emulated correctly? This is another major weakness of VB 
Last edited by gomario on 14 Oct 2017 23:00, edited 1 time in total.