> Date: Thu, 1 Dec 2011 01:50:08 +0700
> From: anto...@nagafix.co.uk
> To: user-mode-linux-user@lists.sourceforge.net
> Subject: Re: [uml-user] Cannot bringup DHCP (2.6.39 kernel + Debian 5.0
> rootfs)
>
> On 11/30/2011 02:54 AM, ning ji wrote:
> >
> > Hi everyone,
> > I'm new to UML, having issues bring up DHCP for my uml.
> > step 1:./kernel2.6.39 ubda=./debian50.rfs mem=128M
> > eth0=tuntap,,,10.50.183.254
> Have you tried using a specific tap device here? Like:
> (...) eth0=tuntap,tap1,fe:f0:00:00:00:01,10.50.183.254
try that, not working either.
>
> > so as you see,kernel: Linux (none) 2.6.39.4 #2 Thu Sep 1 11:25:36 EDT 2011
> > i686 GNU/Linuxrootfs: Debian-5.0-x86-root_fs
> > step 2:After it boots,(none):/etc/init.d# /etc/init.d/networking restart
> > Configuring network interfaces...Internet Systems Consortium DHCP Client
> > V3.1.1Copyright 2004-2008 Internet Systems Consortium.All rights
> > reserved.For info, please visit http://www.isc.org/sw/dhcp/
> > [ 3.660000] helper_wait : waitpid process 13629 failed, errno = 10[
> > 3.660000] * modprobe tun[ 3.660000] * ifconfig tap0 10.50.183.254
> > netmask 255.255.255.255 up[ 3.660000] * bash -c echo 1 >
> > /proc/sys/net/ipv4/ip_forwardListening on LPF/eth0/ba:b4:8c:0a:56:95Sending
> > on LPF/eth0/ba:b4:8c:0a:56:95Sending on Socket/fallbackDHCPDISCOVER on
> > eth0 to 255.255.255.255 port 67 interval 3DHCPDISCOVER on eth0 to
> > 255.255.255.255 port 67 interval 7DHCPDISCOVER on eth0 to 255.255.255.255
> > port 67 interval 8
> I find it impossible to read you emails as the formatting is just terrible.
sorry, hotmail always gives me trouble. Try again.1. reboot2. at the prompt,
type "ifup eth0 -v"
debianuml:~# ifup eth0 -v
Configuring interface eth0=eth0 (inet)
run-parts --verbose /etc/network/if-pre-up.d
dhclient3 -pf /var/run/dhclient.eth0.pid -lf
/var/lib/dhcp3/dhclient.eth0.leases eth0
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/fe:f0:00:00:00:01
Sending on LPF/eth0/fe:f0:00:00:00:01
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/mountnfs
debianuml:~#
>
> > step 3:On the other hand, if i type these 2 commands,ifconfig eth0
> > 10.50.181.135 netmask 255.255.252.0 up
> > route add default gw 10.50.183.254 eth0
> > static ip will be up for eht0, i can do ping etc.
> You aren't posting all the commands that you ran, like (re)starting the
> dhcp daemon, etc.
ifup eth0 -vwhich becomesdhclient3 -pf /var/run/dhclient.eth0.pid -lf
/var/lib/dhcp3/dhclient.eth0.leases eth0
>
> > step 4:Note for the /etc/dhcp3/dhclient.conf, i didn't change anything from
> > the original debian_5.0 rootfs.As i compared with the one from my ubuntu
> > desktop, they look almost the same. Certainly my ubuntu works.(I'm using
> > debian rootfs as none of the ubuntu rootfs i downloaded works.)
> Since you are referring to the Ubuntu filesystems that I made (from a
> separate email), let me correct this statement slightly: these
> filesystems work just fine, but not with UML, as stated on their
> individual download page (IIRC Lucid is the last Ubuntu release that
> booted ok with UML)
>
> > Having been struggling this for 1 week, any help appreciated !
> Have you tried following these instructions:
> http://uml.devloop.org.uk/howto.html
Question here, if uml is running in my desktop, i need to install and run dhcpd
in my desktop ?sorry i'm kind of lost, this is in a company, the company has
the dhcp server running for all the PCs.
>
> Cheers
> Antoine
Thanks again !
>
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------------
> > All the data continuously generated in your IT infrastructure
> > contains a definitive record of customers, application performance,
> > security threats, fraudulent activity, and more. Splunk takes this
> > data and makes sense of it. IT sense. And common sense.
> > http://p.sf.net/sfu/splunk-novd2d
> >
> >
> >
> > _______________________________________________
> > User-mode-linux-user mailing list
> > User-mode-linux-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> User-mode-linux-user mailing list
> User-mode-linux-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user