kvm: add support for RAM and CPU hotplug
Allow to Add CPU or RAM in hotplug mode, without need of restart qemu process
Showing
#!{{ dash }} | #!{{ dash }} | ||
if [ -f "{{ qemu_ready_path }}" ]; then | FILE="{{ qemu_ready_path }}" | ||
echo "VM correctly started." | # don't start checks too fast | ||
sleep 2 | |||
|
|||
if [ -f "$FILE" ]; then | |||
if [ "$(cat $FILE)" = "" ]; then | |||
echo "VM correctly started." | |||
else | |||
>&2 echo "Qemu Controller failed" | |||
>&2 cat $FILE | |||
exit 1 | |||
fi | |||
else | else | ||
log_file="{{ qemu_service_log_file }}" | log_file="{{ qemu_service_log_file }}" | ||
>&2 echo "Qemu process is not correctly started." | >&2 echo "Qemu process is not correctly started." | ||
... | ... |