Ubuntu 18.04 Netplan!

This was unexpected, but I think I’m coping well. These are my notes on configuring netplan networking on my Ubuntu 18.04 server.

  1. systemctl disable NetworkManager.service NetworkManager-wait-online.service
  2. systemctl mask NetworkManager-wait-online.service
  3. systemctl daemon-reload
  4. apt install bridge-utils -y
  5. edit /etc/udev/rules.d/70-net.rules
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{dev_id}=="0x0", ATTR{type}=="1", ATTR{address}=="c8:70:00:9f:d7:72", NAME="eth0"
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{dev_id}=="0x0", ATTR{type}=="1", ATTR{address}=="00:e2:ed:17:09:60", NAME="eth1"
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{dev_id}=="0x0", ATTR{type}=="1", ATTR{address}=="00:e2:ed:17:09:61", NAME="eth2"
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{dev_id}=="0x0", ATTR{type}=="1", ATTR{address}=="00:e2:ed:17:09:62", NAME="eth3"
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{dev_id}=="0x0", ATTR{type}=="1", ATTR{address}=="00:e2:ed:17:09:63", NAME="eth4"
  6. edit /etc/netplan/01-netcfg.yaml
      version: 2
      renderer: networkd
          dhcp4: no
          dhcp6: no
          dhcp4: no
          dhcp6: no
          dhcp4: no
          dhcp6: no
          dhcp4: no
          dhcp6: no
          dhcp4: no
          dhcp6: no
          dhcp4: yes
          dhcp6: no
             - eth0
             -  to:
                on-link: true
          dhcp4: no
          dhcp6: no
          addresses: []
             - eth1
          dhcp4: no
          dhcp6: no
          addresses: []
             - eth2
          dhcp4: no
          dhcp6: no
          addresses: []
             - eth3
          dhcp4: no
          dhcp6: no
          addresses: []
             - eth4
  7. sudo netplan generate
  8. sudo netplan apply
  9. reboot

Without my eth1-eth4 devices plugged into a switch, rebooting takes forever.


Ubuntu 14.04 Bonding is Bonkers

It took reading through this launchpad bug to find ideas on how to get a bonding interface working on Ubuntu. This is dumb and why people hate computers: could they at least have provided a more useful syntax or better warning messages?

auto eth7
allow-bond0 eth7
iface eth7 inet manual
   bond-master    bond0
   mtu            9000

auto eth8
allow-bond0 eth8
iface eth8 inet manual
   bond-master    bond0
   mtu            9000

auto bond0
iface bond0 inet static
   bond-slaves    eth7 eth8
   bond-mode      balance-rr
   bond-miimon    100
   bond-downdelay 200
   bond-updelay   200
   mtu            9000
   use-carrier    1
   pre-up (sleep 2 && ifup eth7) &
   pre-up (sleep 2 && ifup eth8) &

And you want to make sure all interfaces are down. Then rmmod bonding. At this point, ifup bond0 should complain a bit but it should work.

Build OpenZFS on Ubuntu 16.04 from git

I have to import a zpool from one Ubuntu workstation with recent features to a new Ubuntu workstation. The new workstation being a fresh Ubuntu 16.04 Server install. It only has ubuntu-mate-desktop and build-essentials installed. Below is an aggregation of some of the apt install commands I preformed to get things going:

apt install dkms
apt install automake autoconf
apt install uuid-dev
sudo apt install libblkid-dev
sudo apt install -y libattr1-dev
apt install libnvpair1linux

This should get to to the point where you can do these commands:

$ git clone https://github.com/zfsonlinux/spl
$ ./configure && make -j13 && make install
$ git clone https://github.com/zfsonlinux/zfs
$ ./configure && make -j13 && make install
$ update-grub2

Ubuntu 15.10, ZFS…Fragile

Quick update on using a more recent version of zfs:

  • very glad I set up a user who’s home directory is not /home, because if zfs doesn’t finish a scan, no /home
  • attempting to install zfsnap, simplesnapshot, things that depend on zfsutils…all mess with kernel module
  • this was much easier back when there were less options and ppa:zfslinux-stable was available, didn’t have near this amount of difficulty
  • glad that zfs-auto-snapshot, zxfer are pretty easy to install with a Makefile
  • intrigued by zfSnap and simplesnapshot as backup tools but damned if I’m going to install them again after my .ko’s got all messed up.
  • Was hoping that would have been promoted into 15.10 by now.

So, here’s hoping to getting a properly booting system :-)

Ubuntu 15.10 and ZFS


Some quick thots on doing this for my workstation:

  1. I have six 2TB drives in raid 10 zfs pool, and they would not import to 15.10 because 15.10 ships with (or tries to) zfs
  2. I decided on /boot, swap, /, mdadm partitions for OS install
  3. needed to do 15.10 server cmdline install for mdadm raid setup
  4. glad to not have attempted zfs-on-root for this distro
  5. setup three extra partitions on my two 120GB SSDS, using them for
    1. tank zil
    2. tank l2arc
    3. home pool (second pool named homer :-)
  6. Do not attempt to use PPA ubuntu/zfs-stable anymore, 15.10 will not accept it and it WILL mess with your zfsutils-linux recommended install.
  7. Somehow it did end up installing zfs-fuse. Somehow trying to install spl-dkms and zfs-dkms and uninstalling zfsutils-linux apt-get chose it. Why?
  8. I purged zfsutils, zfs/spl-dkms and did git clones on github/zfsonlinux/{spl,zfs}
  9. All of this required starting off with build-essential, autotools, automake, auto… and libuuid and … stuff. Not difficult to chase down.
  10. ./autoconfig.sh, ./configure && make -j10 && make install for spl and zfs
  11. updated /etc/rc.local to modprobe spl zfs, zpool import tank; zpool import homer; zfs mount tank ; zfs mount homer

I am able to reboot and import without pool version warnings.

Why did I move off 14.04.x? I really want to do video editing for kid videos and all the video packages for 14.04 are way ancient.


  1. get first server install working
  2. install lubuntu-desktop
  3. replace /etc/default/grub hidden -> false
  4. default/grub -> replace “splash quiet” with “nofb”
  5. once LXDE displays, then I do a “apt-get install mate-desktop-*” which seems to work just fine.
  6. Why? lubuntu-desktop flawlessly sets up Xorg dependencies and gives me a desktop the first time without messing around wondering why mate-desktop didn’t.

Merry Xmas!

Ubuntu 12.04 — apt-get my guile

So first impression on rebooting into an upgrade of Ubuntu 12.04 — busted install. Unity would not start up, I killed lightdm and restarted it, and I immediately notice that firefox has missing png for some of the tab buttons.


Presently I’m repeating:

$ apt-get autoclean
$ dpkg --clear-avail
$ apt-get update
$ apt-get -f install
$ apt-get autoremove

And this appears to be doing a good job of finding and removing corrupted /var/…/dpkg package files and fixing my install.


netbook adventure begins

I just invested in a used Acer Aspire One D250 (not the crashy one) and have just installed Lubuntu using unetbootin. The biggest surprise is how little effort and how few surprises there were.