[ERROR] Error message file ‘/usr/share/mysql/errmsg.sys’ had only 1118 error messages, but it should contain at least 3076 error messages

今天碰到怪問題, mariadb 重開失敗, 直接跑 mysqld 碰到這個訊息

[ERROR] Error message file '/usr/share/mysql/errmsg.sys' had only 1118 error messages, but it should contain at least 3076 error messages

Read more »

unsupported configuration: CPU mode ‘host-model’ for aarch64 kvm domain on aarch64 host is not supported by hypervisor

應該改 nova.conf
將 [libvirt] 內的
cpu_mode 改成 host-passthrough

應該只有影響 ocata

Ref.
OpenStack KVM

[ocata] unsupported configuration: CPU mode ‘host-model’ for aarch64 kvm domain on aarch64 host is not supported by hypervisor

程式解法
aarch64: set default cpu_mode to host-passthrough

Ubuntu Cloud Image Taiwan Mirror Site

每次都找不到, 備份一下

http://ftp.yzu.edu.tw/Linux/ubuntu-cloud-images/

[Gentoo] UEFI 系統轉移

最近 HGST 6T 硬碟大特價(12000/9999 => 6200), 之前的硬碟也差不多快四年了 (33319 小時)
剛好提早換硬碟. 看到有人提到的時候去搶只有最後兩顆, 果然運氣不錯
Read more »

ARM64 Hugepage(HugeTLB) Size

ARM64 and x86 hugepage size are different.

Debian/Ubuntu ARM64 kernel (4KB Pagesize)
Hugepage size is 2MB/1GB

64KB Pagesize, hugepage is 512MB.

x86_64
2MB : (has PSE cpuinfo flag)
1GB : (has PDPE1GB cpuinfo flag)

different configuration has different setting

ref.
Hugepages

QEMU Share Directory with Host Without Networking

If Guest Support 9P and virtio.

Add this line to QEMU command

-virtfs local,path=/path/to/share,mount_tag=host0,security_model=passthrough,id=host0

and in guest os, edit /etc/fstab and add

host0   /wherever    9p      trans=virtio,version=9p2000.L   0 0

ref.
https://superuser.com/questions/628169/how-to-share-a-directory-with-the-host-without-networking-in-qemu

[ERROR] Can’t find messagefile ‘/usr/share/mysql/errmsg.sys’

因為 Gentoo 忘了 copy file 過去.

# mkdir -p /usr/share/mysql/
# cp /usr/share/mariadb/english/errmsg.sys /usr/share/mysql/errmsg.sys
# /etc/init.d/mysql restart

Change Ubuntu Cloud Image Password

Ubuntu cloud image is very good for deploy a simple qemu image system.
But the image has it owns password and initial script.
Read more »

NetworkManager inactive

最近發生一件怪事, VM suspend 當掉之後, networkmanager 顯示 inactive
Read more »

No valid host was found. There are not enough hosts available

OpenStack Horization error message
Read more »