Skip to content

Commit ee3356b

Browse files
committed
Runs with 2GB memory
1 parent d1162c1 commit ee3356b

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

build-initrd.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ mount -o ro /dev/vda /lower
111111
112112
echo "overlay-init: mounted readonly rootfs from /dev/vda" > /dev/kmsg
113113
114-
# Create memory overlay (using 2G, adjust as needed)
115-
mount -t tmpfs -o size=2G none /tmp
114+
mount -t tmpfs -o size=1G none /tmp
116115
mkdir -p /tmp/upper /tmp/work /tmp/newroot
117116
118117
mount -t overlay \

start-chrome.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ sudo cloud-hypervisor \
1616
--kernel vmlinux \
1717
--initramfs initrd \
1818
--cmdline 'console=hvc0' \
19-
--cpus boot=4 --memory size=8192M \
19+
--cpus boot=4 --memory size=2048M \
2020
--disk path=rootfs.ext4,readonly=on \
2121
--net "tap=${TAP},ip=${GUEST_IP},mask=${MASK},mac=${MAC}" \
2222
--api-socket /tmp/ch.sock

0 commit comments

Comments
 (0)