wiki - wiki test machine
guest os: FreeBSD/amd64
cpu: 2
memory size: 1024 MB (was: 512 MB)
storage: file - 6 GB
tmux commands: ls - list session, attach - t
tmux keys: ctrl-B command key, ctrl-b i information, ctrl-b t time, ctrl-b d detach,
back to virtual machines page.
History
This machine was originally named bhyve_bvm2.
Links
Work log
2020-06-21: bvm2 - switching to vm-bhyve; I'm using this machine as a guinea pig. vm-bhyve allows me to have proper names for the vm's so rename this from 'bvm2' to 'wiki':
root@kg-vm3# pwd /zs/vms root@kg-vm3# ls -d bvm2 bvm2 root@kg-vm3# mv bvm2 wiki root@kg-vm3# ls -d wiki wiki
add a config file
root@kg-vm3# more wiki/wiki.conf loader="bhyveload" cpu="2" memory="1024M" network0_type="virtio-net" network0_switch="public" disk0_type="virtio-blk" disk0_name="guest-bvm2.img"
does it show up ?
root@kg-vm3# vm list NAME DATASTORE LOADER CPU MEMORY VNC AUTOSTART STATE wiki default bhyveload 2 1024M - No Stopped
can I start it?
root@kg-vm3# vm start wiki Starting wiki * found guest in /zs/vms/wiki * booting... root@kg-vm3# vm list NAME DATASTORE LOADER CPU MEMORY VNC AUTOSTART STATE wiki default bhyveload 2 1024M - No Running (8672)
it works, and after a while I can ssh into it too.
2019-01-20: bvm2 - pkg - which repo?
root@wiki# pkg -vv | grep url url : "pkg+http://pkg.FreeBSD.org/FreeBSD:10:amd64/quarterly",
aha, quarterly.
2019-01-20: bvm2 - stop apache and mysql-server, and start then again
stop
root@wiki# service apache24 stop Stopping apache24. Waiting for PIDS: 771. root@wiki# service mysql-server stop Stopping mysql. Waiting for PIDS: 736.
start
root@wiki# service mysql-server start Starting mysql. root@wiki# service apache24 start Performing sanity check on apache24 configuration: Syntax OK Starting apache24.
does the wiki still work? yes, it does.
2019-01-20: bvm2 - pkg - upgrade
messages
Message from perl5-5.26.2: The /usr/bin/perl symlink has been removed starting with Perl 5.20. For shebangs, you should either use: #!/usr/local/bin/perl or #!/usr/bin/env perl The first one will only work if you have a /usr/local/bin/perl, the second will work as long as perl is in PATH. Message from freetype2-2.9.1: The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as the default, emulating a modern version of ClearType. This change inevitably leads to different rendering results, and you might change port's options to adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment variable). The environment variable "FREETYPE_PROPERTIES" can be used to control the driver properties. Example: FREETYPE_PROPERTIES=truetype:interpreter-version=35 \ cff:no-stem-darkening=1 \ autofitter:warping=1 This allows to select, say, the subpixel hinting mode at runtime for a given application. The controllable properties are listed in the section "Controlling FreeType Modules" in the reference's table of contents (/usr/local/share/doc/freetype2/reference/ft2-toc.html, if documentation was installed). Message from ca_root_nss-3.40: ********************************* WARNING ********************************* FreeBSD does not, and can not warrant that the certification authorities whose certificates are included in this package have in any way been audited for trustworthiness or RFC 3647 compliance. Assessment and verification of trust is the complete responsibility of the system administrator. *********************************** NOTE ********************************** This package installs symlinks to support root certificates discovery by default for software that uses OpenSSL. This enables SSL Certificate Verification by client software without manual intervention. If you prefer to do this manually, replace the following symlinks with either an empty file or your site-local certificate bundle. * /etc/ssl/cert.pem * /usr/local/etc/ssl/cert.pem * /usr/local/openssl/cert.pem *************************************************************************** Message from libwmf-nox11-0.2.8.4_15: ===> NOTICE: The libwmf-nox11 port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port Message from liblqr-1-0.4.2: ========================================================================== NOTE: In order to compile examples for liblqr, you will also need pngwriter port (/usr/ports/graphics/pngwriter). Examples are located in /usr/local/share/examples/liblqr-1 ========================================================================== Message from libijs-0.35_5: ===> NOTICE: The libijs port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port Message from python36-3.6.6_1: =========================================================================== Note that some standard Python modules are provided as separate ports as they require additional dependencies. They are available as: py36-gdbm databases/py-gdbm@py36 py36-sqlite3 databases/py-sqlite3@py36 py36-tkinter x11-toolkits/py-tkinter@py36 =========================================================================== Message from apr-1.6.3.1.6.1_1: /!\ ================================================================== /!\ The Apache Portable Runtime project removed support for FreeTDS with version 1.6. Users requiring MS-SQL connectivity must migrate configurations to use the added ODBC driver and FreeTDS' ODBC features. /!\ ================================================================== /!\ Message from mysql56-client-5.6.41_1: * * * * * * * * * * * * * * * * * * * * * * * * Please be aware the database client is vulnerable to CVE-2015-3152 - SSL Downgrade aka "BACKRONYM". You may find more information at the following URL: http://www.vuxml.org/freebsd/36bd352d-299b-11e5-86ff-14dae9d210b8.html Although this database client is not listed as "affected", it is vulnerable and will not be receiving a patch. Please take note of this when deploying this software. * * * * * * * * * * * * * * * * * * * * * * * * Message from ghostscript9-agpl-base-9.25_1: This package installs a script named dvipdf that depends on dvips. If you want to use this script you need to install print/tex-dvipsk. Message from apache24-2.4.35: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! mod_http2 on FreeBSD with OpenSSL from base results in a mostly !! !! functionally unusable module due to lack of "Upgrade" !! !! capability in OpenSSL 1.0.1. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Message from mysql56-server-5.6.41_2: ***************************************************************************** Remember to run mysql_upgrade the first time you start the MySQL server after an upgrade from an earlier version. ***************************************************************************** ***************************************************************************** Please keep in mind that the default location for my.cnf will be changed from "/var/db/mysql/my.cnf" to "/usr/local/etc/mysql/my.cnf" in the near future. If you do not want to move your my.cnf to the new location then you must set "mysql_optfile" in /etc/rc.conf to "/var/db/mysql/my.cnf". ***************************************************************************** Message from mod_php56-5.6.38: *************************************************************** Make sure index.php is part of your DirectoryIndex. You should add the following to your Apache configuration file: <FilesMatch "\.php$"> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch "\.phps$"> SetHandler application/x-httpd-php-source </FilesMatch> *************************************************************** Message from git-2.19.1: ------------------------------------------------------------------------ *************************** GITWEB ************************************* If you installed the GITWEB option please follow these instructions: In the directory /usr/local/share/examples/git/gitweb you can find all files to make gitweb work as a public repository on the web. All you have to do to make gitweb work is: 1) Please be sure you're able to execute CGI scripts in /usr/local/share/examples/git/gitweb. 2) Set the GITWEB_CONFIG variable in your webserver's config to /usr/local/etc/git/gitweb.conf. This variable is passed to gitweb.cgi. 3) Restart server. *************************** GITWEB ************************************* *************************** CONTRIB ************************************ If you installed the CONTRIB option please note that the scripts are installed in /usr/local/share/git-core/contrib. Some of them require other ports to be installed (perl, python, etc), which you may need to install manually. *************************** CONTRIB ************************************ ------------------------------------------------------------------------
packages
Jan 20 20:00:42 wiki pkg: readline reinstalled: 7.0.3_1 -> 7.0.3_1 Jan 20 20:00:42 wiki pkg: libffi reinstalled: 3.2.1_2 -> 3.2.1_2 Jan 20 20:00:43 wiki pkg: gettext-runtime reinstalled: 0.19.8.1_1 -> 0.19.8.1_1 Jan 20 20:00:44 wiki pkg: jpeg-turbo upgraded: 1.5.3 -> 2.0.0 Jan 20 20:00:44 wiki pkg: jbigkit reinstalled: 2.1_1 -> 2.1_1 Jan 20 20:01:08 wiki pkg: perl5 reinstalled: 5.26.2 -> 5.26.2 Jan 20 20:01:09 wiki pkg: pcre reinstalled: 8.42 -> 8.42 Jan 20 20:01:13 wiki pkg: libiconv reinstalled: 1.14_11 -> 1.14_11 Jan 20 20:01:15 wiki pkg: tiff reinstalled: 4.0.9_1 -> 4.0.9_1 Jan 20 20:01:16 wiki pkg: libxml2 reinstalled: 2.9.7 -> 2.9.7 Jan 20 20:01:17 wiki pkg: gmp reinstalled: 6.1.2 -> 6.1.2 Jan 20 20:01:17 wiki pkg: expat upgraded: 2.2.5 -> 2.2.6_1 Jan 20 20:01:21 wiki pkg: glib upgraded: 2.50.3_4,1 -> 2.56.1_1,1 Jan 20 20:01:22 wiki pkg: png upgraded: 1.6.34 -> 1.6.35 Jan 20 20:01:24 wiki pkg: lcms2 reinstalled: 2.9 -> 2.9 Jan 20 20:01:26 wiki pkg: freetype2 reinstalled: 2.9.1 -> 2.9.1 Jan 20 20:01:26 wiki pkg: giflib reinstalled: 5.1.4 -> 5.1.4 Jan 20 20:01:27 wiki pkg: libunistring reinstalled: 0.9.10 -> 0.9.10 Jan 20 20:01:28 wiki pkg: libtasn1 reinstalled: 4.13 -> 4.13 Jan 20 20:01:28 wiki pkg: ca_root_nss upgraded: 3.38 -> 3.40 Jan 20 20:01:28 wiki pkg: openjpeg upgraded: 2.3.0 -> 2.3.0_2 Jan 20 20:01:29 wiki pkg: fontconfig reinstalled: 2.12.6,1 -> 2.12.6,1 Jan 20 20:01:30 wiki pkg: webp upgraded: 1.0.0 -> 1.0.0_1 Jan 20 20:01:30 wiki pkg: pkgconf reinstalled: 1.4.2,1 -> 1.4.2,1 Jan 20 20:01:32 wiki pkg: libwmf-nox11 reinstalled: 0.2.8.4_15 -> 0.2.8.4_15 Jan 20 20:01:33 wiki pkg: libraw upgraded: 0.18.13 -> 0.18.13_1 Jan 20 20:01:33 wiki pkg: libltdl reinstalled: 2.4.6 -> 2.4.6 Jan 20 20:01:34 wiki pkg: liblqr-1 reinstalled: 0.4.2 -> 0.4.2 Jan 20 20:01:34 wiki pkg: fftw3 upgraded: 3.3.7 -> 3.3.8_1 Jan 20 20:01:35 wiki pkg: p11-kit upgraded: 0.23.12 -> 0.23.14 Jan 20 20:01:36 wiki pkg: nettle reinstalled: 3.4 -> 3.4 Jan 20 20:01:37 wiki pkg: libidn2 reinstalled: 2.0.5 -> 2.0.5 Jan 20 20:01:37 wiki pkg: libpaper reinstalled: 1.1.24.4 -> 1.1.24.4 Jan 20 20:01:37 wiki pkg: libijs reinstalled: 0.35_5 -> 0.35_5 Jan 20 20:01:38 wiki pkg: libidn reinstalled: 1.34 -> 1.34 Jan 20 20:01:38 wiki pkg: jbig2dec upgraded: 0.14 -> 0.15 Jan 20 20:02:31 wiki pkg: python36-3.6.6_1 installed Jan 20 20:02:38 wiki pkg: gnutls upgraded: 3.5.18 -> 3.5.19 Jan 20 20:02:38 wiki pkg: xproto-7.0.31 deinstalled Jan 20 20:02:38 wiki pkg: libdaemon reinstalled: 0.14_1 -> 0.14_1 Jan 20 20:02:40 wiki pkg: gobject-introspection upgraded: 1.50.0_1,1 -> 1.56.1,1 Jan 20 20:02:41 wiki pkg: gdbm reinstalled: 1.13_1 -> 1.13_1 Jan 20 20:02:41 wiki pkg: kbproto-1.0.7 deinstalled Jan 20 20:02:41 wiki pkg: libICE upgraded: 1.0.9_1,1 -> 1.0.9_3,1 Jan 20 20:02:42 wiki pkg: xorgproto-2018.4 installed Jan 20 20:02:43 wiki pkg: libSM upgraded: 1.2.2_3,1 -> 1.2.2_5,1 Jan 20 20:02:43 wiki pkg: libXdmcp upgraded: 1.1.2 -> 1.1.2_2 Jan 20 20:02:43 wiki pkg: libXau upgraded: 1.0.8_3 -> 1.0.8_5 Jan 20 20:02:58 wiki pkg: libxcb upgraded: 1.13 -> 1.13.1 Jan 20 20:03:05 wiki pkg: libX11 upgraded: 1.6.5,1 -> 1.6.6_1,1 Jan 20 20:03:06 wiki pkg: dbus reinstalled: 1.10.16_1 -> 1.10.16_1 Jan 20 20:03:26 wiki pkg: db5 upgraded: 5.3.28_6 -> 5.3.28_7 Jan 20 20:03:27 wiki pkg: avahi-app upgraded: 0.6.31_6 -> 0.7_1 Jan 20 20:03:27 wiki pkg: p5-Socket6-0.29 installed Jan 20 20:03:30 wiki pkg: php56 upgraded: 5.6.36_1 -> 5.6.38 Jan 20 20:03:31 wiki pkg: libnghttp2 upgraded: 1.32.0 -> 1.33.0 Jan 20 20:03:31 wiki pkg: liblz4 upgraded: 1.8.2,1 -> 1.8.3,1 Jan 20 20:03:31 wiki pkg: libevent upgraded: 2.1.8_1 -> 2.1.8_2 Jan 20 20:03:32 wiki pkg: libedit reinstalled: 3.1.20170329_2,1 -> 3.1.20170329_2,1 Jan 20 20:03:37 wiki pkg: cups reinstalled: 2.2.8_1 -> 2.2.8_1 Jan 20 20:03:38 wiki pkg: apr reinstalled: 1.6.3.1.6.1_1 -> 1.6.3.1.6.1_1 Jan 20 20:03:38 wiki pkg: p5-IO-Socket-INET6-2.72_1 installed Jan 20 20:03:38 wiki pkg: p5-IO-Socket-SSL upgraded: 2.056 -> 2.059 Jan 20 20:03:39 wiki pkg: p5-CGI upgraded: 4.38 -> 4.40 Jan 20 20:03:39 wiki pkg: oniguruma upgraded: 6.8.1 -> 6.9.0 Jan 20 20:03:41 wiki pkg: mysql56-client upgraded: 5.6.40 -> 5.6.41_1 Jan 20 20:03:48 wiki pkg: ghostscript9-agpl-base upgraded: 9.23_1 -> 9.25_1 Jan 20 20:03:55 wiki pkg: curl upgraded: 7.61.0 -> 7.61.1 Jan 20 20:04:06 wiki pkg: apache24 upgraded: 2.4.34 -> 2.4.35 Jan 20 20:04:06 wiki pkg: php56-zlib upgraded: 5.6.36_1 -> 5.6.38 Jan 20 20:04:07 wiki pkg: php56-xmlreader upgraded: 5.6.36_1 -> 5.6.38 Jan 20 20:04:07 wiki pkg: php56-xml upgraded: 5.6.36_1 -> 5.6.38 Jan 20 20:04:07 wiki pkg: php56-sockets upgraded: 5.6.36_1 -> 5.6.38 Jan 20 20:04:07 wiki pkg: php56-session upgraded: 5.6.36_1 -> 5.6.38 Jan 20 20:04:07 wiki pkg: php56-readline upgraded: 5.6.36_1 -> 5.6.38 Jan 20 20:04:07 wiki pkg: php56-pcntl upgraded: 5.6.36_1 -> 5.6.38 Jan 20 20:04:07 wiki pkg: php56-mysql upgraded: 5.6.36_1 -> 5.6.38 Jan 20 20:04:09 wiki pkg: php56-mbstring upgraded: 5.6.36_1 -> 5.6.38 Jan 20 20:04:09 wiki pkg: php56-json upgraded: 5.6.36_1 -> 5.6.38 Jan 20 20:04:09 wiki pkg: php56-iconv upgraded: 5.6.36_1 -> 5.6.38 Jan 20 20:04:09 wiki pkg: php56-hash upgraded: 5.6.36_1 -> 5.6.38 Jan 20 20:04:09 wiki pkg: php56-ctype upgraded: 5.6.36_1 -> 5.6.38 Jan 20 20:04:16 wiki pkg: mysql56-server upgraded: 5.6.40 -> 5.6.41_2 Jan 20 20:04:17 wiki pkg: mod_php56 upgraded: 5.6.36_1 -> 5.6.38 Jan 20 20:04:23 wiki pkg: icu upgraded: 62.1_1,1 -> 62.1_2,1 Jan 20 20:04:34 wiki pkg: git upgraded: 2.18.0_1 -> 2.19.1 Jan 20 20:04:46 wiki pkg: ImageMagick-nox11 upgraded: 6.9.9.28,1 -> 6.9.9.28_2,1
ok
2019-01-20: bvm2 - pkg - upgraded pkg
Jan 20 19:57:02 wiki pkg: pkg upgraded: 1.10.5_1 -> 1.10.5_5
ok
2019-01-20: bvm2 - pkg - updated repository
2019-01-20: bvm2 - reboot, and the machine runs FreeBSD 10.4-release-p13:
root@wiki# freebsd-version -ku 10.4-RELEASE-p13 10.4-RELEASE-p13
kernel
root@wiki# uname -a FreeBSD wiki.kg4.no 10.4-RELEASE-p13 FreeBSD 10.4-RELEASE-p13 #0: Thu Sep 27 10:09:35 UTC 2018 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
ok
2019-01-20: bvm2 - freebsd-update
fetch
root@wiki# freebsd-update fetch [..] The following files will be updated as part of updating to 10.4-RELEASE-p13: /bin/freebsd-version [..] WARNING: FreeBSD 10.4-RELEASE-p10 HAS PASSED ITS END-OF-LIFE DATE. Any security issues discovered after Thu Nov 1 01:00:00 CET 2018 will not have been corrected.
install
root@wiki# freebsd-update install src component not installed, skipped Installing updates... done.
ok, reboot
2018-08-17: bvm2 - verify that the wiki still works. stop services
root@wiki# service apache24 stop Stopping apache24. Waiting for PIDS: 745. root@wiki# service mysql-server stop Stopping mysql. Waiting for PIDS: 710.
start services.
root@wiki# service mysql-server start Starting mysql. root@wiki# service apache24 start Performing sanity check on apache24 configuration: Syntax OK Starting apache24.
The wiki still works - good.
2018-08-17: bvm2 - pkg - upgrade
messages
Message from python27-2.7.15: =========================================================================== Note that some standard Python modules are provided as separate ports as they require additional dependencies. They are available as: bsddb databases/py-bsddb gdbm databases/py-gdbm sqlite3 databases/py-sqlite3 tkinter x11-toolkits/py-tkinter =========================================================================== Message from perl5-5.26.2: The /usr/bin/perl symlink has been removed starting with Perl 5.20. For shebangs, you should either use: #!/usr/local/bin/perl or #!/usr/bin/env perl The first one will only work if you have a /usr/local/bin/perl, the second will work as long as perl is in PATH. Message from ca_root_nss-3.38: ********************************* WARNING ********************************* FreeBSD does not, and can not warrant that the certification authorities whose certificates are included in this package have in any way been audited for trustworthiness or RFC 3647 compliance. Assessment and verification of trust is the complete responsibility of the system administrator. *********************************** NOTE ********************************** This package installs symlinks to support root certificates discovery by default for software that uses OpenSSL. This enables SSL Certificate Verification by client software without manual intervention. If you prefer to do this manually, replace the following symlinks with either an empty file or your site-local certificate bundle. * /etc/ssl/cert.pem * /usr/local/etc/ssl/cert.pem * /usr/local/openssl/cert.pem *************************************************************************** Message from trousers-0.3.14_2: To run tcsd automatically, add the following line to /etc/rc.conf: tcsd_enable="YES" You might want to edit /usr/local/etc/tcsd.conf to reflect your setup. If you want to use tcsd with software TPM emulator, use the following configuration in /etc/rc.conf: tcsd_enable="YES" tcsd_mode="emulator" tpmd_enable="YES" To use TPM, add your_account to '_tss' group like following: # pw groupmod _tss -m your_account Message from freetype2-2.9.1: The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as the default, emulating a modern version of ClearType. This change inevitably leads to different rendering results, and you might change port's options to adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment variable). The environment variable "FREETYPE_PROPERTIES" can be used to control the driver properties. Example: FREETYPE_PROPERTIES=truetype:interpreter-version=35 \ cff:no-stem-darkening=1 \ autofitter:warping=1 This allows to select, say, the subpixel hinting mode at runtime for a given application. The controllable properties are listed in the section "Controlling FreeType Modules" in the reference's table of contents (/usr/local/share/doc/freetype2/reference/ft2-toc.html, if documentation was installed). Message from apr-1.6.3.1.6.1_1: /!\ ================================================================== /!\ The Apache Portable Runtime project removed support for FreeTDS with version 1.6. Users requiring MS-SQL connectivity must migrate configurations to use the added ODBC driver and FreeTDS' ODBC features. /!\ ================================================================== /!\ Message from libijs-0.35_5: ===> NOTICE: The libijs port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port Message from mysql56-client-5.6.40: * * * * * * * * * * * * * * * * * * * * * * * * Please be aware the database client is vulnerable to CVE-2015-3152 - SSL Downgrade aka "BACKRONYM". You may find more information at the following URL: http://www.vuxml.org/freebsd/36bd352d-299b-11e5-86ff-14dae9d210b8.html Although this database client is not listed as "affected", it is vulnerable and will not be receiving a patch. Please take note of this when deploying this software. * * * * * * * * * * * * * * * * * * * * * * * * Message from liblqr-1-0.4.2: ========================================================================== NOTE: In order to compile examples for liblqr, you will also need pngwriter port (/usr/ports/graphics/pngwriter). Examples are located in /usr/local/share/examples/liblqr-1 ========================================================================== Message from ghostscript9-agpl-base-9.23_1: This package installs a script named dvipdf that depends on dvips. If you want to use this script you need to install print/tex-dvipsk. Message from apache24-2.4.34: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! mod_http2 on FreeBSD with OpenSSL from base results in a mostly !! !! functionally unusable module due to lack of "Upgrade" !! !! capability in OpenSSL 1.0.1. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Message from p5-Net-SMTP-SSL-1.04: ===> NOTICE: This port is deprecated; you may wish to reconsider installing it: Deprecated by upstream, use Net::SMTP instead. It is scheduled to be removed on or after 2018-05-31. Message from mysql56-server-5.6.40: ***************************************************************************** Remember to run mysql_upgrade the first time you start the MySQL server after an upgrade from an earlier version. ***************************************************************************** ***************************************************************************** Please keep in mind that the default location for my.cnf will be changed from "/var/db/mysql/my.cnf" to "/usr/local/etc/mysql/my.cnf" in the near future. If you do not want to move your my.cnf to the new location then you must set "mysql_optfile" in /etc/rc.conf to "/var/db/mysql/my.cnf". ***************************************************************************** Message from mod_php56-5.6.36_1: *************************************************************** Make sure index.php is part of your DirectoryIndex. You should add the following to your Apache configuration file: <FilesMatch "\.php$"> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch "\.phps$"> SetHandler application/x-httpd-php-source </FilesMatch> *************************************************************** Message from git-2.18.0_1: ------------------------------------------------------------------------ *************************** GITWEB ************************************* If you installed the GITWEB option please follow these instructions: In the directory /usr/local/share/examples/git/gitweb you can find all files to make gitweb work as a public repository on the web. All you have to do to make gitweb work is: 1) Please be sure you're able to execute CGI scripts in /usr/local/share/examples/git/gitweb. 2) Set the GITWEB_CONFIG variable in your webserver's config to /usr/local/etc/git/gitweb.conf. This variable is passed to gitweb.cgi. 3) Restart server. *************************** GITWEB ************************************* *************************** CONTRIB ************************************ If you installed the CONTRIB option please note that the scripts are installed in /usr/local/share/git-core/contrib. Some of them require other ports to be installed (perl, python, etc), which you may need to install manually. *************************** CONTRIB ************************************ ------------------------------------------------------------------------ packages Aug 17 23:29:34 wiki pkg: pkg upgraded: 1.8.8 -> 1.10.5_1 Aug 17 23:38:07 wiki pkg: xproto upgraded: 7.0.28 -> 7.0.31 Aug 17 23:38:08 wiki pkg: libxml2 upgraded: 2.9.4 -> 2.9.7 Aug 17 23:38:08 wiki pkg: libpthread-stubs upgraded: 0.3_6 -> 0.4 Aug 17 23:38:08 wiki pkg: indexinfo upgraded: 0.2.5 -> 0.3.1 Aug 17 23:38:20 wiki pkg: libxcb upgraded: 1.11.1 -> 1.13 Aug 17 23:38:21 wiki pkg: libffi upgraded: 3.2.1 -> 3.2.1_2 Aug 17 23:38:22 wiki pkg: gettext-runtime upgraded: 0.19.8.1 -> 0.19.8.1_1 Aug 17 23:38:22 wiki pkg: readline-7.0.3_1 installed Aug 17 23:38:54 wiki pkg: python27 upgraded: 2.7.12 -> 2.7.15 Aug 17 23:39:18 wiki pkg: perl5 upgraded: 5.20.3_15 -> 5.26.2 Aug 17 23:39:20 wiki pkg: pcre upgraded: 8.39 -> 8.42 Aug 17 23:39:20 wiki pkg: libiconv upgraded: 1.14_9 -> 1.14_11 Aug 17 23:39:30 wiki pkg: libX11 upgraded: 1.6.4,1 -> 1.6.5,1 Aug 17 23:39:30 wiki pkg: gnome_subr reinstalled: 1.0 -> 1.0 Aug 17 23:39:30 wiki pkg: gmp upgraded: 5.1.3_3 -> 6.1.2 Aug 17 23:39:31 wiki pkg: expat upgraded: 2.2.0 -> 2.2.5 Aug 17 23:39:31 wiki pkg: tpm-emulator upgraded: 0.7.4_1 -> 0.7.4_2 Aug 17 23:39:32 wiki pkg: libtasn1 upgraded: 4.9 -> 4.13 Aug 17 23:39:32 wiki pkg: jpeg-turbo upgraded: 1.4.2 -> 1.5.3 Aug 17 23:39:36 wiki pkg: glib upgraded: 2.46.2_3 -> 2.50.3_4,1 Aug 17 23:39:37 wiki pkg: dbus upgraded: 1.8.20 -> 1.10.16_1 Aug 17 23:39:38 wiki pkg: ca_root_nss upgraded: 3.27.1 -> 3.38 Aug 17 23:39:38 wiki pkg: libunistring-0.9.10 installed Aug 17 23:39:40 wiki pkg: trousers upgraded: 0.3.13_1 -> 0.3.14_2 Aug 17 23:39:41 wiki pkg: tiff upgraded: 4.0.6_2 -> 4.0.9_1 Aug 17 23:39:42 wiki pkg: p11-kit upgraded: 0.23.2 -> 0.23.12 Aug 17 23:39:44 wiki pkg: nettle upgraded: 3.2 -> 3.4 Aug 17 23:39:44 wiki pkg: libidn upgraded: 1.33_1 -> 1.34 Aug 17 23:39:47 wiki pkg: gobject-introspection upgraded: 1.46.0 -> 1.50.0_1,1 Aug 17 23:39:47 wiki pkg: gdbm upgraded: 1.12 -> 1.13_1 Aug 17 23:39:48 wiki pkg: dbus-glib upgraded: 0.104 -> 0.108 Aug 17 23:39:48 wiki pkg: libidn2-2.0.5 installed Aug 17 23:39:48 wiki pkg: png upgraded: 1.6.23 -> 1.6.34 Aug 17 23:39:51 wiki pkg: lcms2 upgraded: 2.7_2 -> 2.9 Aug 17 23:40:01 wiki pkg: gnutls upgraded: 3.4.15 -> 3.5.18 Aug 17 23:40:03 wiki pkg: freetype2 upgraded: 2.6.3 -> 2.9.1 Aug 17 23:40:19 wiki pkg: db5 upgraded: 5.3.28_4 -> 5.3.28_6 Aug 17 23:40:21 wiki pkg: avahi-app upgraded: 0.6.31_5 -> 0.6.31_6 Aug 17 23:40:21 wiki pkg: p5-HTML-Tagset-3.20_1 installed Aug 17 23:40:21 wiki pkg: oniguruma5-5.9.6_1 deinstalled Aug 17 23:40:27 wiki pkg: php56 upgraded: 5.6.28 -> 5.6.36_1 Aug 17 23:40:28 wiki pkg: p5-Socket upgraded: 2.021 -> 2.027 Aug 17 23:40:28 wiki pkg: p5-Net-SSLeay upgraded: 1.78 -> 1.85 Aug 17 23:40:28 wiki pkg: p5-Mozilla-CA upgraded: 20160104 -> 20180117 Aug 17 23:40:29 wiki pkg: p5-IO-Socket-IP upgraded: 0.37_1 -> 0.39 Aug 17 23:40:29 wiki pkg: p5-GSSAPI reinstalled: 0.28_1 -> 0.28_1 Aug 17 23:40:29 wiki pkg: p5-Digest-HMAC reinstalled: 1.03_1 -> 1.03_1 Aug 17 23:40:29 wiki pkg: openjpeg upgraded: 2.1.1_1 -> 2.3.0 Aug 17 23:40:29 wiki pkg: libedit upgraded: 3.1.20150325_2,1 -> 3.1.20170329_2,1 Aug 17 23:40:30 wiki pkg: jbig2dec upgraded: 0.13 -> 0.14 Aug 17 23:40:32 wiki pkg: gsfonts upgraded: 8.11_6 -> 8.11_8 Aug 17 23:40:33 wiki pkg: giflib upgraded: 5.1.3 -> 5.1.4 Aug 17 23:40:34 wiki pkg: fontconfig upgraded: 2.12.1,1 -> 2.12.6,1 Aug 17 23:40:39 wiki pkg: cups upgraded: 2.1.4 -> 2.2.8_1 Aug 17 23:40:40 wiki pkg: apr upgraded: 1.5.2.1.5.4_1 -> 1.6.3.1.6.1_1 Aug 17 23:40:40 wiki pkg: libevent-2.1.8_1 installed Aug 17 23:40:40 wiki pkg: liblz4-1.8.2,1 installed Aug 17 23:40:41 wiki pkg: p5-HTML-Parser-3.72 installed Aug 17 23:40:41 wiki pkg: libnghttp2-1.32.0 installed Aug 17 23:40:41 wiki pkg: libijs-0.35_5 installed Aug 17 23:40:44 wiki pkg: poppler-data-0.4.9 installed Aug 17 23:40:44 wiki pkg: webp upgraded: 0.5.0 -> 1.0.0 Aug 17 23:40:45 wiki pkg: pkgconf upgraded: 1.0.1 -> 1.4.2,1 Aug 17 23:40:45 wiki pkg: php56-dom upgraded: 5.6.28 -> 5.6.36_1 Aug 17 23:40:45 wiki pkg: p5-IO-Socket-SSL upgraded: 2.038 -> 2.056 Aug 17 23:40:45 wiki pkg: p5-Error upgraded: 0.17024 -> 0.17026 Aug 17 23:40:45 wiki pkg: p5-Authen-SASL reinstalled: 2.16_1 -> 2.16_1 Aug 17 23:40:49 wiki pkg: mysql56-client upgraded: 5.6.34 -> 5.6.40 Aug 17 23:40:49 wiki pkg: liblqr-1 upgraded: 0.4.1_8 -> 0.4.2 Aug 17 23:41:01 wiki pkg: ghostscript9-agpl-base upgraded: 9.16_5 -> 9.23_1 Aug 17 23:41:02 wiki pkg: fftw3 upgraded: 3.3.3_2 -> 3.3.7 Aug 17 23:41:05 wiki pkg: curl upgraded: 7.51.0_1 -> 7.61.0 Aug 17 23:41:16 wiki pkg: apache24 upgraded: 2.4.23_1 -> 2.4.34 Aug 17 23:41:17 wiki pkg: oniguruma-6.8.1 installed Aug 17 23:41:17 wiki pkg: p5-CGI-4.38 installed Aug 17 23:41:18 wiki pkg: libraw-0.18.13 installed Aug 17 23:41:18 wiki pkg: php56-zlib upgraded: 5.6.28 -> 5.6.36_1 Aug 17 23:41:18 wiki pkg: php56-xmlreader upgraded: 5.6.28 -> 5.6.36_1 Aug 17 23:41:18 wiki pkg: php56-xml upgraded: 5.6.28 -> 5.6.36_1 Aug 17 23:41:18 wiki pkg: php56-sockets upgraded: 5.6.28 -> 5.6.36_1 Aug 17 23:41:18 wiki pkg: php56-session upgraded: 5.6.28 -> 5.6.36_1 Aug 17 23:41:18 wiki pkg: php56-readline upgraded: 5.6.28 -> 5.6.36_1 Aug 17 23:41:18 wiki pkg: php56-pcntl upgraded: 5.6.28 -> 5.6.36_1 Aug 17 23:41:19 wiki pkg: php56-mysql upgraded: 5.6.28 -> 5.6.36_1 Aug 17 23:41:20 wiki pkg: php56-mbstring upgraded: 5.6.28 -> 5.6.36_1 Aug 17 23:41:20 wiki pkg: php56-json upgraded: 5.6.28 -> 5.6.36_1 Aug 17 23:41:20 wiki pkg: php56-iconv upgraded: 5.6.28 -> 5.6.36_1 Aug 17 23:41:20 wiki pkg: php56-hash upgraded: 5.6.28 -> 5.6.36_1 Aug 17 23:41:20 wiki pkg: php56-ctype upgraded: 5.6.28 -> 5.6.36_1 Aug 17 23:41:20 wiki pkg: p5-Net-SMTP-SSL upgraded: 1.03 -> 1.04 Aug 17 23:41:27 wiki pkg: mysql56-server upgraded: 5.6.34 -> 5.6.40 Aug 17 23:41:28 wiki pkg: mod_php56 upgraded: 5.6.28 -> 5.6.36_1 Aug 17 23:41:29 wiki pkg: libfpx upgraded: 1.3.1.4_1 -> 1.3.1.10 Aug 17 23:41:41 wiki pkg: icu upgraded: 57.1,1 -> 62.1_1,1 Aug 17 23:41:46 wiki pkg: git upgraded: 2.9.2_2 -> 2.18.0_1 Aug 17 23:41:57 wiki pkg: ImageMagick-nox11 upgraded: 6.9.5.10_1,1 -> 6.9.9.28,1
verify that no packages remain
root@wiki# pkg upgrade -n Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. Checking for upgrades (0 candidates): 100% Processing candidates (0 candidates): 100% Checking integrity... done (0 conflicting) Your packages are up to date.
ok
2018-08-17: bvm2 - pkg - check for upgrades
root@wiki# pkg upgrade -n Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. Checking for upgrades (82 candidates): 100% Processing candidates (82 candidates): 100% The following 95 package(s) will be affected (of 0 checked): New packages to be INSTALLED: readline: 7.0.3_1 oniguruma: 6.8.1 libevent: 2.1.8_1 liblz4: 1.8.2,1 libidn2: 2.0.5 libunistring: 0.9.10 p5-CGI: 4.38 p5-HTML-Parser: 3.72 p5-HTML-Tagset: 3.20_1 libnghttp2: 1.32.0 libijs: 0.35_5 poppler-data: 0.4.9 libraw: 0.18.13 Installed packages to be UPGRADED: xproto: 7.0.28 -> 7.0.31 webp: 0.5.0 -> 1.0.0 trousers: 0.3.13_1 -> 0.3.14_2 tpm-emulator: 0.7.4_1 -> 0.7.4_2 tiff: 4.0.6_2 -> 4.0.9_1 python27: 2.7.12 -> 2.7.15 png: 1.6.23 -> 1.6.34 pkgconf: 1.0.1 -> 1.4.2,1 php56-zlib: 5.6.28 -> 5.6.36_1 php56-xmlreader: 5.6.28 -> 5.6.36_1 php56-xml: 5.6.28 -> 5.6.36_1 php56-sockets: 5.6.28 -> 5.6.36_1 php56-session: 5.6.28 -> 5.6.36_1 php56-readline: 5.6.28 -> 5.6.36_1 php56-pcntl: 5.6.28 -> 5.6.36_1 php56-mysql: 5.6.28 -> 5.6.36_1 php56-mbstring: 5.6.28 -> 5.6.36_1 php56-json: 5.6.28 -> 5.6.36_1 php56-iconv: 5.6.28 -> 5.6.36_1 php56-hash: 5.6.28 -> 5.6.36_1 php56-dom: 5.6.28 -> 5.6.36_1 php56-ctype: 5.6.28 -> 5.6.36_1 php56: 5.6.28 -> 5.6.36_1 perl5: 5.20.3_15 -> 5.26.2 pcre: 8.39 -> 8.42 p5-Socket: 2.021 -> 2.027 p5-Net-SSLeay: 1.78 -> 1.85 p5-Net-SMTP-SSL: 1.03 -> 1.04 p5-Mozilla-CA: 20160104 -> 20180117 p5-IO-Socket-SSL: 2.038 -> 2.056 p5-IO-Socket-IP: 0.37_1 -> 0.39 p5-Error: 0.17024 -> 0.17026 p11-kit: 0.23.2 -> 0.23.12 openjpeg: 2.1.1_1 -> 2.3.0 nettle: 3.2 -> 3.4 mysql56-server: 5.6.34 -> 5.6.40 mysql56-client: 5.6.34 -> 5.6.40 mod_php56: 5.6.28 -> 5.6.36_1 libxml2: 2.9.4 -> 2.9.7 libxcb: 1.11.1 -> 1.13 libtasn1: 4.9 -> 4.13 libpthread-stubs: 0.3_6 -> 0.4 liblqr-1: 0.4.1_8 -> 0.4.2 libidn: 1.33_1 -> 1.34 libiconv: 1.14_9 -> 1.14_11 libfpx: 1.3.1.4_1 -> 1.3.1.10 libffi: 3.2.1 -> 3.2.1_2 libedit: 3.1.20150325_2,1 -> 3.1.20170329_2,1 libX11: 1.6.4,1 -> 1.6.5,1 lcms2: 2.7_2 -> 2.9 jpeg-turbo: 1.4.2 -> 1.5.3 jbig2dec: 0.13 -> 0.14 indexinfo: 0.2.5 -> 0.3.1 icu: 57.1,1 -> 62.1_1,1 gsfonts: 8.11_6 -> 8.11_8 gobject-introspection: 1.46.0 -> 1.50.0_1,1 gnutls: 3.4.15 -> 3.5.18 gmp: 5.1.3_3 -> 6.1.2 glib: 2.46.2_3 -> 2.50.3_4,1 git: 2.9.2_2 -> 2.18.0_1 giflib: 5.1.3 -> 5.1.4 ghostscript9-agpl-base: 9.16_5 -> 9.23_1 gettext-runtime: 0.19.8.1 -> 0.19.8.1_1 gdbm: 1.12 -> 1.13_1 freetype2: 2.6.3 -> 2.9.1 fontconfig: 2.12.1,1 -> 2.12.6,1 fftw3: 3.3.3_2 -> 3.3.7 expat: 2.2.0 -> 2.2.5 dbus-glib: 0.104 -> 0.108 dbus: 1.8.20 -> 1.10.16_1 db5: 5.3.28_4 -> 5.3.28_6 curl: 7.51.0_1 -> 7.61.0 cups: 2.1.4 -> 2.2.8_1 ca_root_nss: 3.27.1 -> 3.38 avahi-app: 0.6.31_5 -> 0.6.31_6 apr: 1.5.2.1.5.4_1 -> 1.6.3.1.6.1_1 apache24: 2.4.23_1 -> 2.4.34 ImageMagick-nox11: 6.9.5.10_1,1 -> 6.9.9.28,1 Installed packages to be REINSTALLED: p5-GSSAPI-0.28_1 (direct dependency changed: perl5) p5-Digest-HMAC-1.03_1 (ABI changed: 'freebsd:10:x86:64' -> 'freebsd:10:*') p5-Authen-SASL-2.16_1 (ABI changed: 'freebsd:10:x86:64' -> 'freebsd:10:*') gnome_subr-1.0 (ABI changed: 'freebsd:10:x86:64' -> 'freebsd:10:*') Number of packages to be installed: 13 Number of packages to be upgraded: 78 Number of packages to be reinstalled: 4 The process will require 47 MiB more space. 127 MiB to be downloaded.
not so bad a list.
2018-08-17: bvm2 - pkg - update repository (via 'pkg update') then upgrade pkg:
Aug 17 23:29:34 wiki pkg: pkg upgraded: 1.8.8 -> 1.10.5_1
ok.
2018-08-17: bvm2 - reboot, now the machine runs FreeBSD 10.4-RELEASE-p11.
root@wiki# freebsd-version -ku 10.4-RELEASE-p10 10.4-RELEASE-p11 root@wiki# uname -a FreeBSD wiki.kg4.no 10.4-RELEASE-p10 FreeBSD 10.4-RELEASE-p10 #0: Sun Aug 5 08:24:17 UTC 2018 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
and the wiki still works.
2018-08-16: bvm2 - freebsd-update - upgrade to 10.4-RELEASE
upgrade
root@wiki# freebsd-update upgrade -r 10.4-RELEASE src component not installed, skipped Looking up update.FreeBSD.org mirrors... 2 mirrors found. Fetching metadata signature for 10.3-RELEASE from update5.freebsd.org... done. Fetching metadata index... done. Fetching 1 metadata files... done. Inspecting system... done. The following components of FreeBSD seem to be installed: kernel/generic world/base The following components of FreeBSD do not seem to be installed: world/doc world/games world/lib32 Does this look reasonable (y/n)? y [..] Fetching metadata signature for 10.4-RELEASE from update5.freebsd.org... done. [..] Inspecting system... done. Fetching files from 10.3-RELEASE for merging... done. Preparing to download files... [..] Attempting to automatically merge changes in files... done. The following file could not be merged automatically: /etc/ntp.conf Press Enter to edit this file in /usr/bin/vi and resolve the conflicts manually... (fixed the file in vi) The following files are affected by updates, but no changes have been downloaded because the files have been modified locally: /.profile /root/.profile (ok) The following files will be removed as part of updating to 10.4-RELEASE-p11: /boot/kernel/hv_ata_pci_disengage.ko /boot/kernel/hv_ata_pci_disengage.ko.symbols /usr/share/man/man2/cap_rights_get.2.gz /usr/share/man/man4/hv_ata_pci_disengage.4.gz /usr/share/man/man9/rman_await_resource.9.gz The following files will be added as part of updating to 10.4-RELEASE-p11: /boot/kernel/geom_flashmap.ko /boot/kernel/geom_flashmap.ko.symbols /boot/kernel/if_cc.ko /boot/kernel/if_cc.ko.symbols /boot/kernel/if_ccv.ko /boot/kernel/if_ccv.ko.symbols /boot/kernel/if_cxgbev.ko /boot/kernel/if_cxgbev.ko.symbols /boot/kernel/if_cxlv.ko /boot/kernel/if_cxlv.ko.symbols /boot/kernel/if_qlnxe.ko /boot/kernel/if_qlnxe.ko.symbols /boot/kernel/ioat.ko /boot/kernel/ioat.ko.symbols /boot/kernel/jedec_ts.ko /boot/kernel/jedec_ts.ko.symbols /boot/kernel/ntb.ko /boot/kernel/ntb.ko.symbols /boot/kernel/ntb_transport.ko /boot/kernel/ntb_transport.ko.symbols /boot/kernel/smbios.ko /boot/kernel/smbios.ko.symbols /boot/kernel/t6fw_cfg.ko /boot/kernel/t6fw_cfg.ko.symbols /boot/kernel/vpd.ko /boot/kernel/vpd.ko.symbols /etc/cron.d /etc/rc.d/zfsbe /etc/syslog.d /rescue/poweroff /rescue/shutdown /sbin/sha384 /sbin/sha512t256 /usr/bin/bsdcat /usr/bin/svnlitebench /usr/bin/svnlitefsfs /usr/include/altq/altq_codel.h [..] /usr/libexec/hyperv/hyperv_vfattach /usr/libexec/hyperv/hyperv_vfup /usr/sbin/cxgbetool /usr/sbin/hv_vss_daemon /usr/sbin/mprutil /usr/sbin/mpsutil [..] /usr/share/vt/keymaps/tr.f.kbd /var/db/etcupdate/current/etc/rc.d/zfsbe The following files will be updated as part of updating to 10.4-RELEASE-p11: /.cshrc /COPYRIGHT /bin/[ /bin/cat /bin/chflags /bin/chio /bin/chmod /bin/cp /bin/csh /bin/date /bin/dd /bin/df /bin/domainname /bin/echo /bin/ed /bin/expr /bin/freebsd-version /bin/getfacl /bin/hostname /bin/kenv /bin/kill /bin/link /bin/ln /bin/ls /bin/mkdir /bin/mv /bin/pax /bin/pgrep /bin/pkill /bin/ps /bin/pwait /bin/pwd /bin/rcp /bin/realpath /bin/red /bin/rm /bin/rmail /bin/rmdir /bin/setfacl /bin/sh /bin/sleep /bin/stty /bin/sync /bin/tcsh /bin/test /bin/unlink /bin/uuidgen /boot/beastie.4th /boot/boot1.efi /boot/boot1.efifat /boot/brand-fbsd.4th /boot/brand.4th /boot/check-password.4th /boot/color.4th /boot/defaults/loader.conf /boot/delay.4th /boot/device.hints /boot/frames.4th /boot/gptboot /boot/gptzfsboot /boot/kernel/aac.ko /boot/kernel/aac.ko.symbols [..] /boot/kernel/zlib.ko /boot/kernel/zlib.ko.symbols /boot/loader /boot/loader.4th /boot/loader.efi /boot/loader.rc /boot/logo-beastie.4th /boot/logo-beastiebw.4th /boot/logo-fbsdbw.4th /boot/logo-orb.4th /boot/logo-orbbw.4th /boot/menu-commands.4th /boot/menu.4th /boot/menu.rc /boot/menusets.4th /boot/pxeboot /boot/screen.4th /boot/shortcuts.4th /boot/support.4th /boot/userboot.so /boot/version.4th /boot/zfsboot /boot/zfsloader /etc/amd.map [..] /etc/ttys [..] /var/db/etcupdate/log /var/db/mergemaster.mtree /var/yp/Makefile.dist To install the downloaded upgrades, run "/usr/sbin/freebsd-update install".
install
root@wiki# freebsd-update install src component not installed, skipped Installing updates... Kernel updates have been installed. Please reboot and run "/usr/sbin/freebsd-update install" again to finish installing updates.
reboot, then
root@wiki# freebsd-update install src component not installed, skipped Installing updates... done.
what does freebsd-version and uname -a tell us?
root@wiki# freebsd-version -ku 10.4-RELEASE-p10 10.4-RELEASE-p11 root@wiki# uname -a FreeBSD wiki.kg4.no 10.4-RELEASE-p10 FreeBSD 10.4-RELEASE-p10 #0: Sun Aug 5 08:24:17 UTC 2018 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
reboot again, just to be on the safe side.
2018-08-16: bvm2 - after a reboot, the machine runs FreeBSD 10.3-RELEASE-p29
root@wiki# freebsd-version -ku 10.3-RELEASE-p29 10.3-RELEASE-p29 root@wiki# uname -a FreeBSD wiki.kg4.no 10.3-RELEASE-p29 FreeBSD 10.3-RELEASE-p29 #0: Tue Apr 3 19:55:05 UTC 2018 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
ok
2018-08-16: bvm2 - run freebsd-update
fetch
root@wiki# freebsd-update fetch [..] The following files will be removed as part of updating to 10.3-RELEASE-p29: /usr/share/zoneinfo/America/Santa_Isabel /usr/share/zoneinfo/Asia/Rangoon /usr/share/zoneinfo/Pacific/Johnston The following files will be added as part of updating to 10.3-RELEASE-p29: /usr/share/zoneinfo/America/Punta_Arenas /usr/share/zoneinfo/Asia/Atyrau /usr/share/zoneinfo/Asia/Barnaul /usr/share/zoneinfo/Asia/Famagusta /usr/share/zoneinfo/Asia/Tomsk /usr/share/zoneinfo/Asia/Yangon /usr/share/zoneinfo/Europe/Astrakhan /usr/share/zoneinfo/Europe/Kirov /usr/share/zoneinfo/Europe/Saratov /usr/share/zoneinfo/Europe/Ulyanovsk The following files will be updated as part of updating to 10.3-RELEASE-p29: /bin/freebsd-version /boot/boot1.efi /boot/boot1.efifat /boot/kernel/cam.ko /boot/kernel/cam.ko.symbols /boot/kernel/drm.ko /boot/kernel/drm.ko.symbols /boot/kernel/hpt27xx.ko /boot/kernel/hpt27xx.ko.symbols /boot/kernel/hptnr.ko /boot/kernel/hptnr.ko.symbols /boot/kernel/hptrr.ko /boot/kernel/hptrr.ko.symbols /boot/kernel/hv_netvsc.ko /boot/kernel/hv_netvsc.ko.symbols /boot/kernel/hv_storvsc.ko /boot/kernel/hv_storvsc.ko.symbols /boot/kernel/hv_utils.ko /boot/kernel/hv_utils.ko.symbols /boot/kernel/hv_vmbus.ko /boot/kernel/hv_vmbus.ko.symbols /boot/kernel/ipl.ko /boot/kernel/ipl.ko.symbols /boot/kernel/kernel /boot/kernel/kernel.symbols /boot/kernel/mqueuefs.ko /boot/kernel/mqueuefs.ko.symbols /boot/kernel/sem.ko /boot/kernel/sem.ko.symbols /boot/loader.efi /lib/libc.so.7 /lib/libcrypto.so.7 /rescue/[ [..] /sbin/ifconfig /sbin/ipftest /sbin/route /usr/bin/file /usr/bin/netstat /usr/bin/ntpq /usr/bin/openssl /usr/bin/ssh-agent /usr/include/magic.h /usr/include/openssl/ssl.h /usr/include/sys/eventhandler.h /usr/include/sys/osd.h /usr/lib/libc.a /usr/lib/libc_p.a /usr/lib/libc_pic.a /usr/lib/libcrypto.a /usr/lib/libcrypto_p.a /usr/lib/libkrb5.a /usr/lib/libkrb5.so.11 /usr/lib/libkrb5_p.a /usr/lib/libmagic.a /usr/lib/libmagic.so.4 /usr/lib/libmagic_p.a /usr/lib/libssl.a /usr/lib/libssl.so.7 /usr/lib/libssl_p.a /usr/lib/libvmmapi.a /usr/lib/libvmmapi.so.5 /usr/lib/libvmmapi_p.a /usr/libexec/sendmail/sendmail /usr/libexec/telnetd /usr/sbin/arp /usr/sbin/bhyve /usr/sbin/bhyveload /usr/sbin/hostapd /usr/sbin/ifmcstat /usr/sbin/ndp /usr/sbin/ntp-keygen /usr/sbin/ntpd /usr/sbin/ntpdate /usr/sbin/ntpdc /usr/sbin/ntptime /usr/sbin/sntp /usr/sbin/sshd /usr/sbin/wpa_supplicant /usr/sbin/zdump /usr/sbin/zic [..] /usr/share/misc/magic /var/db/mergemaster.mtree WARNING: FreeBSD 10.3-RELEASE-p11 HAS PASSED ITS END-OF-LIFE DATE. Any security issues discovered after Tue May 1 02:00:00 CEST 2018 will not have been corrected.
install
root@wiki# freebsd-update install src component not installed, skipped Installing updates... done.
then reboot.
2016-12-03: bvm2 - after the upgrade, see if just stopping services and starting them again will work.
stop
root@wiki# service apache24 stop Stopping apache24. Waiting for PIDS: 753. root@wiki# service mysql-server stop Stopping mysql. Waiting for PIDS: 714.
start
root@wiki# service mysql-server start Starting mysql. root@wiki# service apache24 start Performing sanity check on apache24 configuration: Syntax OK Starting apache24.
and check if the wiki works - yes, and Special:version confirms that MediaWiki 1.26.4 is now running. Nice!
2016-12-03: bvm2 - pkg - list of upgraded / removed / installed packages (from /var/log/messages):
Dec 3 20:36:25 wiki pkg: pkg upgraded: 1.8.7_3 -> 1.8.8 Dec 3 20:44:19 wiki pkg: libxml2 upgraded: 2.9.3 -> 2.9.4 Dec 3 20:44:20 wiki pkg: pcre upgraded: 8.38_1 -> 8.39 Dec 3 20:44:21 wiki pkg: tiff upgraded: 4.0.6_1 -> 4.0.6_2 Dec 3 20:44:21 wiki pkg: indexinfo upgraded: 0.2.4 -> 0.2.5 Dec 3 20:44:21 wiki pkg: expat upgraded: 2.1.0_3 -> 2.2.0 Dec 3 20:44:22 wiki pkg: png upgraded: 1.6.21 -> 1.6.23 Dec 3 20:44:24 wiki pkg: php56 upgraded: 5.6.21 -> 5.6.28 Dec 3 20:44:25 wiki pkg: gettext-runtime upgraded: 0.19.7 -> 0.19.8.1 Dec 3 20:44:39 wiki pkg: perl5 upgraded: 5.20.3_12 -> 5.20.3_15 Dec 3 20:44:39 wiki pkg: fontconfig upgraded: 2.11.1_1,1 -> 2.12.1,1 Dec 3 20:44:39 wiki pkg: pkgconf upgraded: 0.9.12_1 -> 1.0.1 Dec 3 20:44:39 wiki pkg: openjpeg upgraded: 2.1.1 -> 2.1.1_1 Dec 3 20:44:40 wiki pkg: libidn upgraded: 1.31 -> 1.33_1 Dec 3 20:44:40 wiki pkg: trousers-tddl-0.3.10_7 deinstalled Dec 3 20:44:40 wiki pkg: libtasn1 upgraded: 4.8 -> 4.9 Dec 3 20:44:41 wiki pkg: ca_root_nss upgraded: 3.22.2 -> 3.27.1 Dec 3 20:45:00 wiki pkg: python27 upgraded: 2.7.11_2 -> 2.7.12 Dec 3 20:45:03 wiki pkg: glib upgraded: 2.46.2 -> 2.46.2_3 Dec 3 20:45:03 wiki pkg: gdbm upgraded: 1.11_2 -> 1.12 Dec 3 20:45:03 wiki pkg: tpm-emulator-0.7.4_1 installed Dec 3 20:45:15 wiki pkg: db5 upgraded: 5.3.28_3 -> 5.3.28_4 Dec 3 20:45:15 wiki pkg: trousers-0.3.13_1 installed Dec 3 20:45:16 wiki pkg: php56-dom upgraded: 5.6.21 -> 5.6.28 Dec 3 20:45:16 wiki pkg: libedit upgraded: 3.1.20150325_2 -> 3.1.20150325_2,1 Dec 3 20:45:16 wiki pkg: apr upgraded: 1.5.2.1.5.4 -> 1.5.2.1.5.4_1 Dec 3 20:45:21 wiki pkg: gnutls upgraded: 3.4.10 -> 3.4.15 Dec 3 20:45:21 wiki pkg: p5-Net-SSLeay upgraded: 1.72 -> 1.78 Dec 3 20:45:21 wiki pkg: p5-IO-Socket-IP upgraded: 0.37 -> 0.37_1 Dec 3 20:45:21 wiki pkg: php56-zlib upgraded: 5.6.21 -> 5.6.28 Dec 3 20:45:21 wiki pkg: php56-xmlreader upgraded: 5.6.21 -> 5.6.28 Dec 3 20:45:21 wiki pkg: php56-xml upgraded: 5.6.21 -> 5.6.28 Dec 3 20:45:22 wiki pkg: php56-sockets upgraded: 5.6.21 -> 5.6.28 Dec 3 20:45:22 wiki pkg: php56-session upgraded: 5.6.21 -> 5.6.28 Dec 3 20:45:22 wiki pkg: php56-readline upgraded: 5.6.21 -> 5.6.28 Dec 3 20:45:22 wiki pkg: php56-mysql upgraded: 5.6.21 -> 5.6.28 Dec 3 20:45:23 wiki pkg: php56-mbstring upgraded: 5.6.21 -> 5.6.28 Dec 3 20:45:23 wiki pkg: php56-json upgraded: 5.6.21 -> 5.6.28 Dec 3 20:45:23 wiki pkg: php56-iconv upgraded: 5.6.21 -> 5.6.28 Dec 3 20:45:23 wiki pkg: php56-hash upgraded: 5.6.21 -> 5.6.28 Dec 3 20:45:23 wiki pkg: php56-ctype upgraded: 5.6.21 -> 5.6.28 Dec 3 20:45:29 wiki pkg: mysql56-client upgraded: 5.6.30 -> 5.6.34 Dec 3 20:45:35 wiki pkg: icu upgraded: 55.1 -> 57.1,1 Dec 3 20:45:35 wiki pkg: cvsps upgraded: 2.1_1 -> 2.1_2 Dec 3 20:45:37 wiki pkg: curl upgraded: 7.48.0_1 -> 7.51.0_1 Dec 3 20:45:43 wiki pkg: apache24 upgraded: 2.4.20_1 -> 2.4.23_1 Dec 3 20:45:51 wiki pkg: ImageMagick-nox11 upgraded: 6.9.4.1,1 -> 6.9.5.10_1,1 Dec 3 20:45:55 wiki pkg: libX11 upgraded: 1.6.3,1 -> 1.6.4,1 Dec 3 20:45:55 wiki pkg: jbig2dec upgraded: 0.12 -> 0.13 Dec 3 20:45:58 wiki pkg: cups upgraded: 2.1.3_2 -> 2.1.4 Dec 3 20:45:58 wiki pkg: p5-IO-Socket-SSL upgraded: 2.024 -> 2.038 Dec 3 20:45:58 wiki pkg: php56-pcntl upgraded: 5.6.21 -> 5.6.28 Dec 3 20:45:58 wiki pkg: pecl-intl upgraded: 3.0.0_2 -> 3.0.0_6 Dec 3 20:45:58 wiki pkg: pecl-imagick upgraded: 3.4.1 -> 3.4.1_1 Dec 3 20:46:09 wiki pkg: mysql56-server upgraded: 5.6.30 -> 5.6.34 Dec 3 20:46:10 wiki pkg: mod_php56 upgraded: 5.6.21 -> 5.6.28 Dec 3 20:46:47 wiki pkg: mediawiki126 upgraded: 1.26.2 -> 1.26.4 Dec 3 20:46:51 wiki pkg: git upgraded: 2.7.4_1 -> 2.9.2_2
ok.
2016-12-03: bvm2 - pkg - upgrade with available packages:
root@wiki# pkg upgrade Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. Checking for upgrades (54 candidates): 100% Processing candidates (54 candidates): 100% The following 56 package(s) will be affected (of 0 checked): New packages to be INSTALLED: trousers: 0.3.13_1 tpm-emulator: 0.7.4_1 Installed packages to be UPGRADED: tiff: 4.0.6_1 -> 4.0.6_2 python27: 2.7.11_2 -> 2.7.12 png: 1.6.21 -> 1.6.23 pkgconf: 0.9.12_1 -> 1.0.1 php56-zlib: 5.6.21 -> 5.6.28 php56-xmlreader: 5.6.21 -> 5.6.28 php56-xml: 5.6.21 -> 5.6.28 php56-sockets: 5.6.21 -> 5.6.28 php56-session: 5.6.21 -> 5.6.28 php56-readline: 5.6.21 -> 5.6.28 php56-pcntl: 5.6.21 -> 5.6.28 php56-mysql: 5.6.21 -> 5.6.28 php56-mbstring: 5.6.21 -> 5.6.28 php56-json: 5.6.21 -> 5.6.28 php56-iconv: 5.6.21 -> 5.6.28 php56-hash: 5.6.21 -> 5.6.28 php56-dom: 5.6.21 -> 5.6.28 php56-ctype: 5.6.21 -> 5.6.28 php56: 5.6.21 -> 5.6.28 perl5: 5.20.3_12 -> 5.20.3_15 pecl-intl: 3.0.0_2 -> 3.0.0_6 pecl-imagick: 3.4.1 -> 3.4.1_1 pcre: 8.38_1 -> 8.39 p5-Net-SSLeay: 1.72 -> 1.78 p5-IO-Socket-SSL: 2.024 -> 2.038 p5-IO-Socket-IP: 0.37 -> 0.37_1 openjpeg: 2.1.1 -> 2.1.1_1 mysql56-server: 5.6.30 -> 5.6.34 mysql56-client: 5.6.30 -> 5.6.34 mod_php56: 5.6.21 -> 5.6.28 mediawiki126: 1.26.2 -> 1.26.4 libxml2: 2.9.3 -> 2.9.4 libtasn1: 4.8 -> 4.9 libidn: 1.31 -> 1.33_1 libedit: 3.1.20150325_2 -> 3.1.20150325_2,1 libX11: 1.6.3,1 -> 1.6.4,1 jbig2dec: 0.12 -> 0.13 indexinfo: 0.2.4 -> 0.2.5 icu: 55.1 -> 57.1,1 gnutls: 3.4.10 -> 3.4.15 glib: 2.46.2 -> 2.46.2_3 git: 2.7.4_1 -> 2.9.2_2 gettext-runtime: 0.19.7 -> 0.19.8.1 gdbm: 1.11_2 -> 1.12 fontconfig: 2.11.1_1,1 -> 2.12.1,1 expat: 2.1.0_3 -> 2.2.0 db5: 5.3.28_3 -> 5.3.28_4 cvsps: 2.1_1 -> 2.1_2 curl: 7.48.0_1 -> 7.51.0_1 cups: 2.1.3_2 -> 2.1.4 ca_root_nss: 3.22.2 -> 3.27.1 apr: 1.5.2.1.5.4 -> 1.5.2.1.5.4_1 apache24: 2.4.20_1 -> 2.4.23_1 ImageMagick-nox11: 6.9.4.1,1 -> 6.9.5.10_1,1 Number of packages to be installed: 2 Number of packages to be upgraded: 54 The operation will free 20 MiB. 106 MiB to be downloaded. Proceed with this action? [y/N]: y [...] Checking integrity... done (1 conflicting) - trousers-0.3.13_1 conflicts with trousers-tddl-0.3.10_7 on /usr/local/include/trousers/trousers.h Checking integrity... done (0 conflicting) Conflicts with the existing packages have been found. One more solver iteration is needed to resolve them. The following 57 package(s) will be affected (of 0 checked): Installed packages to be REMOVED: trousers-tddl-0.3.10_7 New packages to be INSTALLED: tpm-emulator: 0.7.4_1 trousers: 0.3.13_1 Installed packages to be UPGRADED: libxml2: 2.9.3 -> 2.9.4 indexinfo: 0.2.4 -> 0.2.5 gettext-runtime: 0.19.7 -> 0.19.8.1 python27: 2.7.11_2 -> 2.7.12 perl5: 5.20.3_12 -> 5.20.3_15 pcre: 8.38_1 -> 8.39 libX11: 1.6.3,1 -> 1.6.4,1 expat: 2.1.0_3 -> 2.2.0 libtasn1: 4.8 -> 4.9 glib: 2.46.2 -> 2.46.2_3 ca_root_nss: 3.22.2 -> 3.27.1 libidn: 1.31 -> 1.33_1 gdbm: 1.11_2 -> 1.12 tiff: 4.0.6_1 -> 4.0.6_2 png: 1.6.21 -> 1.6.23 gnutls: 3.4.10 -> 3.4.15 php56: 5.6.21 -> 5.6.28 p5-Net-SSLeay: 1.72 -> 1.78 p5-IO-Socket-IP: 0.37 -> 0.37_1 jbig2dec: 0.12 -> 0.13 fontconfig: 2.11.1_1,1 -> 2.12.1,1 db5: 5.3.28_3 -> 5.3.28_4 cups: 2.1.3_2 -> 2.1.4 pkgconf: 0.9.12_1 -> 1.0.1 php56-dom: 5.6.21 -> 5.6.28 p5-IO-Socket-SSL: 2.024 -> 2.038 openjpeg: 2.1.1 -> 2.1.1_1 libedit: 3.1.20150325_2 -> 3.1.20150325_2,1 apr: 1.5.2.1.5.4 -> 1.5.2.1.5.4_1 php56-zlib: 5.6.21 -> 5.6.28 php56-xmlreader: 5.6.21 -> 5.6.28 php56-xml: 5.6.21 -> 5.6.28 php56-sockets: 5.6.21 -> 5.6.28 php56-session: 5.6.21 -> 5.6.28 php56-readline: 5.6.21 -> 5.6.28 php56-mysql: 5.6.21 -> 5.6.28 php56-mbstring: 5.6.21 -> 5.6.28 php56-json: 5.6.21 -> 5.6.28 php56-iconv: 5.6.21 -> 5.6.28 php56-hash: 5.6.21 -> 5.6.28 php56-ctype: 5.6.21 -> 5.6.28 mysql56-client: 5.6.30 -> 5.6.34 icu: 55.1 -> 57.1,1 cvsps: 2.1_1 -> 2.1_2 curl: 7.48.0_1 -> 7.51.0_1 apache24: 2.4.20_1 -> 2.4.23_1 ImageMagick-nox11: 6.9.4.1,1 -> 6.9.5.10_1,1 php56-pcntl: 5.6.21 -> 5.6.28 pecl-intl: 3.0.0_2 -> 3.0.0_6 pecl-imagick: 3.4.1 -> 3.4.1_1 mysql56-server: 5.6.30 -> 5.6.34 mod_php56: 5.6.21 -> 5.6.28 mediawiki126: 1.26.2 -> 1.26.4 git: 2.7.4_1 -> 2.9.2_2 Number of packages to be removed: 1 Number of packages to be installed: 2 Number of packages to be upgraded: 54 The operation will free 22 MiB. Proceed with this action? [y/N]: y [...] Message from perl5-5.20.3_15: The /usr/bin/perl symlink has been removed starting with Perl 5.20. For shebangs, you should either use: #!/usr/local/bin/perl or #!/usr/bin/env perl The first one will only work if you have a /usr/local/bin/perl, the second will work as long as perl is in PATH. Message from ca_root_nss-3.27.1: ********************************* WARNING ********************************* FreeBSD does not, and can not warrant that the certification authorities whose certificates are included in this package have in any way been audited for trustworthiness or RFC 3647 compliance. Assessment and verification of trust is the complete responsibility of the system administrator. *********************************** NOTE ********************************** This package installs symlinks to support root certificates discovery by default for software that uses OpenSSL. This enables SSL Certificate Verification by client software without manual intervention. If you prefer to do this manually, replace the following symlinks with either an empty file or your site-local certificate bundle. * /etc/ssl/cert.pem * /usr/local/etc/ssl/cert.pem * /usr/local/openssl/cert.pem *************************************************************************** Message from python27-2.7.12: =========================================================================== Note that some standard Python modules are provided as separate ports as they require additional dependencies. They are available as: bsddb databases/py-bsddb gdbm databases/py-gdbm sqlite3 databases/py-sqlite3 tkinter x11-toolkits/py-tkinter =========================================================================== Message from trousers-0.3.13_1: To run tcsd automatically, add the following line to /etc/rc.conf: tcsd_enable="YES" You might want to edit /usr/local/etc/tcsd.conf to reflect your setup. If you want to use tcsd with software TPM emulator, use the following configuration in /etc/rc.conf: tcsd_enable="YES" tcsd_mode="emulator" tpmd_enable="YES" To use TPM, add your_account to '_tss' group like following: # pw groupmod _tss -m your_account Message from php56-dom-5.6.28: **************************************************************************** The following line has been added to your /usr/local/etc/php/ext-20-dom.ini configuration file to automatically load the installed extension: extension=dom.so **************************************************************************** Message from php56-zlib-5.6.28: **************************************************************************** The following line has been added to your /usr/local/etc/php/ext-20-zlib.ini configuration file to automatically load the installed extension: extension=zlib.so **************************************************************************** Message from php56-xmlreader-5.6.28: **************************************************************************** The following line has been added to your /usr/local/etc/php/ext-30-xmlreader.ini configuration file to automatically load the installed extension: extension=xmlreader.so **************************************************************************** Message from php56-xml-5.6.28: **************************************************************************** The following line has been added to your /usr/local/etc/php/ext-20-xml.ini configuration file to automatically load the installed extension: extension=xml.so **************************************************************************** Message from php56-sockets-5.6.28: **************************************************************************** The following line has been added to your /usr/local/etc/php/ext-20-sockets.ini configuration file to automatically load the installed extension: extension=sockets.so **************************************************************************** Message from php56-session-5.6.28: **************************************************************************** The following line has been added to your /usr/local/etc/php/ext-18-session.ini configuration file to automatically load the installed extension: extension=session.so **************************************************************************** Message from php56-readline-5.6.28: **************************************************************************** The following line has been added to your /usr/local/etc/php/ext-20-readline.ini configuration file to automatically load the installed extension: extension=readline.so **************************************************************************** Message from php56-mysql-5.6.28: **************************************************************************** The following line has been added to your /usr/local/etc/php/ext-20-mysql.ini configuration file to automatically load the installed extension: extension=mysql.so **************************************************************************** Message from php56-mbstring-5.6.28: **************************************************************************** The following line has been added to your /usr/local/etc/php/ext-20-mbstring.ini configuration file to automatically load the installed extension: extension=mbstring.so **************************************************************************** Message from php56-json-5.6.28: **************************************************************************** The following line has been added to your /usr/local/etc/php/ext-20-json.ini configuration file to automatically load the installed extension: extension=json.so **************************************************************************** Message from php56-iconv-5.6.28: **************************************************************************** The following line has been added to your /usr/local/etc/php/ext-20-iconv.ini configuration file to automatically load the installed extension: extension=iconv.so **************************************************************************** Message from php56-hash-5.6.28: **************************************************************************** The following line has been added to your /usr/local/etc/php/ext-20-hash.ini configuration file to automatically load the installed extension: extension=hash.so **************************************************************************** Message from php56-ctype-5.6.28: **************************************************************************** The following line has been added to your /usr/local/etc/php/ext-20-ctype.ini configuration file to automatically load the installed extension: extension=ctype.so **************************************************************************** Message from mysql56-client-5.6.34: * * * * * * * * * * * * * * * * * * * * * * * * Please be aware the database client is vulnerable to CVE-2015-3152 - SSL Downgrade aka "BACKRONYM". You may find more information at the following URL: http://www.vuxml.org/freebsd/36bd352d-299b-11e5-86ff-14dae9d210b8.html Although this database client is not listed as "affected", it is vulnerable and will not be receiving a patch. Please take note of this when deploying this software. * * * * * * * * * * * * * * * * * * * * * * * * Message from cvsps-2.1_2: ===> NOTICE: The cvsps port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port Message from apache24-2.4.23_1: To run apache www server from startup, add apache24_enable="yes" in your /etc/rc.conf. Extra options can be found in startup script. Your hostname must be resolvable using at least 1 mechanism in /etc/nsswitch.conf typically DNS or /etc/hosts or apache might have issues starting depending on the modules you are using. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - apache24 default build changed from static MPM to modular MPM - more modules are now enabled per default in the port - icons and error pages moved from WWWDIR to DATADIR If build with modular MPM and no MPM is activated in httpd.conf, then mpm_prefork will be activated as default MPM in etc/apache24/modules.d to keep compatibility with existing php/perl/python modules! Please compare the existing httpd.conf with httpd.conf.sample and merge missing modules/instructions into httpd.conf! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Message from php56-pcntl-5.6.28: **************************************************************************** The following line has been added to your /usr/local/etc/php/ext-20-pcntl.ini configuration file to automatically load the installed extension: extension=pcntl.so **************************************************************************** Message from pecl-intl-3.0.0_6: **************************************************************************** The following line has been added to your /usr/local/etc/php/ext-20-intl.ini configuration file to automatically load the installed extension: extension=intl.so **************************************************************************** Message from pecl-imagick-3.4.1_1: **************************************************************************** The following line has been added to your /usr/local/etc/php/ext-20-imagick.ini configuration file to automatically load the installed extension: extension=imagick.so **************************************************************************** Message from mysql56-server-5.6.34: ************************************************************************ Remember to run mysql_upgrade the first time you start the MySQL server after an upgrade from an earlier version. ************************************************************************ Message from mod_php56-5.6.28: *************************************************************** Make sure index.php is part of your DirectoryIndex. You should add the following to your Apache configuration file: <FilesMatch "\.php$"> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch "\.phps$"> SetHandler application/x-httpd-php-source </FilesMatch> *************************************************************** Message from mediawiki126-1.26.4: **** NOTE **** Remember to check /usr/local/www/mediawiki/INSTALL and /usr/local/www/mediawiki/UPGRADE for details Message from git-2.9.2_2: ------------------------------------------------------------------------ *************************** GITWEB ************************************* If you installed the GITWEB option please follow these instructions: In the directory /usr/local/share/examples/git/gitweb you can find all files to make gitweb work as a public repository on the web. All you have to do to make gitweb work is: 1) Copy the files /usr/local/share/examples/git/gitweb/* to a directory on your web server (e.g. Apache2) in which you are able to execute CGI-scripts. 2) In gitweb.cgi, adjust the variable $projectroot to point to your git repository (that is where you have your *.git project directories). *************************** GITWEB ************************************* *************************** CONTRIB ************************************ If you installed the CONTRIB option please note that the scripts are installed in /usr/local/share/git-core/contrib. Some of them require other ports to be installed (perl, python, etc), which you may need to install manually. *************************** CONTRIB ************************************ ------------------------------------------------------------------------ done. 2016-12-03: bvm2 - pkg - check for upgrades root@wiki# pkg upgrade -n Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. Checking for upgrades (54 candidates): 100% Processing candidates (54 candidates): 100% The following 56 package(s) will be affected (of 0 checked): New packages to be INSTALLED: trousers: 0.3.13_1 tpm-emulator: 0.7.4_1 Installed packages to be UPGRADED: tiff: 4.0.6_1 -> 4.0.6_2 python27: 2.7.11_2 -> 2.7.12 png: 1.6.21 -> 1.6.23 pkgconf: 0.9.12_1 -> 1.0.1 php56-zlib: 5.6.21 -> 5.6.28 php56-xmlreader: 5.6.21 -> 5.6.28 php56-xml: 5.6.21 -> 5.6.28 php56-sockets: 5.6.21 -> 5.6.28 php56-session: 5.6.21 -> 5.6.28 php56-readline: 5.6.21 -> 5.6.28 php56-pcntl: 5.6.21 -> 5.6.28 php56-mysql: 5.6.21 -> 5.6.28 php56-mbstring: 5.6.21 -> 5.6.28 php56-json: 5.6.21 -> 5.6.28 php56-iconv: 5.6.21 -> 5.6.28 php56-hash: 5.6.21 -> 5.6.28 php56-dom: 5.6.21 -> 5.6.28 php56-ctype: 5.6.21 -> 5.6.28 php56: 5.6.21 -> 5.6.28 perl5: 5.20.3_12 -> 5.20.3_15 pecl-intl: 3.0.0_2 -> 3.0.0_6 pecl-imagick: 3.4.1 -> 3.4.1_1 pcre: 8.38_1 -> 8.39 p5-Net-SSLeay: 1.72 -> 1.78 p5-IO-Socket-SSL: 2.024 -> 2.038 p5-IO-Socket-IP: 0.37 -> 0.37_1 openjpeg: 2.1.1 -> 2.1.1_1 mysql56-server: 5.6.30 -> 5.6.34 mysql56-client: 5.6.30 -> 5.6.34 mod_php56: 5.6.21 -> 5.6.28 mediawiki126: 1.26.2 -> 1.26.4 libxml2: 2.9.3 -> 2.9.4 libtasn1: 4.8 -> 4.9 libidn: 1.31 -> 1.33_1 libedit: 3.1.20150325_2 -> 3.1.20150325_2,1 libX11: 1.6.3,1 -> 1.6.4,1 jbig2dec: 0.12 -> 0.13 indexinfo: 0.2.4 -> 0.2.5 icu: 55.1 -> 57.1,1 gnutls: 3.4.10 -> 3.4.15 glib: 2.46.2 -> 2.46.2_3 git: 2.7.4_1 -> 2.9.2_2 gettext-runtime: 0.19.7 -> 0.19.8.1 gdbm: 1.11_2 -> 1.12 fontconfig: 2.11.1_1,1 -> 2.12.1,1 expat: 2.1.0_3 -> 2.2.0 db5: 5.3.28_3 -> 5.3.28_4 cvsps: 2.1_1 -> 2.1_2 curl: 7.48.0_1 -> 7.51.0_1 cups: 2.1.3_2 -> 2.1.4 ca_root_nss: 3.22.2 -> 3.27.1 apr: 1.5.2.1.5.4 -> 1.5.2.1.5.4_1 apache24: 2.4.20_1 -> 2.4.23_1 ImageMagick-nox11: 6.9.4.1,1 -> 6.9.5.10_1,1 Number of packages to be installed: 2 Number of packages to be upgraded: 54 The operation will free 20 MiB. 106 MiB to be downloaded.
upgrades are available.
2016-12-03: bvm2 - pkg - upgrade pkg
root@wiki# pkg upgrade pkg Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. New version of pkg detected; it needs to be installed first. The following 1 package(s) will be affected (of 0 checked): Installed packages to be UPGRADED: pkg: 1.8.7_3 -> 1.8.8 Number of packages to be upgraded: 1 2 MiB to be downloaded. Proceed with this action? [y/N]: y Fetching pkg-1.8.8.txz: 100% 2 MiB 2.6MB/s 00:01 Checking integrity... done (0 conflicting) [1/1] Upgrading pkg from 1.8.7_3 to 1.8.8... [1/1] Extracting pkg-1.8.8: 100% Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. Checking integrity... done (0 conflicting) Your packages are up to date.
ok.
2016-11-22: bvm2 - after a reboot, the machine now runs FreeBSD 10.3-release-p12.
root@wiki# freebsd-version -ku 10.3-RELEASE-p11 10.3-RELEASE-p12 root@wiki# uname -a FreeBSD wiki.kg4.no 10.3-RELEASE-p11 FreeBSD 10.3-RELEASE-p11 #0: Mon Oct 24 18:49:24 UTC 2016 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
and ... wiki works.
2016-11-22: bvm2 - run freebsd-upgrade
fetch
root@wiki# freebsd-update fetch src component not installed, skipped Looking up update.FreeBSD.org mirrors... none found. Fetching metadata signature for 10.3-RELEASE from update.FreeBSD.org... done. Fetching metadata index... done. Fetching 2 metadata patches.. done. Applying metadata patches... done. Inspecting system... done. Preparing to download files... done. Fetching 23 patches.....10....20. done. Applying patches... done. The following files will be updated as part of updating to 10.3-RELEASE-p12: /bin/freebsd-version /boot/boot1.efi /boot/boot1.efifat /boot/kernel/kernel /boot/kernel/kernel.symbols /boot/kernel/sysvshm.ko /boot/kernel/sysvshm.ko.symbols /boot/kernel/tmpfs.ko /boot/kernel/tmpfs.ko.symbols /boot/kernel/zfs.ko /boot/kernel/zfs.ko.symbols /usr/bin/slogin /usr/bin/ssh /usr/include/openssl/ssl.h /usr/include/openssl/ssl3.h /usr/include/vm/vm_object.h /usr/lib/libssl.a /usr/lib/libssl.so.7 /usr/lib/libssl_p.a /usr/lib/private/libssh.a /usr/lib/private/libssh.so.5 /usr/lib/private/libssh_p.a /usr/sbin/sshd /var/db/mergemaster.mtree
install
root@wiki# freebsd-update install src component not installed, skipped Installing updates... done.
Some swapping again
root@wiki# date;swapinfo -h Tue Nov 22 19:30:47 CET 2016 Device 1K-blocks Used Avail Capacity /dev/vtbd0p3 1047552 82M 941M 8%
ok.
2016-10-21: bvm2 - after a reboot, the machine now runs FreeBSD 10.3-release-p10.
root@wiki# freebsd-version -ku 10.3-RELEASE-p7 10.3-RELEASE-p10 root@wiki# uname -a FreeBSD wiki.kg4.no 10.3-RELEASE-p7 FreeBSD 10.3-RELEASE-p7 #0: Thu Aug 11 18:38:15 UTC 2016 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
ok. And the wiki still works.
2016-10-21: bvm2 - run freebsd-upgrade fetch
root@wiki# freebsd-update fetch src component not installed, skipped Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 10.3-RELEASE from update5.freebsd.org... done. Fetching metadata index... done. Fetching 2 metadata patches.. done. Applying metadata patches... done. Inspecting system... done. Preparing to download files... done. Fetching 58 patches.....10....20....30....40....50.... done. Applying patches... done. The following files will be updated as part of updating to 10.3-RELEASE-p10: /bin/freebsd-version /boot/boot1.efi /boot/boot1.efifat /boot/kernel/hv_storvsc.ko /boot/kernel/hv_storvsc.ko.symbols /boot/kernel/hv_vmbus.ko /boot/kernel/hv_vmbus.ko.symbols /boot/kernel/kernel /boot/kernel/kernel.symbols /boot/kernel/linux.ko /boot/kernel/linux.ko.symbols /boot/kernel/linux64.ko /boot/kernel/linux64.ko.symbols /boot/loader.efi /lib/libcrypto.so.7 /rescue/[ /rescue/atmconfig /rescue/badsect /rescue/bsdlabel /rescue/bunzip2 /rescue/bzcat /rescue/bzip2 /rescue/camcontrol /rescue/cat /rescue/ccdconfig /rescue/chflags /rescue/chgrp /rescue/chmod /rescue/chown /rescue/chroot /rescue/clri /rescue/cp /rescue/csh /rescue/date /rescue/dd /rescue/devfs /rescue/df /rescue/dhclient /rescue/disklabel /rescue/dmesg /rescue/dump /rescue/dumpfs /rescue/dumpon /rescue/echo /rescue/ed /rescue/ex /rescue/expr /rescue/fastboot /rescue/fasthalt /rescue/fdisk /rescue/fsck /rescue/fsck_4.2bsd /rescue/fsck_ffs /rescue/fsck_msdosfs /rescue/fsck_ufs /rescue/fsdb /rescue/fsirand /rescue/gbde /rescue/geom /rescue/getfacl /rescue/glabel /rescue/gpart /rescue/groups /rescue/gunzip /rescue/gzcat /rescue/gzip /rescue/halt /rescue/head /rescue/hostname /rescue/id /rescue/ifconfig /rescue/init /rescue/ipf /rescue/iscsictl /rescue/iscsid /rescue/kenv /rescue/kill /rescue/kldconfig /rescue/kldload /rescue/kldstat /rescue/kldunload /rescue/ldconfig /rescue/less /rescue/link /rescue/ln /rescue/ls /rescue/lzcat /rescue/lzma /rescue/md5 /rescue/mdconfig /rescue/mdmfs /rescue/mkdir /rescue/mknod /rescue/more /rescue/mount /rescue/mount_cd9660 /rescue/mount_msdosfs /rescue/mount_nfs /rescue/mount_nullfs /rescue/mount_udf /rescue/mount_unionfs /rescue/mt /rescue/mv /rescue/nc /rescue/newfs /rescue/newfs_msdos /rescue/nos-tun /rescue/pgrep /rescue/ping /rescue/ping6 /rescue/pkill /rescue/ps /rescue/pwd /rescue/rcorder /rescue/rcp /rescue/rdump /rescue/realpath /rescue/reboot /rescue/red /rescue/rescue /rescue/restore /rescue/rm /rescue/rmdir /rescue/route /rescue/routed /rescue/rrestore /rescue/rtquery /rescue/rtsol /rescue/savecore /rescue/sed /rescue/setfacl /rescue/sh /rescue/sleep /rescue/spppcontrol /rescue/stty /rescue/swapon /rescue/sync /rescue/sysctl /rescue/tail /rescue/tar /rescue/tcsh /rescue/tee /rescue/test /rescue/tunefs /rescue/umount /rescue/unlink /rescue/unlzma /rescue/unxz /rescue/vi /rescue/whoami /rescue/xz /rescue/xzcat /rescue/zcat /rescue/zdb /rescue/zfs /rescue/zpool /sbin/dhclient /usr/bin/ar /usr/bin/bsdcpio /usr/bin/bspatch /usr/bin/ntpq /usr/bin/openssl /usr/bin/ranlib /usr/include/archive.h /usr/include/openssl/ssl.h /usr/lib/libarchive.a /usr/lib/libarchive.so.6 /usr/lib/libarchive_p.a /usr/lib/libcrypto.a /usr/lib/libcrypto_p.a /usr/lib/libmp.so.7 /usr/lib/libssl.a /usr/lib/libssl.so.7 /usr/lib/libssl_p.a /usr/lib/private/libssh.so.5 /usr/sbin/freebsd-update /usr/sbin/ntp-keygen /usr/sbin/ntpd /usr/sbin/ntpdate /usr/sbin/ntpdc /usr/sbin/ntptime /usr/sbin/portsnap /usr/sbin/sntp /usr/share/doc/ntp/miscopt.html /usr/share/doc/ntp/ntp-keygen.html /usr/share/doc/ntp/ntp.conf.html /usr/share/doc/ntp/ntp.keys.html /usr/share/doc/ntp/ntpsnmpd.html /usr/share/man/man1/bsdcpio.1.gz /usr/share/man/man1/cpio.1.gz /usr/share/man/man3/archive_write_data_block.3.gz /usr/share/man/man3/archive_write_disk.3.gz /usr/share/man/man3/archive_write_disk_new.3.gz /usr/share/man/man3/archive_write_disk_set_group_lookup.3.gz /usr/share/man/man3/archive_write_disk_set_options.3.gz /usr/share/man/man3/archive_write_disk_set_skip_file.3.gz /usr/share/man/man3/archive_write_disk_set_standard_lookup.3.gz /usr/share/man/man3/archive_write_disk_set_user_lookup.3.gz /usr/share/man/man5/ntp.conf.5.gz /usr/share/man/man5/ntp.keys.5.gz /usr/share/man/man8/ntp-keygen.8.gz /usr/share/man/man8/ntpd.8.gz /usr/share/man/man8/ntpdc.8.gz /usr/share/man/man8/ntpq.8.gz /usr/share/man/man8/sntp.8.gz /var/db/mergemaster.mtree
install
root@wiki# freebsd-update install src component not installed, skipped Installing updates... done.
done. I notice that running freebsd-update caused some swapping:
root@wiki# date;swapinfo -h Fri Oct 21 16:26:50 CEST 2016 Device 1K-blocks Used Avail Capacity /dev/vtbd0p3 1047552 277M 746M 27%
no worries, the machine must be rebooted anyway.
2016-10-21: bvm2 - pkg - check for upgrades:
root@wiki# pkg upgrade -n Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. Checking for upgrades (54 candidates): 100% Processing candidates (54 candidates): 100% The following 56 package(s) will be affected (of 0 checked): New packages to be INSTALLED: trousers: 0.3.13_1 tpm-emulator: 0.7.4_1 Installed packages to be UPGRADED: tiff: 4.0.6_1 -> 4.0.6_2 python27: 2.7.11_2 -> 2.7.12 png: 1.6.21 -> 1.6.23 pkgconf: 0.9.12_1 -> 1.0.1 php56-zlib: 5.6.21 -> 5.6.26 php56-xmlreader: 5.6.21 -> 5.6.26 php56-xml: 5.6.21 -> 5.6.26 php56-sockets: 5.6.21 -> 5.6.26 php56-session: 5.6.21 -> 5.6.26 php56-readline: 5.6.21 -> 5.6.26 php56-pcntl: 5.6.21 -> 5.6.26 php56-mysql: 5.6.21 -> 5.6.26 php56-mbstring: 5.6.21 -> 5.6.26 php56-json: 5.6.21 -> 5.6.26 php56-iconv: 5.6.21 -> 5.6.26 php56-hash: 5.6.21 -> 5.6.26 php56-dom: 5.6.21 -> 5.6.26 php56-ctype: 5.6.21 -> 5.6.26 php56: 5.6.21 -> 5.6.26 perl5: 5.20.3_12 -> 5.20.3_15 pecl-intl: 3.0.0_2 -> 3.0.0_6 pecl-imagick: 3.4.1 -> 3.4.1_1 pcre: 8.38_1 -> 8.39 p5-Net-SSLeay: 1.72 -> 1.78 p5-IO-Socket-SSL: 2.024 -> 2.038 p5-IO-Socket-IP: 0.37 -> 0.37_1 openjpeg: 2.1.1 -> 2.1.1_1 mysql56-server: 5.6.30 -> 5.6.33 mysql56-client: 5.6.30 -> 5.6.33 mod_php56: 5.6.21 -> 5.6.26 mediawiki126: 1.26.2 -> 1.26.4 libxml2: 2.9.3 -> 2.9.4 libtasn1: 4.8 -> 4.9 libidn: 1.31 -> 1.33_1 libedit: 3.1.20150325_2 -> 3.1.20150325_2,1 libX11: 1.6.3,1 -> 1.6.4,1 jbig2dec: 0.12 -> 0.13 indexinfo: 0.2.4 -> 0.2.5 icu: 55.1 -> 57.1,1 gnutls: 3.4.10 -> 3.4.15 glib: 2.46.2 -> 2.46.2_3 git: 2.7.4_1 -> 2.9.2_2 gettext-runtime: 0.19.7 -> 0.19.8.1 gdbm: 1.11_2 -> 1.12 fontconfig: 2.11.1_1,1 -> 2.12.1,1 expat: 2.1.0_3 -> 2.2.0 db5: 5.3.28_3 -> 5.3.28_4 cvsps: 2.1_1 -> 2.1_2 curl: 7.48.0_1 -> 7.50.3 cups: 2.1.3_2 -> 2.1.4 ca_root_nss: 3.22.2 -> 3.27.1 apr: 1.5.2.1.5.4 -> 1.5.2.1.5.4_1 apache24: 2.4.20_1 -> 2.4.23_1 ImageMagick-nox11: 6.9.4.1,1 -> 6.9.5.10_1,1 Number of packages to be installed: 2 Number of packages to be upgraded: 54 The operation will free 18 MiB. 108 MiB to be downloaded.
ok, some upgrades are available.
2016-10-21: bvm2 - pkg - upgrade pkg:
root@wiki# pkg upgrade pkg Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. New version of pkg detected; it needs to be installed first. The following 1 package(s) will be affected (of 0 checked): Installed packages to be UPGRADED: pkg: 1.7.2 -> 1.8.7_3 2 MiB to be downloaded. Proceed with this action? [y/N]: y Fetching pkg-1.8.7_3.txz: 100% 2 MiB 2.6MB/s 00:01 Checking integrity... done (0 conflicting) [1/1] Upgrading pkg from 1.7.2 to 1.8.7_3... [1/1] Extracting pkg-1.8.7_3: 100% Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. Checking integrity... done (0 conflicting) Your packages are up to date.
ok.
2016-08-25: uptime status:
root@wiki# date;uptime Thu Aug 25 22:35:44 CEST 2016 10:35PM up 68 days, 15:15, 2 users, load averages: 0.07, 0.14, 0.15
ok.
2016-06-18: bvm2 - after restarting the machine from the host (a reboot is not enough), it now has 1024MB memory:
root@wiki# dmesg | grep memory real memory = 1073741824 (1024 MB) avail memory = 1010188288 (963 MB)
we will see if it avoids swapping now. First impressions are good:
root@wiki# date;temp;swapinfo -h;echo " ";tvlm;echo " ";tvls;echo " ";df -h;echo " ";uptime;echo " ";service mysql-server status;service apache24 status Sat Jun 18 17:37:12 CEST 2016 temp: not found Device 1K-blocks Used Avail Capacity /dev/vtbd0p3 1047552 0B 1.0G 0% Jun 18 17:33:22 wiki kernel: Trying to mount root from ufs:/dev/vtbd0p2 [rw]... Jun 18 17:33:22 wiki kernel: WARNING: / was not properly dismounted Jun 18 17:33:22 wiki kernel: vtnet0: link state changed to UP Jun 18 17:33:23 wiki ntpd[576]: ntpd 4.2.8p7-a (1): Starting Jun 18 17:33:23 wiki kernel: . Jun 18 17:33:23 wiki ntpd[577]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): good hash signature Jun 18 17:33:23 wiki ntpd[577]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): loaded, expire=2016-06-01T00:00:00Z last=2015-07-01T00:00:00Z ofs=36 Jun 18 17:33:23 wiki ntpd[577]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): expired less than 18 days ago Jun 18 17:33:40 wiki su: tingo to root on /dev/pts/0 Jun 18 17:34:12 wiki su: tingo to root on /dev/pts/1 May 21 22:59:13 wiki newsyslog[411]: logfile first created Filesystem Size Used Avail Capacity Mounted on /dev/vtbd0p2 4.8G 2.2G 2.2G 50% / devfs 1.0K 1.0K 0B 100% /dev 5:37PM up 4 mins, 2 users, load averages: 0.09, 0.19, 0.09 mysql is running as pid 732. apache24 is running as pid 734.
ok.
2016-06-18: bvm2 - the machine is using a bit of swap:
root@wiki# date;temp;swapinfo -h;echo " ";tvlm;echo " ";tvls;echo " ";df -h;echo " ";uptime;echo " ";service mysql-server status;service apache24 status Sat Jun 18 17:09:32 CEST 2016 temp: not found Device 1K-blocks Used Avail Capacity /dev/vtbd0p3 1047552 377M 646M 37% Jun 18 03:48:37 wiki kernel: arp: 10.1.150.29 moved from 00:bd:c6:11:00:01 to 60:02:92:b5:cd:2c on vtnet0 Jun 18 05:48:32 wiki kernel: arp: 10.1.150.29 moved from 00:bd:c6:11:00:01 to 60:02:92:b5:cd:2c on vtnet0 Jun 18 07:48:28 wiki kernel: arp: 10.1.150.29 moved from 00:bd:c6:11:00:01 to 60:02:92:b5:cd:2c on vtnet0 Jun 18 09:48:24 wiki kernel: arp: 10.1.150.29 moved from 00:bd:c6:11:00:01 to 60:02:92:b5:cd:2c on vtnet0 Jun 18 09:48:40 wiki ntpd[574]: frequency error -500 PPM exceeds tolerance 500 PPM Jun 18 09:59:02 wiki ntpd[574]: frequency error -500 PPM exceeds tolerance 500 PPM Jun 18 10:04:47 wiki ntpd[574]: frequency error -500 PPM exceeds tolerance 500 PPM Jun 18 11:41:10 wiki kernel: arp: 10.1.150.29 moved from 00:bd:c6:11:00:01 to 60:02:92:b5:cd:2c on vtnet0 Jun 18 13:41:05 wiki kernel: arp: 10.1.150.29 moved from 00:bd:c6:11:00:01 to 60:02:92:b5:cd:2c on vtnet0 Jun 18 15:41:01 wiki kernel: arp: 10.1.150.29 moved from 00:bd:c6:11:00:01 to 60:02:92:b5:cd:2c on vtnet0 May 21 22:59:13 wiki newsyslog[411]: logfile first created Filesystem Size Used Avail Capacity Mounted on /dev/vtbd0p2 4.8G 2.2G 2.2G 50% / devfs 1.0K 1.0K 0B 100% /dev 5:09PM up 27 days, 21:55, 2 users, load averages: 0.19, 0.23, 0.22 mysql is running as pid 1160. apache24 is running as pid 1468.
I will double the memory to 1024 MB, maybe that will be enough.
2016-05-24: bvm2 - these messages also show up in /var/log/messages, but not as frequent:
May 24 01:41:16 wiki ntpd[574]: frequency error -500 PPM exceeds tolerance 500 PPM May 24 01:54:06 wiki ntpd[574]: frequency error -500 PPM exceeds tolerance 500 PPM May 24 07:24:36 wiki ntpd[574]: frequency error -500 PPM exceeds tolerance 500 PPM May 24 07:38:07 wiki ntpd[574]: frequency error -500 PPM exceeds tolerance 500 PPM May 24 07:47:04 wiki ntpd[574]: frequency error -500 PPM exceeds tolerance 500 PPM May 24 10:12:29 wiki ntpd[574]: frequency error -500 PPM exceeds tolerance 500 PPM May 24 10:19:43 wiki ntpd[574]: frequency error -500 PPM exceeds tolerance 500 PPM
these are the messages of that kind for this day.
2016-05-23: bvm2 - I see these messages frequently in /var/log/messages:
May 23 00:57:12 wiki kernel: arp: 10.1.150.29 moved from 00:bd:c6:11:00:01 to 60:02:92:b5:cd:2c on vtnet0 May 23 02:57:08 wiki kernel: arp: 10.1.150.29 moved from 00:bd:c6:11:00:01 to 60:02:92:b5:cd:2c on vtnet0 May 23 04:57:03 wiki kernel: arp: 10.1.150.29 moved from 00:bd:c6:11:00:01 to 60:02:92:b5:cd:2c on vtnet0 May 23 06:56:58 wiki kernel: arp: 10.1.150.29 moved from 00:bd:c6:11:00:01 to 60:02:92:b5:cd:2c on vtnet0 May 23 08:56:54 wiki kernel: arp: 10.1.150.29 moved from 00:bd:c6:11:00:01 to 60:02:92:b5:cd:2c on vtnet0 May 23 10:56:50 wiki kernel: arp: 10.1.150.29 moved from 00:bd:c6:11:00:01 to 60:02:92:b5:cd:2c on vtnet0 May 23 12:56:45 wiki kernel: arp: 10.1.150.29 moved from 00:bd:c6:11:00:01 to 60:02:92:b5:cd:2c on vtnet0 May 23 14:56:41 wiki kernel: arp: 10.1.150.29 moved from 00:bd:c6:11:00:01 to 60:02:92:b5:cd:2c on vtnet0 May 23 16:56:36 wiki kernel: arp: 10.1.150.29 moved from 00:bd:c6:11:00:01 to 60:02:92:b5:cd:2c on vtnet0 May 23 18:56:32 wiki kernel: arp: 10.1.150.29 moved from 00:bd:c6:11:00:01 to 60:02:92:b5:cd:2c on vtnet0 May 23 22:21:21 wiki kernel: arp: 10.1.150.29 moved from 00:bd:c6:11:00:01 to 60:02:92:b5:cd:2c on vtnet0
not sure why.
2016-05-22: vm3 - mediawiki - image uploads work, images works.
2016-05-22: vm3 - php - set up a php.ini and modify some parameters:
root@wiki# cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini
I changed post_max_size and upload_max_filesize
before
root@wiki# grep post_max_size /usr/local/etc/php.ini post_max_size = 8M root@wiki# grep upload_max_filesize /usr/local/etc/php.ini upload_max_filesize = 2M
after
root@wiki# grep post_max_size /usr/local/etc/php.ini post_max_size = 50M root@wiki# grep upload_max_filesize /usr/local/etc/php.ini upload_max_filesize = 50M
and restart apache
root@wiki# service apache24 restart Performing sanity check on apache24 configuration: Syntax OK Stopping apache24. Waiting for PIDS: 1314. Performing sanity check on apache24 configuration: Syntax OK Starting apache24.
ok.
2016-05-22: vm3 - using my browser to browse to the root of my new server (wiki) I get the "Please set up the wiki first." page, complete with logo (picture) and all. Nice. I ran the installation script, after answering questions, the install started, and printed: "Creating tables for enabled extensions...done"
at the bottom I got this:
Notice: JobQueueGroup::__destruct: 1 buffered job(s) of type(s) RecentChangesUpdateJob never inserted. in /usr/local/www/mediawiki/includes/jobqueue/JobQueueGroup.php on line 420
not sure if it is important or not. Pressing on, I got "Complete!" and downloaded LocalSettings.php. With LocalSettings.php in place (and readable by the webserver) my wiki works.
2016-05-22: vm3 - Apache 2.4 - configured in /usr/local/etc/apache24/httpd.conf:
<IfModule php5_module> DirectoryIndex index.php index.html AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps </IfModule> <FilesMatch "\.php$"> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch "\.phps$"> SetHandler application/x-httpd-php-source </FilesMatch> #DocumentRoot "/usr/local/www/apache24/data" DocumentRoot "/usr/local/www/mediawiki" <Directory "/usr/local/www/mediawiki"> Options Indexes FollowSymLinks DirectoryIndex index.php AllowOverride All Require all granted RewriteEngine On RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/index.php [L] </Directory>
start apache
root@wiki# service apache24 start Performing sanity check on apache24 configuration: AH00526: Syntax error on line 294 of /usr/local/etc/apache24/httpd.conf: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration Starting apache24. AH00526: Syntax error on line 294 of /usr/local/etc/apache24/httpd.conf: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration /usr/local/etc/rc.d/apache24: WARNING: failed to start apache24
ok, I forgot to enable mod_rewrite, fixing it, and retry:
root@wiki# service apache24 start Performing sanity check on apache24 configuration: Syntax OK Starting apache24.
looks better now.
2016-05-22: vm3 - mysql - create a database for the wiki:
root@wiki# mysql -u root -p mysql Enter password: Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 12 Server version: 5.6.30 Source distribution Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> create database mysql> create database wikidb; Query OK, 1 row affected (0.01 sec) create a user for it mysql> create user wikiuser identified by 'password'; Query OK, 0 rows affected (0.01 sec) (no, that isn't the right password) grant access mysql> grant all on wikidb.* to wikiuser; Query OK, 0 rows affected (0.01 sec)
ok.
2016-05-22: vm3 - mysql - set up:
root@wiki# service mysql-server start Starting mysql.
first run mysql_secure_installation:
root@wiki# mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MySQL to secure it, we'll need the current password for the root user. If you've just installed MySQL, and you haven't set the root password yet, the password will be blank, so you should just press enter here. Enter current password for root (enter for none): OK, successfully used password, moving on... Setting the root password ensures that nobody can log into the MySQL root user without the proper authorisation. Set root password? [Y/n] New password: Re-enter new password: Password updated successfully! Reloading privilege tables.. ... Success! By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] ... Success! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] ... Success! By default, MySQL comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n] - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] ... Success! All done! If you've completed all of the above steps, your MySQL installation should now be secure. Thanks for using MySQL! Cleaning up...
ok.
2016-05-22: vm3 - pkg - install install additional software needed: pecl-intl, pecl-imagick, php56-pcntl, lua51, git:
May 22 00:20:22 wiki pkg: icu-55.1 installed May 22 00:20:22 wiki pkg: pecl-intl-3.0.0_2 installed May 22 00:24:05 wiki pkg: xproto-7.0.28 installed May 22 00:24:05 wiki pkg: libXdmcp-1.1.2 installed May 22 00:24:05 wiki pkg: libpthread-stubs-0.3_6 installed May 22 00:24:05 wiki pkg: libXau-1.0.8_3 installed May 22 00:24:05 wiki pkg: libffi-3.2.1 installed May 22 00:24:09 wiki pkg: libxcb-1.11.1 installed May 22 00:24:09 wiki pkg: kbproto-1.0.7 installed May 22 00:24:09 wiki pkg: libICE-1.0.9_1,1 installed May 22 00:24:21 wiki pkg: python27-2.7.11_2 installed May 22 00:24:21 wiki pkg: gnome_subr-1.0 installed May 22 00:24:24 wiki pkg: libX11-1.6.3,1 installed May 22 00:24:24 wiki pkg: libSM-1.2.2_3,1 installed May 22 00:24:28 wiki pkg: glib-2.46.2 installed May 22 00:24:29 wiki pkg: dbus-1.8.20 installed May 22 00:24:29 wiki pkg: python2-2_3 installed May 22 00:24:29 wiki pkg: gmp-5.1.3_3 installed May 22 00:24:29 wiki pkg: ca_root_nss-3.22.2 installed May 22 00:24:30 wiki pkg: libtasn1-4.8 installed May 22 00:24:30 wiki pkg: jbigkit-2.1_1 installed May 22 00:24:30 wiki pkg: libidn-1.31 installed May 22 00:24:30 wiki pkg: jpeg-turbo-1.4.2 installed May 22 00:24:31 wiki pkg: dbus-glib-0.104 installed May 22 00:24:32 wiki pkg: gobject-introspection-1.46.0 installed May 22 00:24:32 wiki pkg: libdaemon-0.14_1 installed May 22 00:24:33 wiki pkg: nettle-3.2 installed May 22 00:24:33 wiki pkg: p11-kit-0.23.2 installed May 22 00:24:34 wiki pkg: trousers-tddl-0.3.10_7 installed May 22 00:24:34 wiki pkg: png-1.6.21 installed May 22 00:24:34 wiki pkg: freetype2-2.6.3 installed May 22 00:24:34 wiki pkg: libpaper-1.1.24.4 installed May 22 00:24:35 wiki pkg: tiff-4.0.6_1 installed May 22 00:24:36 wiki pkg: avahi-app-0.6.31_5 installed May 22 00:24:39 wiki pkg: gnutls-3.4.10 installed May 22 00:24:39 wiki pkg: jbig2dec-0.12 installed May 22 00:24:40 wiki pkg: svgalib-1.4.3_7 installed May 22 00:24:40 wiki pkg: fontconfig-2.11.1_1,1 installed May 22 00:24:42 wiki pkg: cups-2.1.3_2 installed May 22 00:24:44 wiki pkg: gsfonts-8.11_6 installed May 22 00:24:45 wiki pkg: lcms2-2.7_2 installed May 22 00:24:45 wiki pkg: giflib-5.1.3 installed May 22 00:24:45 wiki pkg: libfpx-1.3.1.4_1 installed May 22 00:24:45 wiki pkg: liblqr-1-0.4.1_8 installed May 22 00:24:52 wiki pkg: ghostscript9-agpl-base-9.16_5 installed May 22 00:24:52 wiki pkg: fftw3-3.3.3_2 installed May 22 00:24:53 wiki pkg: openjpeg-2.1.1 installed May 22 00:24:53 wiki pkg: pkgconf-0.9.12_1 installed May 22 00:24:54 wiki pkg: libwmf-nox11-0.2.8.4_15 installed May 22 00:24:54 wiki pkg: libltdl-2.4.6 installed May 22 00:24:54 wiki pkg: webp-0.5.0 installed May 22 00:25:02 wiki pkg: ImageMagick-nox11-6.9.4.1,1 installed May 22 00:25:02 wiki pkg: pecl-imagick-3.4.1 installed May 22 00:27:03 wiki pkg: php56-pcntl-5.6.21 installed May 22 00:27:23 wiki pkg: lua51-5.1.5_9 installed May 22 00:27:44 wiki pkg: p5-Socket-2.021 installed May 22 00:27:44 wiki pkg: p5-Net-SSLeay-1.72 installed May 22 00:27:44 wiki pkg: p5-IO-Socket-IP-0.37 installed May 22 00:27:44 wiki pkg: p5-Mozilla-CA-20160104 installed May 22 00:27:44 wiki pkg: p5-Digest-HMAC-1.03_1 installed May 22 00:27:44 wiki pkg: p5-GSSAPI-0.28_1 installed May 22 00:27:44 wiki pkg: p5-IO-Socket-SSL-2.024 installed May 22 00:27:44 wiki pkg: p5-Error-0.17024 installed May 22 00:27:44 wiki pkg: cvsps-2.1_1 installed May 22 00:27:45 wiki pkg: p5-Authen-SASL-2.16_1 installed May 22 00:27:46 wiki pkg: curl-7.48.0_1 installed May 22 00:27:46 wiki pkg: p5-Net-SMTP-SSL-1.03 installed May 22 00:27:50 wiki pkg: git-2.7.4_1 installed
ok.
2016-05-21: vm3 - pkg - install mediawiki bits: db server (mysql56-server), web server (apache24), php support for web server (mod_php56), wiki engine (mediawiki126): the following packages got installed
May 22 00:00:15 wiki pkg: libedit-3.1.20150325_2 installed May 22 00:00:17 wiki pkg: mysql56-client-5.6.30 installed May 22 00:00:29 wiki pkg: perl5-5.20.3_12 installed May 22 00:00:35 wiki pkg: mysql56-server-5.6.30 installed May 22 00:02:37 wiki pkg: indexinfo-0.2.4 installed May 22 00:02:37 wiki pkg: gettext-runtime-0.19.7 installed May 22 00:02:37 wiki pkg: expat-2.1.0_3 installed May 22 00:02:37 wiki pkg: gdbm-1.11_2 installed May 22 00:02:46 wiki pkg: db5-5.3.28_3 installed May 22 00:02:47 wiki pkg: libxml2-2.9.3 installed May 22 00:02:47 wiki pkg: apr-1.5.2.1.5.4 installed May 22 00:02:48 wiki pkg: pcre-8.38_1 installed May 22 00:02:53 wiki pkg: apache24-2.4.20_1 installed May 22 00:04:37 wiki pkg: php56-5.6.21 installed May 22 00:04:38 wiki pkg: mod_php56-5.6.21 installed May 22 00:14:02 wiki pkg: php56-dom-5.6.21 installed May 22 00:14:02 wiki pkg: libiconv-1.14_9 installed May 22 00:14:03 wiki pkg: oniguruma5-5.9.6_1 installed May 22 00:14:03 wiki pkg: php56-session-5.6.21 installed May 22 00:14:03 wiki pkg: php56-xml-5.6.21 installed May 22 00:14:03 wiki pkg: php56-hash-5.6.21 installed May 22 00:14:03 wiki pkg: php56-xmlreader-5.6.21 installed May 22 00:14:03 wiki pkg: php56-ctype-5.6.21 installed May 22 00:14:03 wiki pkg: php56-iconv-5.6.21 installed May 22 00:14:03 wiki pkg: php56-sockets-5.6.21 installed May 22 00:14:03 wiki pkg: php56-mysql-5.6.21 installed May 22 00:14:04 wiki pkg: php56-mbstring-5.6.21 installed May 22 00:14:04 wiki pkg: php56-json-5.6.21 installed May 22 00:14:04 wiki pkg: php56-readline-5.6.21 installed May 22 00:14:04 wiki pkg: php56-zlib-5.6.21 installed May 22 00:14:29 wiki pkg: mediawiki126-1.26.2 installed
ok.
2016-05-21: vm3 - pkg - install pkg:
root@wiki# pkg The package management tool is not yet installed on your system. Do you want to fetch and install it now? [y/N]: y Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:10:amd64/quarterly, please wait... Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done Installing pkg-1.7.2... Extracting pkg-1.7.2: 100% pkg: not enough arguments Usage: pkg [-v] [-d] [-l] [-N] [-j <jail name or id>|-c <chroot path>|-r <rootdir>] [-C <configuration file>] [-R <repo config dir>] [-o var=value] [-4|-6] <command> [<args>] For more information on available commands and options see 'pkg help'.
update repository:
root@wiki# pkg version Updating FreeBSD repository catalogue... Fetching meta.txz: 100% 944 B 0.9kB/s 00:01 Fetching packagesite.txz: 100% 5 MiB 2.8MB/s 00:02 Processing entries: 100% FreeBSD repository update completed. 25086 packages processed. pkg-1.7.2 =
ok.
2016-05-21: vm3 - after a reboot the machine runs FreeBSD 10.3-release-p3:
tingo@wiki$ freebsd-version -ku 10.3-RELEASE-p3 10.3-RELEASE-p3 tingo@wiki$ uname -a FreeBSD wiki.kg4.no 10.3-RELEASE-p3 FreeBSD 10.3-RELEASE-p3 #0: Tue May 17 08:43:55 UTC 2016 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
ok.
2016-05-21: vm3 - run freebsd-update:
fetch
root@wiki# freebsd-update fetch src component not installed, skipped Looking up update.FreeBSD.org mirrors... none found. Fetching public key from update.FreeBSD.org... done. Fetching metadata signature for 10.3-RELEASE from update.FreeBSD.org... done. Fetching metadata index... done. Fetching 2 metadata files... done. Inspecting system... done. Preparing to download files... done. Fetching 53 patches.....10....20....30....40....50. done. Applying patches... done. The following files will be updated as part of updating to 10.3-RELEASE-p3: /bin/freebsd-version [...] /var/db/etcupdate/current/etc/mail/freebsd.cf /var/db/etcupdate/current/etc/mail/freebsd.submit.cf /var/db/etcupdate/current/etc/mail/sendmail.cf /var/db/etcupdate/current/etc/mail/submit.cf /var/db/mergemaster.mtree
install
root@wiki# freebsd-update install src component not installed, skipped Installing updates... done.
ok.
2016-05-21: vm3 - the machine runs FreeBSD 10.3-release.
tingo@wiki$ freebsd-version -ku 10.3-RELEASE 10.3-RELEASE tingo@wiki$ uname -a FreeBSD wiki.kg4.no 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 02:10:02 UTC 2016 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
disk layout:
tingo@wiki$ swapinfo -h Device 1K-blocks Used Avail Capacity /dev/vtbd0p3 1047552 0B 1.0G 0% tingo@wiki$ df -h Filesystem Size Used Avail Capacity Mounted on /dev/vtbd0p2 4.8G 851M 3.6G 19% / devfs 1.0K 1.0K 0B 100% /dev
gpart info
tingo@wiki$ gpart show -p => 34 12582845 vtbd0 GPT (6.0G) 34 30 - free - (15K) 64 1024 vtbd0p1 freebsd-boot (512K) 1088 10485760 vtbd0p2 freebsd-ufs (5.0G) 10486848 2095104 vtbd0p3 freebsd-swap (1.0G) 12581952 927 - free - (464K)
ok.
2016-05-21: vm3 - ssh works too:
tingo@kg-vm3$ ssh wiki Password for tingo@wiki.kg4.no: Last login: Sat May 21 23:22:22 2016 from kg-vm3.kg4.no FreeBSD 10.3-RELEASE (GENERIC) #0 r297264: Fri Mar 25 02:10:02 UTC 2016 Welcome to FreeBSD! ************************* * * * wiki.kg4.no * * * ************************* tingo@wiki$
ok.
2016-05-21: vm3 - connect to bvm2:
root@kg-vm3# tmux attach -t bhyve_bvm2 and it starts the tmux window. Console output: inet 127.0.0.1 netmask 0xff000000 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> vtnet0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE> ether 00:a0:98:b1:6c:c4 nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet 10Gbase-T <full-duplex> status: active Starting devd. Starting dhclient. DHCPDISCOVER on vtnet0 to 255.255.255.255 port 67 interval 5 DHCPOFFER from 10.1.10.1 DHCPREQUEST on vtnet0 to 255.255.255.255 port 67 DHCPACK from 10.1.10.1 bound to 10.1.161.23 -- renewal in 21600 seconds. add net fe80::: gateway ::1 add net ff02::: gateway ::1 add net ::ffff:0.0.0.0: gateway ::1 add net ::0.0.0.0: gateway ::1 Generating host.conf. Creating and/or trimming log files. Starting syslogd. No core dumps found. ELF ldconfig path: /lib /usr/lib /usr/lib/compat 32-bit compatibility ldconfig path: /usr/lib32 Clearing /tmp (X related). Updating motd:. Mounting late file systems:. Certificate verification failed for /C=US/ST=Arizona/L=Scottsdale/O=Starfield Technologies, Inc./CN=Starfield Root Certificate Authority - G2 34380983000:error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_clnt.c:1185: fetch: https://www.ietf.org/timezones/data/leap-seconds.list: Authentication error Starting ntpd. Configuring syscons: keymap blanktime. Generating RSA1 host key. 2048 SHA256:UP1uC1ck7ji2a8b/kKTiHvALqoMkdBPH4kCYSND7wMQ root@wiki.kg4.no (RSA1) Generating RSA host key. 2048 SHA256:Wcyl+Dhf4J6xiT8lpAeyKF+XCJTDvxvXjeujdh/cEwc root@wiki.kg4.no (RSA) Generating DSA host key. 1024 SHA256:rxamsDsKSIvyp/rcQhOKnKVjQOXZwID3le0Hv66+fME root@wiki.kg4.no (DSA) Generating ECDSA host key. 256 SHA256:P+6LbCulBavImkzuWI6JhRlHnqflmdzHxs2M6CZSzKU root@wiki.kg4.no (ECDSA) Generating ED25519 host key. 256 SHA256:tdzPX6CdQhbw03wrAUVfm21d/LYUv7hLgpRqGESrTuk root@wiki.kg4.no (ED25519) Performing sanity check on sshd configuration. Starting sshd. Starting sendmail_submit. Starting sendmail_msp_queue. Starting cron. Starting background file system checks in 60 seconds. Sat May 21 22:59:25 CEST 2016 FreeBSD/amd64 (wiki.kg4.no) (ttyu0) login:
interesting. It works.
2016-05-21: vm3 - ada0p2 - bhyve - set up a new machine bvm2 (2 cpu, 512M, 6 G) that will be used for a wiki machine. It will use tap1 interface.
root@kg-vm3# cd /zs/vms
create a directory for it:
root@kg-vm3# mkdir bvm2
make a file for a disk:
root@kg-vm3# truncate -s 6G bvm2/guest-bvm2.img
verify
root@kg-vm3# ll -h bvm2 total 104 drwxr-xr-x 2 root wheel 512B May 21 22:07 ./ drwxr-xr-x 4 root wheel 512B May 21 22:04 ../ -rw-r--r-- 1 root wheel 6.0G May 21 22:07 guest-bvm2.img
ok. Next is the install process:
root@kg-vm3# sh /usr/share/examples/bhyve/vmrun.sh -c 2 -t tap1 -d /zs/vms/bvm2/guest-bvm2.img -i -I /zs/tingo/dl/bsd/FreeBSD-10.3-RELEASE-amd64-disc1.iso bhyve_vm2
it starts the boot, asks for a terminal type, I choose xterm, get to the menu and start the install process. Norwegian keymap, name the machine wiki.kg4.no, unselect games, lib32, ports tree. Guided disk setup, entire disk, I modify it so that I get a 5 G freebsd-ufs and a 1G freebsd-swap. Install continues. Network configuration DHCP, services sshd, ntpd, dumpdev. I fix /etc/dhclient.conf so tha the machine will get a static ip, and that finishes the install. On exit, it reboots, just select "reboot" from the boot menu. Next I add it to /etc/rc.conf.local. Completed:
root@kg-vm3# more /etc/rc.conf.local # bhyve - configuration for virtual machines bhyve_profiles="bvm1 bvm2" bhyve_bvm1_tapdev="tap0" bhyve_bvm1_diskdev="/zs/vms/vm1/guest-vm1.img" bhyve_bvm1_ncpu="2" bhyve_bvm2_tapdev="tap1" bhyve_bvm2_diskdev="/zs/vms/bvm2/guest-bvm2.img" bhyve_bvm2_ncpu="2"
Start the machine:
root@kg-vm3# service bhyve start bvm2 Starting bhyve.
verify
root@kg-vm3# service bhyve status ===> bhyve profile: bvm1 bhyve_bvm1 is running. ===> bhyve profile: bvm2 bhyve_bvm2 is running.
seems ok.