Hi,
I want to save the state of a virtual machine with a shell script. Manually I can do this job by open a qm shell (qm monitor VMID) and then enter:
stop
migrate "exec:dd of=state.img"
cont
quit
I tried to write these commands in a file named Komma and pipe this to the qm command like: cat Komma | qm monitor 101. It didn't work.
Does anybody knows how to do the job? Maybe there are qm commands, that do the same. I found out, that qm stop makes something complete different, than the stop command in the qm shell.
Thanks
Andreas Block
I want to save the state of a virtual machine with a shell script. Manually I can do this job by open a qm shell (qm monitor VMID) and then enter:
stop
migrate "exec:dd of=state.img"
cont
quit
I tried to write these commands in a file named Komma and pipe this to the qm command like: cat Komma | qm monitor 101. It didn't work.
Does anybody knows how to do the job? Maybe there are qm commands, that do the same. I found out, that qm stop makes something complete different, than the stop command in the qm shell.
Thanks
Andreas Block