Build Hugo Extended for Linux ARM

As of today, there is no official build for Hugo extended for Linux ARM. Therefore, we need to build it ourselves. Prerequisite: build-essential package go1.15.3.linux-arm64 compiler export VERSION=0.79.1 curl -O -L https://github.com/gohugoio/hugo/archive/v$VERSION.tar.gz tar -xzf v$VERSION.tar.gz cd hugo-$VERSION go build --tags extended sudo cp hugo /usr/local/bin Hugo Static Site Generator v0.79.1/extended linux/arm64 BuildDate: unknown I built Hugo on Odroid C2, and it took over 10 minutes. I think a better way is to cross build Hugo on an x64 machine; but I haven’t tried it yet....

December 27, 2020 · 1 min · 94 words · kenno

Upgrading oVirt Manager

This upgrade applies to the self-hosted engine of oVirt Manager. We need to first put the oVirt environment to the global maintenance mode. [root@trex ~]# hosted-engine --set-maintenance --mode=global To check the availability of oVirt Manager, run engine-upgrade-check command on the oVirt Manager machine. [root@ovirtm ~]# engine-upgrade-check ...omitted... VERB: Queue package ovirt-engine-setup for update VERB: Building transaction VERB: Transaction built VERB: Transaction Summary: VERB: install : ovirt-engine-setup-plugin-cinderlib-4.4.4.5-1.el8.noarch VERB: install : ovirt-engine-setup-base-4.4.4.5-1.el8.noarch VERB: install : ovirt-engine-setup-4....

December 26, 2020 · 5 min · 867 words · kenno

Configure oVirt Manager to Authenticate Against FreeIPA

This is quick note on how to configure an oVirt Manager or RHV Manager to use the FreeIPA to provide user external authentication. Here’s my servers’ information: IPA server: ipa.angkorian.io (CentOS 8.3.2011) oVirt Hosted-Engine: ovirtm.angkorian.io (CentOS 8.3.2011) IPA user: ovirtadmin First, open SSH connection to ovirtm as root and ensure that ovirt-engine-extension-aaa-ldap-setup package is installed. Here is a tip to figure out the name of this package - I’d search for ovirt*ldap....

December 26, 2020 · 4 min · 760 words · kenno

Backing Up a Self Hosted Engine Ovirt

We can create a fullback of oVirt engine without stopping the oVirt infrastructure using the ovirt-backup command. To do this, ssh to the oVirt hosted-engine and specify this backup scope, the name of backup file and the name of the log file. [root@ovirtm ~]# engine-backup --scope=all --mode=backup --file=ovirtm-backup_20201223.tgz --log=backup_20201223.log Start of engine-backup with mode 'backup' scope: all archive file: ovirtm-backup_20201223.tgz log file: backup_20201223.log Backing up: Notifying engine - Files - Engine database 'engine' - DWH database 'ovirt_engine_history' Packing into file 'ovirtm-backup_20201223....

December 23, 2020 · 1 min · 103 words · kenno

Line Continuation in PowerShell

Usually on bash command-line, the line break character is \. So when I first started to use PowerShell, the \ didn’t work for me. It turned out that the line-break or line continuation in PowerShell is the back tick: `. Here is an exmaple of PowerShell command to create a DNS delegation in one line: PS C:\ Add-DnsServerZoneDelegation -Name "example.net" -ChildZoneName "lab.example.net." -NameServer "idm.lab.example.net." -IPAddress 172.25.250.8 -PassThru -Verbose And we can break it to mutiple line as:...

December 23, 2020 · 1 min · 99 words · kenno

Auto Connect to Hidden Wifi With Networkmanger

If you’re here to find out how to setup network connection to hidden wifi access point, you might want to check this post: How to Connect to Hidden Wifi Using nmcli instead. This post documents how I fix an issue of wifi connection on a laptop running Gentoo to a hidden access point. The problem is that the wifi connection doesn’t automatically connect despite I’ve set the autoconnect.connection yes. ❯ nmcli con show CamBlue | grep -i autoconnect connection....

December 21, 2020 · 2 min · 270 words · kenno

Systemd List Failed Units and Services

This is a quick note to list failed services on systemd system. [root@zilla ~]# systemctl status ● zilla State: degraded Jobs: 0 queued Failed: 1 units Since: Fri 2020-09-04 02:20:47 AEST; 3 months 11 days ago CGroup: / ├─1 /usr/lib/systemd/systemd --system --deserialize 22 └─system.slice ├─httpd.service │ ├─21860 /usr/sbin/httpd -DFOREGROUND │ ├─21861 /usr/sbin/httpd -DFOREGROUND │ ├─21862 /usr/sbin/httpd -DFOREGROUND │ ├─21863 /usr/sbin/httpd -DFOREGROUND │ ├─21864 /usr/sbin/httpd -DFOREGROUND │ └─21865 /usr/sbin/httpd -DFOREGROUND ... [root@zilla ~]# systemctl list-units --failed UNIT LOAD ACTIVE SUB DESCRIPTION ● ipmi....

December 15, 2020 · 2 min · 233 words · kenno

oVirt - Removing a Storage Domain

This note is, again, for me to remind myself in case I couldn’t recall how to do this in the future. To remove a storage domain from the cluster, use the following steps: Click Storage -> Domains Click on the name of the storage domain to open the details view Click on the Data Center tab Click on Maintenance button, then click on OK The Detach button becomes active, click on it....

December 14, 2020 · 1 min · 81 words · kenno

Crontab Tip

On Fedora based system, whenever I need help writing a cron task and confused which field is minute, hour, day,..etc, I usually check the /etc/crontab file. ❯ cat /etc/crontab SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root # For details see man 4 crontabs # Example of job definition: # .---------------- minute (0 - 59) # | .------------- hour (0 - 23) # | | .---------- day of month (1 - 31) # | | | ....

December 13, 2020 · 1 min · 164 words · kenno

Passed Red Hat Virtualization Exam EX318

Another month, another Red Hat exam has been ticked off the list. This time, it’s about the Red Hat Virtualization, a technology based on oVirt. The code name of the exam is EX318, and as rumours has it, it’s one of the easiest Red Hat exams; I can’t agree more. The exam’s duration is 3 hours; it’s a hand-on closed book exams. The exam is based on Red Hat Virtualization version 4....

December 9, 2020 · 1 min · 170 words · kenno