0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

WSL2のUbuntuが起動できなくなった時の対処法(エラーコード: 0x80070569)

0
Posted at

概要

WSL2のUbuntuが突然停止し、wsl -d Ubuntu で起動しようとしたところ以下のエラーが発生。
管理者権限でのサービス再起動により解決した。

環境

  • OS: Windows 11
  • WSL バージョン: 2
  • ディストリビューション: Ubuntu

発生したエラー

まず wsl --list --verbose でステータスを確認:

PS C:\Users\username> wsl --list --verbose
  NAME      STATE           VERSION
* Ubuntu    Stopped         2

Stopped になっていたため、起動を試みたところ以下のエラーが発生:

PS C:\Users\username> wsl -d Ubuntu
ログオン失敗: 要求された種類のログオンは、このコンピューターではユーザーに許可されていません。
エラー コード: Wsl/Service/CreateInstance/CreateVm/HCS/0x80070569

原因

エラーコード 0x80070569仮想マシンの起動に必要な権限がない 場合に発生する。
WSLが使用する仮想化サービス(vmcompute)が正常に動作していないか、権限不足が原因。

解決手順

1. PowerShell を管理者として起動

スタートメニューで「PowerShell」を検索し、右クリック →「管理者として実行

⚠️ 通常のPowerShellでは System error 5 (Access is denied) が出て失敗します。

2. 仮想マシンサービスを再起動

net stop vmcompute
net start vmcompute

3. Ubuntu を起動

wsl -d Ubuntu

これで正常に起動できる。

まとめ

手順 コマンド
① 状態確認 wsl --list --verbose
② WSL完全停止(任意) wsl --shutdown
③ 管理者PowerShellでサービス停止 net stop vmcompute
④ サービス再起動 net start vmcompute
⑤ Ubuntu起動 wsl -d Ubuntu

補足

  • wsl --shutdownwsl -d 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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?