XEN Multi NIC Setup won´t work
Hi,
I´ve set up a SLES10 SP2 System with the 2.6.16.60-0.27-xen Kernel, manually created a network script (/etc/xen/scripts/custom-script) and edited the /etc/xen/xend-config.sxp file, to use the custom network script.
The network script I created contains following:
--------------------------
#!/bin/bash
dir=$(dirname $0)
"${dir}/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=eth1
"${dir}/network-bridge" "$@" vifnum=2 netdev=eth2 bridge=eth2
--------------------------
My planned network configuration:
eth0 -> normal use for Host
eth1 -> dedicated NIC for Dom1 (windows xp)
eth2 -> dedicated NIC for Dom2 (windows xp)
eth3 -> normal use for Host
For testing purposes, my goal is to create two Windows XP Virtual Machines, physicaly connect eth1 and eth2 with a crossover cable, and be able to ping each other over the physical Network Cards.
Following comands were executed after unsuccessfully trying to ping from Dom1 to Dom2 and vice versa.
output from "ifconfig":
--------------------------
eth0 Link encap:Ethernet HWaddr 00:1E:68:1E:02:62
inet addr:172.26.191.79 Bcast:172.26.191.95 Mask:255.255.255.224
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:43786 errors:0 dropped:0 overruns:0 frame:0
TX packets:45568 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5887635 (5.6 Mb) TX bytes:40322156 (38.4 Mb)
Base address:0x9c00 Memory:fc6e0000-fc700000
eth1 Link encap:Ethernet HWaddr 00:1E:68:1E:02:63
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:51 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:6492 (6.3 Kb) TX bytes:0 (0.0 b)
eth3 Link encap:Ethernet HWaddr 00:1E:68:1E:02:65
inet addr:192.168.43.2 Bcast:192.168.43.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:64 (64.0 b)
Base address:0xa800 Memory:fcd80000-fcda0000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:108365 errors:0 dropped:0 overruns:0 frame:0
TX packets:108365 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:155748676 (148.5 Mb) TX bytes:155748676 (148.5 Mb)
peth1 Link encap:Ethernet HWaddr 00:1E:68:1E:02:63
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:51 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:7422 (7.2 Kb)
Base address:0x9800 Memory:fc6c0000-fc6e0000
peth2 Link encap:Ethernet HWaddr 00:1E:68:1E:02:64
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:51 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:7422 (7.2 Kb) TX bytes:0 (0.0 b)
Base address:0xac00 Memory:fcde0000-fce00000
tap0 Link encap:Ethernet HWaddr 86:27:09:4A:F4:00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:51 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:7218 (7.0 Kb) TX bytes:0 (0.0 b)
tap1 Link encap:Ethernet HWaddr 2A:77:90:59:1E:33
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:51 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:7218 (7.0 Kb) TX bytes:0 (0.0 b)
vif2.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING 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:32
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
vif3.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:51 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
--------------------------
output from "brctl show":
--------------------------
eth1 8000.001e681e0263 no peth1
eth2 8000.001e681e0264 no peth2
--------------------------
output from "xm list --long":
--------------------------
(domain
(domid 0)
(on_crash restart)
(uuid 00000000-0000-0000-0000-000000000000)
(bootloader_args )
(vcpus 16)
(name Domain-0)
(on_poweroff destroy)
(on_reboot restart)
(bootloader )
(maxmem 16777215)
(memory 64549)
(shadow_memory 0)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(cpu_time 142.724290814)
(online_vcpus 16)
(security_label )
(image (linux (kernel )))
(status 2)
(state r-----)
)
(domain
(on_crash destroy)
(uuid c650d9af-4f3f-6f5a-bf4b-c2afec27900f)
(bootloader_args )
(vcpus 2)
(name windowsxp100)
(on_poweroff destroy)
(on_reboot restart)
(bootloader )
(maxmem 512)
(memory 512)
(shadow_memory 6)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(start_time 1222075318.43)
(image
(hvm
(kernel /usr/lib/xen/boot/hvmloader)
(hpet 0)
(boot c)
(rtc_timeoffset 7200)
(pae 1)
(acpi 1)
(localtime 1)
(timer_mode 0)
(apic 1)
(device_model /usr/lib/xen/bin/qemu-dm)
(usb 1)
(notes (SUSPEND_CANCEL 1))
)
)
(status 0)
(device
(vif
(bridge eth0)
(mac 00:16:3e:3d:77:0d)
(backend 0)
(uuid 1d213726-81f2-a5d5-141e-c9741a1aabfd)
(script vif-bridge)
)
)
(device
(vbd
(uuid b2c3762d-bd26-55df-1b7b-a4142788e0e3)
(bootable 1)
(driver paravirtualised)
(dev hda:disk)
(uname file:/var/lib/xen/images/windowsxp1/disk0)
(mode w)
(backend 0)
)
)
(device (vkbd (uuid debbb1f7-f621-e368-7643-b5ece42b0248) (backend 0)))
(device
(vfb
(vncunused 1)
(type vnc)
(uuid 08546ad2-20ea-6342-d5f8-850a386e2494)
)
)
)
(domain
(on_crash destroy)
(uuid be902e07-9db2-154a-b46c-4d1d71a8b16c)
(bootloader_args )
(vcpus 2)
(name windowsxp200)
(on_poweroff destroy)
(on_reboot restart)
(bootloader )
(maxmem 512)
(memory 512)
(shadow_memory 6)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(start_time 1222075180.24)
(image
(hvm
(kernel /usr/lib/xen/boot/hvmloader)
(hpet 0)
(boot c)
(rtc_timeoffset 7200)
(pae 1)
(acpi 1)
(localtime 1)
(timer_mode 0)
(apic 1)
(device_model /usr/lib/xen/bin/qemu-dm)
(usb 1)
(notes (SUSPEND_CANCEL 1))
)
)
(status 0)
(device
(vif
(bridge eth2)
(mac 00:16:3e:36:e7:a8)
(backend 0)
(uuid 36059ca1-058a-8ba4-00ed-e4d4d422cdb3)
(script vif-bridge)
)
)
(device
(vbd
(uuid b1fb8d6a-f7f8-7979-31ef-723c5ed4696a)
(bootable 1)
(driver paravirtualised)
(dev hda:disk)
(uname file:/var/lib/xen/images/windowsxp2/disk1)
(mode w)
(backend 0)
)
)
(device (vkbd (uuid a91b1e2d-e862-1d7a-3c04-551ba65dd2b3) (backend 0)))
(device
(vfb
(vncunused 1)
(type vnc)
(uuid 201f5ca4-43b5-063d-bf8a-d5f369cccf74)
)
)
)
--------------------------
What am I doing wrong?
|