Skip to content

Commit 2d8e18c

Browse files
committed
increase resource provisioning
1 parent 41cd795 commit 2d8e18c

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

nixos/iso.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
# Boot loader (override iso-image.nix default of 10)
2828
boot.loader.timeout = lib.mkForce 5;
2929

30+
# Give root tmpfs 80% of RAM (default 50% is too small for container images)
31+
fileSystems."/" = lib.mkForce {
32+
device = "tmpfs";
33+
fsType = "tmpfs";
34+
options = [ "size=80%" "mode=755" ];
35+
};
36+
3037
# QEMU guest agent for Proxmox/KVM integration
3138
services.qemuGuest.enable = true;
3239

scripts/deploy-iso.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ echo "==> Downloading ISO to Proxmox"
1414
ssh "$PVE" "curl -L -o /var/lib/vz/template/iso/bloud-test.iso '$URL'"
1515

1616
echo "==> Creating VM $VMID"
17-
ssh "$PVE" "qm create $VMID --name bloud-test --memory 4096 --cores 2 --ostype l26 \
17+
ssh "$PVE" "qm create $VMID --name bloud-test --memory 8192 --cores 2 --ostype l26 \
1818
--cdrom local:iso/bloud-test.iso --boot order=ide2 \
1919
--net0 virtio,bridge=vmbr0 --agent enabled=1 --serial0 socket"
2020

scripts/test-iso.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ set -euo pipefail
2020
# ── Configuration ─────────────────────────────────────────────────
2121
PVE_HOST="${BLOUD_PVE_HOST:-root@192.168.0.62}"
2222
VMID="${BLOUD_PVE_VMID:-9999}"
23-
VM_MEMORY=4096
23+
VM_MEMORY=8192
2424
VM_CORES=2
2525
VM_NAME="bloud-test-iso"
2626
ISO_STORAGE="/var/lib/vz/template/iso"
@@ -99,10 +99,10 @@ check() {
9999
echo -n " Checking $name... "
100100
if "$@" > /dev/null 2>&1; then
101101
echo -e "${GREEN}PASS${NC}"
102-
((PASSED++))
102+
PASSED=$((PASSED + 1))
103103
else
104104
echo -e "${RED}FAIL${NC}"
105-
((FAILED++))
105+
FAILED=$((FAILED + 1))
106106
fi
107107
}
108108

@@ -135,7 +135,7 @@ if [ "$SKIP_DEPLOY" = false ]; then
135135
# Resolve ISO source
136136
if [ -z "$ISO_SOURCE" ]; then
137137
log "Finding latest GitHub release..."
138-
ISO_SOURCE=$(gh release view --json assets --jq '.assets[] | select(.name | endswith(".iso")) | .url' 2>/dev/null || true)
138+
ISO_SOURCE=$(gh release view --json assets --jq '[.assets[] | select(.name | endswith(".iso"))] | last | .url' 2>/dev/null || true)
139139
if [ -z "$ISO_SOURCE" ]; then
140140
err "No ISO source provided and no GitHub release found"
141141
exit 1

0 commit comments

Comments
 (0)