Hello,
I want to auto rollback when vm is stop. the same as PXE.
use hookscript:
Both tasks will lock the vm at the same time,and post error
I want to auto rollback when vm is stop. the same as PXE.
use hookscript:
Perl:
my $cmd ="qm rollback $vmid snapshot";
......
.......
elsif($phase eq 'post-stop') {
print "$vmid stopped. Doing cleanup.\n";
system($cmd);
Both tasks will lock the vm at the same time,and post error
Bash:
GUEST HOOK: 801 pre-stop
801 will be stopped.
trying to acquire lock...
can't lock file '/var/lock/qemu-server/lock-801.conf' - got timeout