Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Can libvirtd be installed on FreeNAS?

Joined
Nov 13, 2019
Messages
3
There is a port for libvirt in /usr/ports on my FreeNAS 11.


Code:
sudo MAKE_JOBS_UNSAFE=yes OSVERSION=11 ALLOW_UNSUPPORTED_SYSTEM=yes make
Ports Collection support for your FreeBSD version has ended, and no ports are
guaranteed to build on this system. Please upgrade to a supported release.

===>  License GPLv3 accepted by the user
===>   gmake-4.2.1_3 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by gmake-4.2.1_3 for building
===>  Extracting for gmake-4.2.1_3
=> SHA256 Checksum OK for make-4.2.1.tar.bz2.
===>  Patching for gmake-4.2.1_3
===>  Applying FreeBSD patches for gmake-4.2.1_3
===>   gmake-4.2.1_3 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so)
===>  Configuring for gmake-4.2.1_3
configure: loading site script /usr/ports/Templates/config.site
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... cc
checking whether the C compiler works... no
configure: error: in `/usr/ports/devel/gmake/work/make-4.2.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
===>  Script "configure" failed unexpectedly.
Please report the problem to tijl@FreeBSD.org [maintainer] and attach the
"/usr/ports/devel/gmake/work/make-4.2.1/config.log" including the output of
the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/devel/gmake
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/devel/gmake
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/libvirt
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/libvirt
 
Joined
Nov 13, 2019
Messages
3
Not sure if it is me or the forum settings, but I accidentally posted and cannot edit my original post. So, to continue...

I want to install:
https://www.freshports.org/devel/libvirt

The first post shows the error I get even with various variables set (MAKE_JOBS_UNSAFE=yes OSVERSION=11 ALLOW_UNSUPPORTED_SYSTEM=yes). Is this the proper way to do this on a FreeNAS box? I am assuming the /usr/ports tree is there for a reason, but it doesn't seem set up for use since OSVERSION doesn't work.

Ultimate goal: I'd like to connect my bhyve to a virt-manager on a different box.

Code:
[obitori@beehive /usr/ports/devel/libvirt]$ uname -a
FreeBSD beehive.lake 11.2-STABLE FreeBSD 11.2-STABLE #0 r325575+c9231c7d6bd(HEAD): Mon Nov 18 22:46:47 UTC 2019     root@nemesis:/freenas-releng/freenas/_BE/objs/freenas-releng/freenas/_BE/os/sys/FreeNAS.amd64  amd64


FreeNAS-11.2-U7
(Build Date: Nov 19, 2019 0:4)
Processor:
Intel(R) Xeon(R) CPU E3-1220 v5 @ 3.00GHz (4 cores)
Memory:
32 GiB
HostName:
beehive.lake
 

Fredda

FreeNAS Experienced
Joined
Jul 9, 2019
Messages
224
FreeNAS is an appliance and it is not intended to install additional software into the system.

Use a jail and install additional software there.
 
Joined
Nov 13, 2019
Messages
3
@Fredda: Per your response, trying to get bhyve to work in a jail, but it looks like FreeNAS jails offer FreeBSD 11.2 and jailed bhyves are offered with the 12 series. Trying to figure out a way to install a 12.1 jail on FreeNAS...
 

Fredda

FreeNAS Experienced
Joined
Jul 9, 2019
Messages
224
Since 11.2u7 you can install jails with a system newer than the FreeNAS system:
Code:
[root@freenas] ~# iocage fetch
[0] 11.2-RELEASE (EOL)
[1] 11.3-RELEASE
[2] 12.0-RELEASE
[3] 12.1-RELEASE

I must admit, I have no experience with VMs, so I'm not sure what you are trying to accomplish.
Do you run you FreeNAS in a virtual machine? Do you try to run VMs in you FreeNAS?
 
Top