PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Debian Squeeze XEN kein Netzwerk im Guest



nana
28.02.12, 15:20
Hallo!

Ich habe ein frisches Debian Squeeze mit Xen Kernel und allen Xen4.1 Tools installiert. Ich habe ein Guest mit xen-create-image erstellt. Das Netzwerk ist auf bridged konfiguriert. Leider kommt mein eth0 im Guest nicht hoch. Im dom0 erscheint folgendes im dmesg.



[ 882.462486] device vif5.0 entered promiscuous mode
[ 882.467982] eth0: port 2(vif5.0) entering forwarding state
[ 882.497624] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore.
[ 882.503509] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore.
[ 882.507744] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore.
[ 882.507751] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore.
[ 883.697073] blkback: ring-ref 770, event-channel 24, protocol 1 (x86_64-abi)
[ 883.758061] blkback: ring-ref 771, event-channel 25, protocol 1 (x86_64-abi)
[ 892.755375] vif5.0: no IPv6 routers present

Meine xend-config.sxp sieht wie folgt aus:


#bridged networking
(vif-script vif-bridge)
(network-script 'network-bridge bridge=eth0')

#(network-script 'network-route netdev=eth0')
#(vif-script vif-route)


(dom0-min-mem 2048)
(enable-dom0-ballooning yes)
(total_available_memory 0)
(dom0-cpus 0)
(vncpasswd '')
(xend-unix-server yes)

#(xend-port 8000)
#(xend-address localhost)
#(xend-http-server yes)
#(xend-tcp-xmlrpc-server yes)

Hier die guest config:


bootloader = '/usr/lib/xen-default/bin/pygrub'
#kernel = '/boot/vmlinuz-2.6.32-5-xen-amd64'
#ramdisk = '/boot/initrd.img-2.6.32-5-xen-amd64'

vcpus = '4'
memory = '10240'

#
# Disk device(s).
#
root = '/dev/xvda2 ro'
disk = [
'phy:/dev/vg0/hostname.com-disk,xvda2,w',
'phy:/dev/vg0/hostname.com-swap,xvda1,w',
]


#
# Physical volumes
#


#
# Hostname
#
name = 'hostname.com'

#
# Networking
#
vif = [ 'bridge=eth0,ip=192.168.67.14,mac=39:fe:a9:88:a1:5 c' ]

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


brctl show sieht wie folgt aus:



bridge name bridge id STP enabled interfaces
eth0 8000.002590499320 no peth0
vif5.0


Wenn ich versuche eth0 händisch zu starten erhalte ich folgenden Fehler:


root@test1:~# ifconfig
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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

root@test1:~# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 39:fe:a9:88:a1:5c
inet addr:192.168.67.14 Bcast:192.168.67.127 Mask:255.255.255.128
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 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:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:25

root@test1:~# ifconfig eth0 up
SIOCSIFFLAGS: Cannot assign requested address

Hat jemand eine Idee wie ich in meinem Guest eth0 hoch bekomme? Ich bin etwas verzweifelt.

Vielen Dank für die Hilfe.