remove test.sh

This commit is contained in:
iceBear67
2026-07-13 17:16:48 +08:00
parent c041cb97cd
commit 564888b297
3 changed files with 9 additions and 15 deletions
+4 -1
View File
@@ -1,9 +1,10 @@
#!/bin/sh
set -euo pipefail
API_SOCKET="/hy.socks"
_stop() {
ch-remote shutdown-vmm
ch-remote --api-socket "$API_SOCKET" power-button
}
trap _stop EXIT TERM
@@ -12,7 +13,9 @@ trap _stop EXIT TERM
--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 \
--api-socket "$API_SOCKET" \
--cmdline "root=/dev/vda rootfstype=ext4 modules=ext4a rw console=hvc0" \
--cpus boot=${CPU_COUNT:-4} \
--memory size=${MEMORY:-4G},shared=on \
--net "tap=$NET_INTERFACE,mac=$NET_MAC"
$@