Xen3 network problem

Discussion in 'HOWTO-Related Questions' started by w0rt3x, Mar 7, 2009.

  1. w0rt3x

    w0rt3x New Member

    my system is Linux 2.6.27.5 #1 SMP Wed Mar 4 21:49:03 EET 2009 x86_64 GNU/Linux
    I followed instructions of http://www.howtoforge.com/installing-xen-3.3-with-kernel-2.6.27-on-ubuntu-8.10-x86_64
    But have one problem.
    I don't have network in my xen virtual mashine
    I want my interface from virtual mashine xen, connect trough bridge to external network.
    ERROR on XEN :
    ifup eth0
    \SIOCADDRT: No such process
    Failed to bring up eth0.
    configuration on dom0:
    eth1 Link encap:Ethernet HWaddr 00:1b:21:22:6c:8a
    inet addr:87.255.77.33 Bcast:87.255.77.35 Mask:255.255.255.252
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:5663940 errors:0 dropped:0 overruns:0 frame:0
    TX packets:6272407 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:1192590741 (1.1 GB) TX bytes:1111127770 (1.1 GB)


    peth1 Link encap:Ethernet HWaddr 00:1b:21:22:6c:8a
    UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
    RX packets:5663970 errors:0 dropped:0 overruns:0 frame:0
    TX packets:6284237 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1285334856 (1.2 GB) TX bytes:1111768828 (1.1 GB)

    vif75.0 Link encap:Ethernet HWaddr fe:ff:ff:ff:ff:ff
    UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1521 errors:0 dropped:83 overruns:0 carrier:0
    collisions:0 txqueuelen:32
    RX bytes:0 (0.0 B) TX bytes:90920 (90.9 KB)
    configuration on xen:


    eth0 Link encap:Ethernet HWaddr 00:16:3e:6e:64:89
    inet addr:87.255.77.58 Bcast:87.255.77.35 Mask:255.255.255.252
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:1554 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:70880 (70.8 KB) TX bytes:0 (0.0 B)
    Interrupt:10
    BRCTL in dom0 shows this
    eth1 8000.001b21226c8a yes peth1
    vif75.0
    help me please, what I need to do in this situation. Thank you.
     
  2. falko

    falko Super Moderator

    What's in the Xen configuration file of that vm?
     
  3. w0rt3x

    w0rt3x New Member

    The configuration file :
    kernel = '/boot/vmlinuz-2.6.27-11-server'
    ramdisk = '/boot/initrd.img-2.6.27-11-server'
    memory = '256'
    root = '/dev/xvda2 ro'
    disk = [
    'file:/home/xen/domains/xen3.example.com/swap.img,xvda1,w',
    'file:/home/xen/domains/xen3.example.com/disk.img,xvda2,w',
    ]
    vif = [ 'ip=87.255.77.58,mac=00:16:3E:6E:64:89,bridge=eth1' ]


    name = 'xen3.example.com'
    console='hvc0'
    on_poweroff = 'destroy'
    on_reboot = 'restart'
    on_crash = 'restart'


    root@xen3:~# dmesg | grep eth
    [ 8.627400] Initialising Xen virtual ethernet driver.

    Thank you
     
  4. falko

    falko Super Moderator

    Can you try
    Code:
    vif = [ 'ip=87.255.77.58,mac=00:16:3E:6E:64:89' ]
    instead of
    Code:
    vif = [ 'ip=87.255.77.58,mac=00:16:3E:6E:64:89,bridge=eth1 ' ]
    ?

    What's in /etc/xen/xend-config.sxp?
     
  5. w0rt3x

    w0rt3x New Member

    Thank you for helping

    Thank you
    ufw firewall blocks network connections from xen virtual mashine.
    If I disconnect it Internet works on xen:)
     
: network, ubuntu, xen

Share This Page