<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Robin Reinecke</title>
    <description>The latest articles on DEV Community by Robin Reinecke (@robinreinecke).</description>
    <link>https://dev.to/robinreinecke</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4016116%2Fa6eec291-7077-4dbb-b4bd-9d284cceb855.jpg</url>
      <title>DEV Community: Robin Reinecke</title>
      <link>https://dev.to/robinreinecke</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/robinreinecke"/>
    <language>en</language>
    <item>
      <title>My Network Bug Was Driving Me Crazy</title>
      <dc:creator>Robin Reinecke</dc:creator>
      <pubDate>Mon, 23 Nov 2026 19:59:43 +0000</pubDate>
      <link>https://dev.to/robinreinecke/my-network-bug-was-driving-me-crazy-4hc3</link>
      <guid>https://dev.to/robinreinecke/my-network-bug-was-driving-me-crazy-4hc3</guid>
      <description>&lt;p&gt;Halfway through moving my services from the old server to the new one, the two machines stopped talking to each other.&lt;br&gt;
Not all the time, and not completely.&lt;br&gt;
Just often enough to make every migration step feel like a coin toss.&lt;/p&gt;

&lt;p&gt;This post is about how I found the cause, about the weeks I blamed the switch, and about the two days I then spent confidently looking in the wrong places.&lt;br&gt;
If you only want the answer: the old server sometimes lost the route to its own subnet, and my firewall punished it for that.&lt;br&gt;
The more useful part is why it took so long to see.&lt;/p&gt;
&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;During the migration, both servers lived on the same LAN segment, &lt;code&gt;192.168.50.0/24&lt;/code&gt;.&lt;br&gt;
The old Ubuntu server was &lt;code&gt;192.168.50.10&lt;/code&gt;.&lt;br&gt;
The new Docker VM on Proxmox, which I described in the &lt;a href="https://dev.to/blog/2026-09-28-deploying-my-home-server-with-komodo"&gt;Komodo post&lt;/a&gt;, was &lt;code&gt;192.168.50.51&lt;/code&gt;.&lt;br&gt;
A &lt;a href="https://www.pfsense.org/" rel="noopener noreferrer"&gt;pfSense&lt;/a&gt; box routes between my VLANs and is the default gateway at &lt;code&gt;192.168.50.1&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Two kinds of traffic went from new to old.&lt;br&gt;
I copied data with &lt;code&gt;rsync&lt;/code&gt;, and Traefik on the new server forwarded requests for services that had not moved yet, such as Jellyfin and Immich, to the old box.&lt;br&gt;
Both broke in the same way.&lt;/p&gt;
&lt;h2&gt;
  
  
  The symptoms
&lt;/h2&gt;

&lt;p&gt;Everything was running fine until I started the migration process of a service by running &lt;code&gt;rsync&lt;/code&gt; from the old server to the new one.&lt;br&gt;
From that moment, the new server could not open any connection to the old one.&lt;br&gt;
SSH, HTTP, anything.&lt;br&gt;
Traefik started returning errors for every service that still lived on the old machine.&lt;/p&gt;

&lt;p&gt;At the same time, a few other things were true:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The new server could reach the internet and every other device on the LAN.&lt;/li&gt;
&lt;li&gt;A &lt;code&gt;ping&lt;/code&gt; from the old server to the new one worked, and the replies came back.&lt;/li&gt;
&lt;li&gt;Rebooting the Docker VM did not help, and rebooting the whole Proxmox host did not help either.&lt;/li&gt;
&lt;li&gt;Power cycling the switch fixed it, every time.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In that moment I thought: Now I found the culprit.&lt;br&gt;
The switch was an 8-port managed model with all ports in use, and it was the only thing that reliably made the problem go away.&lt;br&gt;
I already started looking for a replacement.&lt;br&gt;
I even started a list of the ways switches die: dried-out capacitors in the power supply, heat, a switching loop, a firmware memory leak.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why the switch reboot was weak evidence
&lt;/h2&gt;

&lt;p&gt;Before ordering anything, I wrote down what the switch reboot actually did.&lt;br&gt;
It did not only reset the switch.&lt;br&gt;
It dropped the link on every port, including the old server's.&lt;br&gt;
And the old server was the one machine in this whole story that I had never restarted.&lt;/p&gt;

&lt;p&gt;So "the switch reboot fixes it" could also mean "a link reset on the old server fixes it".&lt;br&gt;
Those two look identical from the outside.&lt;br&gt;
That was the first moment I stopped trusting the obvious suspect, but it did not tell me what the real one was.&lt;/p&gt;

&lt;p&gt;The ping result should have bothered me more, earlier.&lt;br&gt;
If the switch had stopped forwarding frames between the two servers, the ping replies would have died too.&lt;br&gt;
They did not.&lt;br&gt;
Every direction of raw packet flow worked.&lt;br&gt;
Only TCP connections from new to old failed.&lt;/p&gt;
&lt;h2&gt;
  
  
  Capturing on the right side
&lt;/h2&gt;

&lt;p&gt;The test that ended the switch theory was a packet capture on the old server, run while the fault was active.&lt;br&gt;
I wanted to see the frames as the old server sent them, before any switch port touched them.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tcpdump -eni enp1s0 host 192.168.50.51
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;-e&lt;/code&gt; flag prints the MAC addresses, and that was the whole point.&lt;br&gt;
Here is the important part of what it showed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;30:9c:23… &amp;gt; bc:24:11…  ARP Reply 192.168.50.10 is-at 30:9c:23:ac:d9:af
30:9c:23… &amp;gt; 40:62:31…  ICMP echo reply → 192.168.50.51
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first line is the old server answering an ARP (Address Resolution Protocol) request from the VM.&lt;br&gt;
ARP is how a machine finds out which MAC address belongs to an IP address on the local network, so at this point the old server clearly knew the VM was right there.&lt;br&gt;
87 microseconds later, it sent its reply to &lt;code&gt;40:62:31…&lt;/code&gt;.&lt;br&gt;
That is not the VM's MAC address.&lt;br&gt;
That is... drum roll... pfSense.&lt;/p&gt;

&lt;p&gt;So the old server was not sending its replies to the VM directly.&lt;br&gt;
It was handing them to the router, as if the VM were somewhere on the internet.&lt;br&gt;
And it did this before the frame ever reached the switch.&lt;br&gt;
A switch can drop, delay or flood a frame, but it cannot rewrite the destination MAC that the sender put in it.&lt;br&gt;
The switch was out of the story.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why pfSense reset the connections
&lt;/h2&gt;

&lt;p&gt;Once I knew the replies went through pfSense, the firewall log made sense:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;VL50_SERVER: Default reject IPv4  192.168.50.10:8096 → 192.168.50.51:38708  TCP:SA
VL50_SERVER: Default reject IPv4  192.168.50.10:2283 → 192.168.50.51:38114  TCP:SA
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Port 8096 is Jellyfin and 2283 is Immich, so these were exactly the Traefik requests that were failing.&lt;br&gt;
&lt;code&gt;TCP:SA&lt;/code&gt; means pfSense saw a SYN-ACK, the second packet of a TCP handshake.&lt;/p&gt;

&lt;p&gt;Here is what happened, step by step:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The VM sends a SYN to the old server. Its routing is correct, so the packet goes directly to &lt;code&gt;.10&lt;/code&gt;. pfSense never sees it.&lt;/li&gt;
&lt;li&gt;The old server answers with a SYN-ACK, but sends it to pfSense instead of directly to the VM.&lt;/li&gt;
&lt;li&gt;pfSense is a stateful firewall. It tracks every connection from its first packet. It has never seen this connection start, so a SYN-ACK out of nowhere looks like garbage.&lt;/li&gt;
&lt;li&gt;The default rule on that interface is &lt;code&gt;reject&lt;/code&gt;, not &lt;code&gt;block&lt;/code&gt;. So instead of dropping the packet quietly, pfSense answers with a TCP reset, made to look like it came from the old server.&lt;/li&gt;
&lt;li&gt;The VM gets an instant "connection reset". The old server thinks it answered politely. Nothing logs an error, except a firewall line I wasn’t looking at.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It is a bit like a letter you send to your neighbor, who writes back but gives the reply to the post office instead of walking it over.&lt;br&gt;
The post office has no record of your original letter, so it sends you a note saying the neighbor refused it.&lt;br&gt;
Everyone did something reasonable, and the result is nonsense.&lt;/p&gt;

&lt;p&gt;This also explains the ping.&lt;br&gt;
When the old server pinged the VM, the request went to pfSense, which knew where &lt;code&gt;.51&lt;/code&gt; was and forwarded it.&lt;br&gt;
The VM replied directly.&lt;br&gt;
ICMP does not need the firewall to have seen a handshake, so it passed.&lt;br&gt;
Only TCP needs pfSense to recognize a packet in the middle of a conversation, so only TCP broke.&lt;br&gt;
A working ping proved that packets could move, not that connections could.&lt;/p&gt;
&lt;h2&gt;
  
  
  Two wrong theories
&lt;/h2&gt;

&lt;p&gt;At this point I had the mechanism but not the cause.&lt;br&gt;
Why would the server send LAN traffic to its gateway?&lt;/p&gt;

&lt;p&gt;My first confident answer was pfSense itself.&lt;br&gt;
If pfSense were answering ARP requests for addresses it did not own, called proxy ARP, the old server could learn the wrong MAC for the VM.&lt;br&gt;
I checked carefully.&lt;br&gt;
No virtual IPs configured, no proxy ARP, &lt;code&gt;net.link.ether.inet.proxyall&lt;/code&gt; set to &lt;code&gt;0&lt;/code&gt;, no second interface in that subnet, no CARP.&lt;br&gt;
pfSense was clean.&lt;/p&gt;

&lt;p&gt;My second confident answer was two network managers fighting on the old server.&lt;br&gt;
Ubuntu ran both NetworkManager and systemd-networkd, and that sounded like a perfect source of random behavior.&lt;br&gt;
Then &lt;code&gt;nmcli device status&lt;/code&gt; showed NetworkManager managing nothing at all.&lt;br&gt;
Every interface was &lt;code&gt;unmanaged&lt;/code&gt;, because netplan was configured with &lt;code&gt;renderer: networkd&lt;/code&gt;.&lt;br&gt;
Only systemd-networkd touched the network.&lt;/p&gt;

&lt;p&gt;Both theories had the same problem.&lt;br&gt;
I formed a mechanism first, then read each new piece of data as support for it.&lt;br&gt;
That feels like progress while you do it.&lt;/p&gt;
&lt;h2&gt;
  
  
  The mistake that cost me the most
&lt;/h2&gt;

&lt;p&gt;There was a third mistake.&lt;br&gt;
At some point I ran &lt;code&gt;ip route get 192.168.50.51&lt;/code&gt; on the old server, and it returned a direct, on-link route.&lt;br&gt;
I took that as proof that routing was fine, and moved on.&lt;/p&gt;

&lt;p&gt;But I ran it after the fault had healed on its own.&lt;br&gt;
A test taken after a self-healing problem has healed proves nothing.&lt;br&gt;
The same command during the fault gave a very different answer.&lt;/p&gt;
&lt;h2&gt;
  
  
  The actual cause
&lt;/h2&gt;

&lt;p&gt;The next time the fault was active, I ran three commands on the old server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;$ ip neigh show 192.168.50.51
192.168.50.51 dev enp1s0 lladdr bc:24:11:65:bb:2a STALE

$ arping -c5 -I enp1s0 192.168.50.51
Unicast reply from 192.168.50.51 &lt;span class="o"&gt;[&lt;/span&gt;BC:24:11:65:BB:2A&lt;span class="o"&gt;]&lt;/span&gt;  1.411ms

$ ip route get 192.168.50.51
192.168.50.51 via 192.168.50.1 dev enp1s0 src 192.168.50.10
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;ARP was correct, and only one machine answered for &lt;code&gt;.51&lt;/code&gt;.&lt;br&gt;
But the route said &lt;code&gt;via 192.168.50.1&lt;/code&gt;, through the gateway.&lt;br&gt;
The routing table showed why:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;default        via 192.168.50.1 dev enp1s0 proto dhcp src 192.168.50.10 metric 100
192.168.50.1   dev enp1s0 proto dhcp scope link src 192.168.50.10 metric 100
192.168.50.20  dev enp1s0 proto dhcp scope link src 192.168.50.10 metric 100
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Something important is missing.&lt;br&gt;
A Linux machine with the address &lt;code&gt;192.168.50.10/24&lt;/code&gt; normally has a route like &lt;code&gt;192.168.50.0/24 dev enp1s0 scope link&lt;/code&gt;, which says "everything in my own subnet is directly reachable on this cable".&lt;br&gt;
That route was gone.&lt;br&gt;
Without it, the old server only knew two LAN addresses by name, the gateway and the DNS server at &lt;code&gt;.20&lt;/code&gt;, which came from DHCP.&lt;br&gt;
Every other LAN address, including the VM, fell through to the default route and went to pfSense.&lt;/p&gt;

&lt;p&gt;Those two single-host routes were actually a hint.&lt;br&gt;
A DHCP client only adds routes like that when no subnet route covers those addresses.&lt;br&gt;
They were the client working around the missing route, not the cause of it.&lt;/p&gt;

&lt;p&gt;The route came and went because systemd-networkd applied the interface configuration again on DHCP lease renewals and restarts.&lt;br&gt;
After some of those events the subnet route was there, after others it was not.&lt;br&gt;
That is also the most likely reason the switch reboot helped: the link went down and up on the old server, networkd configured the interface again, and this time the route came back.&lt;br&gt;
Now the bummer: I never found out exactly why networkd sometimes left it out.&lt;/p&gt;
&lt;h2&gt;
  
  
  The boring fix
&lt;/h2&gt;

&lt;p&gt;I could have kept digging into networkd's DHCP handling.&lt;br&gt;
I decided not to, because I already invested enough mental energy into this topic.&lt;br&gt;
A static configuration removed the whole problem:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;network&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
  &lt;span class="na"&gt;renderer&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;networkd&lt;/span&gt;
  &lt;span class="na"&gt;ethernets&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;enp1s0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;dhcp4&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;no&lt;/span&gt;
      &lt;span class="na"&gt;addresses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;192.168.50.10/24&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;routes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;to&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;default&lt;/span&gt;
          &lt;span class="na"&gt;via&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;192.168.50.1&lt;/span&gt;
      &lt;span class="na"&gt;nameservers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;addresses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;192.168.50.20&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I applied it with &lt;code&gt;netplan try&lt;/code&gt;, which rolls back after 120 seconds unless you confirm it.&lt;br&gt;
That is a good habit on a machine where a network mistake means walking to it with a keyboard (yes, that happened to me more than once).&lt;br&gt;
Afterwards, &lt;code&gt;ip route show dev enp1s0&lt;/code&gt; listed the subnet route, &lt;code&gt;ip route get 192.168.50.51&lt;/code&gt; went directly to the VM without a &lt;code&gt;via&lt;/code&gt;, and the problem has not come back since.&lt;/p&gt;

&lt;p&gt;Since some &lt;code&gt;rsync&lt;/code&gt; runs had stalled, I also checked every completed migration again with &lt;code&gt;rsync -aHAXn -c&lt;/code&gt;.&lt;br&gt;
The &lt;code&gt;-c&lt;/code&gt; flag compares file contents by checksum instead of trusting size and date, and &lt;code&gt;-n&lt;/code&gt; only reports differences without copying anything.&lt;br&gt;
Everything matched.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I took from it
&lt;/h2&gt;

&lt;p&gt;The switch is still getting replaced, but only because all eight ports are full.&lt;/p&gt;

&lt;p&gt;There is one change I still want to make on pfSense: switch that interface's default rule from &lt;code&gt;reject&lt;/code&gt; to &lt;code&gt;block&lt;/code&gt;.&lt;br&gt;
With &lt;code&gt;block&lt;/code&gt;, the packet is dropped silently and the connection times out.&lt;br&gt;
A timeout looks like a network problem.&lt;br&gt;
An instant reset looks like the other side refusing you, which sent me looking at the wrong machine for far too long.&lt;/p&gt;

&lt;p&gt;The rest is about method.&lt;br&gt;
Capture packets on the machine you suspect, not somewhere in the middle.&lt;br&gt;
Treat a working &lt;code&gt;ping&lt;/code&gt; as proof that packets move, not that your application works.&lt;br&gt;
And when a problem fixes itself, the evidence goes with it, so collect it while it is broken.&lt;br&gt;
That last one is annoying, because the moment the problem appears is also the moment you most want it gone.&lt;/p&gt;

</description>
      <category>homeserver</category>
      <category>networking</category>
      <category>pfsense</category>
      <category>debugging</category>
    </item>
    <item>
      <title>Using My Server's Built-In GPU for Jellyfin and Immich</title>
      <dc:creator>Robin Reinecke</dc:creator>
      <pubDate>Thu, 08 Oct 2026 07:46:14 +0000</pubDate>
      <link>https://dev.to/robinreinecke/using-my-servers-built-in-gpu-for-jellyfin-and-immich-52of</link>
      <guid>https://dev.to/robinreinecke/using-my-servers-built-in-gpu-for-jellyfin-and-immich-52of</guid>
      <description>&lt;p&gt;In the &lt;a href="https://dev.to/blog/2026-09-28-deploying-my-home-server-with-komodo"&gt;last post&lt;/a&gt;, I mentioned that Jellyfin and Immich use the graphics hardware inside my server's processor.&lt;br&gt;
That sentence skips the interesting part.&lt;br&gt;
My Docker containers run inside a Debian virtual machine on Proxmox, while the graphics hardware belongs to the physical server.&lt;br&gt;
I had to get the device across both boundaries before either app could use it.&lt;br&gt;
And yes, I know that by using Linux Containers (LXC) I could have avoided the VM and easily share the GPU.&lt;br&gt;
I will explain my reasons against that in this post.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why these apps need a GPU
&lt;/h2&gt;

&lt;p&gt;When a Jellyfin client can play a file as it is, the server sends the original file and does very little work.&lt;br&gt;
Jellyfin calls that &lt;a href="https://jellyfin.org/docs/general/post-install/transcoding/" rel="noopener noreferrer"&gt;Direct Play&lt;/a&gt;.&lt;br&gt;
But a Fire TV stick might not understand the video's codec, the way it was compressed.&lt;br&gt;
A remote connection might also be too slow for its bitrate, the amount of data the video needs each second.&lt;br&gt;
If Jellyfin has to convert the video, it decodes the original and encodes a new stream while someone is watching.&lt;br&gt;
That is transcoding, a bit like translating a conversation in real time: read one format, produce another, and keep up with the speaker.&lt;/p&gt;

&lt;p&gt;The Intel Core i5-14500 in this server has a UHD 770 GPU built into the processor.&lt;br&gt;
That makes it an integrated GPU, or iGPU, rather than a separate card.&lt;br&gt;
Its &lt;a href="https://www.intel.com/content/www/us/en/docs/oneapi/optimization-guide-gpu/2025-2/media-engine-hardware.html" rel="noopener noreferrer"&gt;media engine&lt;/a&gt; has dedicated hardware for video decoding and encoding, which Intel calls Quick Sync Video.&lt;br&gt;
The CPU can do the conversion in software, but handing supported video work to that hardware leaves the CPU with much less to do.&lt;br&gt;
It also means I do not need a separate graphics card just to make a video playable on a tablet.&lt;/p&gt;

&lt;p&gt;Immich has two different reasons to use the same GPU.&lt;br&gt;
Its server can use &lt;a href="https://docs.immich.app/features/hardware-transcoding/" rel="noopener noreferrer"&gt;Quick Sync to convert videos&lt;/a&gt; for playback.&lt;br&gt;
Its machine learning container can use &lt;a href="https://docs.immich.app/features/ml-hardware-acceleration/" rel="noopener noreferrer"&gt;OpenVINO&lt;/a&gt;, Intel's toolkit for running machine learning models, to run Smart Search and face recognition on the GPU's compute side.&lt;br&gt;
Quick Sync is the video tool here, not the thing that recognizes faces.&lt;br&gt;
The names matter because a working video transcode does not prove that photo search is using the GPU.&lt;/p&gt;

&lt;p&gt;&lt;a href="/images/home-server-gpu-path.svg" class="article-body-image-wrapper"&gt;&lt;img src="/images/home-server-gpu-path.svg" alt="The processor's GPU passes through Proxmox into a Debian VM, where Docker gives Jellyfin and two Immich containers access to its video and compute engines."&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Getting the GPU from Proxmox into Debian
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.proxmox.com/en/products/proxmox-virtual-environment/overview" rel="noopener noreferrer"&gt;Proxmox&lt;/a&gt; runs directly on the physical server.&lt;br&gt;
It runs my Debian virtual machine, which in turn runs Docker and the apps.&lt;br&gt;
The first goal was to make the UHD 770 appear inside Debian.&lt;br&gt;
Until that worked, adding &lt;code&gt;/dev/dri&lt;/code&gt; to a Compose file would be like giving Jellyfin directions to a room that did not exist.&lt;/p&gt;

&lt;p&gt;I considered running the GPU apps in a separate LXC instead.&lt;br&gt;
But that would have meant additional complexity: a second network, a second set of mounts, and a second Komodo stack to manage.&lt;br&gt;
Putting all my GPU-using apps in the same Debian VM was simpler in so many regards.&lt;/p&gt;

&lt;p&gt;I gave the whole GPU to that VM through &lt;a href="https://github.com/proxmox/pve-docs/blob/master/qm-pci-passthrough.adoc" rel="noopener noreferrer"&gt;PCI passthrough&lt;/a&gt;.&lt;br&gt;
That means the Proxmox host stops using the device and the VM gets direct access to it.&lt;/p&gt;

&lt;p&gt;Before changing the VM, I checked two things on the Proxmox host: whether the machine could isolate a device for passthrough, and which device was actually the GPU.&lt;br&gt;
The BIOS already had VT-d enabled, which is Intel's switch for that isolation.&lt;br&gt;
These commands confirmed that the host saw it and found the GPU:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;dmesg | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-e&lt;/span&gt; DMAR &lt;span class="nt"&gt;-e&lt;/span&gt; IOMMU
lspci &lt;span class="nt"&gt;-nn&lt;/span&gt; | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-i&lt;/span&gt; vga
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first command showed that the IOMMU was active.&lt;br&gt;
An IOMMU keeps a device handed to a VM from reading arbitrary host memory.&lt;br&gt;
The second command identified my GPU at PCI address &lt;code&gt;00:02.0&lt;/code&gt;, with device ID &lt;code&gt;[8086:4680]&lt;/code&gt;.&lt;br&gt;
The address says where it is; the ID says what it is.&lt;br&gt;
Those numbers matter in the next commands, but they will differ on another machine.&lt;/p&gt;

&lt;p&gt;I also checked the GPU's IOMMU group, the set of devices the host can safely hand over together.&lt;br&gt;
Mine was alone in group &lt;code&gt;0&lt;/code&gt;, so I was not about to give the VM a network or storage controller along with it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;ls&lt;/span&gt; /sys/kernel/iommu_groups/0/devices/
lspci &lt;span class="nt"&gt;-nnk&lt;/span&gt; &lt;span class="nt"&gt;-d&lt;/span&gt; 8086:4680
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The directory contained only &lt;code&gt;0000:00:02.0&lt;/code&gt;.&lt;br&gt;
The &lt;code&gt;lspci&lt;/code&gt; output had no &lt;code&gt;Kernel driver in use:&lt;/code&gt; line for the GPU, which made it look free.&lt;br&gt;
I tried handing it to the VM, but it was not quite free.&lt;br&gt;
The simple display system used during boot, called the firmware framebuffer, still had a hold on it even though the usual Intel graphics driver, &lt;code&gt;i915&lt;/code&gt;, had not started.&lt;br&gt;
My first reboot taught me that a blank driver line does not mean nobody owns the screen.&lt;br&gt;
I also tried a &lt;code&gt;softdep i915 pre: vfio-pci&lt;/code&gt; rule to load the passthrough driver before &lt;code&gt;i915&lt;/code&gt;.&lt;br&gt;
That rule only runs when &lt;code&gt;i915&lt;/code&gt; loads, and on this host it never did.&lt;br&gt;
There went another reboot.&lt;br&gt;
The working setup needed to release the boot display and load the passthrough driver directly.&lt;/p&gt;

&lt;p&gt;The goal was to make Proxmox leave the GPU alone and let the &lt;code&gt;vfio-pci&lt;/code&gt; driver reserve it for the VM.&lt;br&gt;
On the Proxmox host, I kept the existing single line in &lt;code&gt;/etc/kernel/cmdline&lt;/code&gt; and added these flags:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;intel_iommu=on iommu=pt initcall_blacklist=sysfb_init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first two keep the IOMMU enabled and set its passthrough mode.&lt;br&gt;
The last one was the fix for this machine: it stops the early framebuffer from claiming the GPU.&lt;br&gt;
The device ID also went into &lt;code&gt;/etc/modprobe.d/vfio.conf&lt;/code&gt; so &lt;code&gt;vfio-pci&lt;/code&gt; would claim this specific GPU, while &lt;code&gt;/etc/modprobe.d/blacklist-gpu.conf&lt;/code&gt; kept the host's Intel graphics drivers away:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# /etc/modprobe.d/vfio.conf
options vfio-pci ids=8086:4680 disable_vga=1

# /etc/modprobe.d/blacklist-gpu.conf
blacklist i915
blacklist xe
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Because the &lt;code&gt;softdep&lt;/code&gt; rule never ran, I listed the VFIO modules explicitly in &lt;code&gt;/etc/modules&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;vfio
vfio_iommu_type1
vfio_pci
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After changing the boot line and modules, I rebuilt the boot files and restarted the host:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;update-initramfs &lt;span class="nt"&gt;-u&lt;/span&gt; &lt;span class="nt"&gt;-k&lt;/span&gt; all
&lt;span class="nb"&gt;sudo &lt;/span&gt;proxmox-boot-tool refresh
&lt;span class="nb"&gt;sudo &lt;/span&gt;reboot
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Over SSH, &lt;code&gt;lspci -nnk -d 8086:4680&lt;/code&gt; now reported &lt;code&gt;Kernel driver in use: vfio-pci&lt;/code&gt;.&lt;br&gt;
That was the host-side result I needed before attaching the GPU to the VM.&lt;br&gt;
In Proxmox, I opened the Debian VM, chose &lt;strong&gt;Hardware → Add → PCI Device&lt;/strong&gt;, and selected &lt;code&gt;0000:00:02.0&lt;/code&gt;.&lt;br&gt;
I left &lt;strong&gt;Primary GPU&lt;/strong&gt; unchecked so the VM kept its normal browser console.&lt;/p&gt;

&lt;p&gt;Finally, I checked from inside Debian rather than assuming the Proxmox setting had worked:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;ls&lt;/span&gt; &lt;span class="nt"&gt;-l&lt;/span&gt; /dev/dri
&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;vainfo intel-gpu-tools
vainfo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;/dev/dri/renderD128&lt;/code&gt; was present, and &lt;code&gt;vainfo&lt;/code&gt; listed the UHD 770's video capabilities.&lt;br&gt;
At this point the VM could use the GPU, but Docker still needed its own device mapping and permissions.&lt;br&gt;
The physical monitor on the host went dark after boot because its GPU now belonged to the VM.&lt;br&gt;
SSH, the Proxmox web UI, and the VM's separate browser console still worked.&lt;br&gt;
Seeing the monitor go black was finally good news, although it took me a moment to appreciate it.&lt;/p&gt;
&lt;h2&gt;
  
  
  Giving the containers access
&lt;/h2&gt;

&lt;p&gt;Docker normally hides host devices from a container.&lt;br&gt;
The Jellyfin Compose file opens the last two doors like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;services&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;jellyfin&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;devices&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;/dev/dri:/dev/dri&lt;/span&gt;
    &lt;span class="na"&gt;group_add&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;992'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The device mapping makes the VM's GPU files visible inside Jellyfin.&lt;br&gt;
The group entry grants access to &lt;code&gt;renderD128&lt;/code&gt;, the file applications use for GPU work.&lt;br&gt;
&lt;code&gt;992&lt;/code&gt; is the numeric ID of the &lt;code&gt;render&lt;/code&gt; group &lt;strong&gt;inside this Debian VM&lt;/strong&gt;.&lt;br&gt;
It is not a magic Intel number, and copying it from this post into another machine is a good way to get a permission error.&lt;br&gt;
I got it with &lt;code&gt;stat -c '%g' /dev/dri/renderD128&lt;/code&gt; in the VM.&lt;/p&gt;

&lt;p&gt;I then enabled Intel Quick Sync in Jellyfin's playback settings and forced a video to transcode.&lt;br&gt;
Jellyfin reported &lt;code&gt;Transcoding (hw)&lt;/code&gt;, while &lt;code&gt;intel_gpu_top&lt;/code&gt; inside the VM showed Video engine activity and the CPU stayed near idle.&lt;br&gt;
That combination is stronger evidence than a container starting successfully or a GPU appearing in &lt;code&gt;ls /dev/dri&lt;/code&gt;.&lt;br&gt;
If the CPU were busy and the Video engine idle, I would check the FFmpeg log and the render group before calling the setup done.&lt;/p&gt;

&lt;p&gt;Immich's &lt;code&gt;immich-server&lt;/code&gt; has the same device mapping for Quick Sync video conversion.&lt;br&gt;
Its separate &lt;code&gt;immich-machine-learning&lt;/code&gt; container uses an OpenVINO image and the GPU for Smart Search and face recognition.&lt;br&gt;
The test for that second path is different: run a search or face detection job and look for activity on the GPU's Render or Compute engine.&lt;br&gt;
One physical chip is doing two kinds of work, but they are different paths through it.&lt;/p&gt;

&lt;p&gt;The useful outcome is that Jellyfin can convert a video without tying up the general-purpose CPU, and Immich is wired to use the same chip for video and image tasks.&lt;br&gt;
When a client can Direct Play, I still want it to do that.&lt;br&gt;
The fastest transcode is the one the server never has to start.&lt;/p&gt;

&lt;h2&gt;
  
  
  What comes next
&lt;/h2&gt;

&lt;p&gt;This GPU setup made the services faster, but it does not answer the question that started this rebuild: what happens when a disk dies or the whole server stops working?&lt;br&gt;
Next I want to show how I back up the VM and the data it depends on.&lt;br&gt;
I also want to explain why DNS lives outside this VM.&lt;/p&gt;

</description>
      <category>homeserver</category>
      <category>selfhosting</category>
      <category>proxmox</category>
      <category>jellyfin</category>
    </item>
    <item>
      <title>Starting Over on My Home Server</title>
      <dc:creator>Robin Reinecke</dc:creator>
      <pubDate>Tue, 22 Sep 2026 06:19:15 +0000</pubDate>
      <link>https://dev.to/robinreinecke/starting-over-on-my-home-server-520a</link>
      <guid>https://dev.to/robinreinecke/starting-over-on-my-home-server-520a</guid>
      <description>&lt;p&gt;My old home server worked fine, which is exactly why it was a problem.&lt;/p&gt;

&lt;p&gt;It was an Ubuntu box that had grown organically over a couple of years.&lt;br&gt;
A dozen or so Docker Compose files, each in its own folder, each edited in place over SSH whenever something needed changing.&lt;br&gt;
Immich for photos, Jellyfin for media, Nextcloud, Vaultwarden, the usual self-hosted suspects.&lt;br&gt;
Nothing was broken.&lt;br&gt;
But nothing was written down either, and that is a different kind of broken that only shows up on the day you need it.&lt;/p&gt;

&lt;p&gt;The thing I could never answer honestly was a simple one: if this disk died tonight, how long until everything is back?&lt;br&gt;
The truthful answer was "a weekend, if I remember everything", and the part that bothered me was "if I remember".&lt;br&gt;
The state of the server lived in the server.&lt;br&gt;
There was no copy of the truth anywhere else, only my memory of which config I had hand-edited three months ago and never wrote down.&lt;/p&gt;

&lt;p&gt;This is the first post in a series about rebuilding that setup properly.&lt;br&gt;
Not because the old one was on fire, but because I wanted the boring kind of infrastructure that you can rebuild from a git repo instead of from memory.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem with a server you edit in place
&lt;/h2&gt;

&lt;p&gt;When you SSH into a box and edit a compose file, the change is live the moment you save it.&lt;br&gt;
That feels great right up until you have twenty of those changes spread across a year.&lt;/p&gt;

&lt;p&gt;The running state and any version you might have committed drift apart silently.&lt;br&gt;
You bump an image tag to fix something at 11pm, it works, and you never write it down.&lt;br&gt;
Three months later you have no idea whether the file on disk matches the last thing you thought you deployed.&lt;br&gt;
There is no diff to look at, because there is nothing to diff against.&lt;/p&gt;

&lt;p&gt;Backups help, but a backup of a mystery is still a mystery.&lt;br&gt;
Restoring a &lt;code&gt;docker-compose.yml&lt;/code&gt; tells you what was running.&lt;br&gt;
It does not tell you why that image is pinned to an odd version, or which environment variable exists to work around a bug you fixed and forgot.&lt;/p&gt;

&lt;p&gt;I wanted the opposite of that.&lt;br&gt;
I wanted a setup where the answer to "what is running and why" is a repository I can read, and where getting back to a working state is a checkout and a deploy, not an archaeology project.&lt;/p&gt;

&lt;h2&gt;
  
  
  One rule, everything else follows
&lt;/h2&gt;

&lt;p&gt;The whole rebuild comes down to a single rule: the git repo is the single source of truth, and nothing runs that is not defined there.&lt;/p&gt;

&lt;p&gt;That sounds obvious written down.&lt;br&gt;
In practice it is the rule that kills the 11pm SSH edit, because an edit that only lives on the server violates it.&lt;br&gt;
If I want to change something, I change it in the repo, commit it, and let the server converge to match.&lt;br&gt;
The server stops being a place I log into and becomes a place that runs whatever the repo says.&lt;/p&gt;

&lt;p&gt;The one exception I allowed myself is secrets, which never touch the repo.&lt;br&gt;
Passwords, API keys, and tokens live outside git and get injected at deploy time.&lt;br&gt;
Everything else, every service definition, every pinned version, every mount path, is a file I can read in a pull request.&lt;/p&gt;

&lt;p&gt;Once that rule is fixed, most of the other decisions make themselves.&lt;br&gt;
The deployment tool has to read from git.&lt;br&gt;
Configuration has to be declarative.&lt;br&gt;
Anything that cannot be expressed as a file in the repo needs a very good reason to exist, and gets documented as an exception rather than smuggled in.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shape of the new setup
&lt;/h2&gt;

&lt;p&gt;The base is &lt;a href="https://www.proxmox.com/" rel="noopener noreferrer"&gt;Proxmox&lt;/a&gt;, which turns one physical machine into a hypervisor I can carve into VMs and containers.&lt;br&gt;
On top of that runs a single Debian VM with Docker, and that VM holds nearly all the services.&lt;/p&gt;

&lt;p&gt;Deployment is handled by &lt;a href="https://komo.do/" rel="noopener noreferrer"&gt;Komodo&lt;/a&gt;, which watches the repo and deploys the compose stacks from it.&lt;br&gt;
Push a commit, and the server converges to match.&lt;br&gt;
No SSH, no manual &lt;code&gt;docker compose up&lt;/code&gt;, no wondering whether the running state matches the file.&lt;br&gt;
The repo is the truth, Komodo makes reality agree with it, and I get a web UI to check status from the couch instead of a terminal.&lt;/p&gt;

&lt;p&gt;I went with a proper little machine this time.&lt;br&gt;
An Intel i5-14500, picked specifically for its Quick Sync video engine so Jellyfin can transcode 4K without melting the CPU.&lt;br&gt;
64GB of RAM, and two WD Black SN850X 2TB drives in a ZFS mirror so a single dead disk is an inconvenience and not an incident.&lt;br&gt;
It idles at around 35°C and tops out at 58°C under a stress test, which is quieter and cooler than I expected from a compact case stuffed this full.&lt;/p&gt;

&lt;p&gt;I had this exact parts list sitting in a cart about a year ago, when it would have cost me roughly half.&lt;br&gt;
Then I decided to wait a little, for reasons I can no longer reconstruct, and the market decided to wait right back.&lt;br&gt;
DDR4 and NVMe prices went the wrong way in the meantime, so a few components ended up costing more than twice what they would have, and the RAM in particular now feels like a small act of financial self-harm.&lt;br&gt;
There is no lesson here, other than that "I will buy it next month" is not a procurement strategy.&lt;/p&gt;

&lt;p&gt;There is a lot more to say about each of those choices, which is rather the point of making this a series.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is coming
&lt;/h2&gt;

&lt;p&gt;Over the next few posts I want to go into the parts that actually took thought and the ones that ate an afternoon.&lt;/p&gt;

&lt;p&gt;The GitOps model with Komodo, and why I picked it over just running Portainer or writing an Ansible playbook.&lt;br&gt;
Passing the Intel iGPU into the Docker VM for hardware transcoding, which sounds like one checkbox and is not.&lt;br&gt;
Backups that I actually trust, including the offsite copy that ended up being a second small machine at another house rather than a rented bucket.&lt;br&gt;
And the failure-domain thinking that decided DNS should live outside all of this, because the one service the whole house needs is the one you do not want sharing fate with your busiest VM.&lt;/p&gt;

&lt;p&gt;The goal was never a clever server.&lt;br&gt;
It was a boring one, in the good sense: something I can reason about, rebuild from a repo, and then mostly forget about.&lt;br&gt;
The rest of the series is how I got there, decisions I am happy with and the ones I had to walk back included.&lt;/p&gt;

</description>
      <category>homeserver</category>
      <category>selfhosting</category>
      <category>proxmox</category>
    </item>
  </channel>
</rss>
