Ryzen 9 マシンで Docker と WSL2 のために Virtualization を有効化する

開発効率の向上を目指して Ryzen 9 3900X のマシンをゲットしてみました。
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3470/6436d7f0-8605-e808-306e-fa64a38347d6.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3470/b5922c32-2470-a437-48a6-209aad53dfbe.png)

私は頻繁に docker を使うのですが、Windows で Docker を使うときには [Virtualization](https://docs.docker.com/docker-for-windows/troubleshoot/#virtualization-must-be-enabled)をBIOSで有効化する必要があります。これはCPUやマザーボード毎に異なる様子です。

私の場合は派手なBIOSの画面が出てきて、設定の画面がわからずどこやねん！ってなりましたが、単純に検索すればよかったようです。
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3470/d00c6549-adc1-1a8b-9d74-f0c98656ed23.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3470/48ed9fb0-0ffd-66e2-ee88-513580171ec6.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3470/a9b5d476-4688-99f5-ce7a-06a8603fe3ac.png)

`SVM Mode` がその設定ですので `enable`にします。


しっかり成功しました。

```cmd
>systeminfo

Host Name:                 DESKTOP-KIUTRHV
OS Name:                   Microsoft Windows 10 Enterprise
OS Version:                10.0.19041 N/A Build 19041
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
Registered Owner:          N/A
Registered Organization:   N/A
Product ID:                00329-00000-00003-AA340
Original Install Date:     6/27/2020, 2:57:46 PM
System Boot Time:          6/27/2020, 9:23:22 PM
System Manufacturer:       Micro-Star International Co., Ltd.
System Model:              MS-7A38
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: AMD64 Family 23 Model 113 Stepping 0 AuthenticAMD ~3800 Mhz
BIOS Version:              American Megatrends Inc. B.40, 11/7/2019
Windows Directory:         C:\WINDOWS
System Directory:          C:\WINDOWS\system32
Boot Device:               \Device\HarddiskVolume2
System Locale:             en-us;English (United States)
Input Locale:              en-us;English (United States)
Time Zone:                 (UTC-08:00) Pacific Time (US & Canada)
Total Physical Memory:     32,716 MB
Available Physical Memory: 29,086 MB
Virtual Memory: Max Size:  37,836 MB
Virtual Memory: Available: 32,671 MB
Virtual Memory: In Use:    5,165 MB
Page File Location(s):     C:\pagefile.sys
Domain:                    WORKGROUP
Logon Server:              \\DESKTOP-KIUTRHV
Hotfix(s):                 5 Hotfix(s) Installed.
                           [01]: KB4534170
                           [02]: KB4537759
                           [03]: KB4545706
                           [04]: KB4560366
                           [05]: KB4566866
Hyper-V Requirements:      A hypervisor has been detected. Features required for Hyper-V will not be displayed.
```

こちらに、代表的な `virtualization` の設定名が載っていました。バラバラっすね。

> Intel Virtualization Technology,
AMD-V,
Hyper-V
VT-X
Vanderpool
SVM


* [How to Enable Virtualization on Windows 10](https://mashtips.com/enable-virtualization-windows-10/#:~:text=%20How%20to%20Enable%20Virtualization%20on%20Windows%2010,4%20Enable%20Hyper-V%20Virtualization%20in%20Window...%20More%20)