vzctl restore: warn in CPT_SET_LOCKFD2 not supported

In case we have very old kernel, in which CPT_SET_LOCKFD2
is not supported, do warn about it.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
vzctl snapshot-switch: add --skip_arpdetect option

If snapshot was done while CT was running, CT will be restored
from the dump file. While restoring, vps-net_add script is called
which, among the other things, calls arpsend to check if CT IPs are
used elsewhere. arpsend sends an ARP request for IP and waits for
up to one second for reply.

In case CT IPs are not changed from the current state, there is no
sense to run arpsend. So, add the option --skip_arpdetect to do that.

Note that since skip_arpdetect is set in cmd_p options, and we pass
g_p to vzctl_env_switch_snapshot, we need to explicitly copy the
skip_arpdetect option from cmd_p to g_p.

Note that since we re-read CT config on resume and use the new config
(if available), we need to explicitly copy the skip_arpdetect option
to the new param.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
bash_completion.d: add --quiet to vzctl

When completing snapshot IDs for snapshot-switch etc, vzctl needs to
be quiet, i.e. output nothing but the snapshot IDs. In case VERBOSE
is set to high value in /etc/vz/vz.conf it might not be the case:

[root@ce6 vzctl]# vzctl snapshot-list 110 -H -ouuid
The ploop library has been loaded successfully
{625f9ea2-9e8d-43be-ab46-de50344b8968}
....

Which leads to this funny effect:

[root@ce6 vzctl]# vzctl snapshot-switch 110 --id
03f09a21-ae49-4a33-ade9-aa89909d0777
ee95e935-3b6a-444d-9da3-0a72f19d151b
37f0b846-4735-428a-882b-20648e381109  has
47d7de0c-50ca-4768-be15-2f3b7e727c04  library
625f9ea2-9e8d-43be-ab46-de50344b8968  loaded
727ad2db-d08b-4a6b-8e12-83cd7d99ed24  ploop
9bec9072-7dcd-4fd1-a59d-334082513f89  successfully
been                                  The

Fix by adding --quiet to vzctl snapshot-list invocations.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
setver.sh: make it work on fresh git source

In case we have just checked out vzctl from git, we need
to run autogen.sh and configure for the first time. Rather
than to remember about it, let this mighty script do the work.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>