[one-users] can't ping VM successfully

Ruben S. Montero rubensm at dacya.ucm.es
Sat Jul 11 08:46:51 PDT 2009


Hi

Try adding the following line to your OS attribute

OS = [ ...
  kernel_cmd="ro xencons=tty console=tty1"]

then you should be able to console the VM and see if the network is
properly configure within the VM (IP, mask....)

Cheers

2009/7/11 zhukun1111 <zhukun1111 at 163.com>:
> Hi Ruben:
>          I can't xm console to the VM.But why it seems work successfully
> after I run
>
>>>   root at ubuntu54:~# onevm list
>>>   ID     NAME STAT CPU     MEM        HOSTNAME        TIME
>>>    4      vm2 runn   0  131072   202.115.17.56 00 00:45:15
>>>    5      vm3 runn   0  131072   202.115.17.56 00 00:37:27
>
>                                                  thank you
>
>
> 在2009-07-09,"Ruben S. Montero" <rubensm at dacya.ucm.es> 写道:
>>Hi,
>>
>>Could you go to the VM through the console (xm console) and check its
>>interfaces (ifconfig)?
>>
>>Cheers!
>>
>>Ruben
>>
>>On Thu, Jul 9, 2009 at 5:09 AM, zhukun1111 <zhukun1111 at 163.com> wrote:
>>> Hi:
>>>    I met some trouble when using oepnebula.pleases help me!I can't ping
>>> through the VM which runs on my host,but VM itself seems work
>>> successfully,Even migrating VM from 56 to 55 is OK! But I just can't ping
>>> through VM ,and don't mention ssh to it.because I got this below:
>>>
>>>    I have 3 machines with ubuntu9.04 as os.
>>>    202.115.17.54 is front-end.
>>>    202.115.17.56 is node.
>>>    202.115.17.55 is node.
>>>
>>>     All of them have just 1 network card with just 1 IP address above.
>>>
>>> root at ubuntu54:~# brctl show
>>> bridge name     bridge id               STP enabled     interfaces
>>> eth0            8000.0007e90f5520       no              peth0
>>> virbr0          8000.000000000000       yes
>>>
>>>
>>> root at ubuntu56:~# brctl show
>>> bridge name     bridge id               STP enabled     interfaces
>>> eth0            8000.feffffffffff       no              peth0
>>>                                                         vif1.0
>>>                                                         vif2.0
>>>
>>> virbr0          8000.000000000000       yes
>>>
>>>
>>>   root at ubuntu54:~# onevm list
>>>   ID     NAME STAT CPU     MEM        HOSTNAME        TIME
>>>    4      vm2 runn   0  131072   202.115.17.56 00 00:45:15
>>>    5      vm3 runn   0  131072   202.115.17.56 00 00:37:27
>>>
>>>   root at ubuntu54:~# onehost list
>>>  HID NAME                      RVM   TCPU   FCPU   ACPU    TMEM    FMEM
>>> STAT
>>>    0 202.115.17.56               2    200    191     50 1047552    1024
>>> on
>>>    1 202.115.17.55               0    200    198    200 1047552   63488
>>> on
>>>
>>>   root at ubuntu54:~# onevnet show 0
>>> NID               : 0
>>> UID               : 0
>>> Network Name      : Public
>>> Type              : Fixed
>>> Bridge            : eth0
>>>
>>> ....: Template :....
>>>         BRIDGE=eth0
>>>         LEASES=IP=202.115.17.2,MAC=50:20:20:20:20:21
>>>         LEASES=IP=202.115.17.3
>>>         LEASES=IP=202.115.17.4
>>>         NAME=Public
>>>         TYPE=FIXED
>>>
>>> ....: Leases :....
>>> IP = 202.115.17.2   MAC = 50:20:20:20:20:21  USED = 1 VID = 4
>>> IP = 202.115.17.3   MAC = 00:03:ca:73:11:03  USED = 1 VID = 5
>>> IP = 202.115.17.4   MAC = 00:03:ca:73:11:04  USED = 0 VID = -1
>>>
>>>
>>> I run this:
>>>    onevm  create  vm.conf
>>>    onevm  deploy  vm 202.115.17.56
>>> the vm.conf is below:
>>>
>>> NAME   = vm3
>>> CPU    = 0.5
>>> MEMORY = 128
>>> OS     = [
>>>   kernel   = "/boot/vmlinuz-2.6.24-16-xen",
>>>   initrd   = "/boot/initrd.img-2.6.24-16-xen",
>>>   root     = "sda1" ]
>>> DISK   = [
>>>   source   = "/local/images/disk.img",
>>>   target   = "sda1",
>>>   readonly = "no" ]
>>> DISK   = [
>>>   type     = "swap",
>>>   size     = 1024,
>>>   target   = "sdb"]
>>> NIC    = [ NETWORK = "Public" ]
>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>>
>>
>>
>>
>>--
>>+---------------------------------------------------------------+
>> Dr. Ruben Santiago Montero
>> Associate Professor
>> Distributed System Architecture Group (http://dsa-research.org)
>>
>> URL:    http://dsa-research.org/doku.php?id=people:ruben
>> Weblog: http://blog.dsa-research.org/?author=7
>>
>> GridWay, http://www.gridway.org
>> OpenNebula, http://www.opennebula.org
>>+---------------------------------------------------------------+
>
>
> ________________________________
> 200万种商品,最低价格,疯狂诱惑你



-- 
+---------------------------------------------------------------+
 Dr. Ruben Santiago Montero
 Associate Professor
 Distributed System Architecture Group (http://dsa-research.org)

 URL:    http://dsa-research.org/doku.php?id=people:ruben
 Weblog: http://blog.dsa-research.org/?author=7

 GridWay, http://www.gridway.org
 OpenNebula, http://www.opennebula.org
+---------------------------------------------------------------+


More information about the Users mailing list