Skip to content

Commit

Permalink
sysconfig-network-configuration: Disable Auto Config Ethernet Devices
Browse files Browse the repository at this point in the history
Disable automatic configuration on ethernet devices (DHCP/SLAAT) with no other matching connections

Update modules/ROOT/pages/sysconfig-network-configuration.adoc

Co-authored-by: Dusty Mabe <[email protected]>

Update modules/ROOT/pages/sysconfig-network-configuration.adoc

Co-authored-by: Dusty Mabe <[email protected]>

Update modules/ROOT/pages/sysconfig-network-configuration.adoc

Co-authored-by: Dusty Mabe <[email protected]>

Update modules/ROOT/pages/sysconfig-network-configuration.adoc

Co-authored-by: Dusty Mabe <[email protected]>

provisioning/exoscale: Add note/warning about CLI compression

Recommend users to use v1.54.0 and above and to never use the
`--cloud-init-compress` argument.

Closes coreos/fedora-coreos-tracker#1160

Add page for enabling kdump through ignition (coreos#388)

sysconfig-network-configuration: Improve readability and look

Improve readability and look of sysconfig-network

Final commit
  • Loading branch information
mohelt committed May 9, 2022
1 parent 30d4cc5 commit 6246269
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 4 deletions.
27 changes: 24 additions & 3 deletions modules/ROOT/pages/debugging-kernel-crashes.adoc
Original file line number Diff line number Diff line change
@@ -1,15 +1,36 @@
= Debugging kernel crashes using kdump

. Memory must be reserved for the crash kernel during booting of the first kernel. `crashkernel=auto` is likely insufficient memory on Fedora CoreOS. It is recommended to start testing with 300M. Kernel arguments can be provided like this:
== Introduction
kdump is a service that creates crash dumps when there is a kernel crash. It uses kexec to boot into a secondary kernel (known as a capture kernel), then exports the contents of the kernel's memory (known as a crash dump or vmcore) to the filesystem. The contents of vmcore can then be analyzed to root cause the kernel crash.

Configuring kdump requires setting the `crashkernel` kernel argument and enabling the kdump systemd service. Memory must be reserved for the crash kernel during booting of the first kernel. `crashkernel=auto` generally doesn't reserve enough memory on Fedora CoreOS, so it is recommended to specify `crashkernel=300M`.

By default, the vmcore will be saved in `/var/crash`. It is also possible to write the dump to some other location on the local system or to send it over the network by editing `/etc/kdump.conf`. For additional information, see https://www.mankier.com/5/kdump.conf[`kdump.conf(5)`] and the comments in `/etc/kdump.conf` and `/etc/sysconfig/kdump`.

== Configuring kdump via Ignition
.Example kdump configuration
[source,yaml]
----
variant: fcos
version: 1.4.0
kernel_arguments:
should_exist:
- 'crashkernel=300M'
systemd:
units:
- name: kdump.service
enabled: true
----

== Configuring kdump after initial provision
. Set the crashkernel kernel argument
+
[source, bash]
----
sudo rpm-ostree kargs --append='crashkernel=300M'
----
xref:kernel-args.adoc[More information] on how to modify kargs via `rpm-ostree`.

. By default, the path in which the vmcore will be saved is `/var/crash`. It is also possible to write the dump over the network or to some other location on the local system by editing `/etc/kdump.conf`. For additional information, see https://www.mankier.com/5/kdump.conf[`kdump.conf(5)`] and the comments in `/etc/kdump.conf` and `/etc/sysconfig/kdump`.

. Enable the kdump systemd service.
+
[source, bash]
Expand Down
4 changes: 4 additions & 0 deletions modules/ROOT/pages/provisioning-exoscale.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ You can then view the template using `exo compute instance-template show --visib

You can provision a FCOS instance using the Exoscale https://portal.exoscale.com/compute/instances/add[Web Portal] or via the https://community.exoscale.com/documentation/tools/exoscale-command-line-interface/[Exoscale CLI].

NOTE: You will need to use at least version https://github.com/exoscale/cli/releases/tag/v1.54.0[v1.54.0] of the Exoscale CLI.

WARNING: Do not use the `--cloud-init-compress` argument to the CLI. It causes the Ignition config to be passed compressed to the instance and https://github.com/coreos/fedora-coreos-tracker/issues/1160[Ignition doesn't tolerate that].

.Launching a new instance with Exoscale CLI
[source, bash]
----
Expand Down
25 changes: 24 additions & 1 deletion modules/ROOT/pages/sysconfig-network-configuration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

=== Background

By default, Fedora CoreOS (FCOS) will attempt DHCP on every interface with a cable plugged in. However, if you need to use static addressing or more complex networking (vlans, bonds, bridges, teams, etc..), you can do so in a number of ways which are summarized below. Regardless of the way you choose to configure networking it all ends up as configuration for NetworkManager, which takes the form of NetworkManager keyfiles. More information on the keyfile format can be found https://developer.gnome.org/NetworkManager/stable/nm-settings-keyfile.html[here]. More information on the subsection options for keyfiles can be found https://developer.gnome.org/NetworkManager/stable/ref-settings.html[here].
Unless xref:#_disabling_automatic_configuration_of_ethernet_devices[otherwise configured], Fedora CoreOS (FCOS) will attempt DHCP on every interface with a cable plugged in. However, if you need to use static addressing or more complex networking (vlans, bonds, bridges, teams, etc..), you can do so in a number of ways which are summarized below. Regardless of the way you choose to configure networking it all ends up as configuration for NetworkManager, which takes the form of NetworkManager keyfiles. More information on the keyfile format can be found https://developer.gnome.org/NetworkManager/stable/nm-settings-keyfile.html[here]. More information on the subsection options for keyfiles can be found https://developer.gnome.org/NetworkManager/stable/ref-settings.html[here].

=== Configuration Options

Expand Down Expand Up @@ -890,3 +890,26 @@ storage:
master=bond0
slave-type=bond
----
=== Disabling Automatic Configuration of Ethernet Devices

By default, FCOS will attempt to autoconfigure (DHCP/SLAAC) on every interface with a cable plugged in. In some network environments this may not be desirable. It's possible to change this behavior of NetworkManager with a configuration file dropin:


.Disable NetworkManager autoconfiguration of ethernet devices
[source, yaml]
----
variant: fcos
version: 1.4.0
storage:
files:
- path: /etc/NetworkManager/conf.d/noauto.conf
mode: 0644
contents:
inline: |
[main]
# Do not do automatic (DHCP/SLAAC) configuration on ethernet devices
# with no other matching connections.
no-auto-default=*
----

WARNING: If NetworkManager autoconfiguration of ethernet devices is disabled and no other network configuration is provided the system will boot without network access.

0 comments on commit 6246269

Please sign in to comment.