[one-users] error:Can't connected to virtual machine through ssh.
ranjith k
ranjithskp at gmail.com
Tue Jun 1 08:44:26 PDT 2010
hello.
i was created a ttylinux(image is downloaded from the opennebula site)
virtual machine using the command,
onevm create ttylinux.one
my ttylinux.one file is like below
#########################################
NAME = ttylinux
CPU = 0.1
MEMORY = 64
DISK = [
source = "/srv/cloud/images/ttylinux.img",
target = "hda",
readonly = "no" ]
NIC = [ NETWORK = "Red LAN" ]
FEATURES = [ acpi="no" ]
#This may be useful to debug your VMs (can use also console)
GRAPHICS = [
type = "vnc",
listen = "localhost",
port = "5902",
keymap="es"]
##########################################################
after the virtul machine state changed to runn,i was executed the command
like below.
onevm show 12|grep IP
it give the ip address 192.168.2.2
and i connected to the 192.168.2.2 by typing the command ssh
root at 192.168.2.2
but it give an error like below.
ssh: connect to host 192.168.2.2 port 22: No route to host
please help me to resolve this problem...
my virtual network red.net is like below.
NAME = "Red LAN"
TYPE = RANGED
BRIDGE = br0
NETWORK_SIZE = C
NETWORK_ADDRESS = 192.168.2.0
i was created bridge on my kvm host by editing the /etc/network/interface
file like below.
auto br0
iface br0 inet static
address 192.168.2.33
network 192.168.2.0
netmask 255.255.255.0
broadcast 192.168.2.255
gateway 192.168.2.1
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
my ONE host ip address is 192.168.2.31 and i can ping to 192.168.2.33(kvm
host) from 192.168.2.31....
please help me...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100601/d2fe8c78/attachment-0002.htm>
More information about the Users
mailing list