VZ containers: removed mk_reboot_script

That function is currently useless and causes warnings
in some Ubuntu versions.

Signed-off-by: Alexander Burluka <aburluka@parallels.com>
VZ containers: Bug fixes

1) added missed break in switch statement
2) changed bad error message in pre_setup env
3) prevent second chdir in vzctl_chroot
4) added file descriptors transmission to execve in vz_enter_execve

Signed-off-by: Alexander Burluka <aburluka@parallels.com>
VZ containers: move vz_ct_create func to vz.c

Moved it to made sources clearer

Signed-off-by: Alexander Burluka <aburluka@parallels.com>
VZ containers: fix mac address setting

Mac addr setup was broken, fixed it.
Signed-off-by: Alexander Burluka <aburluka@parallels.com>
VZ containers: fix broken vz_ct_wait

vz_ct_wait was waiting for wrong pid, fix it.

Signed-off-by: Alexander Burluka <aburluka@parallels.com>
VZ containers: Make fds proper closing vz_spawn_execve, vz_enter_execve

Fix it, so vz_enter test is now passed.

Signed-off-by: Alexander Burluka <aburluka@parallels.com>
tests: fix root downloading url

Now it's generated with current date
Signed-off-by: Alexander Burluka <aburluka@parallels.com>
vz: use clone() instead of fork()

It's preparation to use CLONE_PARENT.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
vz: use CLONE_PARENT to fork a container

It allows to avoid a proxy process.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
vz: use CLONE_PARENT to enter into CT
util: move spawn_{wait,wake} functions

They will be used in the VZ driver too
vz: handle errors of execve