> + die "can't delete CT $vmid protection option - protection mode enabled\n"
> + if ($conf->{protection} == 1);
$conf->{protection} can be undefined, so above code will throw warnings in
most cases. I already fixed that in current git, so please use similar
code.