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?

Windows Sandbox初期化エラー

0
Last updated at Posted at 2026-04-25

問題

複数GPUを装着したPCで、Windows Sandboxを実行したとき「Windowsサンドボックス環境への接続が失われました。再接続しますか?」というエラーが出る。
image.png

現象と再現手順

GPU統合CPU(Intelは「F」無し、AMDはRyzenのG/GEシリーズまたは7000/8000/9000番台以降の多くのモデル)とPCIeのグラフィックカードを搭載したPC、もしくはGPU複数枚刺しのPC。

Windows Sandbox起動時に発生。

再度無効化して有効化しても解決せず。

以下のRedditスレを参考に、コマンドラインでWindowsサンドボックスを有効化しても改善せず。
https://www.reddit.com/r/windowsinsiders/comments/1ecrt5q/windows_11_24h2_release_preview_windows_sandbox/?tl=ja

>dism /online /Enable-Feature /FeatureName:"Containers-DisposableClientVM" -All

原因と解決

サンドボックスではデフォルトでvGPU(ホストとのGPU共有)が有効になっているが、その際にどのGPUを共有するか判断できないせいだった。

  • 内蔵GPUの場合は、デバイスマネージャーで無効にする
    image.png

  • もしくは、サンドボックスの設定でvGPUを無効にする。(ホストマシンとのGPU共有を無効化)
    具体的には、適当なところに以下のテキストファイルの.wsbファイルを作って実行する。

    disable-vgpu.wsb
    <Configuration>
      <vGPU>Disable</vGPU>
    </Configuration>
    

    無効にした場合、ゲストマシンはこんな感じに、GPU無しになる。
    image.png

備考

WindowsSandbox起動のために毎回デバイス無効化するのは面倒なので、「グラフィック」の設定でWindowsサンドボックスのGPUを指定してみたが、これは無駄だった。
image.png

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?