LoginSignup
0
0

More than 1 year has passed since last update.

Vagrantで使用するboxをubuntu20からubuntu22へ変更したメモ

Last updated at Posted at 2022-05-20

概要

Vagrantfileのboxを ubuntu/focal64からubuntu/jammy64へ変更した。
今まで動いていたものが動かなくなったので対応した。

対応コミット

環境

  • Windows10 Home バージョン21H2(OS ビルド 19044.1706)
  • VirtualBox 6.1.34 r150636 (Qt5.6.2)
  • Vagrant 2.2.19

apt-get updateに失敗する。

以下のエラーが発生。

 Temporary failure resolving

Vagrant で Temporary failure resolving となる問題の解決 – イントラネット DNS 編を読むに、systemd-resolved のスタブリゾルバ周りの問題。

このboxには、記事で紹介されている /etc/netplan/01-netcfg.yamlが入っていなかったので、
それを作成してnetplan applyで適用する方法をとった。

docker-composeが止まる

 => => extracting sha256:ae7bcede80b1916d73be58ae0a2af8321770c4ce0c8ada05c39271e292355325                                                                  0.9s 
 => => extracting sha256:37471fc83c2dc382a8aec5dc1c1f0f2f8156f4df529cd1aea7647cbaee4b25fa                                                                  0.9s 
 => => extracting sha256:0162432a49c07aa492d3e1031af58a9a9f9b22acde859829434e5a54d019aa1c                                                                 11.9s 
 => => extracting sha256:7ee8ddc463fd0224112f41976e81d15dd46444f93185d9cde6203a0185857be2                                                                138.3s 
 => [internal] load build context                                                                                                                          0.2s 
 => => transferring context: 653B        

virtualboxには以下の文言が表示されていた。

BUG: soft lockup - CPU#

また、別のバグも検出。

failed to solve: failed to register layer: error creating overlay mount to /var/lib/docker/overlay2/9ff8a5dc965cad8f64e927be8b02a933d369743fc78bb54cb4be74d3b1877c45/merged: too many levels of symbolic links

起動オプションを治したらなおった、、、?
ちょっと不明

対応コミット

参考

Vagrant で Temporary failure resolving となる問題の解決 – イントラネット DNS 編
Ubuntu 16.10 その7 - ローカルDNSリゾルバーの仕組みが変わる・systemd-resolvedの採用
ubuntu 初期設定 : ネットワークの設定

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0