microsoft/openvmm

Public

mirrored fromhttps://github.com/microsoft/openvmmAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
e8acaefba35969bbca0ffae96452cd05b47aa621

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

Guide/src/dev_guide/getting_started/windows.md

82lines · modecode

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