From owner-freebsd-virtualization@freebsd.org Thu Nov 9 08:05:23 2017 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DA28DE6E642 for ; Thu, 9 Nov 2017 08:05:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C81827CB89 for ; Thu, 9 Nov 2017 08:05:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vA985N7x035223 for ; Thu, 9 Nov 2017 08:05:23 GMT (envelope-from bugzilla-noreply@freebsd.org) 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 Date: Thu, 09 Nov 2017 08:05:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: vermaden@interia.pl X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Nov 2017 08:05:24 -0000 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.=