I''m trying to get an NFS rooted DomU. Oddly it hangs forever (atleast a week :) waiting for DHCP, it sees answers it thinks are not for it, and may not be... if I remove the dhcp="dhcp" and set root="/dev/sda1" in the config the same kernel boots and gets its ip from dhcp just fine, using the same vif line (and thus the same MAC). I''m a bit puzzled by thins, can anyone hazard a guess? Thanks, -Jon _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, Sep 06, 2006 at 12:42:50PM -0400, Jonathan D. Proulx wrote: : :I''m trying to get an NFS rooted DomU. Oddly it hangs forever (atleast :a week :) waiting for DHCP, it sees answers it thinks are not for it, :and may not be... : :if I remove the dhcp="dhcp" and set root="/dev/sda1" in the config the :same kernel boots and gets its ip from dhcp just fine, using the same :vif line (and thus the same MAC). : :I''m a bit puzzled by thins, can anyone hazard a guess? Still puzzled but with more info. it seems when trying to use an NFS root the system never sends a DHCPDISCOVER, which it does do when using the user space dhcp aafter booting from "disk": Sep 7 10:37:29 foghorn-leghorn dhcpd: DHCPDISCOVER from aa:00:80:1e:02:89 via eth0 It starts right out with: Sep 7 10:33:40 foghorn-leghorn dhcpd: DHCPREQUEST for 255.255.255.255 (1.2.3.4) from aa:00:80:1e:02:89 via eth0: ignored (not authoritative). Well of course my server isn''t giving out anything on that network.... Must be a config issue so here''s the whole thing: --- kernel = "/boot/vmlinuz-2.6.16-xen0" memory = 3560 name = "il4" vif = [ ''mac=aa:00:80:1e:2:89, bridge=xenbr0''] disk = [ ''file:/xen/disks/il4-root,sda1,w'', ''file:/xen/disks/il4-swap,sda2,w'', ''file:/xen/disks/il4-openafs,sda3,w'', ] #root = "/dev/sda1 ro" dhcp="dhcp" root="/dev/nfs" --- I must be missing something... -Jon _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
You could try reconfiguring the DHCP server... ----- Original Message ----- From: "Jonathan D. Proulx" <jon@csail.mit.edu> To: <xen-users@lists.xensource.com> Sent: Thursday, September 07, 2006 4:42 PM Subject: Re: [Xen-users] DHCP for NFS root?> On Wed, Sep 06, 2006 at 12:42:50PM -0400, Jonathan D. Proulx wrote: > : > :I''m trying to get an NFS rooted DomU. Oddly it hangs forever (atleast > :a week :) waiting for DHCP, it sees answers it thinks are not for it, > :and may not be... > : > :if I remove the dhcp="dhcp" and set root="/dev/sda1" in the config the > :same kernel boots and gets its ip from dhcp just fine, using the same > :vif line (and thus the same MAC). > : > :I''m a bit puzzled by thins, can anyone hazard a guess? > > Still puzzled but with more info. > > it seems when trying to use an NFS root the system never sends a > DHCPDISCOVER, which it does do when using the user space dhcp aafter > booting from "disk": > > Sep 7 10:37:29 foghorn-leghorn dhcpd: DHCPDISCOVER from > aa:00:80:1e:02:89 via eth0 > > It starts right out with: > > Sep 7 10:33:40 foghorn-leghorn dhcpd: DHCPREQUEST for 255.255.255.255 > (1.2.3.4) from aa:00:80:1e:02:89 via eth0: ignored (not > authoritative). > > > Well of course my server isn''t giving out anything on that network.... > > > Must be a config issue so here''s the whole thing: > > --- > > kernel = "/boot/vmlinuz-2.6.16-xen0" > memory = 3560 > name = "il4" > vif = [ ''mac=aa:00:80:1e:2:89, bridge=xenbr0''] > disk = [ ''file:/xen/disks/il4-root,sda1,w'', > ''file:/xen/disks/il4-swap,sda2,w'', > ''file:/xen/disks/il4-openafs,sda3,w'', ] > #root = "/dev/sda1 ro" > dhcp="dhcp" > root="/dev/nfs" > > --- > > I must be missing something... > > -Jon > > _______________________________________________ > 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
ignoring the dhcp= and root= mojo and putitng everything in extra=<foo> like I have in the grub configs of my physical systems seems to work. -Jon _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I second that. All our NFS boot''ed domU are configured with dhcp options in the extra field An example: name="moya" kernel="/boot/vmlinuz-2.6-xen" root="/dev/nfsroot ro" memory=256 vif=[ ''mac=00:00:00:00:FF:01'' ] nfs_server="130.225.53.101" nfs_root="/data/diskless/xen-root" extra="ip=dhcp" /Daniel Portalen Support? Skriv til support@portal.aau.dk> From: "Jonathan D. Proulx" <jon@csail.mit.edu> > Date: Thu, 7 Sep 2006 11:42:27 -0400 > To: Matthijs ter Woord <matthijsterwoord@gmail.com> > Cc: <xen-users@lists.xensource.com> > Subject: Re: [Xen-users] DHCP for NFS root? > > > > ignoring the dhcp= and root= mojo and putitng everything in > extra=<foo> like I have in the grub configs of my physical systems > seems to work. > > -Jon > > _______________________________________________ > 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