https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223531

--- Comment #8 from verma...@interia.pl ---
Generally FreeBSD 11/12 runs ok on this RHEV/oVirt/KVM hypervisor.

I just wanted to install and try the 'ovirt-guest-agent' / 'rhevm-guest-agent'
so that FreeBSD's guests IP and HOSTNAMEs would be printed in the management
GUI.

To do so I downloaded the 'ovirt-guest-agent' from git and compiled it from
source as its not in the Ports tree. Of course it comes with tons of Linuxisms
like '#!/usr/bin/python' or hardcoded config paths to /etc or /usr/share ... so
I started to modify all this and 'stopped' on the lack of /dev/virtio-ports on
FreeBSD 11. I also read that it is only implemented on FreeBSD 12 so I
downloaded CURRENT to continue the work there, and there was a kernel panic on
the module load.

I am not sure what else would be needed to make this 'ovirt-guest-agent' work
on FreeBSD, but here are instructions/commands from 'history' that I used to
make it compile without errors.

Maybe someone will find is useful in the future.

Regards,
vermaden



# pkg install autoreconf autoconf automake libtool py27-pep8 pkgconf
py27-pkgconfig git
# git clone http://gerrit.ovirt.org/p/ovirt-guest-agent.git
# cd ovirt-guest-agent/
# aclocal --print-ac-dir

// this probably should be done as 'ovirtagent' user
# env ACLOCAL_PATH=/usr/local/share/aclocal ./autogen.sh

// this probably should be done as 'ovirtagent' user
# ./configure --without-gdm-plugin --without-gdm2-plugin --without-kdm-plugin
--without-pam-ovirt-cred --with-gdm-plugin=no --with-gdm2-plugin=no
--with-kdm-plugin=no --with-pam-ovirt-cred=no --disable-gdm-plugin
--disable-gdm2-plugin --disable-kdm-plugin --disable-pam-ovirt-cred
--enable-gdm-plugin=no --enable-gdm2-plugin=no --enable-kdm-plugin=no
--prefix=/opt/ovirt-guest-agent --without-sso

# echo $?

// this probably should be done as 'ovirtagent' user
# make

# echo $?
# make install
# cd /opt/ovirt-guest-agent/
# chmod +x /usr/share/ovirt-guest-agent/ovirt-guest-agent.py
# adduser
# su - ovirtagent
$ cd /opt/ovirt-guest-agent/share/
# vi ovirt-guest-agent.py
# grep -r formatters .
# grep -r default-logger.conf .
# ls /opt/ovirt-guest-agent/share/ovirt-guest-agent/default-logger.conf
# ls /opt/ovirt-guest-agent/share/ovirt-guest-agent/default.conf
# vi ovirt-guest-agent.py
# mkdir /var/log/ovirt-guest-agent
# : > ovirt-guest-agent.log
# chown ovirtagent /var/log/ovirt-guest-agent
# : > /var/run/ovirt-guest-agent.pid
# chown ovirtagent /var/run/ovirt-guest-agent.pid
$ su - ovirtagent -c /usr/share/ovirt-guest-agent/ovirt-guest-agent.py
# cat /var/log/ovirt-guest-agent/ovirt-guest-agent.log
# ls
# ls -l /dev | grep -i virt
# kldload virtio_console.ko
# dmesg

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"

Reply via email to