From 49f169105058c671817c360f3ddad950b9576bda Mon Sep 17 00:00:00 2001 From: shakthimaan Date: Fri, 26 Sep 2008 07:48:09 +0000 Subject: . --- .../ports/xen/networking_configuration.mdwn | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) (limited to 'microkernel') diff --git a/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn b/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn index 15af862c..07442477 100644 --- a/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn +++ b/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn @@ -44,3 +44,56 @@ e.g., the Debian testing one on Debian stable.) Make sure that only `(network-script network-dummy)` and `(vif-script vif-bridge)` are activated and all other `(network-script network-WHATEVER)`, respective `(vif-script vif-WHATEVER)` are commented out. + + +## Sample configuration files on Debian Lenny + +### /etc/xen/hurd on dom0 + + kernel = "/boot/gnumach-xen" + memory = 256 + disk = ['phy:sda5,hda,w'] + extra = "root=device:hd0" + vif = [ 'mac=00:16:3e:00:00:00, bridge=br0' ] + ramdisk = "/boot/hurd-modules" + +### /etc/xen/xend-config.sxp on dom0 + + (network-script 'network-bridge netdev=br0') + (dom0-min-mem 196) + (dom0-cpus 0) + (vncpasswd '') + +### /etc/network/interfaces on dom0 + + auto br0 + iface br0 inet static + address 192.168.1.211 + network 192.168.1.0 + netmask 255.255.255.0 + broadcast 192.168.1.255 + gateway 192.168.1.1 + bridge_ports eth1 + +### Doing settrans on domU + + settrans -fgap /servers/socket/2 /hurd/pfinet -i eth0 -a 192.168.1.210 -g 192.168.1.1 -m 255.255.255.0 + +### /sbin/ifconfig on dom0 + + br0 Link encap:Ethernet HWaddr 00:19:d1:2e:06:33 + inet addr:192.168.1.211 Bcast:192.168.1.255 Mask:255.255.255.0 + inet6 addr: fe80::219:d1ff:fe2e:633/64 Scope:Link + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 + RX packets:14187 errors:0 dropped:0 overruns:0 frame:0 + TX packets:9214 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:0 + RX bytes:936563 (914.6 KiB) TX bytes:746184 (728.6 KiB) + + eth1 Link encap:Ethernet HWaddr 00:19:d1:2e:06:33 + inet6 addr: fe80::219:d1ff:fe2e:633/64 Scope:Link + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 + RX packets:34339 errors:0 dropped:0 overruns:0 frame:0 + TX packets:18526 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:1000 + RX bytes:3019251 (2.8 MiB) TX bytes:1453672 (1.3 MiB) -- cgit v1.2.3 From 1776ed47f97591e6d4fa308b69a9e1644d346108 Mon Sep 17 00:00:00 2001 From: shakthimaan Date: Fri, 26 Sep 2008 07:50:54 +0000 Subject: . --- .../mach/gnumach/ports/xen/networking_configuration.mdwn | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'microkernel') diff --git a/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn b/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn index 07442477..7b798636 100644 --- a/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn +++ b/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn @@ -68,12 +68,12 @@ respective `(vif-script vif-WHATEVER)` are commented out. auto br0 iface br0 inet static - address 192.168.1.211 - network 192.168.1.0 - netmask 255.255.255.0 - broadcast 192.168.1.255 - gateway 192.168.1.1 - bridge_ports eth1 + address 192.168.1.211 + network 192.168.1.0 + netmask 255.255.255.0 + broadcast 192.168.1.255 + gateway 192.168.1.1 + bridge_ports eth1 ### Doing settrans on domU -- cgit v1.2.3 From d604f1bad3d7341a04c4dd6e974efe16270bfd73 Mon Sep 17 00:00:00 2001 From: shakthimaan Date: Fri, 26 Sep 2008 07:54:40 +0000 Subject: . --- microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn | 2 ++ 1 file changed, 2 insertions(+) (limited to 'microkernel') diff --git a/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn b/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn index 7b798636..a14a0efd 100644 --- a/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn +++ b/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn @@ -8,6 +8,8 @@ Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled [[GNU_Free_Documentation_License|/fdl]]."]]"""]] +[[toc ]] + The Xen dom0 infrastructure provides for a bridged networking setup using shell scripts to configure the bridging device properly and attach the domUs' virtual interfaces to the bridge. However, we've [seen -- cgit v1.2.3 From b2340183c493ea0f9e58ff965834588b47a29604 Mon Sep 17 00:00:00 2001 From: shakthimaan Date: Fri, 26 Sep 2008 07:56:42 +0000 Subject: . --- microkernel/mach/gnumach/ports/xen.mdwn | 2 ++ 1 file changed, 2 insertions(+) (limited to 'microkernel') diff --git a/microkernel/mach/gnumach/ports/xen.mdwn b/microkernel/mach/gnumach/ports/xen.mdwn index 8919aa57..4bf01183 100644 --- a/microkernel/mach/gnumach/ports/xen.mdwn +++ b/microkernel/mach/gnumach/ports/xen.mdwn @@ -8,6 +8,8 @@ Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled [[GNU_Free_Documentation_License|/fdl]]."]]"""]] +[[toc]] + ## Xen dom0, PAE-disabled hypervisor /!\ Since GNU Mach doesn't handle PAE yet, you'll need a PAE-disabled hypervisor. -- cgit v1.2.3 From a05bab3bd8ad80e0a4bed7e0c6ee364a665c3ca5 Mon Sep 17 00:00:00 2001 From: shakthimaan Date: Fri, 26 Sep 2008 07:58:18 +0000 Subject: . --- .../mach/gnumach/ports/xen/networking_configuration.mdwn | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'microkernel') diff --git a/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn b/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn index a14a0efd..7a448ac9 100644 --- a/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn +++ b/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn @@ -8,7 +8,7 @@ Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled [[GNU_Free_Documentation_License|/fdl]]."]]"""]] -[[toc ]] +[[toc]] The Xen dom0 infrastructure provides for a bridged networking setup using shell scripts to configure the bridging device properly and attach the domUs' virtual @@ -48,9 +48,9 @@ vif-bridge)` are activated and all other `(network-script network-WHATEVER)`, respective `(vif-script vif-WHATEVER)` are commented out. -## Sample configuration files on Debian Lenny +# Sample configuration files on Debian Lenny -### /etc/xen/hurd on dom0 +## /etc/xen/hurd on dom0 kernel = "/boot/gnumach-xen" memory = 256 @@ -59,14 +59,14 @@ respective `(vif-script vif-WHATEVER)` are commented out. vif = [ 'mac=00:16:3e:00:00:00, bridge=br0' ] ramdisk = "/boot/hurd-modules" -### /etc/xen/xend-config.sxp on dom0 +## /etc/xen/xend-config.sxp on dom0 (network-script 'network-bridge netdev=br0') (dom0-min-mem 196) (dom0-cpus 0) (vncpasswd '') -### /etc/network/interfaces on dom0 +## /etc/network/interfaces on dom0 auto br0 iface br0 inet static @@ -77,11 +77,11 @@ respective `(vif-script vif-WHATEVER)` are commented out. gateway 192.168.1.1 bridge_ports eth1 -### Doing settrans on domU +## Doing settrans on domU settrans -fgap /servers/socket/2 /hurd/pfinet -i eth0 -a 192.168.1.210 -g 192.168.1.1 -m 255.255.255.0 -### /sbin/ifconfig on dom0 +## /sbin/ifconfig on dom0 br0 Link encap:Ethernet HWaddr 00:19:d1:2e:06:33 inet addr:192.168.1.211 Bcast:192.168.1.255 Mask:255.255.255.0 -- cgit v1.2.3 From 122dc52e538c6f92db902bafca65a51371627d04 Mon Sep 17 00:00:00 2001 From: shakthimaan Date: Fri, 26 Sep 2008 08:04:07 +0000 Subject: . --- microkernel/mach/gnumach/ports/xen.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'microkernel') diff --git a/microkernel/mach/gnumach/ports/xen.mdwn b/microkernel/mach/gnumach/ports/xen.mdwn index 4bf01183..cdb4e2de 100644 --- a/microkernel/mach/gnumach/ports/xen.mdwn +++ b/microkernel/mach/gnumach/ports/xen.mdwn @@ -8,7 +8,7 @@ Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled [[GNU_Free_Documentation_License|/fdl]]."]]"""]] -[[toc]] +[[toc ]] ## Xen dom0, PAE-disabled hypervisor -- cgit v1.2.3 From 8b96f51ad4d3315aaa3d95af22a94379f314612f Mon Sep 17 00:00:00 2001 From: shakthimaan Date: Fri, 26 Sep 2008 08:06:35 +0000 Subject: . --- microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'microkernel') diff --git a/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn b/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn index 7a448ac9..65f4fbb9 100644 --- a/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn +++ b/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn @@ -8,7 +8,7 @@ Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled [[GNU_Free_Documentation_License|/fdl]]."]]"""]] -[[toc]] +[[toc ]] The Xen dom0 infrastructure provides for a bridged networking setup using shell scripts to configure the bridging device properly and attach the domUs' virtual -- cgit v1.2.3 From 1f6064f5a91a2846c0c195eca3c190b65405e73c Mon Sep 17 00:00:00 2001 From: shakthimaan Date: Fri, 26 Sep 2008 08:14:47 +0000 Subject: . --- microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'microkernel') diff --git a/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn b/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn index 65f4fbb9..71a72bac 100644 --- a/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn +++ b/microkernel/mach/gnumach/ports/xen/networking_configuration.mdwn @@ -59,6 +59,8 @@ respective `(vif-script vif-WHATEVER)` are commented out. vif = [ 'mac=00:16:3e:00:00:00, bridge=br0' ] ramdisk = "/boot/hurd-modules" +/dev/sda5 is an extended partition. br0 is bridge interface on dom0. + ## /etc/xen/xend-config.sxp on dom0 (network-script 'network-bridge netdev=br0') @@ -77,6 +79,8 @@ respective `(vif-script vif-WHATEVER)` are commented out. gateway 192.168.1.1 bridge_ports eth1 +eth1 is the interface that is connected to the Internet on the LAN: + ## Doing settrans on domU settrans -fgap /servers/socket/2 /hurd/pfinet -i eth0 -a 192.168.1.210 -g 192.168.1.1 -m 255.255.255.0 -- cgit v1.2.3