|
|
Re: как создать свой template? [message #867 is a reply to message #838] |
Tue, 17 January 2006 11:49 |
hostill
Messages: 18 Registered: January 2006
|
Junior Member |
|
|
Вообсчем еще вылезло вот что,
я сделал свой тарбол на основе вашего темплайта + свой софт положил его в cache/fedora-core4-full.tar.gz
теперь создаю сервер
$vzctl create 252 --ostemplate fedora-core4-full
Creating VPS private area: /vz/private/252
Unable to get full ostemplate name for fedora-core4-full
Warning: configuration file for distribution fedora-core4-full not found default used
Performing postcreate actions
VPS private area was created
странно вот это:
Unable to get full ostemplate name for fedora-core4-full
Warning: configuration file for distribution fedora-core4-full not found default used
Но ладно, далее задаем параметры впсу и опять вылезает
$vzctl set 252 --hostname dorw.ru --save
Warning: configuration file for distribution fedora-core4-full not found default used
Saved parameters for VPS 252
ну и конечно же он отказывается стартовать
vzctl start 252
Warning: configuration file for distribution fedora-core4-full not found default used
Starting VPS ...
VPS is mounted
Adding IP address(es): хххюхххюхх
Setting CPU units: 1000
Set hostname: dorw.ru
Unable to start init, probably incorrect template
VPS start failed
Stopping VPS ...
VPS was stopped
VPS is unmounted
далее создаем кофниг для него такой fedora-core4-full.conf на основе этого fedora-core-4.conf
но все равно пристарте такая вот борода
vzctl start 252
Starting VPS ...
VPS is mounted
Adding IP address(es): ххчххчххч
Setting CPU units: 1000
Set hostname: dorw.ru
Unable to start init, probably incorrect template
VPS start failed
Stopping VPS ...
VPS was stopped
VPS is unmounted
плз подскажите где еще нужно подправить?
[Updated on: Tue, 17 January 2006 12:05] Report message to a moderator
|
|
|
|
|
|
|
|
Re: как создать свой template? [message #2440 is a reply to message #2439] |
Wed, 05 April 2006 07:00 |
KreG7
Messages: 7 Registered: March 2006
|
Junior Member |
|
|
т.е. , насколько я понял , ssh и ssl генерится автоматически, если их в temlate удалить, или надо :
rm -f /etc/ssh/ssh_host_*
cat << EOF > /etc/rc2.d/S15ssh_gen_host_keys
#!/bin/bash
ssh-keygen -f /etc/ssh/ssh_host_rsa_key -t rsa -N ''
ssh-keygen -f /etc/ssh/ssh_host_dsa_key -t dsa -N ''
rm -f \$0
EOF
chmod a+x /etc/rc2.d/S15ssh_gen_host_keys
так ?
вот только для ssl надо вроде еще кучу вопросов отвечать + настроить обработку окруженя
цитата:
Все команды, перечисленные ниже, выполняются в каталоге /etc/ssl.
1.1. Создание приватного ключа RSA, защищенного парольной фразой, для Вашего сервера Apache.
[root@deep ssl]# openssl genrsa -des3 -out server.key 1024
Generating RSA private key, 1024 bit long modulus
......................+++++.....+++++
e is 65537 (0x10001)
Enter PEM pass phrase:
Verifying password - Enter PEM pass phrase:
Пожалуйста, создайте резервную копию файла server.key и запомните парольную фразу.
1.2. Создание Certificate Signing Request (CSR) с серверным приватным ключом RSA.
[root@deep ssl]# openssl req -new -key server.key -out server.csr
Using configuration from /etc/ssl/openssl.cnf
Enter PEM pass phrase:
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [CA]:
State or Province Name (full name) [Quebec]:
Locality Name (eg, city) [Montreal]:
Organization Name (eg, company) [Open Network Architecture]:
Organizational Unit Name (eg, section) [Internet Department]:
Common Name (eg, YOUR name) [www.openna.com]:
Email Address [admin@openna.com]:
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:.
An optional company name []:.
ЗАМЕЧАНИЕ. Убедитесь, что Вы ввели FQDN (полностью определенное доменное имя (Fully Qualified Domain Name)) сервера, когда OpenSSL спросил Вас о CommonName (например, когда Вы создаете CSR для веб-сервера, который будет позже доступен через https://www.mydomain.com, введите www.mydomain.com).
Вы с таким не сталкивались ?
|
|
|