This commit is contained in:
iceBear67
2026-06-05 16:42:56 +08:00
commit 87e76877ca
23 changed files with 662 additions and 0 deletions

9
scripts/entrypoint.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
set -euo pipefail
/usr/bin/cloud-hypervisor \
--kernel /image/vmlinuz --initramfs /image/initramfs --disk path=/image/vm.raw \
--cmdline "root=/dev/vda rootfstype=ext4 modules=ext4a rw console=hvc0" \
--cpus boot=${CPU_COUNT:-4} \
--memory size=${MEMORY:-4G},shared=on \
$@