*SOLVED* ssh connection problem in guest OS [message #16167] |
Sun, 26 August 2007 13:36 ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
gogisnim
Messages: 4 Registered: August 2007
|
Junior Member |
|
|
Hi, everyone ~
In guest OS, I can't connect ssh.
host ip - 1.1.1.200
guest ip - 1.1.2.200
host # vzctl create 2200 --ostemplate gentoo-2.6.18
host # vzctl set 2200 --save --onboot=yes --ipadd 1.1.2.200 --nameserver 1.1.1.200 --nameserver 168.126.63.1 --hostname guest --diskspace 700000:750000 --userpasswd test:1111
host # vzctl start 2200 && vzctl enter 2200
guest # ssh root@1.1.1.200
PRNG is not seeded
guest #
I read /dev/random create.
host # vzctl exec 2200 mknod /dev/random c 1 8
guest # ssh root@1.1.1.200
Host key verification failed.
I tried to connect into local sshd of guest.
guest # /etc/init.d/sshd start
* Generating RSA-Hostkey...
PRNG is not seeded
This is my system info.
host # cat /etc/vz/conf/2200.conf
ONBOOT="yes"
AVNUMPROC="40:40"
NUMPROC="65:65"
NUMTCPSOCK="80:80"
NUMOTHERSOCK="80:80"
VMGUARPAGES="6144:2147483647"
KMEMSIZE="2752512:2936012"
TCPSNDBUF="319488:524288"
TCPRCVBUF="319488:524288"
OTHERSOCKBUF="132096:336896"
DGRAMRCVBUF="132096:132096"
OOMGUARPAGES="6144:2147483647"
LOCKEDPAGES="32:32"
SHMPAGES="8192:8192"
PRIVVMPAGES="49152:53575"
NUMFILE="2048:2048"
NUMFLOCK="100:110"
NUMPTY="16:16"
NUMSIGINFO="256:256"
DCACHESIZE="1048576:1097728"
PHYSPAGES="0:2147483647"
NUMIPTENT="128:128"
DISKSPACE="700000:750000"
DISKINODES="200000:220000"
QUOTATIME="0"
CPUUNITS="1000"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
OSTEMPLATE="gentoo-2.6.18"
ORIGIN_SAMPLE="vps.basic"
IP_ADDRESS="1.1.2.200"
HOSTNAME="guest"
NAMESERVER="1.1.2.200 168.126.63.1"
guest # df -h
Filesystem Size Used Avail Use% Mounted on
simfs 684M 452M 233M 67% /
tmpfs 220M 76K 220M 1% /dev
tmpfs 220M 0 220M 0% /dev/shm
guest # mount
simfs on / type simfs (rw)
proc on /proc type proc (rw,nosuid,nodev,noexec)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
tmpfs on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw,nosuid,noexec)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec)
Thank you
[Updated on: Sun, 26 August 2007 22:00] Report message to a moderator
|
|
|
|
Re: ssh connection problem in guest OS [message #16178 is a reply to message #16169] |
Sun, 26 August 2007 21:59 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) |
gogisnim
Messages: 4 Registered: August 2007
|
Junior Member |
|
|
I solved it.
First of all, how to create gentoo base VE template was fatal !!
http://wiki.openvz.org/Gentoo_template_creation
I created the template except "Edit /etc/init.d/checkroot", "Edit /sbin/rc" and "Set up udev" in this url.
I deleted old template and created new template step by step.
Now, I can connect ssh into host.
guest # df -h
Filesystem Size Used Avail Use% Mounted on
simfs 1.0G 410M 615M 41% /
guest # mount
simfs on / type simfs (rw)
proc on /proc type proc (rw,nosuid,nodev,noexec)
devpts on /dev/pts type devpts (rw,nosuid,noexec)
guest # ssh root@host
Password:
host #
To understand tmpfs is difficult until now, but I learn.
Thank you very much indeed.
I'm tired..
[Updated on: Sun, 26 August 2007 22:09] Report message to a moderator
|
|
|