well, if anyone read this thread in the future - we did the following:
generate a hook script in /var/lib/vz/snippets/ and put a perl script like this there:
#!/usr/bin/perl
use strict;
use warnings;
print "GUEST HOOK: " . join(' ', @ARGV). "\n";
# First argument is the vmid
my $vmid = shift...