<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Edlerd</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Edlerd"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Edlerd"/>
	<updated>2026-05-10T00:22:08Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=LXD&amp;diff=30448</id>
		<title>LXD</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=LXD&amp;diff=30448"/>
		<updated>2025-07-14T14:55:13Z</updated>

		<summary type="html">&lt;p&gt;Edlerd: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
[https://documentation.ubuntu.com/lxd/latest/ LXD] is a next generation system container manager. It offers a user experience similar to virtual machines but using Linux containers instead. &lt;br /&gt;
It allows an easier management and deployment of [[LXC]] containers. &lt;br /&gt;
&lt;br /&gt;
First, [[Repositories#Enabling_the_community_repository|enable the community repository]].&lt;br /&gt;
&lt;br /&gt;
Then, install the lxd and dbus packages (dbus is needed for some containers as they refuse to start if unavailable)&lt;br /&gt;
&lt;br /&gt;
  apk add lxd lxd-client lxcfs dbus&lt;br /&gt;
&lt;br /&gt;
Set some options to be able to run the containers as unprivileged:&lt;br /&gt;
&lt;br /&gt;
  echo &amp;quot;session optional pam_cgfs.so -c freezer,memory,name=systemd,unified&amp;quot; &amp;gt;&amp;gt; /etc/pam.d/system-login&lt;br /&gt;
  echo &amp;quot;lxc.idmap = u 0 100000 65536&amp;quot; &amp;gt;&amp;gt; /etc/lxc/default.conf&lt;br /&gt;
  echo &amp;quot;lxc.idmap = g 0 100000 65536&amp;quot; &amp;gt;&amp;gt; /etc/lxc/default.conf&lt;br /&gt;
  echo &amp;quot;root:100000:65536&amp;quot; &amp;gt;&amp;gt; /etc/subuid&lt;br /&gt;
  echo &amp;quot;root:100000:65536&amp;quot; &amp;gt;&amp;gt; /etc/subgid&lt;br /&gt;
&lt;br /&gt;
If you plan to run systemd based Linux distributions (Debian, Ubuntu, etc.), add this to /etc/conf.d/lxc:&lt;br /&gt;
&lt;br /&gt;
  systemd_container=yes&lt;br /&gt;
&lt;br /&gt;
and enable both lxc and lxd to start at boot:&lt;br /&gt;
&lt;br /&gt;
  rc-update add lxc&lt;br /&gt;
  rc-update add lxd&lt;br /&gt;
  rc-update add lxcfs&lt;br /&gt;
&lt;br /&gt;
If you have problems, try to enable dbus:&lt;br /&gt;
&lt;br /&gt;
  rc-update add dbus&lt;br /&gt;
&lt;br /&gt;
Reboot and lxd should be working.&lt;/div&gt;</summary>
		<author><name>Edlerd</name></author>
	</entry>
</feed>