PDA

View Full Version : Fedora 9 on AMD64 boot failure at iptables


snakewood
2008-08-05, 05:34 AM CDT
Just installed F9 (x86_64) onto my AMD64 family desktop as dual-boot with XP Home using Windows boot loader and GRUB as secondary boot loader. Boot hangs either at "iptables: Applying firewall rules: " or at "ip6tables: Applying firewall rules: " (you have to click "Show Details" to see which step it fails at).

Any ideas?

ivancat
2008-08-05, 05:42 AM CDT
well, try disabling iptables and ip6tables during boot (either interactive startup or boot in a single user mode and then disable those services with chkconfig)

oneofmany
2008-08-05, 05:44 AM CDT
does it give you any kind of error message?

try http://www.brunolinux.com/05-Configuring_Your_System/Grub_boot_runlevel-3.html to see if you can boot into command line only. if it does, see if you can spot any problems in /var/log/messages and dmesg :)

snakewood
2008-08-05, 06:55 AM CDT
No, no error message - just the hang.

oneofmany
2008-08-05, 07:13 AM CDT
have you custom compiled your kernel? i know if you turn off the IP routing in the kernel it causes problems when iptables attempts to access the routing tables.

however, reports i've seen suggest the system carries on trying to boot after 20 minutes or so so it hasn't really hung.

you could try booting into single-user mode and modifying /etc/init.d/iptables so that iptables starts with the --verbose flag at boot time which should then show you exactly what it's having problems with

ivancat
2008-08-05, 07:13 AM CDT
try http://www.brunolinux.com/05-Configuring_Your_System/Grub_boot_runlevel-3.html to see if you can boot into command line only. if it does, see if you can spot any problems in /var/log/messages and dmesg :)

it has no use, as even if you try to use runlevel 3 iptables service is run

@snakewood: try using interactive startup, when it starts and prints "Welcome to Fedora! Press 'I' to enter iteractive startup" you just press I (capital i) and then you choose what services to start and what not to, when it comes to ip6tables and iptables, you just press N for both

snakewood
2008-08-05, 08:45 AM CDT
does it give you any kind of error message?

try http://www.brunolinux.com/05-Configuring_Your_System/Grub_boot_runlevel-3.html to see if you can boot into command line only. if it does, see if you can spot any problems in /var/log/messages and dmesg :)

I tried runlevel 3 but iptables service was still run.

I tried runlevel 1 (single user) but it hangs after "Telling INIT to go to single user mode".

snakewood
2008-08-05, 09:06 AM CDT
it has no use, as even if you try to use runlevel 3 iptables service is run

@snakewood: try using interactive startup, when it starts and prints "Welcome to Fedora! Press 'I' to enter iteractive startup" you just press I (capital i) and then you choose what services to start and what not to, when it comes to ip6tables and iptables, you just press N for both

'I' does not appear to work - the boot just carries on as normal. However using 'a' at the GRUB menu I can add ' confirm' to the end of the kernel command and achieve a similar thing.

Using the 'confirm' mode I disabled 'ondemand cpu frequency scaling' (I have a hunch it may be that) and the iptables and ip6tables services and allowed the remaining boot sequence to run and this boots just fine.

Does anybody know anything about any of 'ondemand cpu frequency scaling' or iptables or ip6tables services that might cause this hang?

snakewood
2008-08-05, 09:34 AM CDT
'I' does not appear to work - the boot just carries on as normal. However using 'a' at the GRUB menu I can add ' confirm' to the end of the kernel command and achieve a similar thing.

Using the 'confirm' mode I disabled 'ondemand cpu frequency scaling' (I have a hunch it may be that) and the iptables and ip6tables services and allowed the remaining boot sequence to run and this boots just fine.

Does anybody know anything about any of 'ondemand cpu frequency scaling' or iptables or ip6tables services that might cause this hang?

Yep, its definitely 'ondemand cpu frequency scaling' that hangs the startup.

ivancat
2008-08-05, 09:43 AM CDT
then after you start up the system, run
su -
chkconfig cpuspeed off to disable cpu frequency scaling service

snakewood
2008-08-05, 10:44 AM CDT
then after you start up the system, run
su -
chkconfig cpuspeed off to disable cpu frequency scaling service

I did that, but it does not disable cpu frequency scaling for the next boot.

ivancat
2008-08-05, 10:51 AM CDT
try then chkconfig --del cpuspeed

that should work

snakewood
2008-08-06, 03:18 AM CDT
try then chkconfig --del cpuspeed

that should work

Or: chkconfig --level 235 cpuspeed off also works.

Thanks for your help.