Up and Running Suse on OpenVZ

if you found error like this when startup your suse instance in openvz follow my instruction below

error : Starting SSH daemonPRNG is not seeded


root@Apps ~]# vzlist -a
CTID NPROC STATUS IP_ADDR HOSTNAME
100 1 running 10.11.100.100 suse.conexiti.com
120 12 running 10.11.100.120 centos.conexiti.com
140 13 running 10.11.100.140 ubuntu.conexiti.com
[root@Apps ~]# vzctl exec 100 /etc/init.d/sshd start
Generating /etc/ssh/ssh_host_key.
PRNG is not seeded
Generating /etc/ssh/ssh_host_dsa_key.
PRNG is not seeded
Generating /etc/ssh/ssh_host_rsa_key.
PRNG is not seeded
Generating /etc/ssh/ssh_host_ecdsa_key.
PRNG is not seeded
Starting SSH daemonPRNG is not seeded
..failed
[root@Apps ~]# telnet 10.11.100.100 22
Trying 10.11.100.100...
telnet: connect to address 10.11.100.100: Connection refused
telnet: Unable to connect to remote host: Connection refused
[root@Apps ~]# vzctl exec 100 /etc/init.d/sshd start
Generating /etc/ssh/ssh_host_key.
PRNG is not seeded
Generating /etc/ssh/ssh_host_dsa_key.
PRNG is not seeded
Generating /etc/ssh/ssh_host_rsa_key.
PRNG is not seeded
Generating /etc/ssh/ssh_host_ecdsa_key.
PRNG is not seeded
Starting SSH daemonPRNG is not seeded
..failed
[root@Apps ~]# vzctl exec 100 "mknod /dev/urandom c 1 9"
[root@Apps ~]# vzctl exec 100 "dd if=/dev/urandom bs=512 count=1 | od -x"
1+0 records in
1+0 records out
512 bytes (512 B) copied, 6.4293e-05 s, 8.0 MB/s
0000000 c511 937f ab36 5592 1084 807d 2e8f bdf7
0000020 422f ebbe 7172 2e06 1d95 f735 cc7b 1ba4
0000040 964c ce1c ecb1 f67b ff30 f32c 06f9 aba0
0000060 8a3f c8ec 3b4f 7092 3dad 1c40 7ed7 d1cd
0000100 725f e42e 5ece 54f6 614c 30da ef7e a1b1
0000120 b48a d68e 883d 9efa 6a39 6965 1589 8a36
0000140 3386 ceb6 dc9a a910 4dde e676 f286 3023
0000160 a834 2c5f b1eb 4a8d 8f9d 29c5 1ca0 b82a
0000200 afe7 c774 8034 2cd3 50fd e31f f0cc 3549
0000220 43b6 8b8d cb03 a910 577b 8126 11b2 6b8a
0000240 e2fb 2056 d9bd 665b 827d 7834 dddf 86ce
0000260 990e 46bf d5cd 9ac1 9087 21b1 2f32 2faa
0000300 2516 daff 6428 8036 0a4b 57f2 2d5f ffb5
0000320 813e 10b5 682e 2b0e f74b c26f 9b3f 4c60
0000340 d0c6 caa1 abae a0c4 7289 e049 a72e f184
0000360 943e 9ec9 31ad f3fe e9a9 58cf 6633 f062
0000400 93d1 ef49 9b5c 575a 703a 0b5b a5d6 72ac
0000420 a52b e28f f149 bec8 abde 0d61 b74c 6580
0000440 0b0d d72d abdb 57ea 54f6 c23f c938 61b1
0000460 32c8 22fd 3704 a0c3 0721 2568 495b 00f3
0000500 99bb b01e b223 6011 e668 a444 81c9 12ee
0000520 4162 d974 6e46 12b9 ba66 500a b9f1 7e48
0000540 3422 121c 5f62 8481 0b2d c2ae accb beb3
0000560 c8fb 1ded 0c10 05ec 65a4 586e 1302 684c
0000600 a06e 3a28 7eda 5b43 f49c 722f 8eb5 07a2
0000620 2441 577e 3b26 d57a 9c0c e182 ad73 f1c0
0000640 7e15 73b1 85ad 8bfb 93da b84b c5c4 2385
0000660 6ec5 56d9 e46a e1a5 f716 7b7f f359 c438
0000700 d695 955b 4110 0e56 1f7b efd4 cf72 3577
0000720 7d6b 72f9 248f 4df8 edb2 335d d024 c01b
0000740 d267 8ab2 d036 e910 4981 1461 6fb8 5356
0000760 5615 87eb bf0a 265d 1673 44d8 7426 a771
0001000
[root@Apps ~]# vzctl exec 100 /etc/init.d/sshd start
Generating /etc/ssh/ssh_host_key.
Generating public/private rsa1 key pair.
Your identification has been saved in /etc/ssh/ssh_host_key.
Your public key has been saved in /etc/ssh/ssh_host_key.pub.
The key fingerprint is:
0f:11:55:ab:81:9e:ee:b4:08:4e:40:72:14:60:4d:b1 root@suse
The key's randomart image is:
+--[RSA1 2048]----+
|.o=+. ..... |
|.. .. o . |
|. oE o . . |
| + . o o |
| . S . |
| . . o |
| o o . |
| o . + . |
| . . o |
+-----------------+
Generating /etc/ssh/ssh_host_dsa_key.
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
f8:e6:63:7e:83:ff:08:70:d0:75:6b:7d:6e:5a:3e:3b root@suse
The key's randomart image is:
+--[ DSA 1024]----+
| . . |
| . . . o |
| . . o . .|
| o . o |
| o S +|
| + = |
| +. ...|
| o+.o. Eo|
| oo+oo. ..|
+-----------------+
Generating /etc/ssh/ssh_host_rsa_key.
Generating public/private rsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_rsa_key.
Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub.
The key fingerprint is:
e5:90:85:c4:d6:56:1a:ec:38:f3:d2:92:e5:95:e1:63 root@suse
The key's randomart image is:
+--[ RSA 2048]----+
| o.+o.. |
| +o+o. |
| .o+o. o |
| ++o E |
| SO.o . |
| + + |
| o |
| |
| |
+-----------------+
Generating /etc/ssh/ssh_host_ecdsa_key.
Generating public/private ecdsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_ecdsa_key.
Your public key has been saved in /etc/ssh/ssh_host_ecdsa_key.pub.
The key fingerprint is:
37:8e:d6:36:bb:ca:62:76:24:ca:cc:3c:06:d7:19:7b root@suse
The key's randomart image is:
+--[ECDSA 256]---+
| |
| |
| |
| . |
| . +S o |
| . . = E= . |
| B . +o = |
| O +o.. o |
| . + oo.o. |
+-----------------+
Starting SSH daemon..done
[root@Apps ~]#

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s