adjust fstab and mount device param

This commit is contained in:
iceBear67
2026-06-15 17:40:12 +08:00
parent 37d68dfcab
commit 71f46fb430
6 changed files with 17 additions and 19 deletions

View File

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