<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Host Configuration on Flatcar Container Linux</title>
		<link>/docs/latest/os-config/host-config/</link>
		<description>Recent content in Host Configuration on Flatcar Container Linux</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
			<copyright>Copyright © The Flatcar Project Contributors.

Copyright © Flatcar a Series of LF Projects, LLC.

For website terms of use, trademark policy and other project policies please see &lt;a href=&#34;https://lfprojects.org/policies/&#34;&gt;lfprojects.org/policies&lt;/a&gt;.
</copyright>
		
		
			<atom:link href="/docs/latest/os-config/host-config/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Adding users</title>
				<link>/docs/latest/os-config/host-config/adding-users/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/latest/os-config/host-config/adding-users/</guid>
				<description>&lt;p&gt;You can create user accounts on a Flatcar Container Linux machine manually with &lt;code&gt;useradd&lt;/code&gt; or via a &#xA;&#xA;&#xA;&lt;a href=&#34;/docs/latest/fb-provision/butane/&#34;&gt;Butane Config&lt;/a&gt;&#xA; when the machine is created.&lt;/p&gt;&#xA;&lt;h2 id=&#34;add-users-via-butane-configs&#34;&gt;Add Users via Butane Configs&lt;/h2&gt;&#xA;&lt;p&gt;In your Butane Config, you can specify many &#xA;&#xA;&#xA;&lt;a href=&#34;/docs/latest/fb-provision/butane/configuration/&#34;&gt;different parameters&lt;/a&gt;&#xA; for each user. Here&amp;rsquo;s an example:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;variant: flatcar&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;version: 1.0.0&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;passwd:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  users:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    - name: core&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      ssh_authorized_keys:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        - &lt;span style=&#34;color:#a31515&#34;&gt;&amp;#34;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGdByTgSVHq.......&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    - name: elroy&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      password_hash: &lt;span style=&#34;color:#a31515&#34;&gt;&amp;#34;$6$5s2u6/jR$un0AvWnqilcgaNB3Mkxd5yYv6mTlWfOoCYHZmfi3LDKVltj.E8XNKEcwWm...&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      ssh_authorized_keys:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        - &lt;span style=&#34;color:#a31515&#34;&gt;&amp;#34;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGdByTgSVHq.......&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      groups: [ sudo, docker ]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Because &lt;code&gt;usermod&lt;/code&gt; does not work to add a user to a predefined system group, you can use &#xA;&#xA;&#xA;&lt;a href=&#34;https://www.freedesktop.org/software/systemd/man/systemd-userdbd.service.html&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;systemd-userdb&lt;/a&gt;&#xA; to define membership. Here&amp;rsquo;s the same example with userdb:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Configuring date and time zone</title>
				<link>/docs/latest/os-config/host-config/configuring-date-and-timezone/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/latest/os-config/host-config/configuring-date-and-timezone/</guid>
				<description>&lt;p&gt;By default, Flatcar Container Linux machines keep time in the Coordinated Universal Time (UTC) zone and synchronize their clocks with the Network Time Protocol (NTP). This page contains information about customizing those defaults, explains the change in NTP client daemons in recent Flatcar Container Linux versions, and offers advice on best practices for timekeeping in Flatcar Container Linux clusters.&lt;/p&gt;&#xA;&lt;h2 id=&#34;viewing-and-changing-time-and-date&#34;&gt;Viewing and changing time and date&lt;/h2&gt;&#xA;&lt;p&gt;The &#xA;&#xA;&#xA;&lt;a href=&#34;http://www.freedesktop.org/software/systemd/man/timedatectl.html&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;code&gt;timedatectl(1)&lt;/code&gt;&lt;/a&gt;&#xA; command displays and sets the date, time, and time zone.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using systemd drop-in units</title>
				<link>/docs/latest/os-config/host-config/drop-in-units/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/latest/os-config/host-config/drop-in-units/</guid>
				<description>&lt;p&gt;There are two methods of overriding default Flatcar Container Linux settings in unit files: copying the unit file from &lt;code&gt;/usr/lib64/systemd/system&lt;/code&gt; to &lt;code&gt;/etc/systemd/system&lt;/code&gt; and modifying the chosen settings. Alternatively, one can create a directory named &lt;code&gt;unit.d&lt;/code&gt; within &lt;code&gt;/etc/systemd/system&lt;/code&gt; and place a drop-in file &lt;code&gt;name.conf&lt;/code&gt; there that only changes the specific settings one is interested in. Note that multiple such drop-in files are read if present.&lt;/p&gt;&#xA;&lt;p&gt;The advantage of the first method is that one easily overrides the complete unit, the default Flatcar Container Linux unit is not parsed at all anymore. It has the disadvantage that improvements to the unit file supplied by Flatcar Container Linux are not automatically incorporated on updates.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Scheduling tasks with systemd timers</title>
				<link>/docs/latest/os-config/host-config/timers/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/latest/os-config/host-config/timers/</guid>
				<description>&lt;p&gt;Flatcar Container Linux uses systemd timers (&lt;code&gt;cron&lt;/code&gt; replacement) to schedule tasks. Here we will show you how you can schedule a periodic job.&lt;/p&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s create an alternative for this &lt;code&gt;crontab&lt;/code&gt; job:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;*/10 * * * * /usr/bin/date &amp;gt;&amp;gt; /tmp/date&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Timers work directly with services&amp;rsquo; units. So we have to create &lt;code&gt;/etc/systemd/system/date.service&lt;/code&gt; first:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-ini&#34; data-lang=&#34;ini&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#00f&#34;&gt;[Unit]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Description=&lt;span style=&#34;color:#a31515&#34;&gt;Prints date into /tmp/date file&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#00f&#34;&gt;[Service]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Type=&lt;span style=&#34;color:#a31515&#34;&gt;oneshot&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ExecStart=&lt;span style=&#34;color:#a31515&#34;&gt;/usr/bin/sh -c &amp;#39;/usr/bin/date &amp;gt;&amp;gt; /tmp/date&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then we have to create timer unit with the same name but with &lt;code&gt;*.timer&lt;/code&gt; suffix &lt;code&gt;/etc/systemd/system/date.timer&lt;/code&gt;:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using environment variables in systemd units</title>
				<link>/docs/latest/os-config/host-config/environment-variables/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/latest/os-config/host-config/environment-variables/</guid>
				<description>&lt;h2 id=&#34;environment-directive&#34;&gt;Environment directive&lt;/h2&gt;&#xA;&lt;p&gt;systemd has an Environment directive which sets environment variables for executed processes. It takes a space-separated list of variable assignments. This option may be specified more than once in which case all listed variables will be set. If the same variable is set twice, the later setting will override the earlier setting. If the empty string is assigned to this option, the list of environment variables is reset, all prior assignments have no effect. Environments directives are used in built-in Flatcar Container Linux systemd units, for example in etcd2 and flannel.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Kernel modules and other settings</title>
				<link>/docs/latest/os-config/host-config/other-settings/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/latest/os-config/host-config/other-settings/</guid>
				<description>&lt;h2 id=&#34;loading-kernel-modules&#34;&gt;Loading kernel modules&lt;/h2&gt;&#xA;&lt;p&gt;Most Linux kernel modules get automatically loaded as-needed but there are a some situations where this doesn&amp;rsquo;t work. Problems can arise if there is boot-time dependencies are sensitive to exactly when the module gets loaded. Module auto-loading can be broken all-together if the operation requiring the module happens inside of a container. &lt;code&gt;iptables&lt;/code&gt; and other netfilter features can easily encounter both of these issues. To force a module to be loaded early during boot simply list them in a file under &lt;code&gt;/etc/modules-load.d&lt;/code&gt;. The file name must end in &lt;code&gt;.conf&lt;/code&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using NVIDIA GPUs on Flatcar</title>
				<link>/docs/latest/os-config/host-config/using-nvidia/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/latest/os-config/host-config/using-nvidia/</guid>
				<description>&lt;h3 id=&#34;installation&#34;&gt;Installation&lt;/h3&gt;&#xA;&lt;p&gt;Flatcar Container Linux offers support for the installation and customization of NVIDIA drivers for Tesla GPUs (both in VMs and on bare metal). Please take note that NVIDIA drivers have been migrated from being solely available on AWS and Azure to being accessible on all platforms with the release of version 3637.0.0. If you are using an older version, please be aware that it is restricted to AWS and Azure only.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Tuning Flatcar Container Linux power management</title>
				<link>/docs/latest/os-config/host-config/power-management/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/latest/os-config/host-config/power-management/</guid>
				<description>&lt;h2 id=&#34;cpu-governor&#34;&gt;CPU governor&lt;/h2&gt;&#xA;&lt;p&gt;By default, Flatcar Container Linux uses the &amp;ldquo;performance&amp;rdquo; CPU governor meaning that the CPU operates at the maximum frequency regardless of load. This is reasonable for a system that is under constant load or cannot tolerate increased latency. On the other hand, if the system is idle much of the time and latency is not a concern, power savings may be desired.&lt;/p&gt;&#xA;&lt;p&gt;Several governors are available:&lt;/p&gt;&#xA;&lt;table&gt;&#xA;&#x9;&lt;thead&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Governor&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Description&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/thead&gt;&#xA;&#x9;&lt;tbody&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;performance&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Default. Operate at the maximum frequency&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;ondemand&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Dynamically scale frequency at 75% cpu load&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;conservative&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Dynamically scale frequency at 95% cpu load&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;powersave&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Operate at the minimum frequency&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;userspace&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Controlled by a userspace application via the &lt;code&gt;scaling_setspeed&lt;/code&gt; file&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;The &amp;ldquo;conservative&amp;rdquo; governor can be used instead using the following shell commands:&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
