diff options
author | Alistair Delva <adelva@google.com> | 2022-03-03 09:45:06 -0800 |
---|---|---|
committer | Alistair Delva <adelva@google.com> | 2022-03-03 09:45:08 -0800 |
commit | 2cea51a84c0d5a45da3548758bb3a2d6d2954c5e (patch) | |
tree | c8904a778c51837afe00678c9cf1499d6f2e47cf | |
parent | 31f9aaf0d186fe4fccf36d29fcfa7d69f5cc6f36 (diff) | |
download | tests-2cea51a84c0d5a45da3548758bb3a2d6d2954c5e.tar.gz |
build_rootfs.sh: Enable unlimited memlock on arm64
Avoids problems starting crosvm on arm64 devices with
kvm-arm.mode=protected enabled, which is the default for GKI now.
Change-Id: Ibb8c0b1a27784c82c7c4eb7ef688ca00661fee53
-rw-r--r-- | net/test/rootfs/common.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/test/rootfs/common.sh b/net/test/rootfs/common.sh index c86c39c..c935250 100644 --- a/net/test/rootfs/common.sh +++ b/net/test/rootfs/common.sh @@ -103,6 +103,10 @@ setup_cuttlefish_user() { useradd -m -G cvdnetwork,kvm,render,sudo,video \ -d /home/vsoc-01 --shell /bin/bash vsoc-01 echo -e "cuttlefish\ncuttlefish" | passwd vsoc-01 + + # Enable unlimited memory locking for vsoc-01, which is needed by protected + # KVM, which is enabled by default on arm64 devices + echo "vsoc-01 - memlock unlimited" >>/etc/security/limits.conf } # $* - One or more device names for getty spawns |