Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Nov 2017 08:05:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-virtualization@FreeBSD.org
Subject:   [Bug 223531] Instant kernel panic on 'kldload virtio_console' on oVirt 3.5 VM
Message-ID:  <bug-223531-27103-RN6v9X5M62@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-223531-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-223531-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223531

--- Comment #8 from vermaden@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-age=
nt'
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 Linuxi=
sms
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' wo=
rk
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=3D/usr/local/share/aclocal ./autogen.sh

// this probably should be done as 'ovirtagent' user
# ./configure --without-gdm-plugin --without-gdm2-plugin --without-kdm-plug=
in
--without-pam-ovirt-cred --with-gdm-plugin=3Dno --with-gdm2-plugin=3Dno
--with-kdm-plugin=3Dno --with-pam-ovirt-cred=3Dno --disable-gdm-plugin
--disable-gdm2-plugin --disable-kdm-plugin --disable-pam-ovirt-cred
--enable-gdm-plugin=3Dno --enable-gdm2-plugin=3Dno --enable-kdm-plugin=3Dno
--prefix=3D/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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223531-27103-RN6v9X5M62>