Red Hat Bugzilla – Bug 1469347
Support for FreeBSD on ovirt-guest-agent
Last modified: 2018-02-18 18:55:50 EST
Description of problem:
There's no ovirt-guest-agent releaes for FreeBSD.
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
Support for basic tools in oVirt Hosted Engine.
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:
didn't we have some request like that long time ago...wasn't it actually partially working?
Here's what I had to do on FBSD 11
pkgconf, git, autoconf and automake
git clone https://gerrit.ovirt.org/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
./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
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.