Preseeding/Kernal Boot Line (Ubuntu Server 10.04-4 LTS x64) - Disable IPv6?
Hi everyone,
I'm trying to find a way to disable IPv6 during either the preseeding process or by modifying the kernal boot line during the Ubuntu install. The end goal is for IPv6 to be automatically disabled for all of my Ubuntu installs. Thus far I've tried the following: 1) Add "ipv6.blacklist=yes" to the kernel parameters (The line should read "... -- ipv6.blacklist=yes" afterwards) - I've tried placing this text in a variety of locations within my kernal boot line. 2) Add "ipv6.disable=1" to the kernal parameters - I've tried placing this text in a variety of locations within my kernal boot line. Unless there's something I'm missing, I guess I'm going to have to create a post install script for this purpose =/. Thanks, -Snipe |
I don't know if the installer will notice which modules are blacklisted for the installers kernel. But if you want to disable IPv6 on the installed system just add
Code:
d-i preseed/late_command in-target echo "blacklist ipv6" >> /etc/modprobe.d/blacklist.conf |
Excellent, this is much more elegant than what I was about to attempt, thanks for your help once again Tobi! =)
-Snipe Quote:
|
The preseed/late_command failed =/
Bummer, this command just failed =/. Here's the error output:
[!!] Finish the installation Failed to run preseeded command Execution of preseeded command "echo "blacklist ipv6" >> /etc/modprobe.d/blacklist.conf" failed with exit code 1. I got a similar error when I tried adding the word string before in-target. Here's the command directly from the end of my preseed file: Code:
d-i preseed/late_command in-target echo "blacklist ipv6" >> /etc/modprobe.d/blacklist.conf Thanks, -Snipe Quote:
|
Sorry, I forgot the string. That is strange, try it with
Code:
d-i preseed/late_command string echo "blacklist ipv6" >> /target/etc/modprobe.d/blacklist.conf |
That fixed the preseeding error, but the following command is still returning a value of 0 (which means it's still turned on):
Code:
cat /proc/sys/net/ipv6/conf/all/disable_ipv6 Code:
username@hostname:~$ ifconfig Code:
username@hostname:~$ sudo vim /etc/modprobe.d/blacklist.conf Thanks, -Snipe |
It may be possible that the Ubuntu kernel has the ipv6 drivers not compiled as a module, but inbuilt into the kernel. In that case I don't know how to disable IPv6.
Check the config of the installed kernel for that. |
Please pardon my ignorance, but how do I accomplish this:
"Check the config of the installed kernel for that." My Unetbootin kernal boot line is: Code:
label unetbootindefault -Snipe Quote:
|
On the installed system do a
Code:
grep CONFIG_IPV6 /boot/config If it delivers something like this Code:
CONFIG_IPV6=m Code:
CONFIG_IPV6=y |
Sigh
I ran the following command:
Code:
grep CONFIG_IPV6 /boot/config-2.6.32-38-server Code:
DISABLE_IPV6=y Thanks, -Snipe |
The problem here is not preseeding, the problem is that I don't know how to disable a driver that is inbuilt into the kernel. Blacklisting won't work in that case.
|
Bummer, I'll see if I can accomplish this via a post-install Bash script. Thank you for your time Tobi!
-Snipe Quote:
|
All times are GMT -5. The time now is 08:54 AM. |