ASRock Fatal1ty FM2A88X+ Killer - Debian - 2017 archive

back to main Debian page for this machine.

2017 archive.

2017-11-25: sdb3 - vms - check ip addresses

tingo@kg-vm4:~$ virsh --connect qemu:///system net-dhcp-leases default
 Expiry Time          MAC address        Protocol  IP address                Hostname        Client ID or DUID
-------------------------------------------------------------------------------------------------------------------
 2017-11-25 14:38:10  52:54:00:73:7c:b6  ipv4      192.168.122.166/24        kvm1            01:52:54:00:73:7c:b6
 2017-11-25 14:38:39  52:54:00:fd:ed:85  ipv4      192.168.122.19/24         kvm2            01:52:54:00:fd:ed:85

ok.

2017-11-25: sdb3 - try to start the virtual machines list

tingo@kg-vm4:~$ virsh --connect qemu:///system list --all
 Id    Name                           State
----------------------------------------------------
 -     kvm1                           shut off
 -     kvm2                           shut off

start kvm1

tingo@kg-vm4:~$ virsh --connect qemu:///system start kvm1
error: Failed to start domain kvm1
error: Requested operation is not valid: network 'default' is not active

check networks

tingo@kg-vm4:~$ virsh --connect qemu:///system net-list --all
 Name                 State      Autostart     Persistent
----------------------------------------------------------
 default              inactive   no            yes

start it

tingo@kg-vm4:~$ virsh --connect qemu:///system net-start default
Network default started

try to start kvm1 again

tingo@kg-vm4:~$ virsh --connect qemu:///system start kvm1
Domain kvm1 started

start kvm2

tingo@kg-vm4:~$ virsh --connect qemu:///system start kvm2
Domain kvm2 started

list

tingo@kg-vm4:~$ virsh --connect qemu:///system list
 Id    Name                           State
----------------------------------------------------
 2     kvm1                           running
 3     kvm2                           running

ok.

2017-10-07: sdb3 - enable virtio console in the guest:

root@kvm1:~ # more /boot/loader.conf
virtio_console_load="YES"
root@kvm1:~ # grep ttyV /etc/ttys
ttyV0.0 "/usr/libexec/getty Pc"        vt100    on  secure

after that, virsh console works:

tingo@kg-vm4:~$ virsh --connect qemu:///system console kvm1
Connected to domain kvm1
Escape character is ^]


FreeBSD/amd64 (kvm1) (ttyV0.0)

login: tingo
Password:
Last login: Sat Oct  7 22:05:51 on ttyV0.0
FreeBSD 10.3-RELEASE (GENERIC) #0 r297264: Fri Mar 25 02:10:02 UTC 2016

Welcome to FreeBSD!

Release Notes, Errata: https://www.FreeBSD.org/releases/
Security Advisories:   https://www.FreeBSD.org/security/
FreeBSD Handbook:      https://www.FreeBSD.org/handbook/
FreeBSD FAQ:           https://www.FreeBSD.org/faq/
Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/
FreeBSD Forums:        https://forums.FreeBSD.org/

Documents installed with the system are in the /usr/local/share/doc/freebsd/
directory, or can be installed later with:  pkg install en-freebsd-doc
For other languages, replace "en" with a language code like de or fr.

Show the version of FreeBSD installed:  freebsd-version ; uname -a
Please include that output and any error messages when posting questions.
Introduction to manual pages:  man man
FreeBSD directory layout:      man hier

Edit /etc/motd to change this login announcement.
$

nice.

2017-10-07: sdb3 - virt-install try now

tingo@kg-vm4:~$ virt-install --connect qemu:///system --name kvm1 --memory 512 --cpu host --vcpus 1 --cdrom /home/tingo/dl/bsd/fbsd/10.3/FreeBSD-10.3-RELEASE-amd64-disc1.iso --os-variant=freebsd10.3 --disk size=6 --virt-type=kvm --network=default  --console pty,target_type=virtio
WARNING  Graphics requested but DISPLAY is not set. Not running virt-viewer.
WARNING  No console to launch for the guest, defaulting to --wait -1

Starting install...
Allocating 'kvm1-8.qcow2'                                                                     | 6.0 GB  00:00:00    
Creating domain...                                                                            |    0 B  00:00:00    
Domain installation still in progress. Waiting for installation to complete.
and start virt-viewer
after the install, the machine is restarted
Domain has shutdown. Continuing.
Domain creation completed.
Restarting guest.

and I can login via virt-viewer, or via (local) ssh.

virsh show the machine running

tingo@kg-vm4:~$ virsh --connect qemu:///system list
 Id    Name                           State
----------------------------------------------------
 19    kvm1                           running

and the ip address

tingo@kg-vm4:~$ virsh --connect qemu:///system net-dhcp-leases default
 Expiry Time          MAC address        Protocol  IP address                Hostname        Client ID or DUID
-------------------------------------------------------------------------------------------------------------------
 2017-10-08 00:09:48  52:54:00:73:7c:b6  ipv4      192.168.122.166/24        kvm1            01:52:54:00:73:7c:b6

ssh to it

tingo@kg-vm4:~$ ssh tingo@192.168.122.166
Password for tingo@kvm1:
Last login: Sat Oct  7 21:18:21 2017 from 192.168.122.1
FreeBSD 10.3-RELEASE (GENERIC) #0 r297264: Fri Mar 25 02:10:02 UTC 2016

Welcome to FreeBSD!

Release Notes, Errata: https://www.FreeBSD.org/releases/
Security Advisories:   https://www.FreeBSD.org/security/
FreeBSD Handbook:      https://www.FreeBSD.org/handbook/
FreeBSD FAQ:           https://www.FreeBSD.org/faq/
Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/
FreeBSD Forums:        https://forums.FreeBSD.org/

Documents installed with the system are in the /usr/local/share/doc/freebsd/
directory, or can be installed later with:  pkg install en-freebsd-doc
For other languages, replace "en" with a language code like de or fr.

Show the version of FreeBSD installed:  freebsd-version ; uname -a
Please include that output and any error messages when posting questions.
Introduction to manual pages:  man man
FreeBSD directory layout:      man hier

Edit /etc/motd to change this login announcement.
$

ok.

2017-10-07: sdb3 - virt-install - after trying lots of things, I figured out a way to do it: 1) run ssh -Y vm4 from my machine, this sets up X11 trusted forwarding. 2) in the ssh shell, run virt-viewer: virt-viewer --connect qemu:///system kvm1 the display will then be on my local machine.

2017-10-07: sdb3 - virt-install, retry with default graphics:

tingo@kg-vm4:~$ virt-install --connect qemu:///system --name kvm1 --memory 512 --cpu host --vcpus 1 --cdrom ~/dl/bsd/fbsd/10.3/FreeBSD-10.3-RELEASE-amd64-memstick.img --os-variant=freebsd10.3 --disk size=6 --virt-type=kvm --network=default  --console pty,target_type=virtio
ERROR    Guest name 'kvm1' is already in use.

ok, undefine the domain first

tingo@kg-vm4:~$ virsh --connect qemu:///system undefine kvm1
Domain kvm1 has been undefined

retry virt-install

tingo@kg-vm4:~$ virt-install --connect qemu:///system --name kvm1 --memory 512 --cpu host --vcpus 1 --cdrom ~/dl/bsd/fbsd/10.3/FreeBSD-10.3-RELEASE-amd64-memstick.img --os-variant=freebsd10.3 --disk size=6 --virt-type=kvm --network=default  --console pty,target_type=virtio
WARNING  Graphics requested but DISPLAY is not set. Not running virt-viewer.
WARNING  No console to launch for the guest, defaulting to --wait -1

Starting install...
Allocating 'kvm1-1.qcow2'                                                                     | 6.0 GB  00:00:00    
Creating domain...                                                                            |    0 B  00:00:00    
Domain installation still in progress. Waiting for installation to complete.

ok, can I run virt-viewer from another machine?

2017-10-07: sdb3 - I rebooted the host, then I retry the virt-install:

tingo@kg-vm4:~$ virt-install --connect qemu:///system --name kvm1 --memory 512 --cpu host --vcpus 1 --cdrom ~/dl/bsd/fbsd/10.3/FreeBSD-10.3-RELEASE-amd64-memstick.img --os-variant=freebsd10.3 --disk size=6 --virt-type=kvm --network=default --graphics none --console pty,target_type=virtio
WARNING  CDROM media does not print to the text console by default, so you likely will not see text install output. You might want to use --location. See the man page for examples of using --location with CDROM media

Starting install...
Allocating 'kvm1.qcow2'                                                                       | 6.0 GB  00:00:00    
Creating domain...                                                                            |    0 B  00:00:00    
Connected to domain kvm1
Escape character is ^]

sadly, no console output here. virsh confirms

tingo@kg-vm4:~$ virsh --connect qemu:///system domdisplay kvm1
error: No graphical display found

I should probabely destroy the domain and try again

tingo@kg-vm4:~$ virsh --connect qemu:///system destroy kvm1
Domain kvm1 destroyed
interesting enough, I then get
Domain creation completed.
Restarting guest.
Connected to domain kvm1
Escape character is ^]

on the virt-install terminal

tingo@kg-vm4:~$ virsh --connect qemu:///system list
 Id    Name                           State
----------------------------------------------------
 3     kvm1                           running

yes, it is running. Destroy it again

tingo@kg-vm4:~$ virsh --connect qemu:///system destroy kvm1
Domain kvm1 destroyed

and finally.

2017-10-07: sdb3 - virt-install, try it

tingo@kg-vm4:~$ virt-install --connect qemu:///system --name kvm1 --memory 512 --vcpus 1 --cdrom ~/dl/bsd/fbsd/10.3/FreeBSD-10.3-RELEASE-amd64-memstick.img --os-variant=freebsd10.3 --disk size=6 --virt-type=kvm --network=default --graphics none --console pty,target_type=virtio
WARNING  CDROM media does not print to the text console by default, so you likely will not see text install output. You might want to use --location. See the man page for examples of using --location with CDROM media

Starting install...
Allocating 'kvm1.qcow2'                                                                       | 6.0 GB  00:00:00    
ERROR    unsupported configuration: CPU mode 'custom' for x86_64 kvm domain on x86_64 host is not supported by hypervisor
Removing disk 'kvm1.qcow2'                                                                    |    0 B  00:00:00    
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start kvm1
otherwise, please restart your installation.

ok, that didn't work.

tingo@kg-vm4:~$ virt-install --connect qemu:///system --name kvm1 --memory 512 --cpu host --vcpus 1 --cdrom ~/dl/bsd/fbsd/10.3/FreeBSD-10.3-RELEASE-amd64-memstick.img --os-variant=freebsd10.3 --disk size=6 --virt-type=kvm --network=default --graphics none --console pty,target_type=virtio
WARNING  CDROM media does not print to the text console by default, so you likely will not see text install output. You might want to use --location. See the man page for examples of using --location with CDROM media

Starting install...
Allocating 'kvm1.qcow2'                                                                       | 6.0 GB  00:00:00    
ERROR    Requested operation is not valid: network 'default' is not active
Removing disk 'kvm1.qcow2'                                                                    |    0 B  00:00:00    
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start kvm1
otherwise, please restart your installation.

so now it complains about the network, let me try to start it

tingo@kg-vm4:~$ virsh --connect qemu:///system net-list
 Name                 State      Autostart     Persistent
----------------------------------------------------------

tingo@kg-vm4:~$ virsh --connect qemu:///system net-start default
Network default started

tingo@kg-vm4:~$ virsh --connect qemu:///system net-list
 Name                 State      Autostart     Persistent
----------------------------------------------------------
 default              active     no            yes

better. Retry

tingo@kg-vm4:~$ virt-install --connect qemu:///system --name kvm1 --memory 512 --cpu host --vcpus 1 --cdrom ~/dl/bsd/fbsd/10.3/FreeBSD-10.3-RELEASE-amd64-memstick.img --os-variant=freebsd10.3 --disk size=6 --virt-type=kvm --network=default --graphics none --console pty,target_type=virtio
WARNING  CDROM media does not print to the text console by default, so you likely will not see text install output. You might want to use --location. See the man page for examples of using --location with CDROM media

Starting install...
Allocating 'kvm1.qcow2'                                                                       | 6.0 GB  00:00:00    
ERROR    internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied
failed to initialize KVM: Permission denied
Removing disk 'kvm1.qcow2'                                                                    |    0 B  00:00:00    
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start kvm1
otherwise, please restart your installation.

hmm, not quite. Does a reboot of the host help?

2017-10-07: sdb3 - virt-install, another dry run

tingo@kg-vm4:~$ virt-install --connect qemu:///system --name kvm1 --memory 512 --vcpus 1 --cdrom ~/dl/bsd/fbsd/10.3/FreeBSD-10.3-RELEASE-amd64-memstick.img --os-variant=freebsd10.3 --disk size=6 --virt-type=kvm --network=default --console pty,target_type=virtio --dry-run
Dry run completed successfully

ok, it got --console, but it still sets up graphics as spice. Fix that:

tingo@kg-vm4:~$ virt-install --connect qemu:///system --name kvm1 --memory 512 --vcpus 1 --cdrom ~/dl/bsd/fbsd/10.3/FreeBSD-10.3-RELEASE-amd64-memstick.img --os-variant=freebsd10.3 --disk size=6 --virt-type=kvm --network=default --graphics none --console pty,target_type=virtio --dry-run
WARNING  CDROM media does not print to the text console by default, so you likely will not see text install output. You might want to use --location. See the man page for examples of using --location with CDROM media
Dry run completed successfully

hmm, check the log, it still talks about the mouse, but otherwise looks ok,

2017-10-07: sdb3 - libvirt - set up a more useful storage for images

root@kg-vm4:/var/lib/libvirt# pwd
/var/lib/libvirt
root@kg-vm4:/var/lib/libvirt# ls -l
total 16
drwx--x--x 2 root         root         4096 Mar 17  2017 boot
lrwxrwxrwx 1 root         root           18 Oct  7 19:47 images -> /zv/libvirt/images
drwx--x--x 2 root         root         4096 Mar 17  2017 images_old
drwxr-x--- 7 libvirt-qemu libvirt-qemu 4096 Oct  6 03:01 qemu
drwx------ 2 root         root         4096 Mar 17  2017 sanlock

ok.

2017-10-07: sdb3 - try to do a dry run with virt-install, to see what happens.

tingo@kg-vm4:~$ virt-install --connect qemu:///system --name kvm1 --memory 512 --vcpus 1 --cdrom ~/dl/bsd/fbsd/10.3/FreeBSD-10.3-RELEASE-amd64-memstick.img --os-variant=freebsd10.3 --disk size=6 --virt-type=kvm --network=default --dry-run
Dry run completed successfully

the log file is in

tingo@kg-vm4:~$ ll .cache/virt-manager/v*
-rw-r--r-- 1 tingo tingo 29992 Oct  7 19:29 .cache/virt-manager/virt-install.log

from that I can get some info

default place for storage is in /var/lib/libvirt/images

[Sat, 07 Oct 2017 19:29:15 virt-install 6410] DEBUG (storage:220) Attempting to build default pool with target '/var/lib/libvirt/images'

default type is qcow2, default disk name is machine name

[Sat, 07 Oct 2017 19:29:16 virt-install 6410] DEBUG (devicedisk:401) Creating volume 'kvm1.qcow2' on pool 'default'

default graphics is spice

[Sat, 07 Oct 2017 19:29:16 virt-install 6410] DEBUG (guest:1066) Using default_graphics=spice
[Sat, 07 Oct 2017 19:29:16 virt-install 6410] DEBUG (guest:1085) Local connection, disabling spice image compression.

ok.

2017-10-06: sdb3 - osinfo-query - check out FreeBSD

tingo@kg-vm4:~$  osinfo-query os family=freebsd
 Short ID             | Name                                               | Version  | ID                                     
----------------------+----------------------------------------------------+----------+-----------------------------------------
 freebsd1.0           | FreeBSD 1.0                                        | 1.0      | http://freebsd.org/freebsd/1.0         
 freebsd10.0          | FreeBSD 10.0                                       | 10.0     | http://freebsd.org/freebsd/10.0        
 freebsd10.1          | FreeBSD 10.1                                       | 10.1     | http://freebsd.org/freebsd/10.1        
 freebsd10.2          | FreeBSD 10.2                                       | 10.2     | http://freebsd.org/freebsd/10.2        
 freebsd10.3          | FreeBSD 10.3                                       | 10.3     | http://freebsd.org/freebsd/10.3        
 freebsd11.0          | FreeBSD 11.0                                       | 11.0     | http://freebsd.org/freebsd/11.0        
 freebsd2.0           | FreeBSD 2.0                                        | 2.0      | http://freebsd.org/freebsd/2.0         
 freebsd2.0.5         | FreeBSD 2.0.5                                      | 2.0.5    | http://freebsd.org/freebsd/2.0.5       
 freebsd2.2.8         | FreeBSD 2.2.8                                      | 2.2.8    | http://freebsd.org/freebsd/2.2.8       
 freebsd2.2.9         | FreeBSD 2.2.9                                      | 2.2.9    | http://freebsd.org/freebsd/2.2.9       
 freebsd3.0           | FreeBSD 3.0                                        | 3.0      | http://freebsd.org/freebsd/3.0         
 freebsd3.2           | FreeBSD 3.2                                        | 3.2      | http://freebsd.org/freebsd/3.2         
 freebsd4.0           | FreeBSD 4.0                                        | 4.0      | http://freebsd.org/freebsd/4.0         
 freebsd4.1           | FreeBSD 4.1                                        | 4.1      | http://freebsd.org/freebsd/4.1         
 freebsd4.10          | FreeBSD 4.10                                       | 4.10     | http://freebsd.org/freebsd/4.10        
 freebsd4.11          | FreeBSD 4.11                                       | 4.11     | http://freebsd.org/freebsd/4.11        
 freebsd4.2           | FreeBSD 4.2                                        | 4.2      | http://freebsd.org/freebsd/4.2         
 freebsd4.3           | FreeBSD 4.3                                        | 4.3      | http://freebsd.org/freebsd/4.3         
 freebsd4.4           | FreeBSD 4.4                                        | 4.4      | http://freebsd.org/freebsd/4.4         
 freebsd4.5           | FreeBSD 4.5                                        | 4.5      | http://freebsd.org/freebsd/4.5         
 freebsd4.6           | FreeBSD 4.6                                        | 4.6      | http://freebsd.org/freebsd/4.6         
 freebsd4.7           | FreeBSD 4.7                                        | 4.7      | http://freebsd.org/freebsd/4.7         
 freebsd4.8           | FreeBSD 4.8                                        | 4.8      | http://freebsd.org/freebsd/4.8         
 freebsd4.9           | FreeBSD 4.9                                        | 4.9      | http://freebsd.org/freebsd/4.9         
 freebsd5.0           | FreeBSD 5.0                                        | 5.0      | http://freebsd.org/freebsd/5.0         
 freebsd5.1           | FreeBSD 5.1                                        | 5.1      | http://freebsd.org/freebsd/5.1         
 freebsd5.2           | FreeBSD 5.2                                        | 5.2      | http://freebsd.org/freebsd/5.2         
 freebsd5.2.1         | FreeBSD 5.2.1                                      | 5.2.1    | http://freebsd.org/freebsd/5.2.1       
 freebsd5.3           | FreeBSD 5.3                                        | 5.3      | http://freebsd.org/freebsd/5.3         
 freebsd5.4           | FreeBSD 5.4                                        | 5.4      | http://freebsd.org/freebsd/5.4         
 freebsd5.5           | FreeBSD 5.5                                        | 5.5      | http://freebsd.org/freebsd/5.5         
 freebsd6.0           | FreeBSD 6.0                                        | 6.0      | http://freebsd.org/freebsd/6.0         
 freebsd6.1           | FreeBSD 6.1                                        | 6.1      | http://freebsd.org/freebsd/6.1         
 freebsd6.2           | FreeBSD 6.2                                        | 6.2      | http://freebsd.org/freebsd/6.2         
 freebsd6.3           | FreeBSD 6.3                                        | 6.3      | http://freebsd.org/freebsd/6.3         
 freebsd6.4           | FreeBSD 6.4                                        | 6.4      | http://freebsd.org/freebsd/6.4         
 freebsd7.0           | FreeBSD 7.0                                        | 7.0      | http://freebsd.org/freebsd/7.0         
 freebsd7.1           | FreeBSD 7.1                                        | 7.1      | http://freebsd.org/freebsd/7.1         
 freebsd7.2           | FreeBSD 7.2                                        | 7.2      | http://freebsd.org/freebsd/7.2         
 freebsd7.3           | FreeBSD 7.3                                        | 7.3      | http://freebsd.org/freebsd/7.3         
 freebsd7.4           | FreeBSD 7.4                                        | 7.4      | http://freebsd.org/freebsd/7.4         
 freebsd8.0           | FreeBSD 8.0                                        | 8.0      | http://freebsd.org/freebsd/8.0         
 freebsd8.1           | FreeBSD 8.1                                        | 8.1      | http://freebsd.org/freebsd/8.1         
 freebsd8.2           | FreeBSD 8.2                                        | 8.2      | http://freebsd.org/freebsd/8.2         
 freebsd8.3           | FreeBSD 8.3                                        | 8.3      | http://freebsd.org/freebsd/8.3         
 freebsd8.4           | FreeBSD 8.4                                        | 8.4      | http://freebsd.org/freebsd/8.4         
 freebsd9.0           | FreeBSD 9.0                                        | 9.0      | http://freebsd.org/freebsd/9.0         
 freebsd9.1           | FreeBSD 9.1                                        | 9.1      | http://freebsd.org/freebsd/9.1         
 freebsd9.2           | FreeBSD 9.2                                        | 9.2      | http://freebsd.org/freebsd/9.2         
 freebsd9.3           | FreeBSD 9.3                                        | 9.3      | http://freebsd.org/freebsd/9.3         

ok.

2017-10-06: sdb3 - apt - install libosinfo-bin

tingo@kg-vm4:~$ sudo apt install libosinfo-bin
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed:
  libosinfo-bin
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 105 kB of archives.
After this operation, 160 kB of additional disk space will be used.
Get:1 http://ftp.no.debian.org/debian stretch/main amd64 libosinfo-bin amd64 1.0.0-2 [105 kB]
Fetched 105 kB in 0s (335 kB/s)      
Selecting previously unselected package libosinfo-bin.
(Reading database ... 105657 files and directories currently installed.)
Preparing to unpack .../libosinfo-bin_1.0.0-2_amd64.deb ...
Unpacking libosinfo-bin (1.0.0-2) ...
Setting up libosinfo-bin (1.0.0-2) ...
Processing triggers for man-db (2.7.6.1-2) ...

see what files it contains

tingo@kg-vm4:~$ dpkg-query -L libosinfo-bin
/.
/usr
/usr/bin
/usr/bin/osinfo-detect
/usr/bin/osinfo-install-script
/usr/bin/osinfo-query
/usr/share
/usr/share/doc
/usr/share/doc/libosinfo-bin
/usr/share/doc/libosinfo-bin/changelog.Debian.gz
/usr/share/doc/libosinfo-bin/changelog.gz
/usr/share/doc/libosinfo-bin/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/osinfo-detect.1.gz
/usr/share/man/man1/osinfo-install-script.1.gz
/usr/share/man/man1/osinfo-query.1.gz

and there we got osinfo-query, nice.

2017-10-06: sdb3 - KVM - info

tingo@kg-vm4:~$ virsh -c qemu:///system version --daemon
Compiled against library: libvirt 3.0.0
Using library: libvirt 3.0.0
Using API: QEMU 3.0.0
Running hypervisor: QEMU 2.8.1
Running against daemon: 3.0.0

network info

tingo@kg-vm4:~$ virsh -c qemu:///system net-info default
Name:           default
UUID:           652071fe-6af9-45a1-86ef-630f0e57c912
Active:         no
Persistent:     yes
Autostart:      no
Bridge:         virbr0

ok.

2017-10-06: sdb3 - KVM - add my user to kvm groups

tingo@kg-vm4:~$ sudo adduser tingo libvirt
Adding user `tingo' to group `libvirt' ...
Adding user tingo to group libvirt
Done.
tingo@kg-vm4:~$ sudo adduser tingo libvirt-qemu
Adding user `tingo' to group `libvirt-qemu' ...
Adding user tingo to group libvirt-qemu
Done.

ok

2017-10-06: sdb3 - apt - install KVM "nice to have" packages:

tingo@kg-vm4:~$ sudo apt install virtinst virt-top
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  freepats gir1.2-libosinfo-1.0 gstreamer1.0-libav gstreamer1.0-plugins-bad libatomic1 libavfilter6 libbs2b0
  libde265-0 libebur128-1 libflite1 libfluidsynth1 libgovirt-common libgovirt2 libgstreamer-plugins-bad1.0-0
  libgtk-vnc-2.0-0 libgvnc-1.0-0 liblilv-0-0 libmjpegutils-2.1-0 libmms0 libmpeg2encpp-2.1-0 libmplex2-2.1-0
  libofa0 libopenal-data libopenal1 libopencv-calib3d2.4v5 libopencv-core2.4v5 libopencv-features2d2.4v5
  libopencv-flann2.4v5 libopencv-highgui2.4-deb0 libopencv-imgproc2.4v5 libopencv-objdetect2.4v5
  libopencv-video2.4v5 libosinfo-1.0-0 libpgm-5.2-0 libphodav-2.0-0 libphodav-2.0-common libpostproc54
  librubberband2 libsbc1 libserd-0-0 libsodium18 libsord-0-0 libsoundtouch1 libspandsp2 libspice-client-glib-2.0-8
  libspice-client-gtk-3.0-5 libsratom-0-0 libsrtp0 libtbb2 libusbredirhost1 libvirt-glib-1.0-0 libvo-aacenc0
  libvo-amrwbenc0 libwildmidi-config libwildmidi2 libzbar0 libzmq5 osinfo-db python-cffi-backend
  python-cryptography python-enum34 python-idna python-ipaddr python-ipaddress python-libvirt python-openssl
  python-pyasn1 python-requests python-setuptools python-urllib3 spice-client-glib-usb-acl-helper virt-viewer
Suggested packages:
  frei0r-plugins alsa-base libportaudio2 libosinfo-l10n serdi sordi srtp-utils python-cryptography-doc
  python-cryptography-vectors python-enum34-doc python-openssl-doc python-openssl-dbg doc-base python-socks
  python-setuptools-doc python-ntlm
The following NEW packages will be installed:
  freepats gir1.2-libosinfo-1.0 gstreamer1.0-libav gstreamer1.0-plugins-bad libatomic1 libavfilter6 libbs2b0
  libde265-0 libebur128-1 libflite1 libfluidsynth1 libgovirt-common libgovirt2 libgstreamer-plugins-bad1.0-0
  libgtk-vnc-2.0-0 libgvnc-1.0-0 liblilv-0-0 libmjpegutils-2.1-0 libmms0 libmpeg2encpp-2.1-0 libmplex2-2.1-0
  libofa0 libopenal-data libopenal1 libopencv-calib3d2.4v5 libopencv-core2.4v5 libopencv-features2d2.4v5
  libopencv-flann2.4v5 libopencv-highgui2.4-deb0 libopencv-imgproc2.4v5 libopencv-objdetect2.4v5
  libopencv-video2.4v5 libosinfo-1.0-0 libpgm-5.2-0 libphodav-2.0-0 libphodav-2.0-common libpostproc54
  librubberband2 libsbc1 libserd-0-0 libsodium18 libsord-0-0 libsoundtouch1 libspandsp2 libspice-client-glib-2.0-8
  libspice-client-gtk-3.0-5 libsratom-0-0 libsrtp0 libtbb2 libusbredirhost1 libvirt-glib-1.0-0 libvo-aacenc0
  libvo-amrwbenc0 libwildmidi-config libwildmidi2 libzbar0 libzmq5 osinfo-db python-cffi-backend
  python-cryptography python-enum34 python-idna python-ipaddr python-ipaddress python-libvirt python-openssl
  python-pyasn1 python-requests python-setuptools python-urllib3 spice-client-glib-usb-acl-helper virt-top
  virt-viewer virtinst
0 upgraded, 74 newly installed, 0 to remove and 0 not upgraded.
Need to get 43.2 MB/56.1 MB of archives.
After this operation, 104 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
[...]
Setting up virt-viewer (5.0-1) ...
update-alternatives: using /usr/bin/spice-xpi-client-remote-viewer to provide /usr/bin/spice-xpi-client (spice-xpi-client) in auto mode
Processing triggers for libc-bin (2.24-11+deb9u1) ...

ok.

2017-10-06: sdb3 - apt - install packages required for KVM:

tingo@kg-vm4:~$ sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  augeas-lenses bridge-utils ebtables ipxe-qemu libaio1 libaugeas0 libboost-random1.62.0 libboost-thread1.62.0
  libcacard0 libfdt1 libnetcf1 libnl-route-3-200 librados2 librbd1 libspice-server1 libusbredirparser1 libvdeplug2
  libvirt-daemon libvirt0 libxen-4.8 libxenstore3.0 libxml2-utils netcat-openbsd qemu-system-common qemu-system-x86
  qemu-utils seabios
Suggested packages:
  augeas-doc augeas-tools numad radvd auditd systemtap apparmor zfsutils pm-utils samba vde2 qemu-block-extra
  sgabios ovmf debootstrap
The following NEW packages will be installed:
  augeas-lenses bridge-utils ebtables ipxe-qemu libaio1 libaugeas0 libboost-random1.62.0 libboost-thread1.62.0
  libcacard0 libfdt1 libnetcf1 libnl-route-3-200 librados2 librbd1 libspice-server1 libusbredirparser1 libvdeplug2
  libvirt-clients libvirt-daemon libvirt-daemon-system libvirt0 libxen-4.8 libxenstore3.0 libxml2-utils
  netcat-openbsd qemu-kvm qemu-system-common qemu-system-x86 qemu-utils seabios
0 upgraded, 30 newly installed, 0 to remove and 0 not upgraded.
Need to get 22.1 MB/22.3 MB of archives.
After this operation, 74.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
[...]
Created symlink /etc/systemd/system/multi-user.target.wants/ebtables.service → /lib/systemd/system/ebtables.service.
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
[...]
Adding user libvirt-qemu to group libvirt-qemu
Created symlink /etc/systemd/system/multi-user.target.wants/libvirt-guests.service → /lib/systemd/system/libvirt-guests.service.
Created symlink /etc/systemd/system/multi-user.target.wants/libvirtd.service → /lib/systemd/system/libvirtd.service.
Created symlink /etc/systemd/system/sockets.target.wants/virtlockd.socket → /lib/systemd/system/virtlockd.socket.
Created symlink /etc/systemd/system/sockets.target.wants/virtlogd.socket → /lib/systemd/system/virtlogd.socket.
virtlockd.service is a disabled or a static unit, not starting it.
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Processing triggers for systemd (232-25+deb9u1) ...

ok.

2017-10-06: sdb3 - after a reboot, a new kernel is in

tingo@kg-vm4:~$ uname -a
Linux kg-vm4 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u5 (2017-09-19) x86_64 GNU/Linux

ok.

2017-10-06: sdb3 - apt - update, then upgrade

tingo@kg-vm4:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  bind9-host dns-root-data dnsmasq-base dnsutils file firefox-esr
  ghostscript gir1.2-gdkpixbuf-2.0 gir1.2-soup-2.4 git git-man host
  iceweasel libavcodec57 libavformat57 libavresample3 libavutil55
  libbind9-140 libbluetooth3 libdns-export162 libdns162 libgcrypt20
  libgd3 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgs9
  libgs9-common libidn2-0 libisc-export160 libisc160 libisccc140
  libisccfg140 liblwres141 libmagic-mgc libmagic1 libperl5.24 libpq5
  libraw15 libservlet3.1-java libsmbclient libsoup-gnome2.4-1
  libsoup2.4-1 libswresample2 libswscale4 libwbclient0 libxml2
  linux-image-4.9.0-0.bpo.3-amd64 linux-image-4.9.0-3-amd64
  openjdk-8-jre openjdk-8-jre-headless perl perl-base
  perl-modules-5.24 python-libxml2 samba-libs
55 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 192 MB of archives.
After this operation, 248 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
[...]
  WARNING: Device /dev/sdb3 has size of 80078848 sectors which is smaller than corresponding PV size of 350099456 sectors. Was device resized?
  One or more devices used as PVs in VG kg-vm4-debian-root-vg have changed sizes.
[...]
Setting up host (1:9.10.3.dfsg.P4-12.3+deb9u3) ...
Setting up dnsutils (1:9.10.3.dfsg.P4-12.3+deb9u3) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...

ok.

2017-07-31: sdb3 - apt - install git

tingo@kg-vm4:~$ sudo apt install git
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  git-man liberror-perl rsync
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs
  git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man liberror-perl rsync
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,002 kB of archives.
After this operation, 31.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
[...]
Processing triggers for systemd (232-25+deb9u1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up git (1:2.11.0-3) ...

ok.

2017-07-22: sdb3 - after a reboot, Debian 9.1 is in:

tingo@kg-vm4:~$ cat /etc/debian_version 
9.1
tingo@kg-vm4:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.1 (stretch)
Release: 9.1
Codename: stretch

and a new kernel

tingo@kg-vm4:~$ uname -a
Linux kg-vm4 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) x86_64 GNU/Linux

ok.

2017-07-22: sdb3 - apt upgrade

tingo@kg-vm4:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  adwaita-icon-theme apt apt-utils base-files bind9-host dnsutils evince evince-common evince-gtk host imagemagick
  imagemagick-6-common imagemagick-6.q16 libapt-inst2.0 libapt-pkg5.0 libbind9-140 libdns-export162 libdns162 libevdocument3-4
  libevview3-3 libexpat1 libgcrypt20 libgnutls-openssl27 libgnutls30 libisc-export160 libisc160 libisccc140 libisccfg140
  liblwres141 libmagickcore-6.q16-3 libmagickcore-6.q16-3-extra libmagickwand-6.q16-3 libopenmpt-modplug1 libopenmpt0
  libpam-systemd libperl5.24 libpulse-mainloop-glib0 libpulse0 libpulsedsp libservlet3.1-java libsmbclient libssl1.0.0
  libsystemd0 libtiff5 libudev1 libwbclient0 linux-image-4.9.0-0.bpo.3-amd64 linux-image-4.9.0-3-amd64 linux-image-amd64
  openssh-client openssh-server openssh-sftp-server os-prober perl perl-base perl-modules-5.24 pulseaudio pulseaudio-utils
  samba-libs systemd systemd-sysv udev xserver-common xserver-xorg-core xserver-xorg-legacy
65 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 136 MB of archives.
After this operation, 2,973 kB disk space will be freed.
Do you want to continue? [Y/n] y
[...]
Setting up openssh-client (1:7.4p1-10+deb9u1) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Setting up libopenmpt-modplug1:amd64 (0.2.7386~beta20.3-3+deb9u2) ...
Setting up xserver-xorg-legacy (2:1.19.2-1+deb9u1) ...
setting xserver-xorg-legacy/xwrapper/allowed_users from configuration file
Setting up adwaita-icon-theme (3.22.0-1+deb9u1) ...
Setting up libdns162:amd64 (1:9.10.3.dfsg.P4-12.3+deb9u1) ...
Setting up samba-libs:amd64 (2:4.5.8+dfsg-2+deb9u1+b1) ...
Setting up libpulse-mainloop-glib0:amd64 (10.0-1+deb9u1) ...
Setting up libmagickcore-6.q16-3:amd64 (8:6.9.7.4+dfsg-11+deb9u1) ...
Setting up libpulsedsp:amd64 (10.0-1+deb9u1) ...
Setting up pulseaudio-utils (10.0-1+deb9u1) ...
Setting up systemd-sysv (232-25+deb9u1) ...
Setting up libisccfg140:amd64 (1:9.10.3.dfsg.P4-12.3+deb9u1) ...
Setting up libevdocument3-4:amd64 (3.22.1-3+deb9u1) ...
Setting up xserver-xorg-core (2:1.19.2-1+deb9u1) ...
Setting up libsmbclient:amd64 (2:4.5.8+dfsg-2+deb9u1+b1) ...
Setting up linux-image-amd64 (4.9+80+deb9u1) ...
Setting up openssh-sftp-server (1:7.4p1-10+deb9u1) ...
Setting up libevview3-3:amd64 (3.22.1-3+deb9u1) ...
Setting up libmagickwand-6.q16-3:amd64 (8:6.9.7.4+dfsg-11+deb9u1) ...
Setting up libbind9-140:amd64 (1:9.10.3.dfsg.P4-12.3+deb9u1) ...
Setting up bind9-host (1:9.10.3.dfsg.P4-12.3+deb9u1) ...
Setting up evince (3.22.1-3+deb9u1) ...
Setting up pulseaudio (10.0-1+deb9u1) ...
Setting up libpam-systemd:amd64 (232-25+deb9u1) ...
Setting up host (1:9.10.3.dfsg.P4-12.3+deb9u1) ...
Setting up imagemagick-6.q16 (8:6.9.7.4+dfsg-11+deb9u1) ...
Setting up dnsutils (1:9.10.3.dfsg.P4-12.3+deb9u1) ...
Setting up evince-gtk (3.22.1-3+deb9u1) ...
Setting up openssh-server (1:7.4p1-10+deb9u1) ...
Setting up libmagickcore-6.q16-3-extra:amd64 (8:6.9.7.4+dfsg-11+deb9u1) ...
Setting up imagemagick (8:6.9.7.4+dfsg-11+deb9u1) ...
Processing triggers for initramfs-tools (0.130) ...
update-initramfs: Generating /boot/initrd.img-4.9.0-3-amd64
Processing triggers for libc-bin (2.24-11+deb9u1) ...

ok.

2017-06-21: sdb3 - afterwards

tingo@kg-vm4:~$ sudo aptitude search '~o'
i   gcc-4.8-base                                                - GCC, the GNU Compiler Collection (base package)                     
i   gcc-4.9-base                                                - GCC, the GNU Compiler Collection (base package)                     
i   libapt-inst1.5                                              - deb package format runtime library                                  
i   libapt-pkg4.12                                              - package management runtime library                                  
i   libboost-iostreams1.55.0                                    - Boost.Iostreams Library                                             
i   libdns-export100                                            - Exported DNS Shared Library                                         
i   libgnutls-deb0-28                                           - GNU TLS library - main runtime library                              
i   libhogweed2                                                 - low level cryptographic library (public-key cryptos)                
i   libicu52                                                    - International Components for Unicode                                
i   libirs-export91                                             - Exported IRS Shared Library                                         
i   libisc-export95                                             - Exported ISC Shared Library                                         
i   libisccfg-export90                                          - Exported ISC CFG Shared Library                                     
i   libjson-c2                                                  - JSON manipulation library - shared library                          
i   liblognorm1                                                 - Log normalizing library                                             
i   libnettle4                                                  - low level cryptographic library (symmetric and one-way cryptos)     
i   libprocps3                                                  - library for accessing process information from /proc                
i   libpsl0                                                     - Library for Public Suffix List (shared libraries)                   
i   libreadline6                                                - GNU readline and history libraries, run-time libraries              
i   libservlet2.5-java                                          - Servlet 2.5 and JSP 2.1 Java API classes                            
i A libtidy-0.99-0                                              - HTML syntax checker and reformatter - library                       
i A libtxc-dxtn-s2tc0                                           - Texture compression library for Mesa                                
i   libxtables10                                                - netfilter xtables library                                           
i   python-support                                              - automated rebuilding support for Python modules                     

ok

2017-06-21: sdb3 - run 'sudo apt autoremove' to get rid of old packages

tingo@kg-vm4:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages will be REMOVED:
  alsa-base cpp-4.9 docutils-common docutils-doc espeak-data firebird2.5-common firebird2.5-common-doc firebird2.5-server-common
  firebird3.0-common firebird3.0-common-doc gdebi-core gstreamer0.10-alsa gstreamer0.10-plugins-base libalgorithm-c3-perl libamd2.3.1
  libarchive-extract-perl libasprintf0c2 libavcodec56 libavformat56 libavresample2 libavutil54 libb-hooks-endofscope-perl
  libbasicusageenvironment0 libbind9-90 libbonoboui2-0 libboost-system1.55.0 libcamd2.3.1 libccolamd2.8.0 libcholmod2.1.2
  libchromaprint0 libclass-c3-perl libclass-c3-xs-perl libclass-method-modifiers-perl libclass-xsaccessor-perl libcloog-isl4
  libcolamd2.8.0 libcpan-changes-perl libcpan-meta-perl libdata-optlist-perl libdata-perl-perl libdata-section-perl libdbus-1-dev
  libdevel-caller-perl libdevel-globaldestruction-perl libdevel-lexalias-perl libdiscid0 libdns100 libdvbpsi9 libefivar0
  libegl1-mesa-drivers libelfg0 libenca0 libept1.4.12 libespeak1 libexporter-tiny-perl libfbclient2 libfbembed2.5 libfile-slurp-perl
  libflite1 libfreerdp-cache1.1 libfreerdp-client1.1 libfreerdp-codec1.1 libfreerdp-common1.1.0 libfreerdp-core1.1
  libfreerdp-crypto1.1 libfreerdp-gdi1.1 libfreerdp-locale1.1 libfreerdp-primitives1.1 libfreerdp-rail1.1 libfreerdp-utils1.1
  libgegl-0.2-0 libgetopt-long-descriptive-perl libgif4 libglew1.10 libgnomeui-0 libgnomeui-common libgphoto2-port10 libgroupsock1
  libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 libhunspell-1.3-0 libical1a libilmbase6 libimobiledevice4 libimport-into-perl
  libintl-perl libintl-xs-perl libio-stringy-perl libisc95 libisccc90 libisccfg90 libisl10 libjasper1 libjim0.75 libjpeg-turbo-progs
  libjsoncpp0 libkeybinder0 liblircclient0 liblist-moreutils-perl liblivemedia23 libllvm3.5 liblog-message-perl
  liblog-message-simple-perl liblouis2 liblwres90 libmodule-build-perl libmodule-implementation-perl libmodule-load-conditional-perl
  libmodule-pluggable-perl libmodule-runtime-perl libmodule-signature-perl libmoo-perl libmoox-handlesvia-perl libmro-compat-perl
  libnamespace-autoclean-perl libnamespace-clean-perl libnl-route-3-200 libnm-glib-vpn1 libnm-glib4 libnm-gtk-common libnm-gtk0
  libnm-util2 libntdb1 libopenexr6 libopenjpeg5 libopenraw1 libopenvg1-mesa liborcus-0.8-0 libpackage-constants-perl
  libpackage-stash-perl libpackage-stash-xs-perl libpadwalker-perl libpango1.0-0 libparams-classify-perl libparams-util-perl
  libparams-validate-perl libpath-tiny-perl libperl4-corelibs-perl libplist2 libpng12-0 libpod-latex-perl libpod-markdown-perl
  libpod-readme-perl libpoppler46 libportaudio2 libpostproc52 libpth20 libqmi-glib1 libqpdf13 libqt4-dbus libqt4-xml libqtcore4
  libqtdbus4 libqtgui4 libregexp-common-perl libreoffice-gtk libreoffice-sdbc-firebird librole-tiny-perl libschroedinger-1.0-0
  libsctp1 libsoftware-license-perl libstrictures-perl libsub-exporter-perl libsub-exporter-progressive-perl libsub-identify-perl
  libsub-install-perl libswscale3 libterm-ui-perl libtext-soundex-perl libtext-template-perl libtommath1 libtry-tiny-perl
  libturbojpeg0 libturbojpeg1 libtype-tiny-perl libtype-tiny-xs-perl libumfpack5.6.2 libunicode-utf8-perl libusageenvironment1
  libusbmuxd2 libvariable-magic-perl libvncclient0 libvpx1 libvte-2.90-9 libvte-2.90-common libvte-common libvte9 libwebp5
  libwebpdemux1 libwebpmux1 libwebrtc-audio-processing-0 libwinpr-crt0.1 libwinpr-crypto0.1 libwinpr-dsparse0.1
  libwinpr-environment0.1 libwinpr-file0.1 libwinpr-handle0.1 libwinpr-heap0.1 libwinpr-input0.1 libwinpr-interlocked0.1
  libwinpr-library0.1 libwinpr-path0.1 libwinpr-pool0.1 libwinpr-registry0.1 libwinpr-rpc0.1 libwinpr-sspi0.1 libwinpr-synch0.1
  libwinpr-sysinfo0.1 libwinpr-thread0.1 libwinpr-utils0.1 libwps-0.3-3 libx264-142 libxapian22 libxcb-composite0 libxfce4util6
  libxfcegui4-4 linux-image-3.16.0-4-amd64 lksctp-tools pkg-config python-cddb python-cups python-dbus-dev python-defusedxml
  python-docutils python-imaging python-musicbrainz2 python-pexpect python-pil python-ptyprocess python-pygments python-renderpm
  python-reportlab python-reportlab-accel python-roman python-smbc python-soappy python-wstools qdbus qt-at-spi qtchooser
  qtcore4-l10n vlc-nox xfce-keyboard-shortcuts xfce4-artwork xfce4-quicklauncher-plugin xfce4-volumed xscreensaver xscreensaver-data
0 upgraded, 0 newly installed, 248 to remove and 0 not upgraded.
After this operation, 401 MB disk space will be freed.
Do you want to continue? [Y/n] y
[...]
Processing triggers for mime-support (3.60) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for sgml-base (1.29) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for shared-mime-info (1.8-1) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...

ok.

2017-06-21: sdb3 - after a reboot, Debian 9 "stretch" is in

tingo@kg-vm4:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 9.0 (stretch)
Release:    9.0
Codename:    stretch
tingo@kg-vm4:~$ uname -a
Linux kg-vm4 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u1 (2017-06-18) x86_64 GNU/Linux

good.

2017-06-21: sdb3 - upgrade to 'stretch' by doing 'sudo apt-get upgrade' and 'sudo apt-get dist-upgrade'.

2017-06-21: sdb3 - change repository from jessie to stretch. backup

tingo@kg-vm4:~$ sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

use sed to do the work

tingo@kg-vm4:~$ sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list

manually verified that the file looks ok afterwards. then do 'sudo apt-get update'.

tingo@kg-vm4:~$ apt list --upgradable | wc -l

WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.

1161

a lot of packages to upgrade, indeed.

2017-06-21: sdb3 - update via apt-get update, then upgrade

tingo@kg-vm4:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  firefox-esr
The following packages will be upgraded:
  debian-archive-keyring exim4 exim4-base exim4-config exim4-daemon-light iceweasel libc-bin libc6 libffi6 libgcrypt20
  libgnutls-deb0-28 libgnutls-openssl27 libmwaw-0.3-3 libperl5.20 linux-image-3.16.0-4-amd64 locales multiarch-support perl perl-base
  perl-modules
20 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 55.8 MB of archives.
After this operation, 108 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
[...]
Processing triggers for libc-bin (2.19-18+deb8u10) ...

dist-upgrade

tingo@kg-vm4:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Calculating upgrade... The following package was automatically installed and is no longer required:
  gstreamer1.0-libav
Use 'apt-get autoremove' to remove it.
Done
The following NEW packages will be installed:
  libjsoncpp0
The following packages will be upgraded:
  firefox-esr
1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 46.8 MB of archives.
After this operation, 6,741 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
[...]
Setting up firefox-esr (52.2.0esr-1~deb8u1) ...
Installing new version of config file /etc/firefox-esr/firefox-esr.js ...
Processing triggers for libc-bin (2.19-18+deb8u10) ...

run autoremove

tingo@kg-vm4:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages will be REMOVED:
  gstreamer1.0-libav
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 362 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 89994 files and directories currently installed.)
Removing gstreamer1.0-libav:amd64 (1.4.4-2) ...

ok. Verify no issues

tingo@kg-vm4:~$ sudo dpkg -C
are there any held packages?
tingo@kg-vm4:~$ sudo apt-mark showhold

none - good to go.

2017-06-21: sdb3 - set up /etc/dhcp/dhclient.conf for a static ip address via dhcp:

tingo@kg-vm4:~$ grep dhcp-client-identifier /etc/dhcp/dhclient.conf
#send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
send dhcp-client-identifier "kg-vm4.kg4.no";

now I just need to fix the setup of my dhcp server and my dns server.

2017-06-04: sdb3 - creating sdc2 as an ext4 filesystem for Linux storage.

tingo@kg-vm4:~$ sudo mkfs.ext4 /dev/sdc2
mke2fs 1.42.12 (29-Aug-2014)
Creating filesystem with 708319180 4k blocks and 177086464 inodes
Filesystem UUID: 68e453de-b559-457e-b99c-903cf3cb5876
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
    102400000, 214990848, 512000000, 550731776, 644972544

Allocating group tables: done                           
Writing inode tables: done                           
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done      

next, mountpoint

tingo@kg-vm4:~$ sudo mkdir /zv

mount

tingo@kg-vm4:~$ sudo mount /dev/sdc2 /zv

change ownership and permissions

tingo@kg-vm4:~$ sudo chown :bsdusers /zv
tingo@kg-vm4:~$ sudo chmod g+w /zv

get UUID

tingo@kg-vm4:~$ sudo blkid /dev/sdc2
/dev/sdc2: UUID="68e453de-b559-457e-b99c-903cf3cb5876" TYPE="ext4" PARTUUID="c7001bf2-4933-11e7-863d-bc5ff4fb29ea"

from /etc/fstab

# the /dev/sdc2 is an ext4 filesystem
UUID=68e453de-b559-457e-b99c-903cf3cb5876 /zv    ext4    defaults    0    0

ok.

2017-06-04: sdb3 - first I'm creating an ext2 filesystem on sdc1, for sharing data with FreeBSD.

tingo@kg-vm4:~$ sudo mkfs.ext2 /dev/sdc1
mke2fs 1.42.12 (29-Aug-2014)
Creating filesystem with 268435456 4k blocks and 67108864 inodes
Filesystem UUID: 24813b15-c365-488d-bd68-2d025e4bd9ea
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
    102400000, 214990848

Allocating group tables: done                           
Writing inode tables: done                           
Writing superblocks and filesystem accounting information: done    

quickly done. Create a mount point for it

tingo@kg-vm4:~$ sudo mkdir /zs

set ownership (group) and permissions

tingo@kg-vm4:~$ sudo chown :bsdusers /zs
tingo@kg-vm4:~$ sudo chmod g+w /zs

mount it

tingo@kg-vm4:~$ sudo mount /dev/sdc1 /zs

we also need to figure out the UUID and create an entry in /etc/fstab

run blkid for this partition

tingo@kg-vm4:~$ sudo blkid /dev/sdc1
/dev/sdc1: UUID="24813b15-c365-488d-bd68-2d025e4bd9ea" TYPE="ext2" PARTUUID="5b67b0ce-4933-11e7-863d-bc5ff4fb29ea"

ok. Here are the lines from /etc/fstab

# this is /dev/sdc1, and ext2 filesystem
UUID=24813b15-c365-488d-bd68-2d025e4bd9ea /zs    ext2    defaults    0    0

good.

2017-06-04: sdb3 - after adding a 4 TB hard drive, I used FreeBSD to set it up as GPT, and to carve it into a couple of partitions. Result:

tingo@kg-vm4:~$ lsblk -i /dev/sdc
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sdc      8:32   0  3.7T  0 disk
|-sdc2   8:34   0  2.7T  0 part
`-sdc1   8:33   0    1T  0 part

ok.

2017-06-04: sdb3 - after a reboot, I now have a newer kernel

tingo@kg-vm4:~$ uname -a
Linux kg-vm4 4.9.0-0.bpo.3-amd64 #1 SMP Debian 4.9.25-1~bpo8+1 (2017-05-19) x86_64 GNU/Linux

ok.

2017-06-04: sdb3 - apt - install a newer kernel from jessie-backports

tingo@kg-vm4:~$ sudo apt install -t jessie-backports linux-image
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package linux-image is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'linux-image' has no installation candidate
ok, wrong name. Try again:
tingo@kg-vm4:~$ sudo apt install -t jessie-backports linux-image-amd64
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following package was automatically installed and is no longer required:
  libuuid-perl
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
  firmware-linux-free irqbalance libnuma1 linux-base linux-image-4.9.0-0.bpo.3-amd64
Suggested packages:
  linux-doc-4.9 debian-kernel-handbook
The following NEW packages will be installed:
  firmware-linux-free irqbalance libnuma1 linux-image-4.9.0-0.bpo.3-amd64
The following packages will be upgraded:
  linux-base linux-image-amd64
2 upgraded, 4 newly installed, 0 to remove and 145 not upgraded.
Need to get 38.6 MB of archives.
After this operation, 192 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
[...]
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-4.9.0-0.bpo.3-amd64
Found initrd image: /boot/initrd.img-4.9.0-0.bpo.3-amd64
Found linux image: /boot/vmlinuz-3.16.0-4-amd64
Found initrd image: /boot/initrd.img-3.16.0-4-amd64
Found unknown Linux distribution on /dev/sda2
Adding boot menu entry for EFI firmware configuration
done
Setting up linux-image-amd64 (4.9+80~bpo8+1) ...
Setting up irqbalance (1.1.0-2~bpo8+1) ...
Processing triggers for libc-bin (2.19-18+deb8u9) ...
Processing triggers for initramfs-tools (0.120+deb8u3) ...
update-initramfs: Generating /boot/initrd.img-4.9.0-0.bpo.3-amd64
Processing triggers for systemd (215-17+deb8u7) ...
You have mail in /var/mail/tingo

ok.

2017-06-04: sdb3 - apt - see if I can find a newer kernel. Currently

tingo@kg-vm4:~$ uname -a
Linux kg-vm4 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux

search

tingo@kg-vm4:~$ sudo apt search linux-image
Sorting... Done
Full Text Search... Done
linux-headers-3.16.0-4-amd64/stable 3.16.43-2 amd64
  Header files for Linux 3.16.0-4-amd64

linux-headers-4.9.0-0.bpo.2-amd64/jessie-backports 4.9.18-1~bpo8+1 amd64
  Header files for Linux 4.9.0-0.bpo.2-amd64

linux-headers-4.9.0-0.bpo.2-rt-amd64/jessie-backports 4.9.18-1~bpo8+1 amd64
  Header files for Linux 4.9.0-0.bpo.2-rt-amd64

linux-headers-4.9.0-0.bpo.3-amd64/jessie-backports 4.9.25-1~bpo8+1 amd64
  Header files for Linux 4.9.0-0.bpo.3-amd64

linux-headers-4.9.0-0.bpo.3-rt-amd64/jessie-backports 4.9.25-1~bpo8+1 amd64
  Header files for Linux 4.9.0-0.bpo.3-rt-amd64

linux-headers-4.9.0-2-grsec-amd64/jessie-backports 4.9.18-1+grsec201703261106+1~bpo8+1 amd64
  Header files for Linux 4.9.0-2-grsec-amd64

linux-image-3.16.0-4-amd64/stable,now 3.16.43-2 amd64 [installed,automatic]
  Linux 3.16 for 64-bit PCs

linux-image-3.16.0-4-amd64-dbg/stable 3.16.43-2 amd64
  Debugging symbols for Linux 3.16.0-4-amd64

linux-image-4.9.0-0.bpo.2-amd64/jessie-backports 4.9.18-1~bpo8+1 amd64
  Linux 4.9 for 64-bit PCs (signed)

linux-image-4.9.0-0.bpo.2-amd64-dbg/jessie-backports 4.9.18-1~bpo8+1 amd64
  Debugging symbols for Linux 4.9.0-0.bpo.2-amd64

linux-image-4.9.0-0.bpo.2-amd64-unsigned/jessie-backports 4.9.18-1~bpo8+1 amd64
  Linux 4.9 for 64-bit PCs

linux-image-4.9.0-0.bpo.2-rt-amd64/jessie-backports 4.9.18-1~bpo8+1 amd64
  Linux 4.9 for 64-bit PCs, PREEMPT_RT (signed)

linux-image-4.9.0-0.bpo.2-rt-amd64-dbg/jessie-backports 4.9.18-1~bpo8+1 amd64
  Debugging symbols for Linux 4.9.0-0.bpo.2-rt-amd64

linux-image-4.9.0-0.bpo.2-rt-amd64-unsigned/jessie-backports 4.9.18-1~bpo8+1 amd64
  Linux 4.9 for 64-bit PCs, PREEMPT_RT

linux-image-4.9.0-0.bpo.3-amd64/jessie-backports 4.9.25-1~bpo8+1 amd64
  Linux 4.9 for 64-bit PCs

linux-image-4.9.0-0.bpo.3-amd64-dbg/jessie-backports 4.9.25-1~bpo8+1 amd64
  Debug symbols for linux-image-4.9.0-0.bpo.3-amd64

linux-image-4.9.0-0.bpo.3-rt-amd64/jessie-backports 4.9.25-1~bpo8+1 amd64
  Linux 4.9 for 64-bit PCs, PREEMPT_RT

linux-image-4.9.0-0.bpo.3-rt-amd64-dbg/jessie-backports 4.9.25-1~bpo8+1 amd64
  Debug symbols for linux-image-4.9.0-0.bpo.3-rt-amd64

linux-image-4.9.0-2-grsec-amd64/jessie-backports 4.9.18-1+grsec201703261106+1~bpo8+1 amd64
  Linux 4.9 for 64-bit PCs, Grsecurity protection

linux-image-amd64/stable,now 3.16+63 amd64 [installed]
  Linux for 64-bit PCs (meta-package)

linux-image-amd64-dbg/stable 3.16+63 amd64
  Debugging symbols for Linux amd64 configuration (meta-package)

linux-image-grsec-amd64/jessie-backports 12~bpo8+1 amd64
  Linux image meta-package, grsec featureset

linux-image-rt-amd64/jessie-backports 4.9+80~bpo8+1 amd64
  Linux for 64-bit PCs (meta-package), PREEMPT_RT

linux-image-rt-amd64-dbg/jessie-backports 4.9+80~bpo8+1 amd64
  Debugging symbols for Linux rt-amd64 configuration (meta-package)

nice.

2017-06-04: sdb3 - apt - I added jessie-backports, like so:

tingo@kg-vm4:~$ cat /etc/apt/sources.list.d/jessie-backports.list
deb http://ftp.no.debian.org/debian/ jessie-backports main

then I ran 'sudo apt update'.

2017-06-03: sdb3 - uefi - efibootmgr output

tingo@kg-vm4:~$ sudo efibootmgr
BootCurrent: 0005
Timeout: 5 seconds
BootOrder: 0001,0000,0005,0002,0003,0004
Boot0000* debian
Boot0001* FreeBSD
Boot0002* Hard Drive
Boot0003* USB
Boot0004* UEFI: Built-in EFI Shell
Boot0005* debian
tingo@kg-vm4:~$ sudo efibootmgr -v
BootCurrent: 0005
Timeout: 5 seconds
BootOrder: 0001,0000,0005,0002,0003,0004
Boot0000* debian    HD(1,22,32000,0037b32d-b328-11e5-87c5-bc5ff4fb29ea)File(\EFI\DEBIAN\GRUBX64.EFI)
Boot0001* FreeBSD    HD(1,22,32000,0037b32d-b328-11e5-87c5-bc5ff4fb29ea)File(\EFI\BOOT\BOOTX64.EFI)
Boot0002* Hard Drive     BIOS(2,0,00)..GO..NO........o.O.C.Z.-.T.R.I.O.N.1.0.0....................A...........................>..Gd-.;.A..MQ..L.5.8.B.P.2.5.7.I.M.K.X.C. . . . . . . . ........BO..NO........o.I.N.T.E.L. .S.S.D.S.C.2.B.W.1.8.0.A.4....................A...........................>..Gd-.;.A..MQ..L.T.B.A.D.2.3.2.7.3.0.3.6.8.1.2.0.N.G. . ........BO
Boot0003* USB     BIOS(5,0,00)..GO..NO........y.G.e.n.e.r.i.c. .S.T.O.R.A.G.E. .D.E.V.I.C.E. .0.9.0.3....................A.......................L..Gd-.;.A..MQ..L.G.e.n.e.r.i.c. .S.T.O.R.A.G.E. .D.E.V.I.C.E. .0.9.0.3........BO
Boot0004* UEFI: Built-in EFI Shell     Vendor(5023b95c-db26-429b-a648-bd47664c8012,)..BO
Boot0005* debian    HD(1,800,100000,bcf935df-c6b3-43d4-806b-07619ef9edce)File(\EFI\DEBIAN\GRUBX64.EFI)..BO

ok.

2017-06-03: sdb3 - uefi - after recreating the ESP on sda1 in FreeBSD, the UUID is changed, and since Debian mounts it at /boot/efi I got dumped in singleuser. Used blkid to figure out the UUID of sdb1 (this is the correct ESP after all) and modified /etc/fstab, then a reboot. Voila!

tingo@kg-vm4:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/dm-0        38G  2.6G   33G   8% /
udev             10M     0   10M   0% /dev
tmpfs           6.1G  9.1M  6.1G   1% /run
tmpfs            16G   68K   16G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs            16G     0   16G   0% /sys/fs/cgroup
/dev/sdb2       237M   34M  191M  16% /boot
/dev/sdb1       511M  136K  511M   1% /boot/efi
tmpfs           3.1G  4.0K  3.1G   1% /run/user/116
tmpfs           3.1G  8.0K  3.1G   1% /run/user/1000

and /etc/fstab

tingo@kg-vm4:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/kg--vm4--debian--root--vg-debian--root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sdb2 during installation
UUID=4d143d81-5afe-4fc5-b51c-d9e3c5ed8542 /boot           ext2    defaults        0       2
# /boot/efi was on /dev/sda1 during installation
#UUID=1BD5-10F5  /boot/efi       vfat    umask=0077      0       1
UUID=9200-86DC  /boot/efi       vfat    umask=0077      0       1
/dev/mapper/kg--vm4--swap--vg-debian--swap none            swap    sw              0       0

blkid says

tingo@kg-vm4:~$ sudo blkid
/dev/sda1: UUID="58A4-1919" TYPE="vfat" PARTUUID="0037b32d-b328-11e5-87c5-bc5ff4fb29ea"
/dev/sda2: UUID="568ae10d70f9650b" TYPE="ufs" PARTUUID="38fbe1cc-b328-11e5-87c5-bc5ff4fb29ea"
/dev/sdb1: UUID="9200-86DC" TYPE="vfat" PARTUUID="bcf935df-c6b3-43d4-806b-07619ef9edce"
/dev/sdb2: UUID="4d143d81-5afe-4fc5-b51c-d9e3c5ed8542" TYPE="ext2" PARTUUID="a539bc03-2ffa-4ab3-a721-c9e0c85158b2"
/dev/sdb3: UUID="qkQCMe-oCNQ-hANf-tklh-K3N5-EO2t-SU1Y8X" TYPE="LVM2_member" PARTUUID="1ef3b039-69a6-451e-b361-e46f9e9e9c66"
/dev/sdb4: UUID="Dxg5iY-5DgD-Qm4c-ymBO-8kfl-dsRh-3L7d1a" TYPE="LVM2_member" PARTUUID="24c94ba0-ff33-4db0-9cd7-9e0c172a2258"
/dev/mapper/kg--vm4--debian--root--vg-debian--root: UUID="50d769e6-09f2-4dc1-ba4d-dedf1670807e" TYPE="ext4"
/dev/mapper/kg--vm4--swap--vg-debian--swap: UUID="0e799f6c-a675-48da-bb46-f51128a8e3a7" TYPE="swap"
/dev/sda3: PARTUUID="52af5808-b328-11e5-87c5-bc5ff4fb29ea"

ok.

2017-06-03: sdb3 - uefi - try to fix things with efibootmgr. status

tingo@kg-vm4:~$ sudo efibootmgr -v
BootCurrent: 0000
Timeout: 5 seconds
BootOrder: 0000,0001,0002,0003,0004
Boot0000* debian    HD(1,22,32000,0037b32d-b328-11e5-87c5-bc5ff4fb29ea)File(\EFI\DEBIAN\GRUBX64.EFI)
Boot0001* UEFI OS    HD(1,22,32000,0037b32d-b328-11e5-87c5-bc5ff4fb29ea)File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot0002* Hard Drive     BIOS(2,0,00)..GO..NO........o.O.C.Z.-.T.R.I.O.N.1.0.0....................A...........................>..Gd-.;.A..MQ..L.5.8.B.P.2.5.7.I.M.K.X.C. . . . . . . . ........BO..NO........o.I.N.T.E.L. .S.S.D.S.C.2.B.W.1.8.0.A.4....................A...........................>..Gd-.;.A..MQ..L.T.B.A.D.2.3.2.7.3.0.3.6.8.1.2.0.N.G. . ........BO
Boot0003* USB     BIOS(5,0,00)..GO..NO........y.G.e.n.e.r.i.c. .S.T.O.R.A.G.E. .D.E.V.I.C.E. .0.9.0.3....................A.......................L..Gd-.;.A..MQ..L.G.e.n.e.r.i.c. .S.T.O.R.A.G.E. .D.E.V.I.C.E. .0.9.0.3........BO
Boot0004* UEFI: Built-in EFI Shell     Vendor(5023b95c-db26-429b-a648-bd47664c8012,)..BO

try to change the name of boot entry 0001.

tingo@kg-vm4:~$ sudo efibootmgr -c -d /dev/sda -p 1 -b 0001 -L "FreeBSD" -l "\EFI\BOOT\BOOTX64.EFI"
** Warning ** : bootnum 0001 already exists
efibootmgr: Could not prepare boot variable: Success

ok, delete it first then

tingo@kg-vm4:~$ sudo efibootmgr -b 1 -B
BootCurrent: 0000
Timeout: 5 seconds
BootOrder: 0000,0002,0003,0004
Boot0000* debian
Boot0002* Hard Drive
Boot0003* USB
Boot0004* UEFI: Built-in EFI Shell

now, try to create it

tingo@kg-vm4:~$ sudo efibootmgr -c -d /dev/sda -p 1 -b 0001 -L "FreeBSD" -l "\EFI\BOOT\BOOTX64.EFI"
BootCurrent: 0000
Timeout: 5 seconds
BootOrder: 0001,0000,0002,0003,0004
Boot0000* debian
Boot0002* Hard Drive
Boot0003* USB
Boot0004* UEFI: Built-in EFI Shell
Boot0001* FreeBSD

verify

tingo@kg-vm4:~$ sudo efibootmgr -v
BootCurrent: 0000
Timeout: 5 seconds
BootOrder: 0001,0000,0002,0003,0004
Boot0000* debian    HD(1,22,32000,0037b32d-b328-11e5-87c5-bc5ff4fb29ea)File(\EFI\DEBIAN\GRUBX64.EFI)
Boot0001* FreeBSD    HD(1,22,32000,0037b32d-b328-11e5-87c5-bc5ff4fb29ea)File(\EFI\BOOT\BOOTX64.EFI)
Boot0002* Hard Drive     BIOS(2,0,00)..GO..NO........o.O.C.Z.-.T.R.I.O.N.1.0.0....................A...........................>..Gd-.;.A..MQ..L.5.8.B.P.2.5.7.I.M.K.X.C. . . . . . . . ........BO..NO........o.I.N.T.E.L. .S.S.D.S.C.2.B.W.1.8.0.A.4....................A...........................>..Gd-.;.A..MQ..L.T.B.A.D.2.3.2.7.3.0.3.6.8.1.2.0.N.G. . ........BO
Boot0003* USB     BIOS(5,0,00)..GO..NO........y.G.e.n.e.r.i.c. .S.T.O.R.A.G.E. .D.E.V.I.C.E. .0.9.0.3....................A.......................L..Gd-.;.A..MQ..L.G.e.n.e.r.i.c. .S.T.O.R.A.G.E. .D.E.V.I.C.E. .0.9.0.3........BO
Boot0004* UEFI: Built-in EFI Shell     Vendor(5023b95c-db26-429b-a648-bd47664c8012,)..BO

looks ok. Tested - FreeBSD boots from it.

2017-06-03: I started a fresh installation of Debian 8.8 on the Intel SSD (sdb). I selected "UEFI SanDisk" in the boot menu, and it started up in UEFI - Nice. Partitioning, I first selected guided partitioning - whole disk and wrote down the suggestions, then I did the same for guided, whole disk + lvm. Then I modified so I have 1 VG 41 G for root (sdb3) , and one VG 16G for swap (sdb4). The partitioner first belived that sdb3 was 17G and failed when it tried to creata a LV on it. By manually specifying the LV as 41G I made it. We shall see if that works out. After core, I selected to install Debian desktop environment - Xfce, print server, SSH server, standard utilities. After a bit the installer finished, and I could boot into Debian.

Well, the system is bootable, and the installer got it almost right:

tingo@kg-vm4:~$ lsblk -i
NAME                                       MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                                          8:0    0 223.6G  0 disk
|-sda1                                       8:1    0   100M  0 part /boot/efi
|-sda2                                       8:2    0    55G  0 part
`-sda3                                       8:3    0     4G  0 part
sdb                                          8:16   0 167.7G  0 disk
|-sdb1                                       8:17   0   512M  0 part
|-sdb2                                       8:18   0   244M  0 part /boot
|-sdb3                                       8:19   0  38.2G  0 part
| `-kg--vm4--debian--root--vg-debian--root 254:0    0  38.2G  0 lvm  /
`-sdb4                                       8:20   0  14.9G  0 part
  `-kg--vm4--swap--vg-debian--swap         254:1    0  14.9G  0 lvm  [SWAP]

for some reason it used /dev/sda1 as ESP instead of sdb1.

tingo@kg-vm4:~$ sudo efibootmgr
BootCurrent: 0000
Timeout: 5 seconds
BootOrder: 0000,0001,0002,0003,0004
Boot0000* debian
Boot0001* UEFI OS
Boot0002* Hard Drive
Boot0003* USB
Boot0004* UEFI: Built-in EFI Shell

and verbose

tingo@kg-vm4:~$ sudo efibootmgr -v
BootCurrent: 0000
Timeout: 5 seconds
BootOrder: 0000,0001,0002,0003,0004
Boot0000* debian    HD(1,22,32000,0037b32d-b328-11e5-87c5-bc5ff4fb29ea)File(\EFI\DEBIAN\GRUBX64.EFI)
Boot0001* UEFI OS    HD(1,22,32000,0037b32d-b328-11e5-87c5-bc5ff4fb29ea)File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot0002* Hard Drive     BIOS(2,0,00)..GO..NO........o.O.C.Z.-.T.R.I.O.N.1.0.0....................A...........................>..Gd-.;.A..MQ..L.5.8.B.P.2.5.7.I.M.K.X.C. . . . . . . . ........BO..NO........o.I.N.T.E.L. .S.S.D.S.C.2.B.W.1.8.0.A.4....................A...........................>..Gd-.;.A..MQ..L.T.B.A.D.2.3.2.7.3.0.3.6.8.1.2.0.N.G. . ........BO
Boot0003* USB     BIOS(5,0,00)..GO..NO........y.G.e.n.e.r.i.c. .S.T.O.R.A.G.E. .D.E.V.I.C.E. .0.9.0.3....................A.......................L..Gd-.;.A..MQ..L.G.e.n.e.r.i.c. .S.T.O.R.A.G.E. .D.E.V.I.C.E. .0.9.0.3........BO
Boot0004* UEFI: Built-in EFI Shell     Vendor(5023b95c-db26-429b-a648-bd47664c8012,)..BO

ok, so it looks like "UEFI OS" still will boot FreeBSD.

How does the rest of it look?

tingo@kg-vm4:~$ /sbin/swapon --show
NAME      TYPE       SIZE USED PRIO
/dev/dm-1 partition 14.9G   0B   -1
tingo@kg-vm4:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/dm-0        38G  2.6G   33G   8% /
udev             10M     0   10M   0% /dev
tmpfs           6.1G  9.1M  6.1G   1% /run
tmpfs            16G   68K   16G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs            16G     0   16G   0% /sys/fs/cgroup
/dev/sdb2       237M   34M  191M  16% /boot
/dev/sda1       766K  188K  579K  25% /boot/efi
tmpfs           3.1G  4.0K  3.1G   1% /run/user/116
tmpfs           3.1G  8.0K  3.1G   1% /run/user/1000

contents of /etc/fstab

tingo@kg-vm4:~$ more /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/kg--vm4--debian--root--vg-debian--root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sdb2 during installation
UUID=4d143d81-5afe-4fc5-b51c-d9e3c5ed8542 /boot           ext2    defaults        0       2
# /boot/efi was on /dev/sda1 during installation
UUID=1BD5-10F5  /boot/efi       vfat    umask=0077      0       1
/dev/mapper/kg--vm4--swap--vg-debian--swap none            swap    sw              0       0

ok.

2017-06-03: sdb1 - it is still Debian 8.1 here:

tingo@kg-u35jc:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 8.1 (jessie)
Release:    8.1
Codename:    jessie

too old, let me reinstall.