init
This commit is contained in:
9
scripts/entrypoint.sh
Normal file
9
scripts/entrypoint.sh
Normal 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 \
|
||||
$@
|
||||
Reference in New Issue
Block a user