microsoft/openvmm

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
3d1b90a1d44fc6121e97155994372cd334dea692

Branches

Tags

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

Clone

HTTPS

Download ZIP

Guide/src/dev_guide/getting_started/linux.md

57lines · modecode

1# Getting started on Linux / WSL2
2
3This page provides instructions for installing the necessary dependencies to
4build OpenVMM or OpenHCL on Linux / WSL2.
5
6## \[WSL2] Installing WSL2
7
8To install Windows Subsystem for Linux, run the following command in an
9elevated Powershell window:
10
11```powershell
12PS> wsl --install
13```
14
15This should install WSL2 using the default Ubuntu linux distribution.
16You can check that the installation completed successfully by running the
17following command in a Powershell window.
18```powershell
19PS> wsl -l -v
20 NAME STATE VERSION
21* Ubuntu Running 2
22```
23Once that command has completed, you will need to open WSL to complete the
24installation and set your password. You can open WSL by typing `wsl` or `bash`
25into Command Prompt or Powershell, or by opening the "Ubuntu" Windows Terminal
26profile that should have been created.
27
28> If you intend to cross-compile OpenVMM for Windows, please ensure you are
29> running a recent version of Windows 11. Windows 10 is no longer supported as a
30> development platform, due to needed WHP APIs.
31
32All subsequent commands on this page must be run within WSL2.
33
34## Installing Rust
35
36To build OpenVMM or OpenHCL, you first need to install Rust.
37
38The OpenVMM project actively tracks the latest stable release of Rust, though it
39may take a week or two after a new stable is released until OpenVMM switches
40over to it.
41
42Please follow the [official instructions](https://www.rust-lang.org/tools/install) to do so.
43
44## Cloning the OpenVMM source
45
46**If using WSL2:** Do NOT clone the repo into Windows then try to access said
47clone from Linux. It will result in serious performance issues.
48
49```bash
50$ cd path/to/where/you/clone/repos
51$ git clone https://github.com/microsoft/openvmm.git
52```
53
54## Next Steps
55
56You are now ready to build [OpenVMM](./build_openvmm.md) or
57[OpenHCL](./build_openhcl.md)!