Hi all, i really stuck. I am trying to get a DomU working as network backend. All my systems are based on Gentoo with Xen 3.0.2 and Kernel 2.6.16. What is working right now? I tell you: I have two physical PCI network cards hidden from Dom0 and bound to the DomU which should work as backend, i will call it firewall. I have the firewall itself with two physical network cards and one virtual. I have started the firewall with "netif=1" so that i could use it as network backend I have a bridge in the firewall where the virtual network card is bound to. So everything is working, isn''t it? No! If i want to create a new DomU which uses the firewall as backend, "vif=[''backend=firewall'']", i always got an error: # Error: Device 0 (vif) could not be connected. Hotplug scripts not working. What am i doing wrong? Is this a Gentoo specific problem with udev? Best regards Matze _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Quoting Matthias Wolf <matze.wolf@gmx.net>:> i really stuck. I am trying to get a DomU working as network backend. > All my systems are based on Gentoo with Xen 3.0.2 and Kernel 2.6.16. >I''m not sure I completely understand your situation, but I have a domU that uses two physical PCI network cards and is connected to a bridge which is defined in dom0. Maybe the configuration below gives you some inspiration ;-) Cheers, Peter /etc/xen/vm.ein --------------- vmid = 3 name = "ein" kernel = "/vserver/kernels/vmlinuz-2.6.16-xenU" root = "/dev/hda1" memory = 256 extra = "quiet 2" pci = [''01:00.0'', ''02:00.0''] disk = [''phy:/dev/vg1/einU,hda1,w''] vif = [''ip=10.0.2.1,bridge=xenbr0''] ip = "10.0.2.1" netmask = "255.255.0.0" gateway = "10.0.1.1" hostname = "ein.lan" peter@ein:~$ ifconfig eth0 Link encap:Ethernet HWaddr 00:16:3E:1E:47:1F inet addr:10.0.2.1 Bcast:10.0.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:469733 errors:0 dropped:0 overruns:0 frame:0 TX packets:442929 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:186453748 (177.8 MiB) TX bytes:46955234 (44.7 MiB) eth1 Link encap:Ethernet HWaddr 00:13:D3:50:F6:17 inet addr:10.1.1.251 Bcast:10.1.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:41131 errors:0 dropped:0 overruns:0 frame:0 TX packets:47920 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:8371629 (7.9 MiB) TX bytes:23469827 (22.3 MiB) Interrupt:16 eth2 Link encap:Ethernet HWaddr 00:13:D3:50:F6:16 inet addr:10.1.2.251 Bcast:10.1.2.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:52423 errors:0 dropped:0 overruns:0 frame:0 TX packets:143492 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:5244763 (5.0 MiB) TX bytes:202871967 (193.4 MiB) Interrupt:17 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:858 errors:0 dropped:0 overruns:0 frame:0 TX packets:858 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:82368 (80.4 KiB) TX bytes:82368 (80.4 KiB) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Peter, thank you for your reply. It is almost the configuration i am looking for. Peter Fokkinga wrote:> Quoting Matthias Wolf <matze.wolf@gmx.net>: > >> i really stuck. I am trying to get a DomU working as network backend. >> All my systems are based on Gentoo with Xen 3.0.2 and Kernel 2.6.16. >> > > I''m not sure I completely understand your situation, but I have > a domU that uses two physical PCI network cards and is connected > to a bridge which is defined in dom0. Maybe the configuration > below gives you some inspiration ;-) > > Cheers, Peter > > /etc/xen/vm.ein > --------------- > vmid = 3 > name = "ein" > > kernel = "/vserver/kernels/vmlinuz-2.6.16-xenU" > root = "/dev/hda1" > memory = 256 > extra = "quiet 2" > > pci = [''01:00.0'', ''02:00.0''] > > disk = [''phy:/dev/vg1/einU,hda1,w''] > > vif = [''ip=10.0.2.1,bridge=xenbr0''] > ip = "10.0.2.1" > netmask = "255.255.0.0" > gateway = "10.0.1.1" > hostname = "ein.lan"My configuration looks like this: /etc/xen/firewall.cfg --------------- name = "firewall" kernel = "/boot/vmlinuz-2.6.16-xenU-firewall" root = "/dev/sda1" memory = 256 extra = "gentoo=nodevfs" pci = [''01:00.0'', ''02:00.0''] disk = [''file:/mnt/xenimages/firewall.xen,sda1,w''] #make network backend netif = 1 vif = [''''] Now i have another DomU which i want to connect to the firewall. /etc/xen/dgs.cfg --------------- name = "dgs" kernel = "/boot/vmlinuz-2.6.16-xenU" root = "/dev/sda1" memory = 256 extra = "gentoo=nodevfs" disk = [''file:/mnt/xenimages/dgs.xen,sda1,w''] #use firewall as network backend vif = [''backend=firewall''] And this is not working, i can''t connect the network to the firewall. Regards Matze _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users