UEFI(Unified Extensible Firmware Interface ユニファイド エクステンシブル インターフェース)でのCPUの仮想化支援機能を有効にする方法は、ベンダーや機種によって違いがあるため、ベンダーのサイトを参考にして、設定してください。
Windows 10 or 11 (WSL2)のUbuntuでsystemctlを利用する方法(systemdをPID1で動作させる方法) | Snow System
https://snowsystem.net/other/windows/wsl2-ubuntu-systemctl/
これをやらないと $ systemctl
$ systemctl
System has not been booted with systemd as init system (PID 1). Can't operate.
となりcron が利用できません
対応
# nano /etc/wsl.conf
[boot]
systemd=true
WSL2をシャットダウンする
PowerShellで以下のコマンドを実行するのみです。
wsl --shutdown
Windows10のWSL & X11アプリケーション
win11では
良い点:VcXsrv等を使う必要がない&日本語が win側のフォントを使用できる
悪い点:日本語入力で変換候補が文字列の位置に出ない これはwin10 でもなる場合がある