Bug 1469347

Summary: Support for FreeBSD on ovirt-guest-agent
Product: [oVirt] ovirt-guest-agent Reporter: Vinícius Ferrão <vinicius>
Component: RFEsAssignee: Tomáš Golembiovský <tgolembi>
Status: CLOSED DEFERRED QA Contact: Lukas Svaty <lsvaty>
Severity: low Docs Contact:
Priority: unspecified    
Version: 1.0.13CC: bugs, frederick, marcoben73, marcvanwageningen, michal.skrivanek, mike, paul, rbarry, vfeenstr
Target Milestone: ---Keywords: FutureFeature
Target Release: ---Flags: sbonazzo: ovirt-4.4-
Hardware: x86_64   
OS: FreeBSD   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-05 00:33:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vinícius Ferrão 2017-07-11 04:23:22 UTC
Description of problem:
There's no ovirt-guest-agent releaes for FreeBSD.

How reproducible:
100%

Steps to Reproduce:
1. Look for ovirt-guest-agent for FreeBSD and just can't found it.
2. Try to compile from source, it works with: --without-sso
3. Fail to load binaries due to lack of knowledge of how ovirt-guest-agent works

Actual results:
None

Expected results:
Support for basic tools in oVirt Hosted Engine.

Additional info:
I was able to compile the latest version of ovirt-guest-agent on FreeBSD 11.0-EELEASE but I was unable to execute the required software due to lack of knowledge of how ovirt-guest-agent works. Probably a debug should de made and the software may need to be adapted to work correctly on FreeBSD.

I'm targeting 11.0-RELEASE since it supports the required virtio_console driver: https://www.freebsd.org/cgi/man.cgi?query=virtio_console&sektion=4

More information can be found on oVirt mailing list, since some users already tried/asked for the same feature in the past:

1. http://lists.ovirt.org/pipermail/users/2013-August/015770.html
2. http://lists.ovirt.org/pipermail/users/2015-June/033271.html

Comment 1 Michal Skrivanek 2017-07-12 13:53:05 UTC
didn't we have some request like that long time ago...wasn't it actually partially working?

Comment 2 Vinzenz Feenstra [evilissimo] 2017-07-13 14:00:56 UTC
@mskrivan 

Here's what I had to do on FBSD 11

pkgconf, git, autoconf and automake

git clone https://gerrit.ovirt.org/ovirt-guest-agent

cd ovirt-guest-agent

-- Applying changes from https://gerrit.ovirt.org/#/c/79395/ (When not merged yet)

mkdir -p m4
curl https://raw.githubusercontent.com/pkgconf/pkgconf/master/pkg.m4 > m4/pkg.m4
./autogen.sh
./configure --without-sso --with-sudohelper=sudo --prefix=/usr --sysconfdir=/etc 

sudo make install
sudo mkdir -p /var/log/ovirt-guest-agent /run

# You need to find the right channel it's something like /dev/ttyV0.1/2/3 or so but I am not sure which one is which just yet

sudo ln -s /dev/ttyV0.2 /dev/ovirt-guest-agent.0
sudo python2 /usr/share/ovirt-guest-agent/ovirt-guest-agent.py


This is for now the 'workaround' to get it working there would be ofc more sensible changes needed to do it for a real support and there are quite a lot of missing features - You can shutdown the system from the UI anything else I did not test and is most likely not working

Comment 3 Marco 2018-02-10 18:19:14 UTC
I'm using the very popular pfSense firewall in my ovirt infrastructure; pfSense is based on FreeBSD.
It would be great to have ovirt-guest-agent also fot this platform.

Comment 4 Sandro Bonazzola 2018-03-16 07:15:58 UTC
FreeNas is also freebsd based and it ships by default vmware agent.
It would be nice to get ovirt agent on it as well but for doing so we need the guest agent to run on freebsd too.

Comment 5 Mike Goodwin 2018-08-01 01:25:09 UTC
+1 For pfSense ovirt-guest-agent

Comment 6 paul 2018-09-03 16:10:50 UTC
+1 for pfSense ovirt-guest-agent

Comment 7 Ryan Barry 2018-10-08 13:23:31 UTC
Targeting late due to capacity

Comment 8 Ryan Barry 2019-02-05 00:33:22 UTC
ovirt-guest-agent is EOL In RHV 4.3. We are migrating to qemu-guest-agent, which should work on FreeBSD AFAIK