How to migrate a LVM-based KVM guest to another host

In the past, I have been using the immensely useful virt-backup.pl script to migrate a LVM-based (raw volume) Linux KVM guest from one host to another. However, there is an even easier way to cold-migrate a KVM guest. This approach is particularly helpful if there’s not enough disk space on the host to create a …

Adding a DS3231 Real Time Clock to the Raspberry Pi 3

Since the Raspberry Pi 3 doesn’t come with a battery-powered real time clock, it will only show the correct time onceĀ it has Internet connectivity (thanks to the NTP daemon). If the Raspberry Pi 3 is not connected to the Internet, you might want to add a hardware clock to set the current date. Here’s how …

Query status information from Huawei’s HiLink 3G/LTE modems

While Huawei provides status information for its HiLink modems via a web page, this is hardly useful when using the modem on a headless Linux server. I just published a small Python-based command-line tool on Github which displays some useful information about the modem’s status. root@wopr~#: python ./hstatus.py Huawei E3372 LTE Modem (IMEI: 121032526613216) Hardware …

How to compile Quagga with SNMP support

Since the default Quagga package in Ubuntu doesn’t have SNMP support enabled, the Quagga package has to be compiled locally. The following instructions may work for Debian as well but I only tested it in Ubuntu Server 14.04 LTS. View the code on Gist. Now, edit /etc/quagga/daemons and enable at least zebra and bgpd and …

Waking up a NAS from OS X at boot time using Wake-on-LAN (WOL)

Since OS X 10.11 El Capitan protects certain system directories from modifications, my NASwake solutionĀ to wake a NAS once the Mac starts up published back in 2010 is no longer working. I decided against building another .pkg installer since it requires root permissions and I also prefer using Homebrew instead of some obscure binary for …