network driver built into kernel?
Hi, another quick question. Our virtual network driver is built into the kernel that we install. I'm like to set this up to use DHCP but default and come up on boot. I have this section in my XML file: <networking> <dhcp_options> <dhclient_additional_options>-B</dhclient_additional_options> <dhclient_hostname_option>AUTO</dhclient_hostname_option> </dhcp_options> <dns> <dhcp_hostname config:type="boolean">true</dhcp_hostname> <dhcp_resolv config:type="boolean">true</dhcp_resolv> <domain>virtualiron.com</domain> <hostname>linux</hostname> </dns> <interfaces config:type="list"> <interface> <bootproto>dhcp</bootproto> <device>eth0</device> <startmode>onboot</startmode> </interface> </interfaces> <routing> <ip_forward config:type="boolean">false</ip_forward> </routing> </networking> I have also tried the above with this included: <modules config:type="list"> <module_entry> <device>eth0</device> <module>kveth</module> <options></options> </module_entry> </modules> In both cases, The autoinstall completes, but on first boot, it fails to configure eth0 (startup scripts after initial yast run, show 'eth0 ... unused'). If I manually go in after bootup and use yast to configure eth0 for dhcp, then it works fine. Looking at /var/log/YaST2/y2log (snippet below) it appears that all of these options are passed to yast2 correctly, and that dhcpcd finds the correct IP information, but because I don't have a module name specified it refuses to write out the configuration...? How can i specify that the network driver is really in the kernel and not to bother with trying to load a module? or is that not the problem? thanks, john.c 2005-09-17 15:55:22 <1> linux(509) [Interpreter] network/install.ycp:389 Calling YaST client lan_auto (arguments: ["Import", $["dhcp_options":$["dhclient_additi onal_options":"-B", "dhclient_hostname_option":"AUTO"], "dns":$["dhcp_hostname": true, "dhcp_resolv":true, "domain":"virtualiron.com", "hostname":"linux"], "inte rfaces":[$["bootproto":"dhcp", "device":"eth0", "startmode":"onboot"]], "routing ":$["ip_forward":false]]]) 2005-09-17 15:55:22 <1> linux(509) [YCP] clients/lan_auto.ycp:14 --------------- ------------------------- 2005-09-17 15:55:22 <1> linux(509) [YCP] clients/lan_auto.ycp:15 Lan autoinst cl ient started 2005-09-17 15:55:22 <1> linux(509) [YCP] clients/lan_auto.ycp:106 InstallInf($["bootproto":"dhcp", "gateway":"10.1.5.1", "hwaddr":"00:0f:4b:00:00:22", "installation":"yes", "ipaddr":"10.1.5.12", "nameserver":"10.1.1.3", "netmask":"255.255.255.0", "type":"eth"]) 2005-09-17 15:55:22 <1> linux(509) [YCP] Lan.ycp:1089 hw=[] 2005-09-17 15:55:22 <3> linux(509) [YCP] Lan.ycp:483 No HW info found: $[] 2005-09-17 15:55:22 <1> linux(509) [YCP] Lan.ycp:488 No detailed HW info: 2005-09-17 15:55:22 <4> linux(509) [YCP] Lan.ycp:503 hw=$[] 2005-09-17 15:55:22 <1> linux(509) [YCP] clients/lan_auto.ycp:218 hw from type = [] 2005-09-17 15:55:22 <3> linux(509) [YCP] network/hardware.ycp:308 Item not found in Hardware: 1 (0) 2005-09-17 15:55:22 <3> linux(509) [YCP] Lan.ycp:483 No HW info found: $[] 2005-09-17 15:55:22 <1> linux(509) [YCP] Lan.ycp:488 No detailed HW info: 2005-09-17 15:55:22 <4> linux(509) [YCP] Lan.ycp:503 hw=$[] 2005-09-17 15:55:22 <1> linux(509) [YCP] Lan.ycp:504 device= 2005-09-17 15:55:22 <1> linux(509) [YCP] network/routines.ycp:266 input=$["confi g":$["dhcp":$["DHCLIENT_ADDITIONAL_OPTIONS":"-B", "DHCLIENT_HOSTNAME_OPTION":"AU TO", "DHCLIENT_MODIFY_RESOLV_CONF":true, "DHCLIENT_SET_HOSTNAME":true]], "device s":$["":$["":$["BOOTPROTO":"dhcp", "STARTMODE":"onboot", "UNIQUE":"", "_type":"" ]]], "dhcp_options":$["dhclient_additional_options":"-B", "dhclient_hostname_opt ion":"AUTO"], "dns":$["dhcp_hostname":true, "dhcp_resolv":true, "domain":"virtualiron.com", "hostname":"linux"], "hwcfg":$["":$["MODULE":"", "MODULE_OPTIONS":"", "STARTMODE":"auto"]], "interfaces":[$["bootproto":"dhcp", "device":"eth0", "startmode":"onboot"]], "routing":$["ip_forward":false]] 2005-09-17 15:55:22 <1> linux(509) [YCP] clients/lan_auto.ycp:388 Lan auto finished . . . YaST client lan_auto (arguments: ["Write", $["dhcp_options":$["dhclient_additio nal_options":"-B", "dhclient_hostname_option":"AUTO"], "dns":$["dhcp_hostname":t rue, "dhcp_resolv":true, "domain":"virtualiron.com", "hostname":"linux"], "inter faces":[$["bootproto":"dhcp", "device":"eth0", "startmode":"onboot"]], "routing" :$["ip_forward":false]]]) 2005-09-17 15:55:24 <1> linux(509) [YCP] clients/lan_auto.ycp:14 --------------- ------------------------- 2005-09-17 15:55:24 <1> linux(509) [YCP] clients/lan_auto.ycp:15 Lan autoinst cl ient started 2005-09-17 15:55:24 <1> linux(509) [YCP] Lan.ycp:291 Writing configuration 2005-09-17 15:55:24 <1> linux(509) [YCP] NetworkModules.ycp:183 Writing configur ation 2005-09-17 15:55:24 <1> linux(509) [YCP] NetworkModules.ycp:189 OriginalMods=nil 2005-09-17 15:55:24 <1> linux(509) [YCP] NetworkModules.ycp:190 Mods=$["":$["MOD ULE":"", "MODULE_OPTIONS":"", "STARTMODE":"auto"]] 2005-09-17 15:55:24 <1> linux(509) [YCP] NetworkModules.ycp:199 Deleted=[] 2005-09-17 15:55:24 <1> linux(509) [YCP] NetworkDevices.ycp:262 Writing configur ation 2005-09-17 15:55:24 <1> linux(509) [YCP] NetworkDevices.ycp:268 OriginalDevs=nil 2005-09-17 15:55:24 <1> linux(509) [YCP] NetworkDevices.ycp:269 Devs=$[] 2005-09-17 15:55:24 <1> linux(509) [YCP] NetworkDevices.ycp:278 Deleted=[] 2005-09-17 15:55:24 <1> linux(509) [YCP] NetworkConfig.ycp:86 Writing configuration
Minor corrections:
Hi, another quick question. Our virtual network driver is built into the kernel that we install. I'm like to set this up to use DHCP but default and
^^^ I'd ^^^ by
<modules config:type="list"> <module_entry> <device>eth0</device> <module>kveth</module> <options></options> </module_entry> </modules>
The log file below was actually generated when the modules section looked like this: <modules config:type="list"> <module_entry> <device>eth0</device> <module></module> <options></options> </module_entry> </modules> I've tried it both empty and specifying 'kveth' (our network driver). Which is why is says 'MODULE':"" in a few places instead of MODULE:"kveth". Both give the same, non-working results...Sorry for any confusion.
2005-09-17 15:55:22 <1> linux(509) [Interpreter] network/install.ycp:389 Calling YaST client lan_auto (arguments: ["Import", $["dhcp_options":$["dhclient_additi onal_options":"-B", "dhclient_hostname_option":"AUTO"], "dns":$["dhcp_hostname": true, "dhcp_resolv":true, "domain":"virtualiron.com", "hostname":"linux"], "inte rfaces":[$["bootproto":"dhcp", "device":"eth0", "startmode":"onboot"]], "routing ":$["ip_forward":false]]]) 2005-09-17 15:55:22 <1> linux(509) [YCP] clients/lan_auto.ycp:14 --------------- ------------------------- 2005-09-17 15:55:22 <1> linux(509) [YCP] clients/lan_auto.ycp:15 Lan autoinst cl ient started 2005-09-17 15:55:22 <1> linux(509) [YCP] clients/lan_auto.ycp:106 InstallInf($["bootproto":"dhcp", "gateway":"10.1.5.1", "hwaddr":"00:0f:4b:00:00:22", "installation":"yes", "ipaddr":"10.1.5.12", "nameserver":"10.1.1.3", "netmask":"255.255.255.0", "type":"eth"]) 2005-09-17 15:55:22 <1> linux(509) [YCP] Lan.ycp:1089 hw=[] 2005-09-17 15:55:22 <3> linux(509) [YCP] Lan.ycp:483 No HW info found: $[] 2005-09-17 15:55:22 <1> linux(509) [YCP] Lan.ycp:488 No detailed HW info: 2005-09-17 15:55:22 <4> linux(509) [YCP] Lan.ycp:503 hw=$[] 2005-09-17 15:55:22 <1> linux(509) [YCP] clients/lan_auto.ycp:218 hw from type = [] 2005-09-17 15:55:22 <3> linux(509) [YCP] network/hardware.ycp:308 Item not found in Hardware: 1 (0) 2005-09-17 15:55:22 <3> linux(509) [YCP] Lan.ycp:483 No HW info found: $[] 2005-09-17 15:55:22 <1> linux(509) [YCP] Lan.ycp:488 No detailed HW info: 2005-09-17 15:55:22 <4> linux(509) [YCP] Lan.ycp:503 hw=$[] 2005-09-17 15:55:22 <1> linux(509) [YCP] Lan.ycp:504 device= 2005-09-17 15:55:22 <1> linux(509) [YCP] network/routines.ycp:266 input=$["confi g":$["dhcp":$["DHCLIENT_ADDITIONAL_OPTIONS":"-B", "DHCLIENT_HOSTNAME_OPTION":"AU TO", "DHCLIENT_MODIFY_RESOLV_CONF":true, "DHCLIENT_SET_HOSTNAME":true]], "device s":$["":$["":$["BOOTPROTO":"dhcp", "STARTMODE":"onboot", "UNIQUE":"", "_type":"" ]]], "dhcp_options":$["dhclient_additional_options":"-B", "dhclient_hostname_opt ion":"AUTO"], "dns":$["dhcp_hostname":true, "dhcp_resolv":true, "domain":"virtualiron.com", "hostname":"linux"], "hwcfg":$["":$["MODULE":"", "MODULE_OPTIONS":"", "STARTMODE":"auto"]], "interfaces":[$["bootproto":"dhcp", "device":"eth0", "startmode":"onboot"]], "routing":$["ip_forward":false]] 2005-09-17 15:55:22 <1> linux(509) [YCP] clients/lan_auto.ycp:388 Lan auto finished
. . .
YaST client lan_auto (arguments: ["Write", $["dhcp_options":$["dhclient_additio nal_options":"-B", "dhclient_hostname_option":"AUTO"], "dns":$["dhcp_hostname":t rue, "dhcp_resolv":true, "domain":"virtualiron.com", "hostname":"linux"], "inter faces":[$["bootproto":"dhcp", "device":"eth0", "startmode":"onboot"]], "routing" :$["ip_forward":false]]]) 2005-09-17 15:55:24 <1> linux(509) [YCP] clients/lan_auto.ycp:14 --------------- ------------------------- 2005-09-17 15:55:24 <1> linux(509) [YCP] clients/lan_auto.ycp:15 Lan autoinst cl ient started 2005-09-17 15:55:24 <1> linux(509) [YCP] Lan.ycp:291 Writing configuration 2005-09-17 15:55:24 <1> linux(509) [YCP] NetworkModules.ycp:183 Writing configur ation 2005-09-17 15:55:24 <1> linux(509) [YCP] NetworkModules.ycp:189 OriginalMods=nil 2005-09-17 15:55:24 <1> linux(509) [YCP] NetworkModules.ycp:190 Mods=$["":$["MOD ULE":"", "MODULE_OPTIONS":"", "STARTMODE":"auto"]] 2005-09-17 15:55:24 <1> linux(509) [YCP] NetworkModules.ycp:199 Deleted=[] 2005-09-17 15:55:24 <1> linux(509) [YCP] NetworkDevices.ycp:262 Writing configur ation 2005-09-17 15:55:24 <1> linux(509) [YCP] NetworkDevices.ycp:268 OriginalDevs=nil 2005-09-17 15:55:24 <1> linux(509) [YCP] NetworkDevices.ycp:269 Devs=$[] 2005-09-17 15:55:24 <1> linux(509) [YCP] NetworkDevices.ycp:278 Deleted=[] 2005-09-17 15:55:24 <1> linux(509) [YCP] NetworkConfig.ycp:86 Writing configuration
-- To unsubscribe, e-mail: suse-autoinstall-unsubscribe@suse.com For additional commands, e-mail: suse-autoinstall-help@suse.com
participants (1)
-
John Clemens