[one-users] How to ping/ssh to the VMs.

GIANG NGUYENVAN mvnli_giang at yahoo.com
Wed Jun 2 21:58:23 PDT 2010


Hi,
I have already post this a month ago, but noone reply, and I want to ask one  more about the network problem with VM.

In details, I will mention about the scenario, I have two machine
The Front-end: Ubuntu 9.10, with OpenNebula Installed, IP:172.29.70.74/24
The Host:Ubuntu 9.10, with KVM hypervisor, IP: 172.29.70.133/24

Here is the result of the command "virsh list" in the Host:
Bridge name        Brigde ID       STP enabled         Interfaces
etho0                     800*****          no                            peth0
                                                                                        vnet0

Here is the Small_network template that I used to declare the Vnet for VMs
NAME = "Small network"
TYPE = FIXED

#Now we'll use the cluster private network (physical)
BRIDGE = eth0
LEASES = [ IP="192.168.1.105"]
LEASES = [ IP="192.168.1.106"]
LEASES = [ IP="192.168.1.107"]

And this is the Vm template, 
NAME   = ttylinux
CPU    = 0.1
MEMORY = 64
DISK   = [
  source   = "/srv/cloud/ttylinux/ttylinux.img",
  target   = "hda",
  readonly = "no" ]

NIC    = [ NETWORK = "Small network" ]

FEATURES=[ acpi="no" ]
GRAPHICS = [type="vnc", listen="172.29.70.133", port="5902"]

CONTEXT = [
    hostname    = "PC1",
    ip_public   = "172.29.70.215",
    files      = "/srv/cloud/ttylinux/id_rsa.pub /srv/cloud/ttylinux/init.sh",
    target      = "hda",
    root_pubkey = "id_rsa.pub",
    username    = "opennebula",
    user_pubkey = "id_rsa.pub"
]

Note: "172.29.70.215" is a unused IP in my lab.

When I successfully deployed the VMs, I can get the IP of the VM through "onevm show 0 | grep IP" is "192.168.1.105" and "172.29.70.215"
But the problem is that I cannnot do anything to those two IP address, like ping, or ssh. It seems the VNET does not exist, I don't get that.
Somebody please help me solve this problem. Is my Vm template or VNet template wrong?, or something is missing?
Thanks all for reading my thread.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100603/47075289/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 16073 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100603/47075289/attachment-0004.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1386 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100603/47075289/attachment-0005.gif>


More information about the Users mailing list