Closed3
WSLで動かしているAlmaLinux 8.10をAlmaLinux 9系に移行したい
VM等での移行方法
最初はパッケージをすべてupdateして、rebootかけておく。
dnf update -y && reboot
その後は公式が出している手順通りに進めればいい。
解消してから前に進む。私の開発環境では以下のコマンドをたたいた。
sudo sed -i 's/^AllowZoneDrifting=.*/AllowZoneDrifting=no/' /etc/firewalld/firewalld.conf
sudo dnf install -y vdo
sudo sed -i 's/^PermitRootLogin/#PermitRootLogin/' /etc/ssh/sshd_config
以下については残っても大丈夫だった。
Risk Factor: high
Title: Detected custom leapp actors or files.
Summary: We have detected installed custom actors or files on the system. These can be provided e.g. by third party vendors, Red Hat consultants, or can be created by users to customize the upgrade (e.g. to migrate custom applications). This is allowed and appreciated. However Red Hat is not responsible for any issues caused by these custom leapp actors. Note that upgrade tooling is under agile development which could require more frequent update of custom actors.
The list of custom leapp actors and files:
- /usr/share/leapp-repository/repositories/system_upgrade/common/files/distro/almalinux/rpm-gpg/9/RPM-GPG-KEY-AlmaLinux-9
- /usr/share/leapp-repository/repositories/system_upgrade/common/files/rpm-gpg/9/RPM-GPG-KEY-AlmaLinux-9
Related links:
- Customizing your Red Hat Enterprise Linux in-place upgrade: https://red.ht/customize-rhel-upgrade
WSLでの移行
WSL環境ではleappでの移行はできなさそう。
leappを使うと以下のエラーが出る。
FileNotFoundError: [Errno 2] No such file or directory: '/boot/grub2/grub.cfg'
WSL2ではMicrosoftがビルドしたWSL2向けkernelの上でLinuxディストリビューションのコンテナを動かしている。(初めて知った。。。)
こんな違いが出る。
WSL2側で実行
$ dnf list installed kernel
Error: No matching Packages to list
Hyper-VのVMで実行するとちゃんと出る。
$ dnf list installed kernel
kernel.x86_64 4.18.0-553.el8_10 @anaconda
kernel.x86_64 4.18.0-553.60.1.el8_10 @baseos
他にも、WSL2側だと
$ uname -r
6.6.87.2-microsoft-standard-WSL2
あきらめてWSL2にAlmaLinux 9のマシンを立てて、データ移行をかけた
このスクラップは2ヶ月前にクローズされました