File: INSTALL

package info (click to toggle)
vzctl 4.8-1%2Bdeb8u2
  • links: PTS
  • area: main
  • in suites: jessie
  • size: 4,000 kB
  • ctags: 3,612
  • sloc: ansic: 23,382; sh: 16,273; makefile: 549
file content (76 lines) | stat: -rw-r--r-- 1,851 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
This document tells how to install vzctl from source. Note that the preferred
method of installation is from packages provided by either your distro or
directly by OpenVZ project.


== Quick instructions: for the impatient ==

Compile with:

$ ./configure --enable-bashcomp --enable-logrotate
$ make

Install with (as root):

# make install
# make install-<distro>

Here <distro> can be one of: redhat, suse, gentoo, debian.


== Complete instructions ==

=== Configuration ===

Run ./configure script with the options you want (see
the full list of available options by running ./configure --help).

Some useful options are:

	--prefix=/some/path

Installation root. By default this is /usr/local, you might want to change it
to /usr by providing --prefix=/usr to ./configure

	--enable-bashcomp

Enable bash-completion support for vzctl command line arguments. You want
this if you use bash completion on your system.

	--enable-logrotate

Enable logrotate support for vzctl log file. You want this if you use
logrotate scripts on your system.

	--disable-udev

Disables installation of udev file describing vzctl device (/dev/vzctl).
This is enabled by default since all the modern Linux distributions use udev.
Supply this option in case you do not use udev on your system.

You can also supply environment variables like CC and CFLAGS to configure,
for example:

	CC=gcc4 CFLAGS="-O0 -g -Wall" ./configure [options]

=== Compilation ===

Just run

	make

=== Installation ===

This step is usually have to be done as root.

First, run

	make install

In addition, you should install some distribution-specific parts of vzctl.
To that effect, run one of the following:

	make install-gentoo	# for Gentoo
	make install-redhat	# for Red Hat, CentOS, and Fedora
	make install-suse	# for openSUSE and SLES
	make install-debian	# for Debian and Ubuntu