Christian Günther wrote:
> Hello,
>
> I'am trying to install OpenVZ. I patched the kernel and created a
> template. If I try to start the VE the following error is given:
>
> # vzctl start 777 ...
> RTNETLINK answers: No such device
> vps-net_add ERROR: Unable to add route /sbin/ip route add 192.168.2.50
> dev venet0 src 192.168.2.23
>
>
> Host System Kernel: Etch 2.6.18.5+openvz
>
> etc/vz/conf/777.conf
> ...
> OSTEMPLATE=debian-4.0
> IP_ADDRESS="192.168.2.50"
> NAMESERVER="192.168.2.1"
>
> # lsmod | grep vz
> vznetdev 16704 0
> vzmon 40648 1 vznetdev
> ipv6 236448 9 vzmon
>
> - ifconfig shows no venet0
>
> # ip link show venet0
> 1: venet0: <BROADCAST,POINTTOPOINT,NOARP> mtu 1500 qdisc noop
> link/void
I guess you simply haven't started vz service, thus venet device is not up
and running in the host system.
try /etc/init.d/vz start
before starting VEs.
Make sure you have also configured /etc/sysctl.conf according to installation HOWTO.
Thanks,
Kirill