I''m trying to setup my first Xen server that will host two Virtual Servers. I have the first guest OS installed, but I cannot get it to connect to the network. Here''s the info. xen version is 3.0.4_13138-0.40 host server has two NICs eth0 is associated to peth0 eth0 does NOT have an IP address assigned on the host server host server uses eth1 and has an ip address assigned So the host server works fine on eth1. I can also assign an address to eth0 and the host server can use it. BUT, I really don''t want the host OS to use the network on eth0, ONLY the guest OSes. I assume this can be done, but maybe I''m mistaken. eth0 and eth1 will be on different subnets. Host server should use eth1 while guests use eth0. My guest OS does not communicate with the network on peth0 at all. I''ve been looking at the wiki (http://wiki.xensource.com/xenwiki/HowTos) but can''t figure it out. Anyone have any suggestions? Thanks, James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Igor Chubin
2008-Mar-31 23:41 UTC
Re: [Xen-users] Host uses one NIC; Guest OS uses other NIC
On Mo, Mär 31, 2008 at 12:49:33 -0400, James Pifer wrote:> I''m trying to setup my first Xen server that will host two Virtual > Servers. I have the first guest OS installed, but I cannot get it to > connect to the network.Please, show the output of # brctl show run in dom0 and provide more info about procedure you use to test network connectivity.> > Here''s the info. > xen version is 3.0.4_13138-0.40 > host server has two NICs > eth0 is associated to peth0 > eth0 does NOT have an IP address assigned on the host server > host server uses eth1 and has an ip address assigned > > So the host server works fine on eth1. I can also assign an address to > eth0 and the host server can use it. BUT, I really don''t want the host > OS to use the network on eth0, ONLY the guest OSes. I assume this can be > done, but maybe I''m mistaken. eth0 and eth1 will be on different > subnets. Host server should use eth1 while guests use eth0. > > My guest OS does not communicate with the network on peth0 at all. I''ve > been looking at the wiki (http://wiki.xensource.com/xenwiki/HowTos) but > can''t figure it out. > > Anyone have any suggestions? > > Thanks, > James > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- WBR, i.m.chubin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
James Pifer
2008-Apr-01 00:25 UTC
Re: [Xen-users] Host uses one NIC; Guest OS uses other NIC
On Tue, 2008-04-01 at 02:41 +0300, Igor Chubin wrote:> On Mo, Mär 31, 2008 at 12:49:33 -0400, James Pifer wrote: > > I''m trying to setup my first Xen server that will host two Virtual > > Servers. I have the first guest OS installed, but I cannot get it to > > connect to the network. > > > Please, show the output of > > # brctl show > > run in dom0 > > and provide more info about procedure you use > to test network connectivity. > >xen01:~ # brctl show bridge name bridge id STP enabled interfaces xenbr1 8000.feffffffffff no vif3.0 As far as testing I have no connectivity on the guest OS (Suse 10.1). Firewall is turned off. iptables -L gives: # iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination On dom0 iptables -L shows: iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination ACCEPT all -- anywhere anywhere PHYSDEV match --physdev-in vif3.0 Chain OUTPUT (policy ACCEPT) target prot opt source destination As far as testing, I can''t ping, I can''t ssh, I can''t do anything to or from the statically assigned address that I''ve assigned the host. The IP address is not being used The subnet is correct The default gateway is set (although I can''t even get to things on the same subnet anyway) What other information can I provide? Or, any suggestions? Thanks, James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Igor Chubin
2008-Apr-01 05:23 UTC
Re: [Xen-users] Host uses one NIC; Guest OS uses other NIC
On Mo, Mär 31, 2008 at 08:25:26 -0400, James Pifer wrote:> On Tue, 2008-04-01 at 02:41 +0300, Igor Chubin wrote: > > On Mo, Mär 31, 2008 at 12:49:33 -0400, James Pifer wrote: > > > I''m trying to setup my first Xen server that will host two Virtual > > > Servers. I have the first guest OS installed, but I cannot get it to > > > connect to the network. > > > > > > Please, show the output of > > > > # brctl show > > > > run in dom0 > > > > and provide more info about procedure you use > > to test network connectivity. > > > > > > xen01:~ # brctl show > bridge name bridge id STP enabled interfaces > xenbr1 8000.feffffffffff no vif3.0 >You have eth0 of domain 3 connected to xenbr1 but that''s is all. No peth1 or someting like that in dom0. So it''s normal that you can''t ping any host outside the network (and even dom0!). Packets simply have no way to go out. You must create the bridge in a way, that will allow it to be connected to real interface (eth0 in your case). Please, tell how you create the bridge. -- WBR, i.m.chubin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
James Pifer
2008-Apr-01 12:28 UTC
Re: [Xen-users] Host uses one NIC; Guest OS uses other NIC
> You have eth0 of domain 3 connected to xenbr1 > but that''s is all. > > No peth1 or someting like that in dom0. > > So it''s normal that you can''t ping any host > outside the network (and even dom0!). > Packets simply have no way to go out. > > > You must create the bridge in a way, that will allow it > to be connected to real interface (eth0 in your case). > > Please, tell how you create the bridge. > >At one point I had to stop the bridge to edit the network settings. I used this command: /etc/xen/scripts/network-bridge stop netdev=eth0 I assumed this was enough to bring it all back up: /etc/xen/scripts/network-bridge start netdev=eth0 Did I miss something, or should that be enough? Apparently not, because that''s how I ended up at that state. Since I didn''t really know what brctl show should look like, I rebooted the host machine. Now everything is working. brctl show now looks like: xen01:~ # brctl show bridge name bridge id STP enabled interfaces xenbr1 8000.feffffffffff no vif0.1 peth1 vif1.0 I appreciate the help. James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Igor Chubin
2008-Apr-01 19:21 UTC
Re: [Xen-users] Host uses one NIC; Guest OS uses other NIC
On Di, Apr 01, 2008 at 08:28:08 -0400, James Pifer wrote:> > You have eth0 of domain 3 connected to xenbr1 > > but that''s is all. > > > > No peth1 or someting like that in dom0. > > > > So it''s normal that you can''t ping any host > > outside the network (and even dom0!). > > Packets simply have no way to go out. > > > > > > You must create the bridge in a way, that will allow it > > to be connected to real interface (eth0 in your case). > > > > Please, tell how you create the bridge. > > > > > > > At one point I had to stop the bridge to edit the network settings. I > used this command: > /etc/xen/scripts/network-bridge stop netdev=eth0 > > I assumed this was enough to bring it all back up: > /etc/xen/scripts/network-bridge start netdev=eth0 > > Did I miss something, or should that be enough? >Theoretically, you have done all just like you should, but I did notice, that running # /etc/xen/scripts/network-bridge stop netdev=eth0 is not enough in particular cases to revert eth0 setup. Anyway, you can always check the bridges state using brctl command.> Apparently not, because that''s how I ended up at that state. Since I > didn''t really know what brctl show should look like, I rebooted the host > machine. Now everything is working. brctl show now looks like: > > xen01:~ # brctl show > bridge name bridge id STP enabled interfaces > xenbr1 8000.feffffffffff no vif0.1 > peth1 > vif1.0This is correct output.> > I appreciate the help. > > James > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- WBR, i.m.chubin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users