WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Re: Communicating with VM before Network is configured.

To: "tbrown@xxxxxxxxxxxxx" <tbrown@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] Re: Communicating with VM before Network is configured.
From: "Chris McKeever" <techjedi@xxxxxxxxx>
Date: Wed, 19 Jul 2006 07:54:22 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 19 Jul 2006 05:55:02 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=XObO75kdW87gXMym0S8xxiKKe6mgldz6q9kxps5FGPCaudHmb2yjcPKHUitRFGeYWL/nJB/7+i2IAGQrslCbZ1aia6+QUMfRDyWmG2/qNkL5Eh3IUDrXycyr+6PibLBokgjhrxr4Ucwh9pgw4lNevtx3ZBTr5iizmI4RXHN8iBY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.44.0607181709150.10648-100000@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <d9aa9070607181658j48bb506cq6f4718d5c782adca@xxxxxxxxxxxxxx> <Pine.LNX.4.44.0607181709150.10648-100000@xxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On 7/18/06, tbrown@xxxxxxxxxxxxx <tbrown@xxxxxxxxxxxxx> wrote:
On Tue, 18 Jul 2006, Chris McKeever wrote:

> > Then again, I don't know why the xen code couldn't convert network
> > configuration parameters into the kernel auto-config format. I don't know
> > if it is a good idea, but it seems possible.
>
> >From what I have seem - it is supposed to:
>
> http://www.nabble.com/IP-configuration-for-domU-ignored-t1779301.html
>
> but in this case, it doesnt - for me at least.

unless you're running into the same problem he describes ... which is that
the server parameter is not being specified, and as such the kernel
doesn't consider it a valid ip config and doesn't pre-configure eth0 for
you.

he covers it:
   ip=172.28.77.99::172.28.77.1:255.255.255.0:knscsl021-vm3:eth0:off
vs
   ip=172.28.77.99:1.2.3.4:172.28.77.1:255.255.255.0:knscsl021-vm3:eth0:off

I was not referencing his issue, more so that his post implies that
the config file (netmask,hostname,gateway) gets transcribed into the
above format as opposed to the conversation of it being passed in the
'extra' variable.


OK. I've just done some testing. as far as I can see, xen-3.0.2-2
does fill in a nfs_server entry of 1.2.3.4 and should avoid the
problem I'm describing and that Pablo talks of at the top of that page.
But at the bottom he says his problem went away with a recompiled kernel.


Anyhow, if you are getting an ip=... kernel parameter with a blank
nfs-server entry, you can try adding this to your config file:

   nfs_server="4.3.2.1"


are you saying that you are not using the 'extra' variable here - and
are in fact getting xen to build the command line string for network
config of the guest via the config (gateway,netmask, etc) parameters?
If so, that is all I have been on a quest for this whole time.

When you boot, there should be some "clues"...

e.g.

   Using config file "test.ip".
   Started domain test
   Linux version 2.6.16-xenU (root@xxxxxxxxxxxxxxxxxx) (gcc version
   3.4.5 20051201 (Red Hat 3.4.5-2)) #3 SMP Tue Jul 18 11:39:43 PDT
   <snip>
Kernel command line:
ip=192.168.2.254:5.4.3.2:192.168.2.86:255.255.255.0::eth0:off
root=/dev/nbd0 ro NBDHOST=65.39.183.43 NBDPORT=8000 single
   <snip>
   Using IPI No-Shortcut mode
IP-Config: Complete:
      device=eth0, addr=192.168.2.254, mask=255.255.255.0, gw=192.168.2.86,
     host=192.168.2.254, domain=, nis-domain=(none),
     bootserver=4.3.2.1, rootserver=4.3.2.1, rootpath=
   Freeing unused kernel memory: 132k freed
   Red Hat nash version 4.2.1.6 starting

I've left shifted the clues... e.g. the kernel command line and
the IP-Config: settings. If you're not getting an IP-Config
setting, then the either your kernel isn't compiled right, or
your ip= kernel parameters are not recognized as legit.


your config file here would help - as I no longer know if we are even
talking the same issue - if all this is still on the 'extra' variable
- we arent

To asnwer your inquiry - I do get the kernel command line and
IP-Config settings ONLY when I use the extra variable.  When I rely on
the individual config parameters - I get nothing in the kernel command
line except the root definition


Thanks

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users