update deploy instructions for WSL
This commit is contained in:
@@ -1,14 +1,15 @@
|
|||||||
# Deploy redroid on WSL2
|
# Deploy redroid on WSL2
|
||||||
|
|
||||||
```
|
```
|
||||||
## use custom kernel here
|
##############################
|
||||||
|
## 5.15
|
||||||
|
## 5.10
|
||||||
|
##############################
|
||||||
|
|
||||||
## download WSL kernel source from https://github.com/microsoft/WSL2-Linux-Kernel/tags
|
## download WSL kernel source from https://github.com/microsoft/WSL2-Linux-Kernel/tags
|
||||||
wget https://github.com/microsoft/WSL2-Linux-Kernel/archive/refs/tags/linux-msft-wsl-5.10.102.1.tar.gz
|
|
||||||
|
|
||||||
tar xf linux-msft-wsl-5.10.102.1.tar.gz
|
|
||||||
cd WSL2-Linux-Kernel-linux-msft-wsl-5.10.102.1
|
|
||||||
|
|
||||||
|
tar xf tar xf linux-msft-wsl-*.tar.gz
|
||||||
|
cd WSL2-Linux-Kernel-linux-msft-wsl-*
|
||||||
cp Microsoft/config-wsl .config
|
cp Microsoft/config-wsl .config
|
||||||
|
|
||||||
## enable following kernel features
|
## enable following kernel features
|
||||||
@@ -35,23 +36,23 @@ CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
|
|||||||
|
|
||||||
|
|
||||||
## build kernel
|
## build kernel
|
||||||
make -j`nproc`
|
make
|
||||||
|
|
||||||
## copy `arch/x86_64/boot/bzImage` to some folder in Windows
|
## built kernel located in `arch/x86_64/boot/bzImage`
|
||||||
|
|
||||||
## follow https://docs.microsoft.com/en-us/windows/wsl/wsl-config#configuration-setting-for-wslconfig
|
## follow https://docs.microsoft.com/en-us/windows/wsl/wsl-config#configuration-setting-for-wslconfig
|
||||||
## to use this new kernel
|
## to use this new kernel
|
||||||
cat .wslconfig
|
<<EOF cat >> .wslconfig
|
||||||
[wsl2]
|
[wsl2]
|
||||||
kernel=D:\\wsl\\bzImage
|
kernel=<KERNEL-PATH>
|
||||||
memory=4GB
|
EOF
|
||||||
|
|
||||||
|
|
||||||
## running redroid
|
## running redroid
|
||||||
docker run -itd --rm --privileged \
|
docker run -d --rm \
|
||||||
--pull always \
|
--privileged \
|
||||||
-v ~/data11:/data \
|
-v ~/redroid-data:/data \
|
||||||
-p 5555:5555 \
|
-p 5555:5555 \
|
||||||
--name redroid11 \
|
--name redroid \
|
||||||
redroid/redroid:11.0.0-latest
|
redroid/redroid
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user