web - web server

guest os: FreeBSD / amd64

cpu: 2

memory size 1280 MB (was: 1024 MB)

storage boot: file - 11 GB

usage: web server

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.

Links

History

This machine was previously known as bhyve_bvm6

Work log

2020-06-21: bvm6 - switching to vm-bhyve, this vm gets to be known as 'web'

root@kg-vm3# pwd
/zs/vms
root@kg-vm3# mv bvm6 web

add config file

root@kg-vm3# more web/web.conf
loader="bhyveload"
cpu="2"
memory="1280M"
network0_type="virtio-net"
network0_switch="public"
disk0_type="virtio-blk"
disk0_name="guest-bvm6.img"

test - does the machine work? Yes, it does.

root@kg-vm3# vm list
NAME    DATASTORE  LOADER     CPU  MEMORY  VNC  AUTOSTART  STATE
music3  default    bhyveload  1    512M    -    No         Running (11953)
trap2   default    bhyveload  1    256M    -    No         Running (10299)
tv      default    bhyveload  2    1536M   -    No         Running (9278)
web     default    bhyveload  2    1280M   -    No         Running (12591)
wiki    default    bhyveload  2    1024M   -    No         Running (8672)

currently running vm's on the vm3 host

2019-11-27: vtbd0p3 - ntpd is not running

root@bvm6# service ntpd status
ntpd is not running.

start it

root@bvm6# service ntpd start
Starting ntpd.
root@bvm6# service ntpd status
ntpd is running as pid 5028.

but it stopped again

root@bvm6# service ntpd status
ntpd is not running.

run ntpdate a few times

root@bvm6# ntpdate 10.1.10.1
27 Nov 07:56:00 ntpdate[5075]: step time server 10.1.10.1 offset -3599.159702 sec
root@bvm6# ntpdate 10.1.10.1
27 Nov 07:56:09 ntpdate[5076]: adjust time server 10.1.10.1 offset 0.000052 sec
root@bvm6# ntpdate 10.1.10.1
27 Nov 07:56:17 ntpdate[5077]: adjust time server 10.1.10.1 offset -0.000002 sec

then start ntpd

root@bvm6# service ntpd status
ntpd is running as pid 5085.

check

root@bvm6# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*kg-omni1.kg4.no 91.209.0.17      3 u   51   64    3    0.665    0.148   0.249

ok.

2019-11-25: powered on after power outage.

2018-10-14: bvm6 - verify memsize:

tingo@bvm6$ sysctl hw.physmem
hw.physmem: 1308545024
tingo@bvm6$ dmesg | grep memory
real memory  = 1342177280 (1280 MB)
avail memory = 1258074112 (1199 MB)

good.

2018-10-14: vm3 - change bvm6 memory from 1024 to 1280 MB (+ 256) in /etc/rc.conf.local:

root@kg-vm3# sysrc bhyve_bvm6_memsize
bhyve_bvm6_memsize: 1280

next is to reboot the bvm6 machine.

bvm6 - right, rebooting isn't enough:

root@bvm6# sysctl hw.physmem
hw.physmem: 1040109568
```sh
ok. Use the host to stop it then:

root@kg-vm3# service bhyve stop bvm6 Stopping bhyve_bvm6.

verify
```sh
root@kg-vm3# service bhyve status
===> bhyve profile: bvm1
bhyve_bvm1 is running.
===> bhyve profile: bvm2
bhyve_bvm2 is running.
===> bhyve profile: bvm3
bhyve_bvm3 is running.
===> bhyve profile: bvm4
bhyve_bvm4 is running.
===> bhyve profile: bvm5
bhyve_bvm5 is running.
===> bhyve profile: bvm6
bhyve_bvm6 is not running.

then start it

root@kg-vm3# service bhyve start bvm6
Starting bhyve.

verify

root@kg-vm3# service bhyve status
===> bhyve profile: bvm1
bhyve_bvm1 is running.
===> bhyve profile: bvm2
bhyve_bvm2 is running.
===> bhyve profile: bvm3
bhyve_bvm3 is running.
===> bhyve profile: bvm4
bhyve_bvm4 is running.
===> bhyve profile: bvm5
bhyve_bvm5 is running.
===> bhyve profile: bvm6
bhyve_bvm6 is running.

ok.

2018-10-14: bvm6 - current swap usage

root@bvm6# date;swapinfo -h
Sun Oct 14 21:28:33 CEST 2018
Device          1K-blocks     Used    Avail Capacity
/dev/vtbd0p2      1048576     415M     609M    41%

perhaps I really should increase memory size.

2018-02-22: bvm6 - the machine is using some swap

root@bvm6# date;swapinfo -h
Thu Feb 22 15:01:19 CET 2018
Device          1K-blocks     Used    Avail Capacity
/dev/vtbd0p2      1048576     215M     809M    21%

monitor, and increase memory if necessary.

2018-02-22: bvm6 - log - upgrade PivotX to latest version (2.3.11).

root@bvm6# pwd
/usr/local/www/tingox/log
root@bvm6# tar xvf /home/tingo/dl/pivotx_2.3.11.tgz
[..]
x robots.txt

fix ownership

root@bvm6# chown -R www images pivotx

fix permissions

root@bvm6# chmod -R ug+w images/ pivotx/db/ pivotx/templates

now test.

2018-02-22: bvm6 - newsyslog - set up log rotation for apache log files

root@bvm6# mkdir -p /usr/local/etc/newsyslog.conf.d/
root@bvm6# cat /usr/local/etc/newsyslog.conf.d/logfiles-apache.conf
# logfilename          [owner:group]    mode count size when  flags [/pid_file] [sig_num]
/var/log/httpd-access.log               644  9     200  *     ZB   /var/run/httpd.pid 30
/var/log/httpd-error.log                644  9     200  *     ZB   /var/run/httpd.pid 30
/var/log/httpd-glogtest-access.log      644  9     200  *     ZB   /var/run/httpd.pid 30
/var/log/httpd-glogtest-error.log       644  9     200  *     ZB   /var/run/httpd.pid 30
/var/log/httpd-moromc-access.log        644  9     2000 *     ZB   /var/run/httpd.pid 30
/var/log/httpd-moromc-error.log         644  9     2000 *     ZB   /var/run/httpd.pid 30
/var/log/httpd-tingox-access.log        644  9     2000 *     ZB   /var/run/httpd.pid 30
/var/log/httpd-tingox-error.log         644  9     2000 *     ZB   /var/run/httpd.pid 30

ok.

2018-02-22: bvm6 - pkg - installed ImageMagick-nox11 which drags in a lot

Feb 22 10:30:35 bvm6 pkg: libffi-3.2.1_2 installed
Feb 22 10:30:35 bvm6 pkg: gmp-6.1.2 installed
Feb 22 10:31:01 bvm6 pkg: python27-2.7.14_1 installed
Feb 22 10:31:01 bvm6 pkg: tpm-emulator-0.7.4_2 installed
Feb 22 10:31:02 bvm6 pkg: libtasn1-4.12 installed
Feb 22 10:31:06 bvm6 pkg: libunistring-0.9.8 installed
Feb 22 10:31:06 bvm6 pkg: python2-2_3 installed
Feb 22 10:31:11 bvm6 pkg: glib-2.50.3_1,1 installed
Feb 22 10:31:11 bvm6 pkg: dbus-1.10.16_1 installed
Feb 22 10:31:12 bvm6 pkg: trousers-0.3.14_2 installed
Feb 22 10:31:13 bvm6 pkg: p11-kit-0.23.9 installed
Feb 22 10:31:14 bvm6 pkg: nettle-3.4 installed
Feb 22 10:31:14 bvm6 pkg: libidn2-2.0.4 installed
Feb 22 10:31:14 bvm6 pkg: gnome_subr-1.0 installed
Feb 22 10:31:14 bvm6 pkg: libdaemon-0.14_1 installed
Feb 22 10:31:16 bvm6 pkg: gobject-introspection-1.50.0,1 installed
Feb 22 10:31:16 bvm6 pkg: dbus-glib-0.108 installed
Feb 22 10:31:17 bvm6 pkg: libpaper-1.1.24.4 installed
Feb 22 10:31:23 bvm6 pkg: gnutls-3.5.16 installed
Feb 22 10:31:24 bvm6 pkg: avahi-app-0.6.31_5 installed
Feb 22 10:31:25 bvm6 pkg: fontconfig-2.12.1,1 installed
Feb 22 10:31:27 bvm6 pkg: gsfonts-8.11_8 installed
Feb 22 10:31:32 bvm6 pkg: cups-2.2.6 installed
Feb 22 10:31:33 bvm6 pkg: svgalib-1.4.3_7 installed
Feb 22 10:31:38 bvm6 pkg: lcms2-2.9 installed
Feb 22 10:31:38 bvm6 pkg: jbig2dec-0.14 installed
Feb 22 10:31:39 bvm6 pkg: libidn-1.33_1 installed
Feb 22 10:31:39 bvm6 pkg: giflib-5.1.4 installed
Feb 22 10:31:47 bvm6 pkg: ghostscript9-agpl-base-9.16_5 installed
Feb 22 10:31:48 bvm6 pkg: fftw3-3.3.6.p2_2 installed
Feb 22 10:31:48 bvm6 pkg: webp-0.6.1 installed
Feb 22 10:31:48 bvm6 pkg: openjpeg-2.3.0 installed
Feb 22 10:31:50 bvm6 pkg: libwmf-nox11-0.2.8.4_15 installed
Feb 22 10:31:51 bvm6 pkg: libraw-0.18.7 installed
Feb 22 10:31:51 bvm6 pkg: liblqr-1-0.4.2 installed
Feb 22 10:31:51 bvm6 pkg: pkgconf-1.3.10,1 installed
Feb 22 10:31:51 bvm6 pkg: libltdl-2.4.6 installed
Feb 22 10:32:01 bvm6 pkg: ImageMagick-nox11-6.9.9.28,1 installed

messages

Message from python27-2.7.14_1:

===========================================================================

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.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 ghostscript9-agpl-base-9.16_5:

Note: in order to use the script "dvipdf", dvips must be installed.
This program is provided by another package print/tex-dvipsk.

FAPIfontmap and FAPIcidfmap in /usr/local/share/ghostscript/9.16/Resource/Init
have to be configured if you want to use FAPI feature.
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
==========================================================================

ok.

2018-02-22: bvm6 - pkg - gallery needs exiftags, jhead and zip for complete functionality

Feb 22 10:21:50 bvm6 pkg: exiftags-1.01 installed
Feb 22 10:21:50 bvm6 pkg: jhead-3.00 installed
Feb 22 10:21:50 bvm6 pkg: zip-3.0_1 installed

ok.

2018-02-20: bvm6 - php - configuration, apache - update configuration for apache 2.4. Enable mod_rewrite in httpd.conf.

2018-02-20: bvm6 - pkg - install mod_php56

Message from mod_php56-5.6.32_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>

***************************************************************

from /var/log/messages

Feb 20 19:10:17 bvm6 pkg: mod_php56-5.6.32_1 installed

ok.

2018-02-20: bvm6 - apache - I copied over all web content under /usr/local/www.

2018-02-20: bvm6 - MySQL - I copied over the mysql files, fixed permissions and ran mysql_upgrade

root@bvm6# mysql_upgrade
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck with default connection arguments
Running 'mysqlcheck with default connection arguments
mysql.columns_priv                                 OK
mysql.db                                           OK
mysql.event                                        OK
mysql.func                                         OK
mysql.general_log                                  OK
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_relation                                OK
mysql.help_topic                                   OK
mysql.host                                         OK
mysql.ndb_binlog_index                             OK
mysql.plugin                                       OK
mysql.proc                                         OK
mysql.procs_priv                                   OK
mysql.proxies_priv                                 OK
mysql.servers                                      OK
mysql.slow_log                                     OK
mysql.tables_priv                                  OK
mysql.time_zone                                    OK
mysql.time_zone_leap_second                        OK
mysql.time_zone_name                               OK
mysql.time_zone_transition                         OK
mysql.time_zone_transition_type                    OK
mysql.user                                         OK
Running 'mysql_fix_privilege_tables'...
Running 'mysqlcheck with default connection arguments
Running 'mysqlcheck with default connection arguments
glogtest.gl_access                                 OK
glogtest.gl_article_images                         OK
glogtest.gl_blocks                                 OK
glogtest.gl_commentcodes                           OK
glogtest.gl_commentedits                           OK
glogtest.gl_commentmodes                           OK
glogtest.gl_commentnotifications                   OK
glogtest.gl_comments                               OK
glogtest.gl_commentsubmissions                     OK
glogtest.gl_conf_values                            OK
glogtest.gl_cookiecodes                            OK
glogtest.gl_dateformats                            OK
glogtest.gl_events                                 OK
glogtest.gl_eventsubmission                        OK
glogtest.gl_featurecodes                           OK
glogtest.gl_features                               OK
glogtest.gl_frontpagecodes                         OK
glogtest.gl_group_assignments                      OK
glogtest.gl_groups                                 OK
glogtest.gl_linkcategories                         OK
glogtest.gl_links                                  OK
glogtest.gl_linksubmission                         OK
glogtest.gl_maillist                               OK
glogtest.gl_personal_events                        OK
glogtest.gl_pingservice                            OK
glogtest.gl_plugins                                OK
glogtest.gl_pollanswers                            OK
glogtest.gl_pollquestions                          OK
glogtest.gl_polltopics                             OK
glogtest.gl_pollvoters                             OK
glogtest.gl_postmodes                              OK
glogtest.gl_sessions                               OK
glogtest.gl_sortcodes                              OK
glogtest.gl_spamx                                  OK
glogtest.gl_speedlimit                             OK
glogtest.gl_staticpage                             OK
glogtest.gl_statuscodes                            OK
glogtest.gl_stories                                OK
glogtest.gl_storysubmission                        OK
glogtest.gl_syndication                            OK
glogtest.gl_tokens                                 OK
glogtest.gl_topics                                 OK
glogtest.gl_trackback                              OK
glogtest.gl_trackbackcodes                         OK
glogtest.gl_usercomment                            OK
glogtest.gl_userindex                              OK
glogtest.gl_userinfo                               OK
glogtest.gl_userprefs                              OK
glogtest.gl_users                                  OK
glogtest.gl_vars                                   OK
moromc.gl_access                                   OK
moromc.gl_article_images                           OK
moromc.gl_bad_behavior2                            OK
moromc.gl_blocks                                   OK
moromc.gl_commentcodes                             OK
moromc.gl_commentmodes                             OK
moromc.gl_comments                                 OK
moromc.gl_cookiecodes                              OK
moromc.gl_dateformats                              OK
moromc.gl_events                                   OK
moromc.gl_eventsubmission                          OK
moromc.gl_featurecodes                             OK
moromc.gl_features                                 OK
moromc.gl_filemgmt_broken                          OK
moromc.gl_filemgmt_category                        OK
moromc.gl_filemgmt_downloadhistory                 OK
moromc.gl_filemgmt_filedesc                        OK
moromc.gl_filemgmt_filedetail                      OK
moromc.gl_filemgmt_votedata                        OK
moromc.gl_frontpagecodes                           OK
moromc.gl_geekary                                  OK
moromc.gl_geekary_categories                       OK
moromc.gl_geekary_geekards                         OK
moromc.gl_geekary_images                           OK
moromc.gl_geekary_prefs                            OK
moromc.gl_geekary_ratings                          OK
moromc.gl_group_assignments                        OK
moromc.gl_groups                                   OK
moromc.gl_links                                    OK
moromc.gl_linksubmission                           OK
moromc.gl_maillist                                 OK
moromc.gl_personal_events                          OK
moromc.gl_pingservice                              OK
moromc.gl_plugins                                  OK
moromc.gl_pollanswers                              OK
moromc.gl_pollquestions                            OK
moromc.gl_pollvoters                               OK
moromc.gl_postmodes                                OK
moromc.gl_sessions                                 OK
moromc.gl_sortcodes                                OK
moromc.gl_spamx                                    OK
moromc.gl_speedlimit                               OK
moromc.gl_staticpage                               OK
moromc.gl_statuscodes                              OK
moromc.gl_stories                                  OK
moromc.gl_storysubmission                          OK
moromc.gl_syndication                              OK
moromc.gl_topics                                   OK
moromc.gl_trackback                                OK
moromc.gl_trackbackcodes                           OK
moromc.gl_tzcodes                                  OK
moromc.gl_usercomment                              OK
moromc.gl_userindex                                OK
moromc.gl_userinfo                                 OK
moromc.gl_userprefs                                OK
moromc.gl_users                                    OK
moromc.gl_vars                                     OK
moromc.gl_weather                                  OK
moromc.gl_weather_cache                            OK
moromc.gl_weather_current                          OK
moromc.gl_weather_fcc_uls                          OK
moromc.gl_weather_forecast                         OK
moromc.gl_weather_icao                             OK
moromc.gl_weather_master                           OK
moromc.gl_weather_users                            OK
moromc.gl_weather_warning                          OK
moromc.gl_weather_zone                             OK
OK

looks allright.

root@bvm6# cat /var/db/mysql/mysql_upgrade_info
5.6.39root@bvm6#

ok, too.

2018-02-13: bvm6 - pkg - install packages

netpbm

Feb 13 20:01:39 bvm6 pkg: jbigkit-2.1_1 installed
Feb 13 20:01:41 bvm6 pkg: tiff-4.0.9_1 installed
Feb 13 20:01:41 bvm6 pkg: jasper-1.900.1_17 installed
Feb 13 20:01:45 bvm6 pkg: netpbm-10.80.00 installed

ok

2018-02-12: bvm6 - pkg - install packages

apache

Feb 12 23:39:28 bvm6 pkg: indexinfo-0.3.1 installed
Feb 12 23:39:29 bvm6 pkg: readline-7.0.3_1 installed
Feb 12 23:39:29 bvm6 pkg: gettext-runtime-0.19.8.1_1 installed
Feb 12 23:39:29 bvm6 pkg: expat-2.2.5 installed
Feb 12 23:39:29 bvm6 pkg: gdbm-1.13_1 installed
Feb 12 23:39:43 bvm6 pkg: db5-5.3.28_6 installed
Feb 12 23:39:44 bvm6 pkg: libnghttp2-1.29.0 installed
Feb 12 23:39:44 bvm6 pkg: libxml2-2.9.7 installed
Feb 12 23:40:15 bvm6 pkg: perl5-5.24.3 installed
Feb 12 23:40:17 bvm6 pkg: pcre-8.40_1 installed
Feb 12 23:40:18 bvm6 pkg: apr-1.6.3.1.6.1 installed
Feb 12 23:40:28 bvm6 pkg: apache24-2.4.29 installed

MySQL

Feb 12 23:45:09 bvm6 pkg: mysql56-client-5.6.39 installed
Feb 12 23:45:15 bvm6 pkg: mysql56-server-5.6.39 installed

Message from mysql56-client-5.6.39:

* * * * * * * * * * * * * * * * * * * * * * * *

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 mysql56-server-5.6.39:

*****************************************************************************

Remember to run mysql_upgrade the first time you start the MySQL server
after an upgrade from an earlier version.

Initial password for first time use of MySQL is saved in $HOME/.mysql_secret
ie. when you want to use "mysql -u root -p" first you should see password
in /root/.mysql_secret

*****************************************************************************

*****************************************************************************

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".

*****************************************************************************

php

Feb 12 23:58:46 bvm6 pkg: xproto-7.0.31 installed
Feb 12 23:58:46 bvm6 pkg: libXau-1.0.8_3 installed
Feb 12 23:58:46 bvm6 pkg: libXdmcp-1.1.2 installed
Feb 12 23:58:46 bvm6 pkg: libpthread-stubs-0.4 installed
Feb 12 23:58:57 bvm6 pkg: libxcb-1.12_2 installed
Feb 12 23:58:57 bvm6 pkg: kbproto-1.0.7 installed
Feb 12 23:58:58 bvm6 pkg: libICE-1.0.9_1,1 installed
Feb 12 23:58:58 bvm6 pkg: xextproto-7.3.0 installed
Feb 12 23:59:03 bvm6 pkg: libX11-1.6.5,1 installed
Feb 12 23:59:04 bvm6 pkg: libSM-1.2.2_3,1 installed
Feb 12 23:59:04 bvm6 pkg: libXext-1.3.3_1,1 installed
Feb 12 23:59:06 bvm6 pkg: libXt-1.1.5,1 installed
Feb 12 23:59:06 bvm6 pkg: printproto-1.0.5 installed
Feb 12 23:59:09 bvm6 pkg: php56-5.6.32_1 installed
Feb 12 23:59:09 bvm6 pkg: libXpm-3.5.12 installed
Feb 12 23:59:09 bvm6 pkg: libXp-1.0.3,1 installed
Feb 12 23:59:10 bvm6 pkg: libXmu-1.1.2_3,1 installed
Feb 12 23:59:10 bvm6 pkg: php56-dom-5.6.32_1 installed
Feb 12 23:59:10 bvm6 pkg: php56-hash-5.6.32_1 installed
Feb 12 23:59:10 bvm6 pkg: php56-pdo-5.6.32_1 installed
Feb 12 23:59:11 bvm6 pkg: ca_root_nss-3.35 installed
Feb 12 23:59:12 bvm6 pkg: libXaw-1.0.13,2 installed
Feb 12 23:59:13 bvm6 pkg: libiconv-1.14_11 installed
Feb 12 23:59:13 bvm6 pkg: sqlite3-3.21.0_1 installed
Feb 12 23:59:13 bvm6 pkg: php56-ctype-5.6.32_1 installed
Feb 12 23:59:13 bvm6 pkg: php56-filter-5.6.32_1 installed
Feb 12 23:59:14 bvm6 pkg: php56-iconv-5.6.32_1 installed
Feb 12 23:59:14 bvm6 pkg: php56-json-5.6.32_1 installed
Feb 12 23:59:14 bvm6 pkg: php56-pdo_sqlite-5.6.32_1 installed
Feb 12 23:59:14 bvm6 pkg: php56-posix-5.6.32_1 installed
Feb 12 23:59:14 bvm6 pkg: php56-session-5.6.32_1 installed
Feb 12 23:59:14 bvm6 pkg: php56-simplexml-5.6.32_1 installed
Feb 12 23:59:14 bvm6 pkg: php56-sqlite3-5.6.32_1 installed
Feb 12 23:59:14 bvm6 pkg: php56-tokenizer-5.6.32_1 installed
Feb 12 23:59:14 bvm6 pkg: php56-xml-5.6.32_1 installed
Feb 12 23:59:14 bvm6 pkg: php56-xmlreader-5.6.32_1 installed
Feb 12 23:59:14 bvm6 pkg: php56-xmlwriter-5.6.32_1 installed
Feb 12 23:59:17 bvm6 pkg: curl-7.58.0 installed
Feb 12 23:59:17 bvm6 pkg: php56-opcache-5.6.32_1 installed
Feb 12 23:59:18 bvm6 pkg: php56-phar-5.6.32_1 installed
Feb 12 23:59:19 bvm6 pkg: freetype2-2.8_1 installed
Feb 12 23:59:19 bvm6 pkg: png-1.6.34 installed
Feb 12 23:59:19 bvm6 pkg: jpeg-turbo-1.5.3 installed
Feb 12 23:59:20 bvm6 pkg: t1lib-5.1.2_4,1 installed
Feb 12 23:59:20 bvm6 pkg: cclient-2007f_2,1 installed
Feb 12 23:59:21 bvm6 pkg: oniguruma6-6.6.1 installed
Feb 12 23:59:22 bvm6 pkg: libzip-1.3.2 installed
Feb 12 23:59:22 bvm6 pkg: php56-bz2-5.6.32_1 installed
Feb 12 23:59:22 bvm6 pkg: php56-calendar-5.6.32_1 installed
Feb 12 23:59:22 bvm6 pkg: php56-curl-5.6.32_1 installed
Feb 12 23:59:22 bvm6 pkg: php56-exif-5.6.32_1 installed
Feb 12 23:59:22 bvm6 pkg: php56-extensions-1.0 installed
Feb 12 23:59:22 bvm6 pkg: php56-ftp-5.6.32_1 installed
Feb 12 23:59:22 bvm6 pkg: php56-gd-5.6.32_1 installed
Feb 12 23:59:22 bvm6 pkg: php56-gettext-5.6.32_1 installed
Feb 12 23:59:23 bvm6 pkg: php56-imap-5.6.32_1 installed
Feb 12 23:59:24 bvm6 pkg: php56-mbstring-5.6.32_1 installed
Feb 12 23:59:24 bvm6 pkg: php56-mysql-5.6.32_1 installed
Feb 12 23:59:24 bvm6 pkg: php56-openssl-5.6.32_1 installed
Feb 12 23:59:24 bvm6 pkg: php56-zip-5.6.32_1 installed
Feb 12 23:59:24 bvm6 pkg: php56-zlib-5.6.32_1 installed

ddclient

Feb 12 23:05:43 bvm6 pkg: p5-Mozilla-CA-20160104 installed
Feb 12 23:05:44 bvm6 pkg: p5-Net-SSLeay-1.82 installed
Feb 12 23:05:44 bvm6 pkg: p5-IO-Socket-SSL-2.051 installed
Feb 12 23:05:44 bvm6 pkg: ddclient-3.8.3_3 installed

ok

2018-02-12: bvm6 - pkg - install pkg and update package repository

root@bvm6# pkg update
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:11:amd64/quarterly, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
Installing pkg-1.10.3_1...
Extracting pkg-1.10.3_1: 100%
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
Fetching meta.txz: 100%    944 B   0.9kB/s    00:01   
Fetching packagesite.txz: 100%    6 MiB   6.2MB/s    00:01   
Processing entries: 100%
FreeBSD repository update completed. 28778 packages processed.
All repositories are up to date.

ok.

2018-02-12: bvm6 - a reboot, the machine now runs FreeBSD 11.1-release-p6

tingo@bvm6$ freebsd-version -ku
11.1-RELEASE-p4
11.1-RELEASE-p6
tingo@bvm6$ uname -a
FreeBSD bvm6.kg4.no 11.1-RELEASE-p4 FreeBSD 11.1-RELEASE-p4 #0: Tue Nov 14 06:12:40 UTC 2017     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

ok

2018-02-12: bvm6 - run freebsd-update

fetch

root@bvm6# freebsd-update fetch
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching public key from update5.freebsd.org... done.
Fetching metadata signature for 11.1-RELEASE from update5.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 38 patches.....10....20....30.... done.
Applying patches... done.
The following files will be updated as part of updating to 11.1-RELEASE-p6:
/bin/freebsd-version
/boot/kernel/kernel
/boot/kernel/pf.ko
/lib/libcrypto.so.8
/rescue/[
/rescue/atmconfig
/rescue/badsect
/rescue/bsdlabel
/rescue/bunzip2
/rescue/bzcat
/rescue/bzip2
/rescue/camcontrol
/rescue/cat
/rescue/ccdconfig
/rescue/chflags
/rescue/chgrp
/rescue/chio
/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/poweroff
/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/shutdown
/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
/usr/bin/openssl
/usr/include/openssl/ssl.h
/usr/lib/libcrypto.a
/usr/lib/libcrypto_p.a
/usr/lib/libssl.a
/usr/lib/libssl.so.8
/usr/lib/libssl_p.a
/usr/libexec/sendmail/sendmail
/usr/sbin/hostapd
/usr/sbin/sshd
/usr/sbin/wpa_supplicant
/usr/share/zoneinfo/Africa/Juba
/usr/share/zoneinfo/Africa/Khartoum
/usr/share/zoneinfo/Africa/Windhoek
/usr/share/zoneinfo/America/Adak
/usr/share/zoneinfo/America/Anchorage
/usr/share/zoneinfo/America/Detroit
/usr/share/zoneinfo/America/Grand_Turk
/usr/share/zoneinfo/America/Juneau
/usr/share/zoneinfo/America/Metlakatla
/usr/share/zoneinfo/America/Nome
/usr/share/zoneinfo/America/Sitka
/usr/share/zoneinfo/America/Yakutat
/usr/share/zoneinfo/Asia/Famagusta
/usr/share/zoneinfo/Asia/Kolkata
/usr/share/zoneinfo/Asia/Yangon
/usr/share/zoneinfo/Asia/Yerevan
/usr/share/zoneinfo/Europe/Dublin
/usr/share/zoneinfo/Pacific/Apia
/usr/share/zoneinfo/Pacific/Fiji
/usr/share/zoneinfo/Pacific/Midway
/usr/share/zoneinfo/Pacific/Pago_Pago
/usr/share/zoneinfo/Pacific/Tongatapu
/usr/share/zoneinfo/zone.tab

install

root@bvm6# freebsd-update install
src component not installed, skipped
Installing updates... done.

ok.

2018-02-12: bvm6 - login via ssh

tingo@kg-core1$ ssh web
Password for tingo@bvm6.kg4.no:
Last login: Mon Feb 12 23:14:00 2018 from kg-core1.kg4.no
FreeBSD 11.1-RELEASE (GENERIC) #0 r321309: Fri Jul 21 02:08:28 UTC 2017

Welcome to FreeBSD!

*****************************************************************
*                                                               *
*                       bhyve-bvm6                              *
*                       aka                                     *
*                       web - web server                        *
*                                                               *
*****************************************************************

Want to know how many words, lines, or bytes are contained in a file? Type
"wc filename".
        -- Dru <genesis@istar.ca>
$

I changed ssh keys etc before this login.

2018-02-12: vm3 - start bvm6 status

root@kg-vm3# service bhyve status
===> bhyve profile: bvm1
bhyve_bvm1 is running.
===> bhyve profile: bvm2
bhyve_bvm2 is running.
===> bhyve profile: bvm3
bhyve_bvm3 is running.
===> bhyve profile: bvm4
bhyve_bvm4 is running.
===> bhyve profile: bvm5
bhyve_bvm5 is running.
===> bhyve profile: bvm6
bhyve_bvm6 is not running.

start

root@kg-vm3# service bhyve start bvm6
Starting bhyve.
```sh
another status

root@kg-vm3# service bhyve status ===> bhyve profile: bvm1 bhyve_bvm1 is running. ===> bhyve profile: bvm2 bhyve_bvm2 is running. ===> bhyve profile: bvm3 bhyve_bvm3 is running. ===> bhyve profile: bvm4 bhyve_bvm4 is running. ===> bhyve profile: bvm5 bhyve_bvm5 is running. ===> bhyve profile: bvm6 bhyve_bvm6 is running.

ok.

2018-02-12: vm3 - add bvm6 to /etc/rc.conf.local
```sh
root@kg-vm3# grep bvm6 /etc/rc.conf.local
bhyve_profiles="bvm1 bvm2 bvm3 bvm4 bvm5 bvm6"
bhyve_bvm6_tapdev="tap5"
bhyve_bvm6_diskdev="/zs/vms/bvm6/guest-bvm6.img"
bhyve_bvm6_ncpu="2"
bhyve_bvm6_memsize="1024"

ok.

2018-02-12: vm3 - install bvm6 machine

root@kg-vm3# sh /usr/share/examples/bhyve/vmrun.sh -c 2 -m 1024M -t tap5 -d /zs/vms/bvm6/guest-bvm6.img -I /zs/tingo/dl/bsd/FreeBSD-11.1-RELEASE-amd64-disc1.iso bhyve_bvm6

the guest boots and install starts. Selection and changes: xterm, Install, Norwegian ISO-8859-1 keymap, bvm6.kg4.no, unselect lib32, ports, disk guided, vtbd0 (11G), entire disk, gpt, I change the setup so I have 1G swap first, and 10G root after, net dhcp, set timezone, services sshd, ntpd, dumpdev. On exit, it reboots, just select "reboot" from the boot menu.

2018-02-12: vm3 - set up bvm6 machine (2 cpu, 1G memory, 11G storage, tap5) create a directory for the guest

root@kg-vm3# cd /zs/vms
root@kg-vm3# mkdir bvm6

create file for a virtual disk

root@kg-vm3# truncate -s 11G bvm6/guest-bvm6.img
root@kg-vm3# ls -lh bvm6
total 96
-rw-r--r--  1 root  wheel    11G Feb 12 20:55 guest-bvm6.img

2018-02-12: the physical web server web broke, so I'm going to replace it with a virtual server. At the same time, upgrade to latest os, and try to use packages instead of ports.