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

Javier Fontan jfontan at gmail.com
Tue Jun 8 05:59:38 PDT 2010


Hello,

Can you connect to the machine using vnc and check if everything is
ok? Check that the network configuration is fine first, also the
route. Maybe the problem is the mask and you have to specify it
somehow (probably adding a parameter and modifying init.sh script)

Bye

On Thu, Jun 3, 2010 at 6:58 AM, GIANG NGUYENVAN <mvnli_giang at yahoo.com> wrote:
>
> 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.
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



--
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org



More information about the Users mailing list