Solved virtualbox 5.1.26 nox11

Freebsd 11.1 release
ports is up to date

All binary pkg are up to date
Code:
# pkg version -Iv
aalib-1.4.r5_11                    =   up-to-date with index
ap24-mod_mpm_itk-2.4.7_2           =   up-to-date with index
apache24-2.4.27                    =   up-to-date with index
apr-1.5.2.1.5.4_2                  <   needs updating (index has 1.6.2.1.6.0)
atk-2.24.0                         =   up-to-date with index
autoconf-2.69_1                    =   up-to-date with index
autoconf-wrapper-20131203          =   up-to-date with index
automake-1.15.1                    =   up-to-date with index
automake-wrapper-20131203          =   up-to-date with index
avahi-app-0.6.31_5                 =   up-to-date with index
axel-2.4_2                         =   up-to-date with index
bash-4.4.12_2                      =   up-to-date with index
binutils-2.28,1                    =   up-to-date with index
bison-3.0.4,1                      =   up-to-date with index
bwm-ng-0.6_2                       =   up-to-date with index
ca_root_nss-3.31                   <   needs updating (index has 3.32)
cairo-1.14.8_1,2                   =   up-to-date with index
cdrtools-3.01                      <   needs updating (index has 3.01_1)
compositeproto-0.4.2               =   up-to-date with index
cups-2.2.3                         =   up-to-date with index
curl-7.54.1                        =   up-to-date with index
cyrus-sasl-2.1.26_12               =   up-to-date with index
damageproto-1.2.1                  =   up-to-date with index
db5-5.3.28_6                       =   up-to-date with index
dbus-1.10.16_1                     =   up-to-date with index
dbus-glib-0.108                    =   up-to-date with index
dejavu-2.37                        =   up-to-date with index
dialog4ports-0.1.6                 =   up-to-date with index
dri2proto-2.8                      =   up-to-date with index
dsniff-2.4.b1_1                    =   up-to-date with index
easy-rsa-3.0.1_1                   =   up-to-date with index
encodings-1.0.4_3,1                =   up-to-date with index
expat-2.2.1                        =   up-to-date with index
fixesproto-5.0                     =   up-to-date with index
flex-2.6.1                         =   up-to-date with index
font-bh-ttf-1.0.3_3                =   up-to-date with index
font-misc-ethiopic-1.0.3_3         =   up-to-date with index
font-misc-meltho-1.0.3_3           =   up-to-date with index
font-util-1.3.1                    =   up-to-date with index
fontconfig-2.12.1,1                =   up-to-date with index
freetype2-2.8                      =   up-to-date with index
gcc-5.4.0_2                        =   up-to-date with index
gcc-ecj-4.5                        =   up-to-date with index
gcc5-5.4.0_2                       <   needs updating (index has 5.4.0_3)
gdbm-1.13_1                        =   up-to-date with index
gdk-pixbuf2-2.36.6                 =   up-to-date with index
gettext-runtime-0.19.8.1_1         =   up-to-date with index
gettext-tools-0.19.8.1             =   up-to-date with index
glib-2.50.2_3,1                    <   needs updating (index has 2.50.2_4,1)
glproto-1.4.17                     =   up-to-date with index
gmake-4.2.1_1                      =   up-to-date with index
gmp-6.1.2                          =   up-to-date with index
gnome-pty-helper-0.40.2            =   up-to-date with index
gnome_subr-1.0                     =   up-to-date with index
gnutls-3.5.13                      =   up-to-date with index
gobject-introspection-1.50.0,1     =   up-to-date with index
graphite2-1.3.10                   =   up-to-date with index
grub2-bhyve-0.40_2                 =   up-to-date with index
gsoap-2.8.50                       =   up-to-date with index
gtar-1.29                          =   up-to-date with index
gtk-update-icon-cache-2.24.29      =   up-to-date with index
gtk2-2.24.31                       =   up-to-date with index
harfbuzz-1.4.6_1                   =   up-to-date with index
help2man-1.47.4                    =   up-to-date with index
hicolor-icon-theme-0.15            =   up-to-date with index
indexinfo-0.2.6                    =   up-to-date with index
inputproto-2.3.2                   =   up-to-date with index
jasper-1.900.1_17                  =   up-to-date with index
jbigkit-2.1_1                      =   up-to-date with index
jpeg-turbo-1.5.1                   =   up-to-date with index
kBuild-0.1.9998_7                  <   needs updating (index has 0.1.9998_8)
kbproto-1.0.7                      =   up-to-date with index
libGLU-9.0.0_3                     =   up-to-date with index
libICE-1.0.9_1,1                   =   up-to-date with index
libIDL-0.8.14_3                    =   up-to-date with index
libSM-1.2.2_3,1                    =   up-to-date with index
libX11-1.6.5,1                     =   up-to-date with index
libXau-1.0.8_3                     =   up-to-date with index
libXcomposite-0.4.4_3,1            =   up-to-date with index
libXcursor-1.1.14_3                =   up-to-date with index
libXdamage-1.1.4_3                 =   up-to-date with index
libXdmcp-1.1.2                     =   up-to-date with index
libXext-1.3.3_1,1                  =   up-to-date with index
libXfixes-5.0.3                    =   up-to-date with index
libXft-2.3.2_1                     =   up-to-date with index
libXi-1.7.9,1                      =   up-to-date with index
libXinerama-1.1.3_3,1              =   up-to-date with index
libXmu-1.1.2_3,1                   =   up-to-date with index
libXrandr-1.5.1                    =   up-to-date with index
libXrender-0.9.10                  =   up-to-date with index
libXt-1.1.5,1                      =   up-to-date with index
libXxf86vm-1.1.4_1                 =   up-to-date with index
libdaemon-0.14_1                   =   up-to-date with index
libdrm-2.4.81,1                    <   needs updating (index has 2.4.82,1)
libffi-3.2.1                       =   up-to-date with index
libfontenc-1.1.3_1                 =   up-to-date with index
libgcrypt-1.8.0                    =   up-to-date with index
libgpg-error-1.27                  =   up-to-date with index
libiconv-1.14_10                   =   up-to-date with index
libidn2-2.0.2                      <   needs updating (index has 2.0.3)
liblz4-1.7.5,1                     =   up-to-date with index
libnet-1.1.6_5,1                   =   up-to-date with index
libnghttp2-1.23.1                  <   needs updating (index has 1.24.0)
libpaper-1.1.24.4                  =   up-to-date with index
libpciaccess-0.13.5                =   up-to-date with index
libpthread-stubs-0.4               =   up-to-date with index
libstatgrab-0.91                   =   up-to-date with index
libtasn1-4.12                      =   up-to-date with index
libunistring-0.9.7                 =   up-to-date with index
libunwind-20170113_1               =   up-to-date with index
libvncserver-0.9.11                <   needs updating (index has 0.9.11_1)
libxcb-1.12_2                      =   up-to-date with index
libxml2-2.9.4                      =   up-to-date with index
libxshmfence-1.2_2                 =   up-to-date with index
libxslt-1.1.29_1                   =   up-to-date with index
lzo2-2.10_1                        =   up-to-date with index
m4-1.4.18,1                        =   up-to-date with index
mesa-libs-17.1.4                   <   needs updating (index has 17.1.5)
mkfontdir-1.0.7                    =   up-to-date with index
mkfontscale-1.1.2                  =   up-to-date with index
mod_php56-5.6.31                   =   up-to-date with index
mpc-1.0.3                          =   up-to-date with index
mpfr-3.1.5_1                       =   up-to-date with index
mtr-0.92                           =   up-to-date with index
nano-2.8.4                         <   needs updating (index has 2.8.6)
nettle-3.3                         =   up-to-date with index
openssl-1.0.2l,1                   =   up-to-date with index
openvpn-2.4.3                      =   up-to-date with index
p11-kit-0.23.7                     =   up-to-date with index
p5-Locale-gettext-1.07             =   up-to-date with index
p7zip-16.02                        =   up-to-date with index
p7zip-codec-rar-16.02              =   up-to-date with index
pango-1.40.6                       =   up-to-date with index
pciids-20170622                    <   needs updating (index has 20170701)
pcre-8.40_1                        =   up-to-date with index
perl5-5.24.1_1                     <   needs updating (index has 5.24.2)
pixman-0.34.0                      =   up-to-date with index
pkg-1.10.1                         =   up-to-date with index
pkgconf-1.3.7,1                    =   up-to-date with index
png-1.6.29                         =   up-to-date with index
py36-asciinema-1.4.0               =   up-to-date with index
py36-certifi-2017.4.17             <   needs updating (index has 2017.7.27.1)
py36-cffi-1.7.0                    =   up-to-date with index
py36-chardet-3.0.3                 <   needs updating (index has 3.0.4)
py36-cryptography-1.7.2            =   up-to-date with index
py36-idna-2.5                      =   up-to-date with index
py36-openssl-16.2.0                =   up-to-date with index
py36-pyasn1-0.2.2                  =   up-to-date with index
py36-pycparser-2.10                =   up-to-date with index
py36-pysocks-1.6.7                 =   up-to-date with index
py36-requests-2.18.1               <   needs updating (index has 2.18.1_1)
py36-setuptools-36.0.1             =   up-to-date with index
py36-six-1.10.0                    =   up-to-date with index
py36-urllib3-1.21.1                <   needs updating (index has 1.22)
python2-2_3                        =   up-to-date with index
python27-2.7.13_6                  =   up-to-date with index
python36-3.6.1_4                   <   needs updating (index has 3.6.2)
qemu-2.8.1_1                       =   up-to-date with index
randrproto-1.5.0                   =   up-to-date with index
readline-7.0.3                     =   up-to-date with index
renderproto-0.11.1                 =   up-to-date with index
rsync-3.1.2_7                      =   up-to-date with index
sdl-1.2.15_10,2                    =   up-to-date with index
serf-1.3.9_1                       =   up-to-date with index
shared-mime-info-1.8               =   up-to-date with index
sqlite3-3.19.3_1                   =   up-to-date with index
subversion-1.9.5                   <   needs updating (index has 1.9.6)
texinfo-6.3_2,1                    <   needs updating (index has 6.4_1,1)
tiff-4.0.8                         =   up-to-date with index
tpm-emulator-0.7.4_2               =   up-to-date with index
trousers-0.3.14_1                  =   up-to-date with index
virtualbox-ose-kmod-5.1.26         =   up-to-date with index
virtualbox-ose-nox11-5.1.22_1      <   needs updating (index has 5.1.26)
vte-0.28.2_3                       =   up-to-date with index
wget-1.19.1                        <   needs updating (index has 1.19.1_1)
xcb-util-0.4.0_2,1                 =   up-to-date with index
xcb-util-renderutil-0.3.9_1        =   up-to-date with index
xextproto-7.3.0                    =   up-to-date with index
xf86vidmodeproto-2.3.1             =   up-to-date with index
xineramaproto-1.2.1                =   up-to-date with index
xorg-fonts-truetype-7.7_1          =   up-to-date with index
xproto-7.0.31                      =   up-to-date with index
yasm-1.3.0                         =   up-to-date with index

Code:
#svn info /usr/src
Path: .
Working Copy Root Path: /usr/src
URL: https://svn0.eu.freebsd.org/base/releng/11.1
Relative URL: ^/releng/11.1
Repository Root: https://svn0.eu.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 321866
Node Kind: directory
Schedule: normal
Last Changed Author: gjb
Last Changed Rev: 321309
Last Changed Date: 2017-07-21 01:39:50 +0200 (Fri, 21 Jul 2017)

Code:
@gcc5 -c -O2 -g -pipe -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fPIC -Wno-sign-compare -Werror-implicit-function-declaration -m64 -I/usr/ports/emulators/virtualbox-ose-nox11/work/VirtualBox-5.1.26/src/recompiler/Sun/crt -I/usr/ports/emulators/virtualbox-ose-nox11/work/VirtualBox-5.1.26/src/recompiler/Sun -I/usr/ports/emulators/virtualbox-ose-nox11/work/VirtualBox-5.1.26/src/recompiler/target-i386 -I/usr/ports/emulators/virtualbox-ose-nox11/work/VirtualBox-5.1.26/src/recompiler/tcg -I/usr/ports/emulators/virtualbox-ose-nox11/work/VirtualBox-5.1.26/src/recompiler/fpu -I/usr/ports/emulators/virtualbox-ose-nox11/work/VirtualBox-5.1.26/out/freebsd.amd64/release/obj/VBoxRemPrimary -I/usr/ports/emulators/virtualbox-ose-nox11/work/VirtualBox-5.1.26/src/VBox/VMM/include -I/usr/ports/emulators/virtualbox-ose-nox11/work/VirtualBox-5.1.26/src/recompiler/tcg/i386 -I/usr/ports/emulators/virtualbox-ose-nox11/work/VirtualBox-5.1.26/src/recompiler -I/usr/local/include -I/usr/ports/emulators/virtualbox-ose-nox11/work/VirtualBox-5.1.26/out/freebsd.amd64/release/obj/VBoxRemPrimary/dtrace -I/usr/ports/emulators/virtualbox-ose-nox11/work/VirtualBox-5.1.26/include -I/usr/ports/emulators/virtualbox-ose-nox11/work/VirtualBox-5.1.26/out/freebsd.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_REM -DVBOX_WITH_RAW_MODE -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_DEBUGGER -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/local/share/virtualbox-ose\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/local/lib/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/local/lib/virtualbox\" -DRTPATH_APP_DOCS=\"/usr/local/share/doc/virtualbox-ose\" -DIN_RING3 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -DPIC -DIN_REM_R3 -DREM_INCLUDE_CPU_H -DNEED_CPU_H -DVBOX_WITH_NEW_APIC -DVBOX_WITH_RAW_MODE -DVBOX_WITH_RAW_RING1 -DLOG_USE_C99 -D_BSD -D__x86_64__ -Wp,-MD,/usr/ports/emulators/virtualbox-ose-nox11/work/VirtualBox-5.1.26/out/freebsd.amd64/release/obj/VBoxRemPrimary/translate-all.o.dep -Wp,-MT,/usr/ports/emulators/virtualbox-ose-nox11/work/VirtualBox-5.1.26/out/freebsd.amd64/release/obj/VBoxRemPrimary/translate-all.o -Wp,-MP -o /usr/ports/emulators/virtualbox-ose-nox11/work/VirtualBox-5.1.26/out/freebsd.amd64/release/obj/VBoxRemPrimary/translate-all.o /usr/ports/emulators/virtualbox-ose-nox11/work/VirtualBox-5.1.26/src/recompiler/translate-all.c
kmk: *** Exiting with status 2
*** Error code 2

Stop.
make[1]: stopped in /usr/ports/emulators/virtualbox-ose-nox11
*** Error code 1

Stop.


Complete build output: https://asciinema.org/a/ejTuZTzrEj0nKgDUvBPpHq6qg
 
Well that's when compared to ports not pkgng, .. see the trouble is I run virtualbox in vimage been doing it for years, .. however that requires virtualbox to be compiled with vimage support.

Only the portstree version is always ahead of the pkg version and this is the case for many packages.

I ran pkg upgrade -f which upgraded and forcefully reinstalled 167 packages so it should be fine.
 
They're the same, ports build packages and it's those packages that get installed. So there's no real difference between a port and a package once they're installed.
 
What do you mean pkgng version is always lower then the version of ports so how can it be the same package.

Code:
/usr/ports/emulators/virtualbox-ose # cat distinfo
TIMESTAMP = 1501255973
SHA256 (VirtualBox-5.1.26.tar.bz2) = b5715035e681a11ef1475f83f9503d34a00f0276b89c572eebec363dda80c8a9
SIZE (VirtualBox-5.1.26.tar.bz2) = 115915813
SHA256 (VBoxGuestAdditions_5.1.26.iso) = 6df8c8ab6e7ac3a70a5e29116f8a5dcdb7dfbd0b226ef849a5cd9502e956b06f
SIZE (VBoxGuestAdditions_5.1.26.iso) = 59496448

Code:
pkg search virtualbox-ose-nox11
virtualbox-ose-nox11-5.1.22_1  General-purpose full virtualizer for x86 hardware

I can compile, the kmod from source and enable vimage but that doesn't work well system crashes
Code:
# pkg info virtualbox-ose-kmod
virtualbox-ose-kmod-5.1.26
Name           : virtualbox-ose-kmod
Version        : 5.1.26
Installed on   : Tue Aug  1 15:20:50 2017 CEST
Origin         : emulators/virtualbox-ose-kmod
Architecture   : FreeBSD:11:amd64
Prefix         : /usr/local
Categories     : emulators kld
Licenses       : GPLv2
Maintainer     : vbox@FreeBSD.org
WWW            : http://www.virtualbox.org/
Comment        : VirtualBox kernel module for FreeBSD
Options        :
        DEBUG          : off
        VIMAGE         : on
Annotations    :
        cpe            : cpe:2.3:a:oracle:vm_virtualbox:5.1.26:::::freebsd11:x64
Flat size      : 501KiB
Description    :
VirtualBox is a family of powerful x86 virtualization products for
enterprise as well as home use. Not only is VirtualBox an extremely
feature rich, high performance product for enterprise customers, it
is also the only professional solution that is freely available as
Open Source Software under the terms of the GNU General Public License.

WWW: http://www.virtualbox.org
 
That's probably because the default uses the quarterly packages, if you switch to the latest packages they are more in line with the ports tree. Although it will obviously take a bit of time for an updated port to build on the package clusters. But it's usually built a couple of days after the port got updated.
 
Oh, .. didn't know that, .. i've updated /etc/pkg/FreeBSD.conf to latest, .. and yes it worked thank you so much. Well I could just install from pkg rather then compile haven't tried compiling.

Why doesn't FreeBSD use latest by default?
 
Don't edit that file, it may get overwritten with an update. Instead create a file named /usr/local/etc/pkg/repos/FreeBSD.conf and add this:
Code:
FreeBSD: {
 url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest"
}
Why doesn't FreeBSD use latest by default?
It used to be the only option but it changed somewhere around 10.0 or 10.1. Most people that run FreeBSD as a server just want something that works without the need for constant updates. The quarterly branches are updated every 3 months or for security issues. It's therefor easier to maintain as there are less updates. The ports tree (and as a consequence the latest packages) tends to be a moving target with numerous, daily, updates.
 
Yeah I found out a bit later I was supposed to create new file. But thanks for notifying me anyway.

I'm wondering, .. is there a way to find out what binaries that are running within a jail that are updated, bit like lsop but for jails?

The problem with the quarterly I've noticed that it doesn't take in account security issues, .. example:

Code:
oniguruma5-5.9.6_1
proftpd-1.3.5d
mysql56-server-5.6.36

Okay, .. oniguruma is still vulnerable to something but proftpd and mysql56-server got updated, .. I'd rather have some hassle and have security updates then having a system that's vulnerable to something.
 
You can run pkg(8) on the host and access jails using the -j option:
Code:
     -j <jail name or id>, --jail <jail name or id>
             pkg will execute in the given <jail name or id>, where name
             matches ``jls name'' and id matches ``jls jid''.  See jail(8) and
             jls(8).
 
I know but that's not exactly what I meanth, lsop checks, at least I believe it checks the running binaries against the binaries on the file system, if they differ it makes an error message. For example:

Code:
lsop: sysctl: kern.proc.pathname: 1245: No such file or directory
  1245      0 miss (screen)

This could be useful to know which service to restart, after a pkg upgrade. Automating the process a little.
 
Ah, right. I generally just look at /var/log/messages to see what's been updated and restart whatever is required.

But looking at sysutils/lsop I see the pkg-message contains this:
Code:
lsop does not currently work when started in a FreeBSD jail!
So I'm afraid it won't work. You could try running it from the host though, not sure if that would work but the host can directly access everything from any jail.
 
I know, .. that's why I asked, .. I was wondering about dtrace, don't know much about, it but I think it should be possible to use it for such use? Anyway I'll look into /var/log/messages.

Thank you for the information.
 
Back
Top