Flavio
2011-Sep-25 12:49 UTC
[Xen-users] Unable to get IP address in guest OS through DHCP
Hello, I have a Gentoo Linux guest, which was working very well with the past xm tool stack. Since the migration to xen-4.1.1 and to the new xl tool stack, I have a problem for the IP assignation. Actually, when dhcpcd starts at boot time the IP address is not correctly assigned. This also happens if I perform "dhcpcd eth0" once I''ve accessed to the guest shell. I don''t know what happens, but it always worked with the previous xen tool stack. I use a bridge for the guest OS networking and it is called xenbr0. This is what I see when dhcpcd starts: * Starting eth0 * Bringing up eth0 * dhcp * Running dhcpcd ...dhcpcd[2226]: version 5.2.10 starting dhcpcd[2226]: eth0: checking for 169.254.86.217 dhcpcd[2226]: eth0: using IPv4LL address 169.254.86.217 dhcpcd[2226]: forked to background, child pid 2247 I don''t know if it could be a guest kernel configuration problem (I don''t think so) or something else, but the network is not working. It should get an IP address of the type 192.168.1.0/24. The configuration file is: kernel = "/mnt/dati/xen/kernel/vmlinuz-xen-3.0.4-domU" memory = "512" name = "gentoo-10.0-x86_64" vif = [''bridge=xenbr0''] dhcp = "dhcp" disk = [''file:/mnt/data/xen/vmstore/gentoo-10.0/gentoo-10.0.x86-64.img,xvda1,w'', ''file:/mnt/data/xen/vmstore/gentoo-10.0/swap.img,xvda2,w''] root = "/dev/xvda1 ro" vcpus = 2 extra = ''console=hvc0 xencons=tty'' ip = "off" Thanks -- Flavio _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2011-Sep-26 00:27 UTC
Re: [Xen-users] Unable to get IP address in guest OS through DHCP
On Sun, Sep 25, 2011 at 8:49 AM, Flavio <fbcyborg@gmail.com> wrote:> Hello, > > I have a Gentoo Linux guest, which was working very well with the past > xm tool stack. > Since the migration to xen-4.1.1 and to the new xl tool stack, I have > a problem for the IP > assignationhttp://wiki.xen.org/xenwiki/MigrationGuideToXen4.1%2B http://wiki.xen.org/xenwiki/HostConfiguration/Networking (Gentoo-specific instruction are not listed, but the Gentoo wiki page on the topic should help http://en.gentoo-wiki.com/wiki/Bridging_Network_Interfaces)> vif = [''bridge=xenbr0'']You should use brctl show to make sure that you have the xenbr0 set up properly. If it is, you can do networking tracing on the vif and bridge from dom0 and within the domU for its interface to see where the traffic is making it to. Hope that helps. Thanks, Todd -- Todd Deshane http://www.linkedin.com/in/deshantm http://www.xen.org/products/cloudxen.html http://runningxen.com/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Flavio
2011-Sep-26 06:52 UTC
Re: [Xen-users] Unable to get IP address in guest OS through DHCP
On 26 September 2011 02:27, Todd Deshane <todd.deshane@xen.org> wrote:> > http://wiki.xen.org/xenwiki/MigrationGuideToXen4.1%2B > http://wiki.xen.org/xenwiki/HostConfiguration/Networking > (Gentoo-specific instruction are not listed, but the Gentoo wiki page > on the topic should help > http://en.gentoo-wiki.com/wiki/Bridging_Network_Interfaces)Thank you so much Todd, I''ve read all of those links actually, and I''ve created a bridge xenbr0 at system level as the wiki says, but no luck with the network with the new toolstack and xen version.> > > vif = [''bridge=xenbr0''] > > You should use brctl show to make sure that you have the xenbr0 set up properly.Here it is: bridge name bridge id STP enabled interfaces xenbr0 8000.00248c08d07e no eth0> > If it is, you can do networking tracing on the vif and bridge from > dom0Honestly I don''t know how to do it.> and within the domU for its interface to see where the traffic is > making it to.I don''t think there is a real traffic between interfaces; it''s like if there wasn''t any communication between the vif (the guest network card) and the xenbr0 interface. Thank you, -- Flavio _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2011-Sep-26 17:14 UTC
Re: [Xen-users] Unable to get IP address in guest OS through DHCP
On Mon, Sep 26, 2011 at 2:52 AM, Flavio <fbcyborg@gmail.com> wrote:> On 26 September 2011 02:27, Todd Deshane <todd.deshane@xen.org> wrote: >> > vif = [''bridge=xenbr0''] >> >> You should use brctl show to make sure that you have the xenbr0 set up properly. > Here it is: > bridge name bridge id STP enabled interfaces > xenbr0 8000.00248c08d07e no eth0Is this with the guest running or not? With the guest running there should be a vif attached to the xenbr0 bridge -- Todd Deshane http://www.linkedin.com/in/deshantm http://www.xen.org/products/cloudxen.html http://runningxen.com/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Flavio
2011-Sep-26 17:28 UTC
Re: [Xen-users] Unable to get IP address in guest OS through DHCP
On 26 September 2011 19:14, Todd Deshane <todd.deshane@xen.org> wrote:> On Mon, Sep 26, 2011 at 2:52 AM, Flavio <fbcyborg@gmail.com> wrote: >> On 26 September 2011 02:27, Todd Deshane <todd.deshane@xen.org> wrote: >>> > vif = [''bridge=xenbr0''] >>> >>> You should use brctl show to make sure that you have the xenbr0 set up properly. >> Here it is: >> bridge name bridge id STP enabled interfaces >> xenbr0 8000.00248c08d07e no eth0 > > Is this with the guest running or not?This happens in both cases. By the way, I also enabled STP.> > With the guest running there should be a vif attached to the xenbr0 bridgeActually there is no vif attached to the xen bridge. Thank you. -- Flavio _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2011-Sep-26 17:45 UTC
Re: [Xen-users] Unable to get IP address in guest OS through DHCP
On Mon, Sep 26, 2011 at 1:28 PM, Flavio <fbcyborg@gmail.com> wrote:>> Is this with the guest running or not? > This happens in both cases. By the way, I also enabled STP. > >> >> With the guest running there should be a vif attached to the xenbr0 bridge > Actually there is no vif attached to the xen bridge.OK. My guess would be that the xend networking code is still in play and conflicting. You should try to disable xend, but at minimum make sure that the bridge and vif scripts are disabled in the xend config file. Hope that helps. Thanks, Todd -- Todd Deshane http://www.linkedin.com/in/deshantm http://www.xen.org/products/cloudxen.html http://runningxen.com/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Flavio
2011-Sep-26 18:27 UTC
Re: [Xen-users] Unable to get IP address in guest OS through DHCP
On 26 September 2011 19:45, Todd Deshane <todd.deshane@xen.org> wrote:> > OK. My guess would be that the xend networking code is still in play > and conflicting. You should try to disable xend, but at minimum make > sure that the bridge and vif scripts are disabled in the xend config > file.I don''t think it''s because of xend. Actually it doesn''t exist anymore on my system. What can I check about the bridge, on the config file? It should be all right there. Thanks, Flavio _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Flavio
2011-Sep-26 18:42 UTC
Re: [Xen-users] Unable to get IP address in guest OS through DHCP
On 26 September 2011 20:27, Flavio <fbcyborg@gmail.com> wrote:> I don''t think it''s because of xend. Actually it doesn''t exist anymore on my > system. > What can I check about the bridge, on the config file? It should be > all right there.What I can say about the config files is that in the /etc/xen/xl.conf I only have this line: vifscript="vif-bridge" The /etc/xen/xend-config.sxp still exists but the xend init script is no longer present. -- Flavio _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Flavio
2011-Sep-27 18:47 UTC
Re: [Xen-users] Unable to get IP address in guest OS through DHCP
On 26 September 2011 20:42, Flavio <fbcyborg@gmail.com> wrote:> What I can say about the config files is that in the /etc/xen/xl.conf > I only have this line: > vifscript="vif-bridge"Problem solved changing the above line with the following one: vifscript="/etc/xen/scripts/vif-bridge" So the complete path to the vif-bridge file was necessary. # brctl show bridge name bridge id STP enabled interfaces xenbr0 8000.00248c08d07e yes eth0 vif1.0 vif2.0 Bye, -- Flavio _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Maybe Matching Threads
- Xen 4.1.0, multiple network interfaces, network-bridge failing to create multiple bridges
- 1 host, 1 nick, 1 regular bridge, 1 local bridge, 5 vm
- Xen bridge no longer working
- [PATCH] hotplug: add openvswitch script
- OpenSuse 11 hvm domU: screen resolution up to 640x480