disabling dhcp for a xenU host
I have xen domains at home, and i would like to be able to avoid xenU to ask (via dhcp) for an ip adresse.
Looking at xen_repo/docs/xen_config.html i saw that i can pass the parameter (ip ":::::eth0:dhcp") but by replacing it by (ip ":::::eth0:dhcp") i should be able to desactivate dhcp.
Because the ip parameter is analysed in the code of net/ipv4/ipconfig.c and as it is stated below
* Decode any IP configuration options in the "ip=" or "nfsaddrs=" kernel
* command line parameter. It consists of option fields separated by
colons in
* the following order:
*
* <client-ip>:<server-ip>:<gw-ip>:<netmask>:<host name>:<device>:<PROTO> *
* Any of the fields can be empty which means to use a default value:
* <client-ip> - address given by BOOTP or RARP * <server-ip> - address of host returning BOOTP or RARP packet * <gw-ip> - none, or the address returned by BOOTP * <netmask> - automatically determined from <client-ip>, or the * one returned by BOOTP * <host name> - <client-ip> in ASCII notation, or the name returned * by BOOTP * <device> - use all available devices * <PROTO>: * off|none - don't do autoconfig at all (DEFAULT) * on|any - use any configured protocol * dhcp|bootp|rarp - use only the specified protocol * both - use both BOOTP and RARP (not DHCP)
*/
by specifying none as protocol it shouldn't do any autoconfig but it seems that i don't work that much.
Any idea ?
Is there another way to desactivate dhcp for xenU domains ? What is the synthax of the ip parameter in device vif block ?
regards
Matthieu
d
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Quoted 5 lines
I have xen domains at home, and i would like to be able to avoid xenU to ask (via dhcp) for an ip adresse.
Looking at xen_repo/docs/xen_config.html i saw that i can pass the parameter (ip ":::::eth0:dhcp") but by replacing it by (ip ":::::eth0:dhcp") i should be able to desactivate dhcp.
Yep, I've previously noticed that xm prevents you from turning off the ip= component of the kernel command line. The best you can currently do is to set 'ip=off' in the configuration file and end up with a broken ip= parameter that is ignore by the kernel. Mike is aware of the problem.
Ian
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Quoted 6 lines · Ian Pratt
Quoted 5 lines
I have xen domains at home, and i would like to be able to avoid xenU to ask (via dhcp) for an ip adresse.
Looking at xen_repo/docs/xen_config.html i saw that i can pass the parameter (ip ":::::eth0:dhcp") but by replacing it by (ip ":::::eth0:dhcp") i should be able to desactivate dhcp.
Quoted 8 lines
Yep, I've previously noticed that xm prevents you from turning off the ip= component of the kernel command line. The best you can currently do is to set 'ip=off' in the configuration file and end up with a broken ip= parameter that is ignore by the kernel. Mike is aware of the problem.
Ian
you can't prevent xm to pass a ip parameter but by specifiying :::::eth0:off the kernel should ignore the ethernet adapter. But it's not the case.
I'll try to see why but i'm not a kernel expert so if someone can do a quick glance it should be better.
What i have found so far is the ip parameter is mostly ignored by xenU kernel (i've tried to specify bootp but the kernel still do dhcp request ..).
I was also wondering about the syntax of the ip parameter inside de net vif block (as explained in xen_repo/docs/xen_config.html ) what's the purpose of this parameter ?
Matthieu
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl