[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] xen bridge config problem
yeah, it's probably one of two things (was for me ... )i ended up just starting the bridge myself in auto/autoload.py (you can call it whatever you want), and used this: os.system('/etc/xen/scripts/network start bridge=xen-br0 netdev=eth0 antispoof=no') os.system('/etc/xen/scripts/network start bridge=xen-br1 netdev=eth3 antispoof=no')the key is to make sure antispoof is no unless you're specifying ips for iptables if that doesn't work, check 'brctl show', and make sure your bridge is binding to your interface, should look something like: sudo brctl show bridge name bridge id STP enabled interfaces xen-br0 8000.001143fd7101 no eth0 vif1.0 vif2.0 vif3.0 vif4.0 xen-br1 8000.001143fd7102 no eth3 vif1.1 vif2.1 vif3.1 vif4.1for some reason i have to do that top two lines twice to get my eth0 to bind (init order problem?), so my autoload.py looks like: #!/usr/bin/python ################# # # My first python script ... # # import os os.system('/etc/xen/scripts/network start bridge=xen-br0 netdev=eth0 antispoof=no') os.system('/etc/xen/scripts/network start bridge=xen-br1 netdev=eth3 antispoof=no') os.system('xm create -f /etc/xen/xm.conf vmid=1') os.system('xm create -f /etc/xen/xm.conf vmid=2') os.system('xm create -f /etc/xen/xm.conf vmid=3') os.system('xm create -f /etc/xen/xm.conf vmid=4') #somtimes eth0 doesn't migrate all the way the first time? do it once more for safety os.system('/etc/xen/scripts/network start bridge=xen-br0 netdev=eth0 antispoof=no') os.system('/etc/xen/scripts/network start bridge=xen-br1 netdev=eth3 antispoof=no')hope that helps ... just watch out for iptables (iptables --list in your U and make sure it's not reject) and see if everything is binding correctly. this information is for Nivedita as welll ... ;) feel free to ask for more info, this took me forever =) On Mon, 9 May 2005 twiersema@xxxxxxxxx wrote: I am unable to ping the rest of the machines on the network from the guest OS. The host, Domain-0 (10.0.1.201), and guest 10.0.1.209 can ping each other. The host, Domain-0 (10.0.1.201) can ping the gateway 10.0.1.1. The guest 10.0.1.209 can not ping the gateway. I want guest domains to be available from the network. Any tips what I might be missing? See config details below. Thanks, Todd --------------------------------------------------------------------------------------------- # file: xend-config.sxp # Xend configuration file. # Port xend should use for the HTTP interface. (xend-port 8000) # Address xend should listen on. # Specifying 'localhost' prevents remote connections. # Specifying the empty string '' allows all connections. (xend-address 'localhost') ## Use the following if VIF traffic is routed. # The script used to start/stop networking for xend. (network-script network-route) # The default script used to control virtual interfaces. #(vif-script vif-route) ## Use the following if VIF traffic is bridged. # The script used to start/stop networking for xend. #(network-script network) # The default bridge that virtual interfaces should be connected to. (vif-bridge xen-br0) # The default script used to control virtual interfaces. (vif-script vif-bridge) # Whether iptables should be set up to prevent IP spoofing for # virtual interfaces. Specify 'yes' or 'no'. (vif-antispoof yes) # Setup script for file-backed block devices (block-file block-file) # Setup script for enbd-backed block devices (block-enbd block-enbd) more gsuse.conf # -*- mode: python; -*- #============================================================================ # Python configuration setup for 'xm create'. # This script sets the parameters used when a domain is created using 'xm create'. # You use a separate script for each domain you want to create, or # you can set the parameters for the domain on the xm command line. #============================================================================ #---------------------------------------------------------------------------- ######################### #####Domain config files############### ############################# # Kernel image file. kernel = "/boot/vmlinuz-2.6.8-24.14-xen" # Optional ramdisk. ramdisk = "/boot/initrd-2.6.8-24.14-xen" # The domain build function. Default is 'linux'. #builder='linux' # Initial memory allocation (in megabytes) for the new domain. memory = 128 # A name for your domain. All domains must have different names. name = "xCAT-domain" # Which CPU to start domain on? #cpu = -1 # leave to Xen to pick #---------------------------------------------------------------------------- # Define network interfaces. # Number of network interfaces. Default is 1. nics=1 # Optionally define mac and/or bridge for the network interfaces. # Random MACs are assigned if not given. #vif = [ 'mac=aa:00:00:00:00:11, bridge=xen-br0 ip=10.0.1.209' ] vif = [ 'mac=aa:00:00:00:00:11, bridge=xen-br0' ] #---------------------------------------------------------------------------- # Define the disk devices you want the domain to have access to, and # what you want them accessible as. # Each disk entry is of the form phy:UNAME,DEV,MODE # where UNAME is the device, DEV is the device name the domain will see, # and MODE is r for read-only, w for read-write. #disk = [ 'phy:hda1,hda1,r' ] disk = [ 'phy:hda13,hda1,w' ] #---------------------------------------------------------------------------- # Set the kernel command line for the new domain. # You only need to define the IP parameters and hostname if the domain's # IP config doesn't, e.g. in ifcfg-eth0 or via DHCP. # You can use 'extra' to set the runlevel and custom environment # variables used by custom rc scripts (e.g. VMID=, usr= ). # Set if you want dhcp to allocate the IP address. #dhcp="dhcp" #ip="10.0.1.209" # Set netmask. #netmask="255.255.255.0" # Set default gateway. #gateway="10.0.1.1" # Set the hostname. #hostname= "vm%d" % vmid #hostname="xcat-guest" # Set root device. root = "/dev/hda1 rw" #root = "/dev/hda1 ro" # Root device for nfs. #root = "/dev/nfs" # The nfs server. #nfs_server = '169.254.1.0' # Root directory on the nfs server. #nfs_root = '/full/path/to/root/directory' # Sets runlevel 4. extra = "4" #---------------------------------------------------------------------------- # Set according to whether you want the domain restarted when it exits. # The default is 'onreboot', which restarts the domain when it shuts down # with exit code reboot. # Other values are 'always', and 'never'. #restart = 'onreboot' #============================================================================ # guest network info linux:~ # ifconfig eth0 Link encap:Ethernet HWaddr AA:00:00:00:00:11 inet addr:10.0.1.209 Bcast:10.0.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1413 errors:0 dropped:0 overruns:0 frame:0 TX packets:81 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:125117 (122.1 Kb) TX bytes:6938 (6.7 Kb) 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:30 errors:0 dropped:0 overruns:0 frame:0 TX packets:30 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2568 (2.5 Kb) TX bytes:2568 (2.5 Kb) linux:~ # netstat -nr Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 10.0.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 10.0.1.201 0.0.0.0 UG 0 0 0 eth0 linux:~ # ##################33 # host network info Host_machine # ifconfig eth0 Link encap:Ethernet HWaddr 00:0F:3D:A0:7A:AC inet addr:10.0.1.201 Bcast:10.0.1.255 Mask:255.255.255.0 inet6 addr: fe80::20f:3dff:fea0:7aac/64 Scope:Link 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:17 Memory:ed100000-0 eth1 Link encap:Ethernet HWaddr 00:30:1B:23:F6:10 inet addr:10.200.0.1 Bcast:10.200.0.255 Mask:255.255.255.0 inet6 addr: fe80::230:1bff:fe23:f610/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:460 (460.0 b) Interrupt:18 Base address:0x6000 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:12663 errors:0 dropped:0 overruns:0 frame:0 TX packets:12663 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:995542 (972.2 Kb) TX bytes:995542 (972.2 Kb) vif6.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:81 errors:0 dropped:0 overruns:0 frame:0 TX packets:1463 errors:0 dropped:198 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:6938 (6.7 Kb) TX bytes:129676 (126.6 Kb) xen-br0 Link encap:Ethernet HWaddr 00:0F:3D:A0:7A:AC inet addr:10.0.1.201 Bcast:10.0.1.255 Mask:255.255.255.255 inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:23751 errors:0 dropped:0 overruns:0 frame:0 TX packets:7959 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1725615 (1.6 Mb) TX bytes:1288331 (1.2 Mb) Host_machine # netstat -nr Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 10.0.1.0 0.0.0.0 255.255.255.0 U 0 0 0 xen-br0 10.200.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 xen-br0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 10.0.1.1 0.0.0.0 UG 0 0 0 xen-br0 _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |