13 lines
393 B
Bash
Executable File
13 lines
393 B
Bash
Executable File
#!/bin/sh
|
|
set -euo pipefail
|
|
|
|
/usr/bin/cloud-hypervisor \
|
|
--kernel /boot/vmlinuz-virt --initramfs /boot/initramfs-virt \
|
|
--disk path=/image/vm.raw,image_type=raw \
|
|
--disk path=/image/data.raw,direct=on,image_type=raw \
|
|
--cmdline "modules=ext4 root=/dev/vda rootfstype=ext4 rw console=hvc0" \
|
|
--cpus boot=${CPU_COUNT:-4} \
|
|
--memory size=${MEMORY:-4G},shared=on \
|
|
--net "tap="
|
|
$@
|