microsoft/openvmm
Publicmirrored fromhttps://github.com/microsoft/openvmmAvailable
Guide/src/dev_guide/getting_started/windows.md
82lines · modecode
| 1 | # Getting started on Windows |
| 2 | |
| 3 | This page provides instructions for installing the necessary dependencies to |
| 4 | build OpenVMM on Windows. |
| 5 | |
| 6 | ```admonish tip |
| 7 | We _strongly_ suggest using [WSL2](./linux.md) for OpenVMM development, rather |
| 8 | than developing on Windows directly. |
| 9 | |
| 10 | Developing in WSL2 offers a smoother development experience, while still |
| 11 | allowing you to build and run OpenVMM on Windows through the use of |
| 12 | [cross compilation](./cross_compile.md). |
| 13 | |
| 14 | Additionally, it allows you to have a single clone of the OpenVMM repo |
| 15 | suitable for both OpenVMM and OpenHCL development. |
| 16 | ``` |
| 17 | |
| 18 | You must be running a recent version of Windows 11. Windows 10 is no longer |
| 19 | supported as a development platform, due to needed WHP APIs. |
| 20 | |
| 21 | **NOTE: OpenHCL does NOT build on Windows.** |
| 22 | |
| 23 | If you are interested in building OpenHCL, please follow the getting started |
| 24 | guide for [Linux / WSL2](./linux.md). |
| 25 | |
| 26 | ## Installing Rust |
| 27 | |
| 28 | To build OpenVMM, you first need to install Rust. |
| 29 | |
| 30 | The OpenVMM project actively tracks the latest stable release of Rust, though it |
| 31 | may take a week or two after a new stable is released until OpenVMM switches |
| 32 | over to it. |
| 33 | |
| 34 | Please follow the [official instructions](https://www.rust-lang.org/tools/install) to do so. |
| 35 | |
| 36 | ### Visual Studio C++ Build Tools and Windows SDK |
| 37 | |
| 38 | If you don't already have it, you will need to install |
| 39 | [Visual Studio C++ Build tools ](https://visualstudio.microsoft.com/visual-cpp-build-tools/) |
| 40 | or [Visual Studio](https://visualstudio.microsoft.com/vs/) with the components |
| 41 | "Desktop Development for C++" and the Windows SDK. Windows 11 SDK version 26100 is the latest |
| 42 | version as of this update, but you should install the newest version if there is a newer |
| 43 | version. |
| 44 | |
| 45 | The C++ build tools can be installed via `Visual Studio Installer` -> `Modify` -> `Individual Components` |
| 46 | -> `MSVC v143 - VS 2022 C++ x64/x86 build tools (latest)`. |
| 47 | |
| 48 | The Windows SDK can be installed via `Visual Studio Installer` -> `Modify` -> `Individual Components` |
| 49 | -> `Windows 11 SDK (10.0.26100.0)`. |
| 50 | |
| 51 | The C++ build tools and Windows SDK can be installed at the same time. |
| 52 | |
| 53 | Or, you can install the tool via the powershell command below. |
| 54 | |
| 55 | ```powershell |
| 56 | PS> winget install Microsoft.VisualStudio.2022.Community --override "--quiet --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows11SDK.26100" |
| 57 | ``` |
| 58 | |
| 59 | ### Aarch64 support |
| 60 | |
| 61 | To build ARM64, you need an additional dependency. |
| 62 | This can be installed via `Visual Studio Installer` -> `Modify` -> `Individual Components` |
| 63 | -> `MSVC v143 - VS 2022 C++ ARM64/ARM64EC build tools (latest)`. |
| 64 | |
| 65 | Or, you can install the tool via the powershell command below. |
| 66 | |
| 67 | ```powershell |
| 68 | PS> winget install Microsoft.VisualStudio.2022.Community --override "--quiet --add Microsoft.VisualStudio.Component.VC.Tools.ARM64" |
| 69 | ``` |
| 70 | |
| 71 | ## Cloning the OpenVMM source |
| 72 | |
| 73 | If you haven't already installed `git`, you can download it |
| 74 | [here](https://git-scm.com/downloads). |
| 75 | |
| 76 | ```powershell |
| 77 | PS> git clone https://github.com/microsoft/openvmm.git |
| 78 | ``` |
| 79 | |
| 80 | ## Next Steps |
| 81 | |
| 82 | You are now ready to build [OpenVMM](./build_openvmm.md)! |
| 83 | |