
Ubuntu日本語フォーラム

ログインしていません。
※本件はQiitaQ&A( https://qiita.com/hiro-matsumoto/questions/a8ed59f0d432efab3913 )にも投稿しています。
---
## 発生事象
「Ubuntu Server 24.04.5 LTS」( ubuntu-24.04.5-live-server-amd64.iso )ですが、
https://documentation.ubuntu.com/release-notes/24.04/5/
インストール完了してしばらく稼働しているとカーネルパニックが発生してしまいます。
※2台のPC中2台(どちらもHyper-VのVMマシンとして)
## 発生している問題・エラー
- 1. Server24.04.5LTS_カーネルパニック発生.png

- 2. VMマシンリセット後にコンソールでは out_of_memory エラーが発生していた

```
[609.955347] Out of memory: Killed process 812 (unattended-upgr) total-vm:109688kB, anon-rss: 0kB, file-rss:3456kB, shmem-rss:0KB , UID:0 pgtables: 116kB oom_score_adj:0
[1099.645756] Out of memory: Killed process 776 (udisksd) total-vm:468980kB, anon-rss:0kB, file-rss: 3520kB, shmem-rss:0kB, UID:0 pgtables: 148kB oom_score_adj:0
```
## 自分で試したこと
同じPC/Hyper-V構成でも、「Ubuntu Server 24.04.**4** LTS」では発生しません。
#### ホストPCスペック
- PC1:
プロセッサ Intel(R) N150 (800 MHz)
実装 RAM 16.0 GB (15.7 GB 使用可能)
グラフィックス カード Intel(R) Graphics
- PC2:
プロセッサ 12th Gen Intel(R) Core(TM) i7-1255U (1.70 GHz)
実装 RAM 16.0 GB (15.7 GB 使用可能)
グラフィックス カード Intel(R) Iris(R) Xe Graphics
- 両PC共通:
エディション Windows 11 Pro
バージョン 25H2
OS ビルド 26200.9457
エクスペリエンス Windows 機能エクスペリエンス パック 1000.26100.360.0
#### Hyper-V設定
- VMマシン設定(1)

- VMマシン設定(2):特にエラーがOut of memeryだったためメモリ設定詳細

## 質問事項
皆さんも「Ubuntu Server 24.04.5 LTS」インストール後、同事象は発生していますか?
オフライン
Ubuntu Japanese Kaizen Project(Launchpad)( https://bugs.launchpad.net/ubuntu-jp-improvement/+bug/2168750 )にも報告しました。
オフライン
Hyper-V の環境がないので、ノートPCに直接 Ubuntu Server 24.04.5 LTS をインストールしましたが、カーネルパニックは起きませんでした。
添付の症状を ChatGPT に相談してみましたが、メモリーが足りないことから、プロセスを頻繁にキルしているとのことでした。
https://chatgpt.com/share/6aba6db3-d734-83ee-a90b-eb0d3ef0cbf8
Those logs are not a kernel panic. They show the Linux kernel's OOM (Out-Of-Memory) killer repeatedly killing processes because the VM has exhausted available memory.
The important part is:
Out of memory: Killed process 812 (unattended-upgr)
Out of memory: Killed process 776 (udisksd)
And the fact that the system eventually becomes completely unresponsive strongly suggests the VM is severely memory-starved, possibly with no usable swap.
で、最初にやるべきことは、一旦 Hyper-V の設定の【動的メモリを有効にする】のチェックを外しみて様子を見ることのようです。
私自身で検証できていないですが、指示の通り【動的メモリを有効にする】のチェックを外すとどうなるでしょうか?
オフライン
Beats による投稿:
Hyper-V の環境がないので、ノートPCに直接 Ubuntu Server 24.04.5 LTS をインストールしましたが、カーネルパニックは起きませんでした。
添付の症状を ChatGPT に相談してみましたが、メモリーが足りないことから、プロセスを頻繁にキルしているとのことでした。
https://chatgpt.com/share/6aba6db3-d734-83ee-a90b-eb0d3ef0cbf8Those logs are not a kernel panic. They show the Linux kernel's OOM (Out-Of-Memory) killer repeatedly killing processes because the VM has exhausted available memory.
The important part is:
Out of memory: Killed process 812 (unattended-upgr)
Out of memory: Killed process 776 (udisksd)
And the fact that the system eventually becomes completely unresponsive strongly suggests the VM is severely memory-starved, possibly with no usable swap.で、最初にやるべきことは、一旦 Hyper-V の設定の【動的メモリを有効にする】のチェックを外しみて様子を見ることのようです。
私自身で検証できていないですが、指示の通り【動的メモリを有効にする】のチェックを外すとどうなるでしょうか?
ご確認ありがとうございます。
実は、VMマシン設定-動的メモリの最小RAMを(デフォルト)「512MB」から「2048MB」に引き上げて様子見をしているところでした。
https://qiita.com/hiro-matsumoto/questions/a8ed59f0d432efab3913#vm%E3%83%9E%E3%82%B7%E3%83%B3%E8%A8%AD%E5%AE%9A-%E5%8B%95%E7%9A%84%E3%83%A1%E3%83%A2%E3%83%AA%E3%81%AE%E6%9C%80%E5%B0%8Fram%E3%82%92%E3%83%87%E3%83%95%E3%82%A9%E3%83%AB%E3%83%88512mb%E3%81%8B%E3%82%892048mb%E3%81%AB%E5%BC%95%E3%81%8D%E4%B8%8A%E3%81%92%E3%81%A6%E3%81%BF%E3%81%9F
※おそらくこの設定でも安定して稼働している様子?
そうするとこれは、Hyper-V側の初期値(512MB)の問題なのか?
あるいは、Ubuntu側のメモリバルーンニングの不具合なのか?←少なくとも今まで使ってきた「24.04.4」では発生したことはありませんでしたし。
ちなみにゲストUbuntu上では統合ゲストサービスとして次のインストールは行っています。(ただしこれも24.04.4の時から同じ)
```
sudo apt install -y linux-virtual linux-tools-virtual linux-azure
```
これらに問題はあるでしょうか?
オフライン