<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Raymond P. Burkholder - Things I Do - Virtualization</title>
    <link>https://blog.raymond.burkholder.net/</link>
    <description>In And Around Technology and The Arts</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.7.2 - http://www.s9y.org/</generator>
    <pubDate>Tue, 28 Apr 2026 02:37:31 GMT</pubDate>

    <image>
        <url>https://blog.raymond.burkholder.net/templates/bulletproof/img/s9y_banner_small.png</url>
        <title>RSS: Raymond P. Burkholder - Things I Do - Virtualization - In And Around Technology and The Arts</title>
        <link>https://blog.raymond.burkholder.net/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Frigate Running in Docker inside LXC on Proxmox</title>
    <link>https://blog.raymond.burkholder.net/index.php?/archives/1355-Frigate-Running-in-Docker-inside-LXC-on-Proxmox.html</link>
            <category>Docker</category>
    
    <comments>https://blog.raymond.burkholder.net/index.php?/archives/1355-Frigate-Running-in-Docker-inside-LXC-on-Proxmox.html#comments</comments>
    <wfw:comment>https://blog.raymond.burkholder.net/wfwcomment.php?cid=1355</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.raymond.burkholder.net/rss.php?version=2.0&amp;type=comments&amp;cid=1355</wfw:commentRss>
    

    <author>nospam@example.com (Raymond P. Burkholder)</author>
    <content:encoded>
    &lt;p&gt;Once all the GPU and Docker prerequisites are in place, installing frigate-nve is easy: a) build a yaml file, b) docker compose the file.

&lt;p&gt;In the LXC container, create a frigate directory and move into it:

&lt;blockquote&gt;&lt;pre&gt;
mkdir frigate
cd frigate
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;In that directory, here is the content of my docker-compose-yaml file:

&lt;blockquote&gt;&lt;pre&gt;
services:
  frigate:
    container_name: frigate
    #privileged: true # this may not be necessary for all setups
    restart: unless-stopped
    stop_grace_period: 30s # allow enough time to shut down the various services
    image: ghcr.io/blakeblackshear/frigate:stable
    shm_size: &quot;1512mb&quot; # updated for my camera list based upon error messages in the log
#    devices:
#      - /dev/dri/renderD128:/dev/dri/renderD128 # AMD / Intel GPU, needs to be updated for your hardware
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              #device_ids: [&#039;0&#039;] # this is only needed when using multiple GPUs
              count: 1 # number of GPUs
              capabilities: [gpu]
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /root/frigate/config:/config
      - /root/frigate/storage:/media/frigate
      - type: tmpfs # 1GB In-memory filesystem for recording segment storage
        target: /tmp/cache
        tmpfs:
          size: 1000000000
    ports:
      - &quot;8971:8971&quot;
      # - &quot;5000:5000&quot; # Internal unauthenticated access. Expose carefully.
      - &quot;8554:8554&quot; # RTSP feeds
      - &quot;8555:8555/tcp&quot; # WebRTC over tcp
      - &quot;8555:8555/udp&quot; # WebRTC over udp
    environment:
      FRIGATE_RTSP_PASSWORD: &quot;xxxxxxx&quot;
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Get it started:

&lt;blockquote&gt;&lt;pre&gt;
# in a foreground process:
docker compose up
# or, as a background process:
docker compose up -d frigate
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;The login should be seen at something like (or your container&#039;s address):

&lt;pre&gt;
https://127.0.0.1:8971/
&lt;/pre&gt;

&lt;p&gt;Official installation documentation:

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://docs.frigate.video/frigate/installation/&quot; target=_blank&gt;Frigage NVR Installation&lt;/a&gt;
  &lt;/ul&gt; 
    </content:encoded>

    <pubDate>Tue, 28 Apr 2026 01:58:50 +0000</pubDate>
    <guid isPermaLink="false">https://blog.raymond.burkholder.net/index.php?/archives/1355-guid.html</guid>
    
</item>
<item>
    <title>Docker Notes</title>
    <link>https://blog.raymond.burkholder.net/index.php?/archives/1347-Docker-Notes.html</link>
            <category>Docker</category>
    
    <comments>https://blog.raymond.burkholder.net/index.php?/archives/1347-Docker-Notes.html#comments</comments>
    <wfw:comment>https://blog.raymond.burkholder.net/wfwcomment.php?cid=1347</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.raymond.burkholder.net/rss.php?version=2.0&amp;type=comments&amp;cid=1347</wfw:commentRss>
    

    <author>nospam@example.com (Raymond P. Burkholder)</author>
    <content:encoded>
    &lt;p&gt;Images vs Containers
&lt;ul&gt;
  &lt;li&gt;Docker Image: blueprint with app code and dependencies - static, read-only
  &lt;li&gt;Docker Container: running instance of an image - dynamic, executable
  &lt;/ul&gt;

&lt;p&gt;Each instruction in the Dockerfile adds an extra layer to the Docker image. Minimize the number of layers by consolidating the instructions to increase the build’s performance and time.

&lt;p&gt;Avoid using multiple RUN commands as it creates multiple cacheable layers which will affect the efficiency of the build process.

&lt;p&gt;Use a single process per container: Each container should run a single process. This makes it easier to manage and monitor containers and helps to keep containers lightweight.

&lt;p&gt;Images can exist without containers, whereas a container needs an image to run. We can create multiple containers from the same image, each with its own unique data and state

&lt;p&gt;Docker commands
&lt;ul&gt;
  &lt;li&gt;&lt;b&gt;Docker Run&lt;/b&gt;: It used for launching the containers from images, with specifying the runtime options and commands. 
  &lt;li&gt;&lt;b&gt;Docker Pull&lt;/b&gt;: It fetches the container images from the container registry like Docker Hub to the local machine. 
  &lt;li&gt;&lt;b&gt;Docker ps&lt;/b&gt;: It helps in displaying the running containers along with their important information like container ID, image used and status. 
  &lt;li&gt;&lt;b&gt;Docker Stop&lt;/b&gt;: It helps in halting the running containers gracefully shutting down the processes within them. 
  &lt;li&gt;&lt;b&gt;Docker Start&lt;/b&gt;: It helps in restarting the stopped containers, resuming their operations from the previous state. 
  &lt;li&gt;&lt;b&gt;Docker Login&lt;/b&gt;: It helps to login in to the docker registry enabling the access to private repositories. 
  &lt;/ul&gt;

&lt;p&gt;Docker network commands:
&lt;ul&gt;
  &lt;li&gt;docker network ls
  &lt;li&gt;docker network inspect &lt;id&gt;
  &lt;/ul&gt;

&lt;p&gt;Docker image commands:
&lt;ul&gt;
  &lt;li&gt;docker image ls -a
  &lt;li&gt;docker container ls -a
  &lt;/ul&gt;

&lt;p&gt;Documentation
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://docs.docker.com/reference/dockerfile&quot; target=_blank&gt;Dockerfile reference&lt;/a&gt; - &lt;a href=&quot;https://www.geeksforgeeks.org/devops/what-is-dockerfile-syntax/&quot; target=_blank&gt;examples&lt;/a&gt;
  &lt;li&gt;&lt;a href=&quot;https://docs.docker.com/build/concepts/dockerfile/&quot; target=_blank&gt;Dockerfile overview&lt;/a&gt; - with example
  &lt;li&gt;&lt;a href=&quot;https://docs.docker.com/engine/cli/completion/&quot; target=_blank&gt;Command Line Completion&lt;/a&gt;
  &lt;li&gt;&lt;a href=&quot;https://docs.docker.com/build/building/base-images/&quot; target=_blank&gt;Base images&lt;/a&gt; - includes building from scratch
  &lt;li&gt;&lt;a href=&quot;https://docs.docker.com/get-started/docker_cheatsheet.pdf&quot; target=_blank&gt;CLI Cheat Sheet&lt;/a&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.geeksforgeeks.org/devops/docker-tutorial/&quot; target=_blank&gt;tutorial&lt;/a&gt;
  &lt;/ul&gt;
 
    </content:encoded>

    <pubDate>Sun, 05 Apr 2026 00:26:37 +0000</pubDate>
    <guid isPermaLink="false">https://blog.raymond.burkholder.net/index.php?/archives/1347-guid.html</guid>
    
</item>
<item>
    <title>NVidia GPU Passthrough to ProxMox LXC Container</title>
    <link>https://blog.raymond.burkholder.net/index.php?/archives/1343-NVidia-GPU-Passthrough-to-ProxMox-LXC-Container.html</link>
            <category>Proxmox</category>
    
    <comments>https://blog.raymond.burkholder.net/index.php?/archives/1343-NVidia-GPU-Passthrough-to-ProxMox-LXC-Container.html#comments</comments>
    <wfw:comment>https://blog.raymond.burkholder.net/wfwcomment.php?cid=1343</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.raymond.burkholder.net/rss.php?version=2.0&amp;type=comments&amp;cid=1343</wfw:commentRss>
    

    <author>nospam@example.com (Raymond P. Burkholder)</author>
    <content:encoded>
    &lt;p&gt;&lt;a href=&quot;https://www.virtualizationhowto.com/2025/05/how-to-enable-gpu-passthrough-to-lxc-containers-in-proxmox/&quot; target=_blank&gt;How to Enable GPU Passthrough to LXC Containers in Proxmox&lt;/a&gt; indicates that the process of providing passthrough of a GPU to both an LXC container as well as a Virtual Machine is not possible as the two types of configurations conflict with each other.

&lt;p&gt;As my own preference is to run whatever possible in LXC containers, I&#039;ll summarize the configuration I used, which is an amalgamation of configurations from several sites.
&lt;p&gt;My current installation is ProxMox v9.1.6 with:

&lt;ul&gt;
  &lt;li&gt;ProArt Z890-CREATOR WIFI
  &lt;li&gt;Intel(R) Core(TM) Ultra 9 285K
  &lt;li&gt;Corsair CMP64GX5M2X6600C32 (128G  4400 MT/s) - ECC would have been nice
  &lt;li&gt;NVIDIA Corporation AD103 [GeForce RTX 4070] (rev a1)
  &lt;/ul&gt;

&lt;p&gt;In BIOS/UEFI, enable these:
&lt;ul&gt;
  &lt;li&gt;VT-d / IOMMU
  &lt;li&gt;Above 4G Decoding
  &lt;li&gt;PCIe Native Power Management (if available)
  &lt;/ul&gt;

&lt;p&gt;Proxmox kernel parameters:
&lt;blockquote&gt;&lt;pre&gt;
# /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT=&quot;quiet intel_iommu=on iommu=pt pcie_acs_override=downstream,multifunction&quot;

update-grub
reboot
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;a href=&quot;https://www.kernel.org/doc/html/latest/driver-api/vfio.html&quot; target=_blank&gt;VFIO Binding&lt;/a&gt; - optional but recommended:
&lt;blockquote&gt;&lt;pre&gt;
# /etc/modprobe.d/vfio.conf
options vfio_iommu_type1 allow_unsafe_interrupts=1
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Obtain Linux drivers from &lt;a href=&quot;https://www.nvidia.com/en-us/drivers/&quot; target=_blank&gt;NVidia&lt;/a&gt;.  The CUDA toolkit is not required.  Only the drivers are required in ProxMox.  Toolkits and add-ons are added within the container.

&lt;p&gt;Install the drivers:
&lt;blockquote&gt;&lt;pre&gt;
apt install build-essential
apt install pve-headers-$(uname -r)
sh NVIDIA-Linux-x86_64-595.58.03.run
# note, use the open kernel, rather than proprietary
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Blacklist nouveau:
&lt;blockquote&gt;&lt;pre&gt;
cat &gt; /etc/modprobe.d/blacklist-nouveau.conf &lt;&lt; EOF
blacklist nouveau
options nouveau modeset=0
EOF
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Test that the card is accessible:
&lt;blockquote&gt;&lt;pre&gt;
nvidia-smi
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Enable &lt;a href=&quot;https://docs.nvidia.com/deploy/driver-persistence/data-persistence.html&quot; target=_blank&gt;Data Persistence&lt;/a&gt; to prevent the GPU from re-initializing with each use.
&lt;blockquote&gt;&lt;pre&gt;
nvidia-persistenced --persistence-mode
systemctl enable nvidia-persistenced
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Then restart:
&lt;blockquote&gt;&lt;pre&gt;
reboot
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Identify the nvidia devices requiring passthrough:
&lt;blockquote&gt;&lt;pre&gt;
root@host02:~# ls -al /dev/nvidia*
crw-rw-rw- 1 root root 195,   0 Mar 28 11:58 /dev/nvidia0
crw-rw-rw- 1 root root 195, 255 Mar 28 11:58 /dev/nvidiactl
crw-rw-rw- 1 root root 505,   0 Mar 28 11:58 /dev/nvidia-uvm
crw-rw-rw- 1 root root 505,   1 Mar 28 11:58 /dev/nvidia-uvm-tools

/dev/nvidia-caps:
total 0
drwxr-xr-x  2 root root     80 Mar 28 11:58 .
drwxr-xr-x 21 root root   5060 Mar 28 11:58 ..
cr--------  1 root root 508, 1 Mar 28 11:58 nvidia-cap1
cr--r--r--  1 root root 508, 2 Mar 28 11:58 nvidia-cap2
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Note the numbers 195, 505 and 508 in this list (yours may be different).

&lt;p&gt;Construct a container, and prior to starting, place the following into /etc/pve/lxc/&amp;lt;vmid&amp;gt;.conf (based upon the device listing above):
&lt;blockquote&gt;&lt;pre&gt;
dev0: /dev/nvidia0
dev1: /dev/nvidiactl
dev2: /dev/nvidia-modeset
dev3: /dev/nvidia-uvm
dev4: /dev/nvidia-uvm-tools
dev5: /dev/nvidia-caps/nvidia-cap1
dev6: /dev/nvidia-caps/nvidia-cap2
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;These lines are optional in the config file, one site talks about them by my container seems to work without them  (they may be an old style cgroup2 style passthrough rather than the device oriented passthrough above):
&lt;blockquote&gt;&lt;pre&gt;
lxc.cgroup2.devices.allow: c 195:* rwm
lxc.cgroup2.devices.allow: c 505:* rwm
lxc.cgroup2.devices.allow: c 508:* rwm
&lt;/pre&gt;&lt;/blockquote&gt;


&lt;p&gt;Start the container and push the driver file into the container:
&lt;blockquote&gt;&lt;pre&gt;
pct push &amp;lt;vmid&amp;gt; downloads/NVIDIA-Linux-x86_64-595.58.03.run /root/NVIDIA-Linux-x86_64-595.58.03.run
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;In the container, install the driver, minus the kernel module:
&lt;blockquote&gt;&lt;pre&gt;
apt install kmod
sh NVIDIA-Linux-x86_64-595.58.03.run --no-kernel-modules
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Run nvidia-smi in the container to confirm the card is reachable.

&lt;p&gt;Add nvtop at the host or the container level to chart live GPU utllization:
&lt;blockquote&gt;&lt;pre&gt;
apt install nvtop
&lt;/pre&gt;&lt;/blockquote&gt;


&lt;p&gt;Additional resources:
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.reddit.com/r/Proxmox/comments/1s629rq/complete_gpu_passthrough_guide_for_ai_workloads_t/&quot; target=_blank&gt;Complete GPU passthrough guide for AI workloads, avoid the mistakes I made so you don&#039;t have to &lt;/a&gt;
  &lt;li&gt;&lt;a href=&quot;https://forum.proxmox.com/threads/nvidia-drivers-instalation-proxmox-and-ct.156421/&quot; target=_blank&gt;[TUTORIAL] NVIDIA drivers instalation Proxmox and CT&lt;/a&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.virtualizationhowto.com/2025/05/how-to-enable-gpu-passthrough-to-lxc-containers-in-proxmox/&quot; target=_blank&gt;How to Enable GPU Passthrough to LXC Containers in Proxmox&lt;/a&gt; - contains ollama startup examples with OpenWebUI
  &lt;/ul&gt;

&lt;p&gt;Another type of test to run when pytorch is installed:
&lt;blockquote&gt;&lt;pre&gt;
python -c &quot;import torch; print(torch.cuda.is_available())&quot;
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;NOTE: for running in unprivileged container, some ideas in &lt;a href=&quot;https://jocke.no/2025/04/20/plex-gpu-transcoding-in-docker-on-lxc-on-proxmox-v2/&quot; target=_blank&gt;Plex GPU transcoding in Docker on LXC on Proxmox v2&lt;/a&gt;:

&lt;blockquote&gt;&lt;pre&gt;
# if you&#039;re running in unprivileged mode, you also need to add permissions
# you either add the lines above, or the lines below -- not both
# gid/uid might need to be changed to suit your lxc-setup
dev0: /dev/nvidia0,gid=1000,uid=1000
dev1: /dev/nvidiactl,gid=1000,uid=1000
dev2: /dev/nvidia-modeset,gid=1000,uid=1000
dev3: /dev/nvidia-uvm,gid=1000,uid=1000
dev4: /dev/nvidia-uvm-tools,gid=1000,uid=1000
dev5: /dev/nvidia-caps/nvidia-cap1,gid=1000,uid=1000
dev6: /dev/nvidia-caps/nvidia-cap2,gid=1000,uid=1000
dev7: /dev/dri/card0,gid=1000,uid=1000
dev8: /dev/dri/renderD128,gid=1000,uid=1000
&lt;/pre&gt;&lt;/blockquote&gt;
 
    </content:encoded>

    <pubDate>Sat, 28 Mar 2026 17:26:45 +0000</pubDate>
    <guid isPermaLink="false">https://blog.raymond.burkholder.net/index.php?/archives/1343-guid.html</guid>
    
</item>
<item>
    <title>Ensuring nvidia drivers in Proxmox start up prior to containers</title>
    <link>https://blog.raymond.burkholder.net/index.php?/archives/1354-Ensuring-nvidia-drivers-in-Proxmox-start-up-prior-to-containers.html</link>
            <category>Proxmox</category>
    
    <comments>https://blog.raymond.burkholder.net/index.php?/archives/1354-Ensuring-nvidia-drivers-in-Proxmox-start-up-prior-to-containers.html#comments</comments>
    <wfw:comment>https://blog.raymond.burkholder.net/wfwcomment.php?cid=1354</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.raymond.burkholder.net/rss.php?version=2.0&amp;type=comments&amp;cid=1354</wfw:commentRss>
    

    <author>nospam@example.com (Raymond P. Burkholder)</author>
    <content:encoded>
    &lt;p&gt;From &lt;a href=&quot;https://jocke.no/2025/04/20/plex-gpu-transcoding-in-docker-on-lxc-on-proxmox-v2/&quot; target=_blank&gt;Plex GPU transcoding in Docker on LXC on Proxmox v2&lt;/a&gt;:

&lt;blockquote&gt;&lt;pre&gt;
# make sure that all nvidia devices are loaded upon boot
cat &gt;/etc/systemd/system/nvidia-pre-lxc-init.service &lt;&lt;&#039;EOF&#039;
[Unit]
Description=Initialize NVIDIA devices early (before Proxmox guests)
After=systemd-modules-load.service
Before=pve-guests.service
Wants=pve-guests.service

[Service]
Type=oneshot
RemainAfterExit=yes

ExecStartPre=-/sbin/modprobe nvidia
ExecStartPre=-/sbin/modprobe nvidia_uvm
ExecStart=-/usr/bin/nvidia-smi -L
ExecStart=-/usr/bin/nvidia-modprobe -u -c=0

[Install]
WantedBy=multi-user.target
EOF

systemctl daemon-reload
systemctl enable nvidia-pre-lxc-init.service
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;reboot then try nvidia-smi to confirm function. 
    </content:encoded>

    <pubDate>Mon, 27 Apr 2026 03:33:14 +0000</pubDate>
    <guid isPermaLink="false">https://blog.raymond.burkholder.net/index.php?/archives/1354-guid.html</guid>
    
</item>
<item>
    <title>Some Tools to Add</title>
    <link>https://blog.raymond.burkholder.net/index.php?/archives/1353-Some-Tools-to-Add.html</link>
            <category>LXC</category>
    
    <comments>https://blog.raymond.burkholder.net/index.php?/archives/1353-Some-Tools-to-Add.html#comments</comments>
    <wfw:comment>https://blog.raymond.burkholder.net/wfwcomment.php?cid=1353</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.raymond.burkholder.net/rss.php?version=2.0&amp;type=comments&amp;cid=1353</wfw:commentRss>
    

    <author>nospam@example.com (Raymond P. Burkholder)</author>
    <content:encoded>
    &lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.xda-developers.com/finally-found-local-llm-i-want-to-use-every-day/&quot; target=_blank&gt;Qwen 3.5 9B&lt;/a&gt; - general purpose locally run LLM
  &lt;li&gt;&lt;a href=&quot;https://community-scripts.org/scripts/octoprint?id=octoprint&quot; target=_blank&gt;OctoPrint&lt;/a&gt; - web-based 3D printer control software that allows you to remotely control and monitor your 3D printer from a web interface. It was designed to be compatible with a wide range of 3D printers.
  &lt;li&gt;&lt;a href=&quot;https://community-scripts.org/scripts/trilium?id=trilium&quot; target=_blank&gt;Trilium Notes&lt;/a&gt; -  self-hosted note-taking and personal knowledge management application. It enables users to organize information in a hierarchical tree structure and supports rich text editing, internal linking, images, attachments, and powerful scripting capabilities. This version reflects the most current development efforts under the TriliumNext organization and replaces all prior forks or legacy variants. Trilium is ideal for building personal wikis, structured documentation, and long-term knowledge archives, giving users full local control and privacy.
  &lt;li&gt;&lt;a href=&quot;https://community-scripts.org/scripts/vaultwarden?id=vaultwarden&quot; target=_blank&gt;Vaultwarden&lt;/a&gt; - self-hosted password manager which provides secure and encrypted password storage. It uses client-side encryption and provides access to passwords through a web interface and mobile apps.
  &lt;li&gt;&lt;a href=&quot;https://community-scripts.org/scripts/netbox?id=netbox&quot; target=_blank&gt;NetBox&lt;/a&gt; - the source of truth for everything on your network, from physical components like power systems and cabling to virtual assets like IP addresses and VLANs. Network automation and observability tools depend on NetBox’s authoritative data to roll out configurations, monitor changes, and accelerate operations across the enterprise
  &lt;li&gt;&lt;a href=&quot;&quot; target=_blank&gt;&lt;/a&gt;
  &lt;/ul&gt; 
    </content:encoded>

    <pubDate>Mon, 27 Apr 2026 03:17:03 +0000</pubDate>
    <guid isPermaLink="false">https://blog.raymond.burkholder.net/index.php?/archives/1353-guid.html</guid>
    
</item>
<item>
    <title>NUT UPS USB Connected to Proxmox Unprivileged LXC</title>
    <link>https://blog.raymond.burkholder.net/index.php?/archives/1351-NUT-UPS-USB-Connected-to-Proxmox-Unprivileged-LXC.html</link>
            <category>Proxmox</category>
    
    <comments>https://blog.raymond.burkholder.net/index.php?/archives/1351-NUT-UPS-USB-Connected-to-Proxmox-Unprivileged-LXC.html#comments</comments>
    <wfw:comment>https://blog.raymond.burkholder.net/wfwcomment.php?cid=1351</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.raymond.burkholder.net/rss.php?version=2.0&amp;type=comments&amp;cid=1351</wfw:commentRss>
    

    <author>nospam@example.com (Raymond P. Burkholder)</author>
    <content:encoded>
    &lt;p&gt;Taking &lt;a href=&quot;https://forum.proxmox.com/threads/rtl_433-in-unprivileged-lxc-container-with-automatic-device-path-change.157192/&quot; target=_blank&gt;RTL_433 in unprivileged LXC container, with automatic device path change&lt;/a&gt; for inspiration, I was able to connect multiple APC and Eaton UPS USB cables to a server with the following mechanism.  I forwarded the USB connections into an LXC container as I use my &lt;a href=&quot;https://github.com/rburkholder/nut2mqtt&quot; target=_blank&gt;nut2mqtt - Communication between Network UPS Tools (NUT) and MQTT&lt;/a&gt; for monitoring.

&lt;p&gt;The Proxmox host is configured in a standard way using the primary UPS USB connection (still yet to try).

&lt;p&gt;As a USB cable is inserted, &quot;journalctl -f&quot; will log information similar to:

&lt;blockquote&gt;&lt;pre&gt;
Apr 25 15:48:21 host02 kernel: usb 3-4: new full-speed USB device number 10 using xhci_hcd
Apr 25 15:48:21 host02 kernel: usb 3-4: New USB device found, idVendor=051d, idProduct=0002, bcdDevice= 0.90
Apr 25 15:48:21 host02 kernel: usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr 25 15:48:21 host02 kernel: usb 3-4: Product: Back-UPS XS 1300G FW:864.L6 .D USB FW:L6
Apr 25 15:48:21 host02 kernel: usb 3-4: Manufacturer: American Power Conversion
Apr 25 15:48:21 host02 kernel: usb 3-4: SerialNumber: 4B12P636
Apr 25 15:48:21 host02 kernel: hid-generic 0003:051D:0002.0007: hiddev3,hidraw5: ......
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Use &quot;lsusb&quot; to determine the bus and device assignment based upon the &#039;idVendor&#039; and &#039;idProduct&#039; assignments above:

&lt;blockquote&gt;&lt;pre&gt;
# lsusb -d 051d:0002
Bus 003 Device 010: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Thus you&#039;ll see an associated entry in /dev:

&lt;blockquote&gt;&lt;pre&gt;
~# ls -altr /dev/bus/usb/003/010
crw-rw-rw- 1 root root 189, 265 Apr 25 15:48 /dev/bus/usb/003/010
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Note the cgroup2 &#039;189, 265&#039; identifiers.  Adding an entry to your /etc/pve/lxc/&amp;lt;lxc-id&amp;gt;.conf entry will be required:

&lt;blockquote&gt;&lt;pre&gt;
lxc.cgroup2.devices.allow: c 189:* rwm
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Whenever the USB cable is plugged in, a different device may be constructed.  To pass that information to Proxmox for when it starts the container, use something like:

&lt;blockquote&gt;&lt;pre&gt;
# cat /etc/udev/rules.d/50-ups-usb.rules
SUBSYSTEM==&quot;usb&quot;, ENV{ID_VENDOR_ID}==&quot;051d&quot;, ENV{ID_MODEL_ID}==&quot;0002&quot;, ENV{ID_SERIAL_SHORT}==&quot;4B12P636&quot;, MODE=&quot;0666&quot;, RUN=&quot;/usr/sbin/pct set &amp;lt;lxc-id&amp;gt; --dev0 mode=0666,path=$devnode&quot;
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;If the file is changed, it can be processed with:

&lt;blockquote&gt;&lt;pre&gt;
# reload rules and rerun
udevadm control --reload-rules
udevadm trigger
# optional cable test simulation
udevadm test /dev/bus/usb/003/010
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;The ENV{ID_VENDOR_ID}, ENV{ID_MODEL_ID} &amp;amp; ENV{ID_SERIAL_SHORT} variable names and content can be confirmed with:

&lt;blockquote&gt;&lt;pre&gt;
# udevadm info  /dev/bus/usb/003/010
P: /devices/pci0000:80/0000:80:14.0/usb3/3-4
M: 3-4
R: 4
J: c189:265
U: usb
T: usb_device
D: c 189:265
N: bus/usb/003/010
L: 0
V: usb
E: DEVPATH=/devices/pci0000:80/0000:80:14.0/usb3/3-4
E: DEVNAME=/dev/bus/usb/003/010
E: DEVTYPE=usb_device
E: DRIVER=usb
E: PRODUCT=51d/2/90
E: TYPE=0/0/0
E: BUSNUM=003
E: DEVNUM=010
E: MAJOR=189
E: MINOR=265
E: SUBSYSTEM=usb
E: USEC_INITIALIZED=2435707957355
E: ID_BUS=usb
E: ID_MODEL=Back-UPS_XS_1300G_FW:864.L6_.D_USB_FW:L6
E: ID_MODEL_ENC=Back-UPS\x20XS\x201300G\x20FW:864.L6\x20.D\x20USB\x20FW:L6\x20
E: ID_MODEL_ID=0002
E: ID_SERIAL=American_Power_Conversion_Back-UPS_XS_1300G_FW:864.L6_.D_USB_FW:L6_4B1233P63346
E: ID_SERIAL_SHORT=4B12P636
E: ID_VENDOR=American_Power_Conversion
E: ID_VENDOR_ENC=American\x20Power\x20Conversion
E: ID_VENDOR_ID=051d
E: ID_REVISION=0090
E: ID_USB_MODEL=Back-UPS_XS_1300G_FW:864.L6_.D_USB_FW:L6
E: ID_USB_MODEL_ENC=Back-UPS\x20XS\x201300G\x20FW:864.L6\x20.D\x20USB\x20FW:L6\x20
E: ID_USB_MODEL_ID=0002
E: ID_USB_SERIAL=American_Power_Conversion_Back-UPS_XS_1300G_FW:864.L6_.D_USB_FW:L6_4B1233P63346
E: ID_USB_SERIAL_SHORT=4B12P636
E: ID_USB_VENDOR=American_Power_Conversion
E: ID_USB_VENDOR_ENC=American\x20Power\x20Conversion
E: ID_USB_VENDOR_ID=051d
E: ID_USB_REVISION=0090
E: ID_USB_INTERFACES=:030000:
E: ID_VENDOR_FROM_DATABASE=American Power Conversion
E: ID_MODEL_FROM_DATABASE=Uninterruptible Power Supply
E: ID_PATH_WITH_USB_REVISION=pci-0000:80:14.0-usbv2-0:4
E: ID_PATH=pci-0000:80:14.0-usb-0:4
E: ID_PATH_TAG=pci-0000_80_14_0-usb-0_4
E: ID_FOR_SEAT=usb-pci-0000_80_14_0-usb-0_4
E: TAGS=:seat:
E: CURRENT_TAGS=:seat:
&lt;pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Resources:
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.man7.org/linux/man-pages/man7/udev.7.html&quot; target=_blank&gt;udev(7) — Linux manual page&lt;/a&gt; - Dynamic device management
  &lt;li&gt;&lt;a href=&quot;https://inegm.dev/persistent-names-for-usb-serial-devices-in-linux-dev-ttyusbx-dev-custom-name-fd49b5db9af1&quot; target=_blank&gt;Persistent names for USB-serial devices in Linux (/dev/ttyUSBx -&gt; /dev/custom-name)&lt;/a&gt; - I first looked at doing symlinks, but realized it is not required if I can perform a &#039;pct set&#039; directly on the container configuration.
  &lt;/ul&gt; 
    </content:encoded>

    <pubDate>Sat, 25 Apr 2026 22:07:41 +0000</pubDate>
    <guid isPermaLink="false">https://blog.raymond.burkholder.net/index.php?/archives/1351-guid.html</guid>
    
</item>
<item>
    <title>LXC Fresh Container Construction From Scratch for Proxmox</title>
    <link>https://blog.raymond.burkholder.net/index.php?/archives/1335-LXC-Fresh-Container-Construction-From-Scratch-for-Proxmox.html</link>
            <category>Containers</category>
            <category>Debian</category>
            <category>LXC</category>
            <category>Proxmox</category>
    
    <comments>https://blog.raymond.burkholder.net/index.php?/archives/1335-LXC-Fresh-Container-Construction-From-Scratch-for-Proxmox.html#comments</comments>
    <wfw:comment>https://blog.raymond.burkholder.net/wfwcomment.php?cid=1335</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.raymond.burkholder.net/rss.php?version=2.0&amp;type=comments&amp;cid=1335</wfw:commentRss>
    

    <author>nospam@example.com (Raymond P. Burkholder)</author>
    <content:encoded>
    &lt;p&gt;There are many articles available which discuss customizing a pre-existing Proxmox Container Template.  Few, if any, discuss constructing an LXC container from scratch.  Maybe because, fundamentally, a container template is just the rootfs as tarball, so building it is quite easy:

&lt;ul&gt;
  &lt;li&gt;Build a linux based virtual machine, I use Debian&#039;s recent release
  &lt;li&gt;Install LXC and its template package
  &lt;li&gt;Construct and initialize an LXC container
  &lt;li&gt;Shut it down and and zip it up
  &lt;li&gt;Copy it over to the ProxMox template directory
  &lt;/ul&gt;

&lt;p&gt;The details:

&lt;blockquote&gt;&lt;pre&gt;
# build the linux vm - details not relevant here
# ssh into the vm, or start a command line
# install basic packages

sudo apt install --no-install-recommends lxc lxc-templates xz-utils bridge-utils wget debootstrap rsync

# basic container templates are in:
#   /usr/share/lxc/templates/ 
# for debian as well as other distributions

# create an lxc container, provide a list any additional packages

lxc-create --template debian --name trixie-template -- --release trixie --packages iputils-ping,vim-tiny

# start and attach to the container
lxc-start trixie-template
lxc-attach trixie-template

# prepare for generating template
apt clean
apt purge

# Remove SSH host keys to ensure unique keys for each clone:
rm /etc/ssh/ssh_host_*

# Empty the machine ID file:
truncate -s 0 /etc/machine-id

# clear history
unset HISTFILE
# truncate history
history -c
&gt; ~/.bash_history
# the following has a space in front to prevent inclusion in the history
 shutdown -h now

# the shutdown returns to the virtual machine&#039;s prompt
# compress the directory structure

cd /var/lib/lxc/trixie-template/

# remove /dev files as they can&#039;t be created in an unprivileged container
# an example error message if not removed:
#   tar: ./rootfs/dev/urandom: Cannot mknod: Operation not permitted
# construction of a new container will re-create the directory and files

rm ./rootfs/dev/ptmx
rm ./rootfs/dev/zero
rm ./rootfs/dev/tty3
rm ./rootfs/dev/urandom
rm ./rootfs/dev/null
rm ./rootfs/dev/tty
rm ./rootfs/dev/console
rm ./rootfs/dev/tty4
rm ./rootfs/dev/tty2
rm ./rootfs/dev/random
rm ./rootfs/dev/tty1
rm ./rootfs/dev/full

# cd into rootfs and zip the container

cd rootfs
tar --xz --acls --numeric-owner -cf /var/local/trixie-13-3-template.tar.xz ./

# the xz file can be copied over to proxmox and placed into
# /var/lib/pve/local-btrfs/template/cache/
# for use as a template for container creation
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;During the first use of lxc-create to create the original container, packages are downloaded and installed to build the container.
The packages and installation is cached for faster subsequent builds of the same container type.

&lt;p&gt;If the cache becomes stale, it can be rebuilt by using --flush-cache in a manner similar to:

&lt;blockquote&gt;&lt;pre&gt;
lxc-create --template debian --name trixie-template -- --release trixie --flush-cache --packages iputils-ping,vim-tiny,less,python-minimal
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;An existing cache can be updated with something like:

&lt;blockquote&gt;&lt;pre&gt;
sudo chroot /var/cache/lxc/debian/rootfs-trixie-amd64
apt-get update
apt-get dist-upgrade
apt-get clean
exit
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;courtesy of &lt;a href=&quot;https://www.tomechangosubanana.com/2015/updating-lxc-imagecontainer-caches/&quot; target=_blank&gt;Updating lxc image/container caches&lt;/a&gt;

&lt;p&gt;One other note, there are two package candidates for installing the &lt;a href=&quot;https://unix.stackexchange.com/questions/400351/what-are-the-differences-between-iputils-ping-and-inetutils-ping&quot; target=_blank&gt;ping utility&lt;/a&gt;:

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://packages.debian.org/trixie/iputils-ping&quot; target=_blank&gt;iputils-ping&lt;/a&gt; - native Linux ping, preferred for Debian/Linux
  &lt;li&gt;&lt;a href=&quot;https://packages.debian.org/trixie/inetutils-ping&quot; target=_blank&gt;inetutils-ping&lt;/a&gt; - general gnu version, used on a variety of posix sytstems, less preferred
  &lt;/ul&gt;

&lt;p&gt;Some fix-ups in the process:

&lt;ul&gt;
  &lt;li&gt;apt-get install less
  &lt;li&gt;dpkg-reconfigure locales
  &lt;li&gt;useradd user
  &lt;/ul&gt;

 
    </content:encoded>

    <pubDate>Fri, 27 Feb 2026 21:03:19 +0000</pubDate>
    <guid isPermaLink="false">https://blog.raymond.burkholder.net/index.php?/archives/1335-guid.html</guid>
    
</item>
<item>
    <title>Docker Installation In LXC on ProxMox</title>
    <link>https://blog.raymond.burkholder.net/index.php?/archives/1346-Docker-Installation-In-LXC-on-ProxMox.html</link>
            <category>Docker</category>
            <category>LXC</category>
            <category>Proxmox</category>
    
    <comments>https://blog.raymond.burkholder.net/index.php?/archives/1346-Docker-Installation-In-LXC-on-ProxMox.html#comments</comments>
    <wfw:comment>https://blog.raymond.burkholder.net/wfwcomment.php?cid=1346</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.raymond.burkholder.net/rss.php?version=2.0&amp;type=comments&amp;cid=1346</wfw:commentRss>
    

    <author>nospam@example.com (Raymond P. Burkholder)</author>
    <content:encoded>
    &lt;p&gt;First of all, the obligatory caveat from 2023: &lt;a href=&quot;https://forum.proxmox.com/threads/updating-proxmox-breaks-docker-lxc.126720/?ref=benheater.com#post-553701&quot; target=_blank&gt;where Proxmox developers discourage running Docker in LXC&lt;/a&gt;.  Upgrades to Proxmox may break &#039;something&#039;, which will require remediation of the containers.  The relationship between Proxmox, LXC and Docker is brittle.

&lt;p&gt;I do totally agree not to install Docker directly on the Proxmox host, as Docker will conflict with many networking and functional operations.

&lt;p&gt;However, the combination of Docker in LXC is just too enticing.  What other mechanism is available to compartmentalize applications and provide GPU resources to each compartmentalized application, particularly when an application is packaged as a Docker container, without recourse for building a native LXC container of the application?  Putting LXC and Docker into a VM seems a bit &#039;heavy&#039; just for the sake of softening some brittleness.  All the same management has to take place within the VM.

&lt;p&gt;The key benefit is that devices such as one or more GPUs can be passed through to multiple LXC containers plus any nested docker containers. Otherwise, in the scenario where the GPU or PCIe device is passed through to a VM, as far as I know, it has to be dedicated to the VM.  I&#039;ve read that the devices can not be shared between a VM and LXC containers due to configuration differences between VM pass-through and LXC pass-through.

&lt;p&gt;Given the caveat, I&#039;ll see if I can make this work.  Not so easy.  Trying to run
&lt;blockquote&gt;&lt;pre&gt;
docker run --rm hello-world
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Yields an error:
&lt;blockquote&gt;&lt;pre&gt;
docker: Error response from daemon: failed to mount /tmp/containerd-mount2030888385: 
mount source: &quot;overlay&quot;, target: &quot;/tmp/containerd-mount2030888385&quot;, 
fstype: overlay, flags: 0, 
data: &quot;
  workdir=/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/3/work,
  upperdir=/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/3/fs,
  lowerdir=/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/2/fs,userxattr&quot;, 
  err: permission denied
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;With an associated apparmor error in Proxmox:
&lt;blockquote&gt;&lt;pre&gt;
audit: type=1400 audit(1774803476.655:145): 
  apparmor=&quot;DENIED&quot; operation=&quot;mount&quot; class=&quot;mount&quot; info=&quot;failed perms check&quot; error=-13 
  profile=&quot;lxc-131_&lt;/var/lib/lxc&gt;&quot; 
  name=&quot;/tmp/containerd-mount2030888385/&quot; 
  pid=1480790 comm=&quot;dockerd&quot; fstype=&quot;overlay&quot; srcname=&quot;overlay&quot;
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;The simple solution is to set &lt;b&gt;nesting=1&lt;/b&gt; in the proxmox lxc options.

&lt;p&gt;The next hurdle is that it may take a couple/several minutes for the Docker file to run when the container starts up.  If so, you may see this:
&lt;blockquote&gt;&lt;pre&gt;
&gt; ps aux
root      41  0.0  0.0   2680  1808 ?    Ss   20:09   0:00 /bin/sh /usr/lib/ifupdown/wait-online.sh
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;If so, this can be disabled:
&lt;blockquote&gt;&lt;pre&gt;
systemctl disable ifupdown-wait-online.service
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;In addition, systemd-networkd-wait-online may be waiting for an interface it doesn&#039;t manage.  This will cause a startup delay of several minutes.  Use the following to add some debugging and logging
&lt;blockquote&gt;&lt;pre&gt;
systemctl edit systemd-networkd-wait-online.service

[Service]
Environment=SYSTEMD_LOG_LEVEL=debug
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;In my case, I then saw something like:
&lt;blockquote&gt;&lt;pre&gt;
root@frigate01:~# systemctl status systemd-networkd-wait-online.service
● systemd-networkd-wait-online.service - Wait for Network to be Configured

Mar 29 20:38:44 frigate01 systemd-networkd-wait-online[97]: lo: link is ignored
Mar 29 20:38:44 frigate01 systemd-networkd-wait-online[97]: vlan60: link is not managed by networkd.
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;I have used a non-standard interface name. I resolved this by updating the edit with the following:
&lt;blockquote&gt;&lt;pre&gt;
&gt; systemctl edit systemd-networkd-wait-online.service

[Service]
ExecStart=
ExecStart=/usr/lib/systemd/systemd-networkd-wait-online --interface=vlan60
#Environment=SYSTEMD_LOG_LEVEL=debug
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;The empty ExecStart line clears the original command parameters.

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.baeldung.com/linux/systemd-networkd-wait-online-service-timeout-solution&quot; target=_blank&gt;How to Fix systemd-networkd-wait-online Service Timing Out During Boot&lt;/a&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.man7.org/linux/man-pages/man8/systemd-networkd-wait-online.8.html&quot; target=_blank&gt;systemd-networkd-wait-online.service(8) — Linux manual page&lt;/a&gt;
  &lt;li&gt;
  &lt;/ul&gt;

&lt;p&gt;Some Docker commands:
&lt;blockquote&gt;&lt;pre&gt;
docker run --rm -it hello-world bash
&lt;/pre&gt;&lt;/blockquote&gt;

 
    </content:encoded>

    <pubDate>Sun, 29 Mar 2026 17:26:11 +0000</pubDate>
    <guid isPermaLink="false">https://blog.raymond.burkholder.net/index.php?/archives/1346-guid.html</guid>
    
</item>
<item>
    <title>Docker Installation</title>
    <link>https://blog.raymond.burkholder.net/index.php?/archives/1345-Docker-Installation.html</link>
            <category>LXC</category>
    
    <comments>https://blog.raymond.burkholder.net/index.php?/archives/1345-Docker-Installation.html#comments</comments>
    <wfw:comment>https://blog.raymond.burkholder.net/wfwcomment.php?cid=1345</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.raymond.burkholder.net/rss.php?version=2.0&amp;type=comments&amp;cid=1345</wfw:commentRss>
    

    <author>nospam@example.com (Raymond P. Burkholder)</author>
    <content:encoded>
    &lt;p&gt;Docker installation is easy enough:

&lt;blockquote&gt;&lt;pre&gt;
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;This installs the latest stable release of:

&lt;ul&gt;
  &lt;li&gt;Docker CLI, 
  &lt;li&gt;Docker Engine,
  &lt;li&gt;Docker Buildx, 
  &lt;li&gt;Docker Compose, 
  &lt;li&gt;containerd, and 
  &lt;li&gt;runc.
  &lt;/ul&gt;

&lt;p&gt;To get an idea of usage:

&lt;blockquote&gt;&lt;pre&gt;
sh -c docker version
&lt;/pre&gt;&lt;/blockquote&gt;
 
    </content:encoded>

    <pubDate>Sun, 29 Mar 2026 15:32:27 +0000</pubDate>
    <guid isPermaLink="false">https://blog.raymond.burkholder.net/index.php?/archives/1345-guid.html</guid>
    
</item>
<item>
    <title>lxc-create of debian testing on debian trixie</title>
    <link>https://blog.raymond.burkholder.net/index.php?/archives/1340-lxc-create-of-debian-testing-on-debian-trixie.html</link>
            <category>Debian</category>
            <category>LXC</category>
    
    <comments>https://blog.raymond.burkholder.net/index.php?/archives/1340-lxc-create-of-debian-testing-on-debian-trixie.html#comments</comments>
    <wfw:comment>https://blog.raymond.burkholder.net/wfwcomment.php?cid=1340</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.raymond.burkholder.net/rss.php?version=2.0&amp;type=comments&amp;cid=1340</wfw:commentRss>
    

    <author>nospam@example.com (Raymond P. Burkholder)</author>
    <content:encoded>
    &lt;p&gt;When creating a Debian testing/forky LXC container on a Debian trixie machine, the following error may be encountered in the output:

&lt;blockquote&gt;&lt;pre&gt;
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://deb.debian.org/debian...
E: Couldn&#039;t find these debs: isc-dhcp-client
Failed to download the rootfs, aborting.
Failed to download &#039;debian base&#039;
failed to install debian
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;This is a result of &lt;a href=&quot;https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1125011&quot; target=_blank&gt;bug #1125011&lt;/a&gt; in the Debian bug tracker.

&lt;p&gt;There are several possible solutions:
&lt;ul&gt;
  &lt;li&gt;Manually apply the patches supplied by the &lt;a href=&quot;https://salsa.debian.org/lxc-team/lxc-templates/-/merge_requests/5/commits&quot; target=_blank&gt;Debian LXC team&lt;/a&gt;
  &lt;li&gt;Probably might be solved by running lxc-create on a testing/forky machine, where the solution may have already been applied - I have not confirmed this
  &lt;li&gt;Or it may work on a sid machine
  &lt;/ul&gt; 
    </content:encoded>

    <pubDate>Tue, 17 Mar 2026 03:10:34 +0000</pubDate>
    <guid isPermaLink="false">https://blog.raymond.burkholder.net/index.php?/archives/1340-guid.html</guid>
    
</item>
<item>
    <title>Opening ProxMox .vv files with virt-viewer (Debian &amp; Firefox) </title>
    <link>https://blog.raymond.burkholder.net/index.php?/archives/1339-Opening-ProxMox-.vv-files-with-virt-viewer-Debian-Firefox.html</link>
            <category>Proxmox</category>
    
    <comments>https://blog.raymond.burkholder.net/index.php?/archives/1339-Opening-ProxMox-.vv-files-with-virt-viewer-Debian-Firefox.html#comments</comments>
    <wfw:comment>https://blog.raymond.burkholder.net/wfwcomment.php?cid=1339</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.raymond.burkholder.net/rss.php?version=2.0&amp;type=comments&amp;cid=1339</wfw:commentRss>
    

    <author>nospam@example.com (Raymond P. Burkholder)</author>
    <content:encoded>
    &lt;p&gt;If running Firefox on a Debian Linux machine, install virt-viewer:

&lt;blockquote&gt;&lt;pre&gt;
sudo apt install virt-viewer
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Ensure the VirtIO drivers and such have been installed in the virtual machine (&lt;a href=&quot;https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/?C=M;O=D&quot; target=_blank&gt;if Windows&lt;/a&gt;) in order to provide SPICE services.

&lt;p&gt;Then, in Firefox on your workstation:

&lt;ul&gt;
  &lt;li&gt;go into about:config, and add the key &#039;network.protocol-handler.expose.virt-viewer&#039; as boolean and set to true
  &lt;li&gt;go into about:preferences, and set &quot;What should Firefox do with other files&quot; to &quot;Ask whether to open or save files&quot;.
  &lt;li&gt;in Proxmox, open a SPICE based console for a virtual machine, which attempts a download or a run of a customized .vv file,
  &lt;li&gt;Firefox will then request to open a Virt-Viewer file with Remote Viewer - at this point, you can set it as the default viewer, and it will show up in the application preferences 
  &lt;/ul&gt;
 
    </content:encoded>

    <pubDate>Sat, 14 Mar 2026 22:54:52 +0000</pubDate>
    <guid isPermaLink="false">https://blog.raymond.burkholder.net/index.php?/archives/1339-guid.html</guid>
    
</item>
<item>
    <title>apparmor=&quot;DENIED&quot; operation=&quot;mount&quot; class=&quot;mount&quot; info=&quot;failed perms check&quot; error=-13 </title>
    <link>https://blog.raymond.burkholder.net/index.php?/archives/1338-apparmorDENIED-operationmount-classmount-infofailed-perms-check-error-13.html</link>
            <category>Debian</category>
            <category>LXC</category>
            <category>Proxmox</category>
    
    <comments>https://blog.raymond.burkholder.net/index.php?/archives/1338-apparmorDENIED-operationmount-classmount-infofailed-perms-check-error-13.html#comments</comments>
    <wfw:comment>https://blog.raymond.burkholder.net/wfwcomment.php?cid=1338</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.raymond.burkholder.net/rss.php?version=2.0&amp;type=comments&amp;cid=1338</wfw:commentRss>
    

    <author>nospam@example.com (Raymond P. Burkholder)</author>
    <content:encoded>
    &lt;p&gt;After following my own instructions for building my own LXC container template for ProxMox using the SID release, when the container started, the ProxMox logs would fill up with errors along the lines of:

&lt;blockquote&gt;&lt;pre&gt;
apparmor=&quot;DENIED&quot; operation=&quot;mount&quot; class=&quot;mount&quot; info=&quot;failed flags match&quot; error=-13 name=&quot;/run/credentials/systemd-journald.service/&quot; flags=&quot;rw, move&quot;
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;My Trixie template did not seem to offer up these types of errors.  LXC containers were created with the &#039;Unpriviledged Container&quot; setting to 1|yes.

&lt;p&gt;Instead of going the last resort brute force and ignorance route of using the following configuration (see &lt;a href=&quot;https://github.com/russmorefield/lxc-docker-fix&quot; target=_blank&gt;Fixing net.ipv4.ip_unprivileged_port_start and AppArmor Docker Errors in a Proxmox LXC&lt;/a&gt; for some background):

&lt;blockquote&gt;&lt;pre&gt;
lxc.apparmor.profile: unconfined
features: keyctl=1,nesting=1
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;I took a more nuanced/detailed approach.  &lt;a href=&quot;https://bobcares.com/blog/apparmor-denied-operation-mount-info-failed-flags-match-error-13/&quot; target=_blank&gt;AppArmor Denied Operation mount info failed flags match Error 13&lt;/a&gt; provided a starting point for developing a solution.

&lt;p&gt;After incrementally adding rules as new Apparmor DENIED statements occurred, this is the rule set which seems to resolve the errors.  Once the container is created, these are the rules I add to the end of /etc/pve/lxc/&amp;lt;vmid&amp;gt;.conf:

&lt;blockquote&gt;&lt;pre&gt;
lxc.apparmor.raw: mount options=(rw,move) -&gt; /run/credentials/{,**},
lxc.apparmor.raw: mount options=(ro, remount, noatime, bind) -&gt; /,
lxc.apparmor.raw: mount options=(ro, remount, bind) -&gt; /dev/,
lxc.apparmor.raw: mount options=(rw, move) -&gt; /dev/mqueue/,
lxc.apparmor.raw: mount options=(rw, move) -&gt; /tmp/,
lxc.apparmor.raw: mount options=(rw, move) -&gt; /run/systemd/mount-rootfs/proc/,
lxc.apparmor.raw: mount options=(ro, nosuid, nodev, noexec, remount, nosymfollow, bind) -&gt; /run/systemd/mount-rootfs/run/credentials/systemd-networkd.service/,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/sys/net/,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/uptime,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/slabinfo,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/meminfo,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/swaps,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/loadavg,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/cpuinfo,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/diskstats,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/stat,
lxc.apparmor.raw: userns create,
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Restart the container, and the errors should no longer occur.

&lt;p&gt;Don&#039;t try to place statements in /var/lib/lxc/&amp;lt;vmid&amp;gt;/config as it is over-written by ProxMox upon container startup.  Rules are appended to that configuration.

&lt;p&gt;I used the following for a trixie v13.3 version of a container:

&lt;blockquote&gt;&lt;pre&gt;
lxc.apparmor.raw: mount fstype=ramfs -&gt; /dev/shm/,
lxc.apparmor.raw: mount options=(ro, nosuid, nodev, noexec, remount, nosymfollow, bind) -&gt; /dev/shm/,
lxc.apparmor.raw: mount options=(ro, remount, bind) -&gt; /dev/,
lxc.apparmor.raw: mount options=(rw, move) -&gt; /dev/mqueue/,
lxc.apparmor.raw: mount options=(rw, move) -&gt; /run/lock/,
lxc.apparmor.raw: mount options=(rw, move) -&gt; /tmp/,
lxc.apparmor.raw: mount options=(ro, remount, noatime, bind) -&gt; /,
lxc.apparmor.raw: mount options=(ro, nosuid, nodev, noexec, remount, nosymfollow, bind) -&gt; /run/systemd/mount-rootfs/run/credentials/systemd-networkd.service/,
lxc.apparmor.raw: userns create,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec) -&gt; /run/systemd/namespace-{,**},
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/sys/net/,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/uptime,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/slabinfo,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/meminfo,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/swaps,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/loadavg,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/cpuinfo,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/diskstats,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec, remount, bind) -&gt; /run/systemd/mount-rootfs/proc/stat,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec) -&gt; /run/systemd/unit-root/proc/,
lxc.apparmor.raw: mount options=(ro, nosuid, nodev, noexec) -&gt; /sys/kernel/config/,
lxc.apparmor.raw: mount options=(rw, nosuid, nodev, noexec) -&gt; /sys/kernel/config/,
&lt;/pre&gt;&lt;/blockquote&gt;

 
    </content:encoded>

    <pubDate>Sat, 28 Feb 2026 23:51:54 +0000</pubDate>
    <guid isPermaLink="false">https://blog.raymond.burkholder.net/index.php?/archives/1338-guid.html</guid>
    
</item>
<item>
    <title>Sample Proxmox command to build LXC container from Template</title>
    <link>https://blog.raymond.burkholder.net/index.php?/archives/1336-Sample-Proxmox-command-to-build-LXC-container-from-Template.html</link>
            <category>Proxmox</category>
    
    <comments>https://blog.raymond.burkholder.net/index.php?/archives/1336-Sample-Proxmox-command-to-build-LXC-container-from-Template.html#comments</comments>
    <wfw:comment>https://blog.raymond.burkholder.net/wfwcomment.php?cid=1336</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.raymond.burkholder.net/rss.php?version=2.0&amp;type=comments&amp;cid=1336</wfw:commentRss>
    

    <author>nospam@example.com (Raymond P. Burkholder)</author>
    <content:encoded>
    &lt;blockquote&gt;&lt;pre&gt;
pct_id=101
pct_name=test01
pct create $pct_id /var/lib/pve/local-btrfs/template/cache/trixie-13-3-template.tar.xz  \
  -hostname $pct_name \
  -description &#039;demo build&#039; \
  -onboot 1 \
  -startup up=3 \
  -ostype debian \
  -arch amd64 \
  -cores 2 \
  -memory 1024 \
  -nameserver 10.10.10.10 -searchdomain &#039;example.com&#039; \
  -net0 name=vlan30,bridge=vmbr1,ip=dhcp,tag=30,type=veth \
  -rootfs local-btrfs:8,mountoptions=&quot;noatime;discard&quot; \
  -swap 512
&lt;/pre&gt;&lt;/blockquote&gt; 
    </content:encoded>

    <pubDate>Sat, 28 Feb 2026 04:40:48 +0000</pubDate>
    <guid isPermaLink="false">https://blog.raymond.burkholder.net/index.php?/archives/1336-guid.html</guid>
    
</item>
<item>
    <title>Migrating LXC Containers From One Machine To Another</title>
    <link>https://blog.raymond.burkholder.net/index.php?/archives/916-Migrating-LXC-Containers-From-One-Machine-To-Another.html</link>
            <category>LXC</category>
    
    <comments>https://blog.raymond.burkholder.net/index.php?/archives/916-Migrating-LXC-Containers-From-One-Machine-To-Another.html#comments</comments>
    <wfw:comment>https://blog.raymond.burkholder.net/wfwcomment.php?cid=916</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.raymond.burkholder.net/rss.php?version=2.0&amp;type=comments&amp;cid=916</wfw:commentRss>
    

    <author>nospam@example.com (Raymond P. Burkholder)</author>
    <content:encoded>
    &lt;p&gt;For some machines with LXC containers, they have been running for a number of years.  I want to take the easy way out and move the containers from one physical machine to another.  At another time, I will rebuild the containers.

&lt;p&gt;Since I am running BTRFS subvolumes for each container, I could be using BTRFS snapshot/send/receive commands to migrate/copy/replicate subvolumes.  But before attempting that, I wanted to give the &#039;copy&#039; a try.  To do this properly, at the source, use the following -- with numeric-owner being a required paramenter -- command to collect the files:

&lt;blockquote&gt;&lt;pre&gt;
tar --numeric-owner -czvf mycontainer.tar.gz /var/lib/lxc/my_container
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;At the destination, expand that file out:

&lt;blockquote&gt;&lt;pre&gt;
tar --numeric-owner -xzvf mycontainer.tar.gz -C /var/lib/lxc/
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;The &lt;a href=&quot;http://lxc-users.linuxcontainers.narkive.com/ATkcbMOJ/what-is-right-way-to-backup-and-restore-linux-containers&quot; target=_blank&gt;lxc users mailing list&lt;/a&gt; and 
&lt;a href=&quot;https://stackoverflow.com/questions/23427129/how-do-i-backup-move-lxc-containers&quot; target=_blank&gt;Stack OverFlow&lt;/a&gt; were helpful.

&lt;p&gt;Other stuff to do:

&lt;ul&gt;
  &lt;li&gt;Read up on &lt;a href=&quot;http://man7.org/linux/man-pages/man7/cgroups.7.html&quot; target=_blank&gt;CGroups&lt;/a&gt; in the Linux Programmer&#039;s Manual
  &lt;/ul&gt;

&lt;p&gt;In migrating from a very old version of LXC to a much newer version of LXC, I was getting errors.  I needed to run a some debug to get a handle on errors:

&lt;blockquote&gt;&lt;pre&gt;
lxc-start -n container -F --logpriority=DEBUG --logfile log
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;I had errors along the lines of:

&lt;blockquote&gt;&lt;pre&gt;
Activating lvm and md swap...done.
Checking file systems...Segmentation fault (core dumped)
failed (code 139).
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;a href=&quot;https://serverfault.com/questions/896524/how-to-fix-filesystem-of-a-lxc-container&quot; target=_blank&gt;ServerFault&lt;/a&gt; had the solution: put &quot;vsyscall=emulate&quot; into /etc/default/grub, run &#039;update-grub&#039; and reboot.  Looks like I need to modernize my containers so I can eliminate this workaround, which may have some security considerations.  There is a &lt;a href=&quot;https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891393&quot; target=_blank&gt;Debian Bug&lt;/a&gt; for this.

&lt;p&gt;&lt;a href=&quot;https://einsteinathome.org/content/vsyscall-now-disabled-latest-linux-distros&quot; target=_blank&gt;einstein home&lt;/a&gt; has a blog with some kernel references to the issue, in effect saying: &quot;vsyscall is now disabled on latest linux distros&quot;.  A lengthier LWN article at
&lt;a href=&quot;https://lwn.net/Articles/446528/&quot; target=_blank&gt;On vsyscalls and the vDSO&lt;/a&gt;.  This works with kernel 4.14, my current version, but I see somewhere else that the workaround is entirely removed in kernel 4.15, at least in the Arch world.  At &lt;a href=&quot;https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=847154&quot; target=_blank&gt;bug 847154&lt;/a&gt;: &quot;This breaks (e)glibc 2.13 and earlier&quot;.

&lt;p&gt;Note, see newer notes at &lt;a href=&quot;https://blog.raymond.burkholder.net/index.php?/archives/1335-LXC-Fresh-Container-Construction-From-Scratch-for-Proxmox.html&quot; target=_blank&gt;LXC Fresh Container Construction From Scratch for Proxmox&lt;/a&gt;. 
    </content:encoded>

    <pubDate>Wed, 04 Apr 2018 15:39:24 +0000</pubDate>
    <guid isPermaLink="false">https://blog.raymond.burkholder.net/index.php?/archives/916-guid.html</guid>
    
</item>

</channel>
</rss>
