December 6, 2016

Setup encrypted Ubuntu with ZFS on LUKS

This post is just combining the information from Ubuntu 16.04 Root on ZFS and Encrypted ZFS Ubuntu Installation. First, start up your target machine using an Ubuntu Live ISO. When you’ll see the desktop, just press Ctrl + Alt + F1 and login with ubuntu and blank password. Let’s prepare the system for SSH, as things are much easier there. You can also skip this and do things locally, of course. Prepare SSH passwd sudo su systemctl stop lightdm # save some precious memory ;) apt update apt install openssh-server -y Now we can connect to the target machine via SSH. Read more

November 21, 2016

Docker and ZFS in practice

Today i was stumbling upon ZFS in Docker Docs. The ZFS on Linux (ZoL) port is healthy and maturing. However, at this point in time it is not recommended to use the zfs Docker storage driver for production use unless you have substantial experience with ZFS on Linux. I do have, so let’s try things out. I’m not installting any Ubuntu ZFS thingy, just grabbed one of my lab Proxmox installations with ZFS builtin. In this test, there was no running Docker daemon before the next steps. If you already are running Docker, you should stop the service, rename (or delete) /var/lib/docker and continue. Read more

October 17, 2016

Check_MK / Debian Jessie with php7

If you want to run Check_MK with PHP7.0 (Dotdeb) on Debian Jessie, you need to update the package dependencies. Make sure you run these commands as root, or file permissions will be wrong after repacking. wget https://mathias-kettner.de/support/1.2.8p12/check-mk-raw-1.2.8p12_0.jessie_amd64.deb mkdir check-mk-raw-1.2.8p12_0_php7.0.jessie_amd64 dpkg-deb -R check-mk-raw-1.2.8p12_0.jessie_amd64.deb check-mk-raw-1.2.8p12_0_php7.0.jessie_amd64 cd check-mk-raw-1.2.8p12_0_php7.0.jessie_amd64 sed -i 's,php5,php7.0,g' DEBIAN/control sed -i 's,php7.0-sqlite,php7.0-sqlite3,g' DEBIAN/control for file in $(grep -sRli php5-cgi opt/omd/versions/1.2.8p12.cre/skel) do sed -i 's,/usr/bin/php5-cgi,/usr/lib/cgi-bin/php7.0,g' $file done dpkg-deb -b check-mk-raw-1.2.8p12_0_php7.0.jessie_amd64 check-mk-raw-1.2.8p12_0_php7.0.jessie_amd64.deb Also you need to adjust existing site configs to use the new php binaries: Read more

September 23, 2016

PVE: Kickstart CentOS/Preseed Ubuntu

You can use KVMs direct kernel boot feature to boot things without having an ISO or using PXE. These options can be set in args: in Proxmox. Doing so, we can simply kickstart a CentOS or preseed an Ubuntu installation by passing all necessary options. UPDATE 2017-11-06 Ansible approach Example: CentOS Prepare kernel Grab CentOS kernel (if not alreay done, then skip this step and adjust paths in qm create command) Read more