update deploy redroid instructions on Fedora

This commit is contained in:
Ziyang Zhou
2023-11-09 18:53:16 +08:00
parent 657eabffe5
commit c874e3cb08

View File

@@ -1,19 +1,41 @@
# Deploy redroid on Fedora Linux
# Deploy redroid on Fedora
```
## update kernel (binderfs seems introduce kernel panic on 5.17)
dnf update
##############################
## Fedora 39
##############################
## disable selinux
grubby --update-kernel ALL --args selinux=0
grub2-mkconfig > /boot/grub2/grub.cfg
reboot
## disable SELinux temporarily
setenforce 0
## add possible missing kernel modules
modprobe nfnetlink
## run with memfd enabled
## start redroid
docker run -itd --rm --privileged \
--pull always \
-v ~/data11:/data \
-p 5555:5555 \
--name redroid11 \
redroid/redroid:11.0.0-latest \
androidboot.use_memfd=1
redroid/redroid:11.0.0-latest
##############################
## Fedora 38
##############################
## disable selinux
grubby --update-kernel ALL --args selinux=0
grub2-mkconfig > /boot/grub2/grub.cfg
reboot
## start redroid
docker run -itd --rm --privileged \
--pull always \
-v ~/data11:/data \
-p 5555:5555 \
--name redroid11 \
redroid/redroid:11.0.0-latest
```