You are not logged in.

#1 2011-11-09 15:47:47

Barthalion
Forum Fellow
From: Poland
Registered: 2010-02-26
Posts: 111

Arch domU (Xen) Internet connection without bridging

I have a dedicated server in OVH with Debian and Xen. Poorly, OVH doesn't allow to use bridge connection to any domU. Last time when I tried it, they blocked the whole server.
I try to get Internet connection in Arch domU. When I start network daemon, I get:

:: Starting Network                                 [BUSY] RTNETLINK answers: No such process
                                                    [DONE]

Networking part from rc.conf

HOSTNAME="yossarian"
interface=eth0
address=178.33.81.98
netmask=255.255.255.255
broadcast=178.33.255.255
gateway=46.105.121.254

From Arch domU:

[root@yossarian ~]# ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
        inet 178.33.81.98  netmask 255.255.255.255  broadcast 178.33.255.255
        inet6 fe80::ff:fe2c:f02  prefixlen 64  scopeid 0x20<link>
        ether 02:00:00:2c:0f:02  txqueuelen 1000  (Ethernet)
        RX packets 135  bytes 7539 (7.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 84  bytes 7040 (6.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 31  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 16436  metric 1
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

From Gentoo domU (where connection works):

shell ~ # ifconfig -a
eth0      Link encap:Ethernet  HWaddr 02:00:00:2c:0f:ee  
          inet addr:178.33.81.100  Bcast:178.33.255.255  Mask:255.255.255.255
          inet6 addr: fe80::ff:fe2c:fee/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2415517 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1723395 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2343439079 (2.1 GiB)  TX bytes:404503611 (385.7 MiB)
          Interrupt:41 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:108513 errors:0 dropped:0 overruns:0 frame:0
          TX packets:108513 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:10978695 (10.4 MiB)  TX bytes:10978695 (10.4 MiB)

domU .cfg for Xen:

#  Kernel + memory size
kernel      = '/boot/vmlinuz-3.0.0-1-amd64'
ramdisk     = '/boot/initrd.img-3.0.0-1-amd64'

#bootloader = '/usr/lib/xen-default/bin/pygrub'

vcpus       = '2'
memory      = '512'

#  Disk device(s).
root        = '/dev/xvda ro'
disk        = [
                'file:/home/xen/domains/yossarian/root.img,xvda,w',
                'file:/home/xen/domains/yossarian/home.img,xvdb,w',
                'file:/home/xen/domains/yossarian/swap.img,xvdc,w',
              ]


#  Hostname
name        = 'yossarian'

#  Networking
vif         = [ 'ip=178.33.81.98,mac=02:00:00:2c:0f:02' ]

#  Behaviour
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart

Last edited by Barthalion (2011-11-09 16:07:56)

Offline

Board footer

Powered by FluxBB