openvz create template error

chrismaden

Keep it Low
Hallo wollte mir gerade ein neues Template einrichten da bekam ich folgenden error:
root@Cent # vzctl create 101 --ostemplate centos-5-i386-default --config vps.basic
File /etc/vz/conf/ve-vps-basic.conf-sample is not found
Creation of container private area failed

--- logg ---
Code:
root@CentOS-54-32-minimal /etc/vz/conf # ls -la
total 28K
drwxr-xr-x  2 root root 4.0K Nov 28 19:23 .
drwxr-xr-x 10 root root 4.0K Nov 28 19:04 ..
-rw-r--r--  1 root root  234 Sep  6 16:26 0.conf
-rw-r--r--  1 root root   13 Nov 28 19:23 101.conf
-rw-r--r--  1 root root 1.5K Sep  6 16:26 ve-basic.conf-sample
-rw-r--r--  1 root root 1.6K Sep  6 16:26 ve-light.conf-sample
-rw-r--r--  1 root root 1.5K Sep  6 16:26 ve-unlimited.conf-sample

root@CentOS-54-32-minimal /etc/sysconfig/vz-scripts # ls -la
total 28K
drwxr-xr-x  2 root root 4.0K Nov 28 19:23 .
drwxr-xr-x 10 root root 4.0K Nov 28 19:04 ..
-rw-r--r--  1 root root  234 Sep  6 16:26 0.conf
-rw-r--r--  1 root root   13 Nov 28 19:23 101.conf
-rw-r--r--  1 root root 1.5K Sep  6 16:26 ve-basic.conf-sample
-rw-r--r--  1 root root 1.6K Sep  6 16:26 ve-light.conf-sample
-rw-r--r--  1 root root 1.5K Sep  6 16:26 ve-unlimited.conf-sample

root@CentOS-54-32-minimal /etc/sysconfig/vz-scripts # vzctl create 101 --ostemplate centos-5-i386-default --config vps-basic
File /etc/vz/conf/ve-vps-basic.conf-sample is not found
Creation of container private area failed

root@CentOS-54-32-minimal /etc/sysconfig/vz-scripts # cat /etc/vz/vz.conf
## Global parameters
VIRTUOZZO=yes
LOCKDIR=/vz/lock
DUMPDIR=/vz/dump
VE0CPUUNITS=1000

## Logging parameters
LOGGING=yes
LOGFILE=/var/log/vzctl.log
LOG_LEVEL=0
VERBOSE=0

## Disk quota parameters
DISK_QUOTA=yes
VZFASTBOOT=no

# Disable module loading. If set, vz initscript do not load any modules.
#MODULES_DISABLED=yes

# The name of the device whose IP address will be used as source IP for CT.
# By default automatically assigned.
#VE_ROUTE_SRC_DEV="eth0"

# Controls which interfaces to send ARP requests and modify APR tables on.
NEIGHBOUR_DEVS=all

## Fail if there is another machine in the network with the same IP
ERROR_ON_ARPFAIL="no"

## Template parameters
TEMPLATE=/vz/template

## Defaults for containers
VE_ROOT=/vz/root/$VEID
VE_PRIVATE=/vz/private/$VEID
CONFIGFILE="vps.basic"
DEF_OSTEMPLATE="centos-5"

## Load vzwdog module
VZWDOG="no"

## IPv4 iptables kernel modules
IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length"

## Enable IPv6
IPV6="no"

## IPv6 ip6tables kernel modules
IP6TABLES="ip6_tables ip6table_filter ip6table_mangle ip6t_REJECT"
hoffe das alle infos drinnen sind die ihr braucht

basierend auf centos 5

ps.
auch wenn ich so mache :
Code:
root@CentOS-54-32-minimal /etc/vz/conf # vzctl create 101 --ostemplate centos-5-i386-default --config vps-basic
File /etc/vz/conf/ve-vps-basic.conf-sample is not found
Creation of container private area failed

root@CentOS-54-32-minimal /etc/vz/conf # vzctl create 101 --ostemplate centos-5-i386-default --config vps.basic
File /etc/vz/conf/ve-vps.basic.conf-sample is not found
Creation of container private area failed

klappt es nicht keine ahnung woran es liegen soll obwohl die datei doch existiert?!
 
Last edited by a moderator:
Code:
Error: container config file /etc/vz/conf/101.conf already exists
Lesen ist nicht deine Stärke oder? :rolleyes:

Edit:
Ok, hast es wohl selbst gemerkt. ;)
 
Ein erneutes Problem?!
Habe mal die 101 gestartet und bin drinnen.
Aber wenn ich wget http://google.de mache
gibt er mir nur das hier raus:
Code:
Code:
[root@test /]# wget http://google.de
--11:01:55--  http://google.de/
Resolving google.de... failed: Temporary failure in name resolution.

Wie kann ich das beheben ?
Möchte ja logischer weise auch packages laden :rolleyes:

und in dem thema nameserver bin ich frischling
 
Last edited by a moderator:
Du musst der VE auch schon paar Nameserver geben. Nimm am besten die, die auch auf dem Hostsystem in der /etc/resolv.conf stehen.
Für die VE am besten mit
Code:
vzctl set <VEID> --nameserver <IP> --nameserver <IP2> --save
hinzufügen. Nicht direkt in die /etc/resolv.conf schreiben.

Eine IP hast du der VE ja hoffentlich schon verpasst.
 
Was willst du hier mit einem VLan?
Du brauchst eine IP die über das Hostsystem geroutet oder "genattet" wird und ein (paar) Nameserver wie bei jedem anderen System auch. Wie wäre es mal mit paar Informationen auf das jeweilige Problem bezogen? (ifconifg, ip r l, VE config, Inhalt resolv.conf vom Hostsystem und der VE, usw.)

Edit:
Es wäre nett, wenn du nicht immer den kompletten Inhalt deiner bereits geschriebenen Beiträge entfernen würdest, während andere schon drauf antworten.
 
Back
Top