This document will introduce how to setup a centos PXE boot environment on ubuntu 18.04 for install centos8 to your ARM64 machine.
In this document, it uses CentOS 8 version is 8.1.1911, it might also work on later version if you change file name accordingly .
all command in this document we assume you already run with root permission.
Category Archives: Ubuntu
ARM64 Centos8 Ubuntu PXE Boot Install
Netplan Bridge Setup
Backup for mysalves
network:
version: 2
renderer: networkd
ethernets:
enP6p1s0:
dhcp4: no
bridges:
br0:
dhcp4: no
interfaces:
- enP6p1s0
addresses: [192.168.110.254/16]
gateway4: 192.168.1.1
nameservers:
addresses: [8.8.8.8,8.8.8.4]
dhcp4: no
Raspberry 4 Pi + Kubuntu

買了二塊 Raspberry 4 Pi 回來,本來是準備裝 K8s 的,但是在這之前要先跑個 ubuntu image 才對.
我買 Raspberry 4 Pi 的時候知道他要用 5V3A 的電源,但是我沒有想到我自己沒有 5V3A 的 USB 變壓器,手機用的含 Apple 87W USB-C 變壓器都不足瓦
Apple 87W 只能輸出 5V 2.4A
最後找了一個 Sony 可以輸出 5V 2.7A 才可以用,所以如果要買 Raspberry Pi 4 的人請注意一下
另外這一塊的外接是 Micro-HDMI,我也忘了買,記得還要加買 SD Card
Install Kubernetes on ARM64 Ubuntu 18.04 (with QEMU)
Install Kubernetes on Ubuntu 18.04 is very easy now, but only for x86 platform. If on ARM64 environment, it might have some other problem.
Some old article mentioned a lot of information but software version is too old for deploy a new version software.
After a lot of time to have research, here is instruction for how to install Kubernetes on ARM64 Ubuntu 18.04
Ubuntu 18.04 Change Mac Address on QEMU via Netplan
This is a quick note about how to modify mac address for qemu image with ubuntu 18.04 cloud image.
but I have not found a working way only change mac address in system
Ubuntu 18.04 ARM64 DPDK in VM (QEMU)
DPDK is a very popular infrastructure in high speed packet process domain, some applications will used the same architecture to process packet, like EPC.
For Ubuntu 18.04, it used dpdk 17.11, it not good for some other application like dpdk pktgen, but enough for testpmd and l3fwd test. here is some personal note for setup whole environment.

Ubuntu Change Default Mac Address
Ubuntu used netplan as new network manager, but it’s different with previous version.
First create a new file /etc/systemd/network/10-override-mac.link
[Match]
MacAddress=52:54:00:12:34:56
[Link]
MACAddress=52:54:00:12:34:58
52:54:00:12:34:56 is old mac, and 52:54:00:12:34:58 is new mac .
Second, modify /etc/netplan/01-netcfg.yaml, create match: and macaddress field , example
network:
version: 2
ethernets:
eth0:
dhcp4: true
match:
macaddress: ’52:54:00:12:34:58′
set-name: eth0
ref.
QEMU Run x86_64 on ARM64 Server command
This is a work note for run x86_64 on ARM64 server .
Because they are different archeticture, so, run x86_64 on ARM server would be very slow.
and some functions might be different when run on different platform
Kdump in ubuntu 18.04 ARM64
kdump is very good tool to debug complex system like cloud data center, it can easy to save kernel status when crash.
Running kdump in ARM64 just like running in x86, but I met a strange problem on ARM64 platform.
The kernel version is HWE kernel, current version is 4.18.0-25, mihbt be encounter those problems
ARM64 Kdump cannot allocate crashkernel
In ARM64 server and installed memory around 128G, ubuntu default /etc/default/grub.d/kdump-tools.cfg default configuration might cause kdump allocate memory failed. error message as below
Read more »[ 0.000000] cannot allocate crashkernel (size:0x80000000)
[ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.18.0-25-generic root=UUID=ee8be10d-d649-425d-a807-640751836186 ro console=tty0 crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M
近期留言