Hello, I am trying to configure a hosted machine to run a number fo virtual machines. The DomU is CentOS 5 with Xen 3.0. I have to use routed networking as the ISP has set the switch to disconnect the port if it receives traffic from any other MAC. My situation is identical to this posting: http://lists.xensource.com/archives/html/xen-users/2006-03/msg00725.html I have followed the suggestion in that thread (See this post for what he got to work: http://lists.xensource.com/archives/html/xen-users/2006-03/msg00949.html) and am running the domU with: vif = [ "ip=domU_IP_HERE,bridge=virbr0" ] ip = "domU_IP_HERE" netmask="255.255.255.255" gateway="10.255.255.1" The domU is configured with the same IP details and I have run: ip route add default dev eth0 Having followed all the steps outlined in that mail I can''t send/receive from domU. The network setup on dom0 is: #ifconfig eth0 Link encap:Ethernet HWaddr 00:19:99:5C:AF:D4 inet addr:dom0_IP_HERE Bcast:dom0_IP_HERE Mask:255.255.255.255 inet6 addr: fe80::219:99ff:fe5c:afd4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:163744 errors:0 dropped:0 overruns:0 frame:0 TX packets:102344 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:154023376 (146.8 MiB) TX bytes:22900634 (21.8 MiB) Interrupt:16 Memory:ddef0000-ddf00000 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:179245 errors:0 dropped:0 overruns:0 frame:0 TX packets:179245 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:35306524 (33.6 MiB) TX bytes:35306524 (33.6 MiB) tap0 Link encap:Ethernet HWaddr E6:D2:1D:52:B1:49 inet6 addr: fe80::e4d2:1dff:fe52:b149/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:14 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:0 (0.0 b) TX bytes:4126 (4.0 KiB) vif10.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet addr:dom0_IP_HERE Bcast:dom0_IP_HERE Mask:255.255.255.255 UP 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:32 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) virbr0 Link encap:Ethernet HWaddr E6:D2:1D:52:B1:49 inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:32179 errors:0 dropped:0 overruns:0 frame:0 TX packets:98471 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1727533 (1.6 MiB) TX bytes:147778233 (140.9 MiB) #route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.255.255.1 * 255.255.255.255 UH 0 0 0 eth0 dom0_IP_HERE * 255.255.255.255 UH 0 0 0 vif10.0 192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0 default 10.255.255.1 0.0.0.0 UG 0 0 0 eth0 The network setup on domU is: #ifconfig eth0 Link encap:Ethernet HWaddr 00:16:3E:29:C2:D3 inet addr:domU_IP_HERE Bcast:domU_IP_HERE Mask:255.255.255.255 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:32 Base address:0x4000 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: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:560 (560.0 B) TX bytes:560 (560.0 B) #route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default * 0.0.0.0 UH 0 0 0 eth0 Can anyone see where I have gone wrong? Any suggestions on how to proceed from here? Thanks, Will _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hello, I am trying to configure a hosted machine to run a number of virtual machines. The DomU is CentOS 5 with Xen 3.0. I have to use routed networking as the ISP has set the switch to disconnect the port if it receives traffic from any other MAC. My situation is identical to this posting: http://lists.xensource.com/archives/html/xen-users/2006-03/msg00725.html I have followed the suggestion in that thread (See this post for what he got to work: http://lists.xensource.com/archives/html/xen-users/2006-03/msg00949.html) and am running the domU with: vif = [ "ip=domU_IP_HERE,bridge=virbr0" ] ip = "domU_IP_HERE" netmask="255.255.255.255" gateway="10.255.255.1" The domU is configured with the same IP details and I have run: ip route add default dev eth0 Having followed all the steps outlined in that mail I can''t send/receive from domU. The network setup on dom0 is: #ifconfig eth0 Link encap:Ethernet HWaddr 00:19:99:5C:AF:D4 inet addr:dom0_IP_HERE Bcast:dom0_IP_HERE Mask:255.255.255.255 inet6 addr: fe80::219:99ff:fe5c:afd4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:163744 errors:0 dropped:0 overruns:0 frame:0 TX packets:102344 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:154023376 (146.8 MiB) TX bytes:22900634 (21.8 MiB) Interrupt:16 Memory:ddef0000-ddf00000 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:179245 errors:0 dropped:0 overruns:0 frame:0 TX packets:179245 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:35306524 (33.6 MiB) TX bytes:35306524 (33.6 MiB) tap0 Link encap:Ethernet HWaddr E6:D2:1D:52:B1:49 inet6 addr: fe80::e4d2:1dff:fe52:b149/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:14 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:0 (0.0 b) TX bytes:4126 (4.0 KiB) vif10.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet addr:dom0_IP_HERE Bcast:dom0_IP_HERE Mask:255.255.255.255 UP 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:32 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) virbr0 Link encap:Ethernet HWaddr E6:D2:1D:52:B1:49 inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:32179 errors:0 dropped:0 overruns:0 frame:0 TX packets:98471 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1727533 (1.6 MiB) TX bytes:147778233 (140.9 MiB) #route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.255.255.1 * 255.255.255.255 UH 0 0 0 eth0 dom0_IP_HERE * 255.255.255.255 UH 0 0 0 vif10.0 192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0 default 10.255.255.1 0.0.0.0 UG 0 0 0 eth0 The network setup on domU is: #ifconfig eth0 Link encap:Ethernet HWaddr 00:16:3E:29:C2:D3 inet addr:domU_IP_HERE Bcast:domU_IP_HERE Mask:255.255.255.255 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:32 Base address:0x4000 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: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:560 (560.0 B) TX bytes:560 (560.0 B) #route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default * 0.0.0.0 UH 0 0 0 eth0 Can anyone see where I have gone wrong? Any suggestions on how to proceed from here? Thanks, Will -- ------------------------------------------------------------------------ Will Wagner will_wagner@carallon.com Development Manager Office Tel: +44 (0)20 7371 2032 Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA ------------------------------------------------------------------------ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
William Wagner
2009-Oct-05 12:11 UTC
Re: [Xen-users] network-route and vif-route setup help
On 05/10/2009 12:57, Wead, Adam G wrote:> Will, > > The netmask for you guest should be 255.255.255.0 >Really? The guest surely needs to be setup for point to point routing as the gateway is not within it''s network? Certinaly in the previous thread I linked to they thought that was the case.> what''s your /etc/xen/xend-config file say? >I think the only relevant part is (with bridge and nat commented out): (network-script network-route) (vif-script vif-route) Happy to post more if there is anything else of interest but I have not changed anything else in the file Thanks for your comments. Will.> ...adam > ________________________________________ >-- ------------------------------------------------------------------------ Will Wagner will_wagner@carallon.com Development Manager Office Tel: +44 (0)20 7371 2032 Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA ------------------------------------------------------------------------ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Oct 5, 2009, at 8:11 AM, William Wagner wrote:> On 05/10/2009 12:57, Wead, Adam G wrote: >> Will, >> >> The netmask for you guest should be 255.255.255.0 >> > > Really? The guest surely needs to be setup for point to point > routing as > the gateway is not within it''s network? Certinaly in the previous > thread > I linked to they thought that was the case.Maybe I''m misunderstanding, but a netmask of 255.255.255.255 is only one machine, right. Are you wanting your guest to be isolated on its own subnet and route traffic in between? The way I have my guests setup is attached to a bridged interface that''s coming from dom0. All the traffic gets sent from the guest across dom0''s bridge and out to the network.> >> what''s your /etc/xen/xend-config file say? >> > > I think the only relevant part is (with bridge and nat commented out): > (network-script network-route) > (vif-script vif-route)If you want Xen to handle the bridging, you''ll need to specify: (network-script ''network-bridge bridge=eth0'') (vif-script vif-bridge) Then reboot. When it comes up again, you should see peth0 and xenbr0 in your ifconfig output. Edit your guest to use the xenbr0 and you should be good to go. Please note, that this is for a bridged setup. If you''re trying to do routed interfaces, I''m not sure what the setup would be there... but would be interested to find out. hope that helps... ...adam _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
William Wagner
2009-Oct-05 16:39 UTC
Re: [Xen-users] qemu-ifup error (was: network-route and vif-route setup help)
On 04/10/2009 12:49, Will Wagner wrote:> Hello, > > I am trying to configure a hosted machine to run a number fo virtual > machines. The DomU is CentOS 5 with Xen 3.0. > > I have to use routed networking as the ISP has set the switch to > disconnect the port if it receives traffic from any other MAC. My > situation is identical to this posting: > http://lists.xensource.com/archives/html/xen-users/2006-03/msg00725.html > > I have followed the suggestion in that thread (See this post for what he > got to work: > http://lists.xensource.com/archives/html/xen-users/2006-03/msg00949.html) > and am running the domU with: > > vif = [ "ip=domU_IP_HERE,bridge=virbr0" ] > ip = "domU_IP_HERE" > netmask="255.255.255.255" > gateway="10.255.255.1" >I have looked at this some more and realised the problem is with the line: vif = [ "ip=domU_IP_HERE,bridge=virbr0" ] I do not want the interface to be connected to the virtual bridge. Looking at all the examples on the net it would appear that I should not specify a bridge at all. However if I start the interface with vif = [ "ip=domU_IP_HERE" ] Then my virtual machine does not start. In /var/log/qemu-****.log I see: domid: 33 qemu: the number of cpus is 1 Watching /local/domain/33/logdirty/next-active /etc/xen/qemu-ifup: could not launch network script Could not initialize device ''tap'' The problem is that it is trying to call brtctl between xenbr0 and the vif. The problem is that for a routed network there is no xenbr0 so it returns an error. What bridge should be specified when using a routed setup? Is it still correct that it calls qemu-ifup at all? Thanks Will -- ------------------------------------------------------------------------ Will Wagner will_wagner@carallon.com Development Manager Office Tel: +44 (0)20 7371 2032 Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA ------------------------------------------------------------------------ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Grant McWilliams
2009-Oct-05 21:20 UTC
Re: [Xen-users] network-route and vif-route setup help
William, I''m exhausted and need sleep but before I really put some effort into helping you let me just mention that unless you''ve recompiled your CentOS kernel than setting your DomU ip address in the DomU config file (vif=) won''t work. CONFIG_IP_PNP needs to be compiled in the kernel. However, you''re setting the IP inside the DomU manually so it should still be working. Now I''m going to sleep. I hope someone else has more insight. If not when I wake up I''ll tackle it. :-) Cheers! Grant McWilliams Some people, when confronted with a problem, think "I know, I''ll use Windows." Now they have two problems. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ravikesh Chandra
2009-Oct-05 22:30 UTC
Re: [Xen-users] network-route and vif-route setup help
Hi William, I''m running public static routed network config on CentOS 5.3 largely ''out-of-the-box''. The problem was understanding how it all fit together as I''m no network engineer. What it came down to was this: comment the bridge stuff in xend-config.sxp, uncomment the route scripts. In your VM config use vif=["ip=123.123.123.123"]>From within your DomU, set your IPADDR,.. under a routed config I''vefigured(?) the NETMASK and GATEWAY aren''t really relevant but they must be legal.. so for instance if I have IP= 123.123.123.123, I set netmask 255.255.255.0 and GW to 123.123.123.1. That way from within the DomU when you run "route -n" you''ll see: 0.0.0.0 123.123.123.1 0.0.0.0 UG 0 0 0 eth0 And in your Dom0, "route -n" will reveal: 123.123.123.123 0.0.0.0 255.255.255.255 UH 0 0 0 vifXXX.0 I''ve since changed to using libvirt, so I no longer use the Xen VM config files, but everything works the same way. HTH 2009/10/6 Grant McWilliams <grantmasterflash@gmail.com>> William, > I''m exhausted and need sleep but before I really put some effort into > helping you let me just mention that unless you''ve recompiled your CentOS > kernel than setting your DomU ip address in the DomU config file (vif=) > won''t work. CONFIG_IP_PNP needs to be compiled in the kernel. > > However, you''re setting the IP inside the DomU manually so it should still > be working. Now I''m going to sleep. I hope someone else has more insight. If > not when I wake up I''ll tackle it. :-) > > Cheers! > Grant McWilliams > > Some people, when confronted with a problem, think "I know, I''ll use > Windows." > Now they have two problems. > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users