<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Ubuntu on Puppeteers Oy</title>
		<link>https://www.puppeteers.net/tags/ubuntu/</link>
		<description>Recent content in Ubuntu on Puppeteers Oy</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
		
			<lastBuildDate>Mon, 05 Jul 2021 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://www.puppeteers.net/tags/ubuntu/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Packer QEMU: Building Ubuntu 20.04/22.04/24.04 VM images</title>
				<link>https://www.puppeteers.net/blog/building-ubuntu-20-04-qemu-images-with-packer/</link>
				<pubDate>Mon, 05 Jul 2021 00:00:00 +0000</pubDate>
				<guid>https://www.puppeteers.net/blog/building-ubuntu-20-04-qemu-images-with-packer/</guid>
				<description>&lt;p&gt;&lt;img src=&#34;https://puppeteers-public.hel1.your-objectstorage.com/pexels-karolina-grabowska-44981361-683x1024.jpg&#34; alt=&#34;A person closing a large cardboard box with tape.&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://developer.hashicorp.com/packer/integrations/hashicorp/qemu/latest/components/builder/qemu&#34;&gt;Packer QEMU builder&lt;/a&gt; allows you to build virtual machine images from scratch. You need a &lt;em&gt;Packerfile&lt;/em&gt;, an &lt;em&gt;automatic installation configuration file&lt;/em&gt; (autoinstall, kickstart or preseed) and the &lt;em&gt;operating system installer&lt;/em&gt; (e.g. ISO). The benefit of Packer QEMU in particular are that you can have fine-grained control over the virtual machine image content such as disk partitioning. Moreover you don&amp;rsquo;t need to rely on official base images produced by other people, such as the official &lt;a href=&#34;https://cloud-images.ubuntu.com/&#34;&gt;Ubuntu Cloud images&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Taming apt timers in Ubuntu 18.04</title>
				<link>https://www.puppeteers.net/blog/taming-apt-timers-in-ubuntu-18-04/</link>
				<pubDate>Wed, 05 Aug 2020 00:00:00 +0000</pubDate>
				<guid>https://www.puppeteers.net/blog/taming-apt-timers-in-ubuntu-18-04/</guid>
				<description>&lt;p&gt;Ubuntu 18.04 AWS images - and probably other Cloud images as well - have automated upgrades turned on. This is done via two &lt;a href=&#34;https://www.freedesktop.org/software/systemd/man/systemd.timer.html&#34;&gt;systemd timers&lt;/a&gt;, &lt;em&gt;apt-daily.timer&lt;/em&gt; and &lt;em&gt;apt-daily-upgrade.timer&lt;/em&gt;. The timers kick of periodically as well as when an instance is rebooted. This sounds reasonable until you are provisioning something: you&amp;rsquo;re unable to install or configure any packages while apt and/or dpkg are running. With a really fresh cloud base image this &lt;em&gt;may&lt;/em&gt; not be an issue, but when the base image gets sufficiently old then &lt;em&gt;apt-get upgrade&lt;/em&gt; starts taking enough time to cause issues.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Ubuntu and Debian preseeding tips</title>
				<link>https://www.puppeteers.net/blog/ubuntu-and-debian-preseeding-tips/</link>
				<pubDate>Mon, 18 May 2020 00:00:00 +0000</pubDate>
				<guid>https://www.puppeteers.net/blog/ubuntu-and-debian-preseeding-tips/</guid>
				<description>&lt;p&gt;Over the years I&amp;rsquo;ve had to automate installation of Ubuntu and Debian installers a number of times. The primary motivation has always been to avoid all the questions about timezone, locale, partitioning and which packages to install &lt;em&gt;and&lt;/em&gt; to not have to babysit the installation. In theory automating the installation is as simple as writing a &lt;a href=&#34;https://wiki.debian.org/DebianInstaller/Preseed&#34;&gt;preseed file&lt;/a&gt;. In practice it is much harder for a number of reasons:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Documentation on the Internet around custom installation media and preseeding setup is anecdotal at best - it gets you going and then lets you fall on your face. The official documentation is pretty good, though.&lt;/li&gt;&#xA;&lt;li&gt;The exact format of the preseed questions varies by operating system &lt;em&gt;version&lt;/em&gt;, not just by operating system (Debian, Ubuntu).&lt;/li&gt;&#xA;&lt;li&gt;In most cases questions about locale and keyboard layout must have answers &lt;em&gt;before&lt;/em&gt; the installer preseed is even loaded. This is misleading, because the preseed file &lt;em&gt;does&lt;/em&gt; have those questions, even though the answers have zero practical effect for the installer.&lt;/li&gt;&#xA;&lt;li&gt;There are many ways to accomplish preseeding, most notably by creating a custom installation medium with the preseed file, or by getting the preseed from an URL (&amp;ldquo;auto mode&amp;rdquo;).&lt;/li&gt;&#xA;&lt;li&gt;The default keyboard layout in most Ubuntu/Debian installer is en-US. This is fine, except when you don&amp;rsquo;t have an American keyboard: then you will be struggling to find characters such as &amp;ldquo;:&amp;rdquo; or &amp;ldquo;/&amp;rdquo;, which are relatively essential when loading the preseed file from an URL.&lt;/li&gt;&#xA;&lt;li&gt;It is impossible to remember how to start &amp;ldquo;automated install&amp;rdquo; from a vanilla installer menu, let alone figure out what the keyboard and locale settings should look like on the kernel command-line.&lt;/li&gt;&#xA;&lt;li&gt;The installer is happy to produce unworking configurations (e.g. no bootloader or no kernel) without giving any hints why things are not working.&lt;/li&gt;&#xA;&lt;li&gt;Each mistake is costly in time, especially if it affects something like Grub configuration which happens at the end of the install.&lt;/li&gt;&#xA;&lt;li&gt;Because of above, you tend to try to make as many changes to the kernel command line and/or preseeding as possible in one go. This means that when you get things working you don&amp;rsquo;t know what the proper fix was, and don&amp;rsquo;t feel like repeating the process to find out.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;In order not to be completely negative here is the general recipe for success:&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
