-
-
Notifications
You must be signed in to change notification settings - Fork 432
UniFi OS - Dream Machines 2.x #416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I've been wondering the same thing. |
So this means a couple things I believe. You will have to install podman via our udm-se builds probably. Beyond that the baseOS will have systemd now and if I remember correctly they let you customize. I think it will get rid of the need for the deb install and we will just have to update all instructions here to take 2.0 into account. |
That's good to hear, I've been holding off upgrading because quite used to using Pihole :) |
Curious if anyone had success with recent versions and installing podman from udm-se? My UDM is stuck on 1.11.4 (with podman 1.x) because of trauma from updating firmwares in the past |
Version 2.4 is now live for UDM (base, pro): https://community.ui.com/releases/UniFi-OS-Dream-Machines-2-4-23/aebbba64-9e7e-4151-bcca-34ed08761f08 |
Has anyone performed the migration to 2.4.23? Did any data related to on_boot remain on disk? Does the migration nuke everything? I'm hesitant to upgrade this early as I do need my DNS redirect and cloudflared services to remain running. |
All erased on my UDMB, no data folder in mnt |
For me it got rid of the on_boot.d folder and any podman containers I had it also completely got rid of podman. It leaves Unifi OS related configs such as network but anything custom is gone. |
Yes, everything was purged from this partition |
Well the current installation does not run, cleaning it with
But with this update tools like |
Not sure why
Edit: derp, it's mounted at How are people installing podman? Edit 2: Got it working. I downloaded the install script, and modified the From b368017f4f3e83161549e36c93ada2dede7d6ffc Mon Sep 17 00:00:00 2001
From: Bennett Perkins <bennettperkins@gmail.com>
Date: Fri, 16 Dec 2022 07:49:03 +0800
Subject: [PATCH] got remote_install.sh working on UDM 2.4.23
---
on-boot-script/remote_install.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/on-boot-script/remote_install.sh b/on-boot-script/remote_install.sh
index 62de92c..87ce59e 100755
--- a/on-boot-script/remote_install.sh
+++ b/on-boot-script/remote_install.sh
@@ -160,7 +160,7 @@ depends_on curl
ON_BOOT_D_PATH="$DATA_DIR/on_boot.d"
case "$(udm_model)" in
- udm|udmpro)
+ udmpro)
echo "UDM/Pro detected, installing on-boot script..."
depends_on podman
@@ -172,7 +172,7 @@ case "$(udm_model)" in
echo "UDM Boot Script installed"
;;
- udr|udmse)
+ udr|udmse|udm)
echo "UDR/UDMSE detected, installing on-boot script..."
depends_on systemctl
--
2.37.1 (Apple Git-137.1)
|
In README.md Extract the zip to the root of your device! Look at the assets on the Podman workflow. |
Using @bennetp123's advice, I was also able to install after updating my UDM base using the modified remote_install.sh After that I'm able to ssh in with my key after reboot! |
can someone confirm this working on UDM? Last upgrade I had to leave podman at 1.0 since the updated variants didn't work for me. Do those SE builds work on normal UDM as well? Also how is the unifi-shell now executed? Previously that was a podman container, but that is no longer the case I presume? |
This worked for me but my testing is limited. curl -fsL "https://raw.githubusercontent.com/jinkang23/unifios-utilities/main/on-boot-script/remote_install.sh" | /bin/sh I just submitted PR to add this change: #451 |
Thanks, @jinkang23 , I tested it and it seems to be working. One question: The CNI Bridge is not needed if I only want to execute a startup script. Is it needed anyway, as there are no more containers on UDM FW2.x onwards? |
I can confirm it's working, at least enough to get
I used
No idea— |
Yea, I'm not sure about that. I figured it was there because you can still technically install |
I would suppose so as well. I just deleted the install (05...) and startup (06...) script and be fine with it. Thanks again for your efforts, very much appreciated, happy camper here :) |
Thanks for the comments all! I know what my evening project will be, fingers crossed it goes equally smooth. I only have 2 podman containers to migrate but let's see... Did upgrading the firmware wipe everything that was previously persisted in |
The migration will delete all data. |
For anyone looking to install Podman I put together a build here. It's distributed through a Debian package so easy to install and remove (setup could done easily as an on_boot script). It uses current versions of Podman and its dependencies. So far working well for me on my UDMP on 2.4 and I plan to maintain this going forward. Heavily inspired by the work done in this repo and the comments here about getting podman running. Wanted to share as it seemed it might save some people headache getting it working. |
Does the configuration of Podman also get lost? As in, if I install podman again after the update, will all my previously running containers be running in the state they were before the update? Or do I have to re-create / restore everything by hand? |
The migration will delete all data. |
Thank you so much! My UDM-PRO auto-updated over night to the 2.4 Firmware and everything was gone. With your Podman build I managed to bring back up my multicast-relay on my UDM-PRO. |
Looks like they pulled the 2.x upgrade for UDM again. Anyone happen to have the firmware upgrade downloaded? |
Try using this syntax, I'm using that and it works:
What did stop working for me was the iptables statistics module to redirect DNS to multiple servers, I was formerly using:
It seems like the kernel module for statistics: xt_statistic.ko is gone now. Anyone know a solution? Will it be there in 3.x FW? |
@OfficialHoSay I'm actually using the same syntax. The syntax you see above is what gets output by |
Nevermind, it seems to be working after all. I tried changing the DNS server on another machine and it still hits the Pi-hole. My work laptop was in a strange state this morning, and I needed to reboot it in order to get it to not attempt to use 1.1.1.1 as the DNS server. All is well now, uff. Thanks for the help! |
Ah, I hadn't caught that. Yes mine also does that, but I'm not sure if it has always done that?
But I'm glad it is now working. I am running FW 2.5.16 and noticing that -m statistic is not working anymore, which is a bummer for us load-balancing DNS redirections. Is anyone running 2.5 or 3.X on a UXG-Pro, UDM-SE, or UDR that can tell me if -m statistic is working for them? Is there a way to add it back? |
Just a little comment so people don't make the same mistake as me... A few of my boot scripts were created under the assumption that the filesystem is ephemeral and lots of stuff will get wiped/reset between reboots, and I used them as-is for 2.x. For 1.x that was fine, but for 2.x that isn't the case, so I ran into some issues that caused my UDM to fill up and randomly crash/force reboot. Took me a while to figure out what's going on Basically, make sure your scripts check for the current state before doing their thing |
Slightly related, but could anyone do me a favor and upload their |
@dvcrn Bit offtopic 😉 but here from my UDMP on 2.5.16: Show
|
Same output/md5 on my UDM Base with 2.5.16 |
Awesome, thanks! I'll see if I can find/build that one for aarch64 It's installed in apt but not through a repository. So when it's gone you sadly can't just apt-get install it again. did a apt-get remove odhcp6c to fresh reinstall but now it's gone and I had to find a source/package that provides it. Debian experimental does, but the version is 1.1, hence the small differences 😅 |
I had a working pihole setup on 1.x UDMP and after I decided to upgrade to 2.4.17 it doesn't work anymore By following this thread and new input I did configuration from scratch (including onboot and podman installation) but somehow it looks like my container don't have internet access. Did anybody experienced this already?
Shouldn't the binding interface a different one (ex. using default setup br5 )? |
Sounds like something wrong with your dns or postman network settings. Can you post your dns/network config scripts? Are those logs from within the container? It's still going to be en0 inside |
I've upgraded from 2.4 to 2.5 and noticed that the multicast-relay container is not healthy. It keeps logging the following error:
Anyone else seeing this? |
@pedropombeiro how are you running it exactly? |
#!/bin/bash
CONTAINER=multicast-relay
# kill all instances of avahi-daemon (UDM spins an instance up even with mDNS services disabled)
killall avahi-daemon
# Starts a multicast-relay container that is deleted after it is stopped.
if podman container exists "${CONTAINER}"; then
podman start "${CONTAINER}"
else
podman run -d \
--name "${CONTAINER}" \
--net="host" \
--security-opt=no-new-privileges \
--restart=always \
-e OPTS="--noSonosDiscovery" \
-e INTERFACES="eth8 br46 br56 br76 br96" \
-e TZ="$(cat /data/system/timezone)" \
scyto/multicast-relay
fi |
Could be |
That was the first thing I tried (removing it), but no change. |
Ok, not sure then. I am using multicast-relay on a UXG with Unifi OS 3 without issues. UniFi OS 3 doesn't have Podman though so I'm not running it inside a container |
Anyone tried the upgrade from 2.x to 3.x? |
@georgeboot where have you seen 3.x available? |
@pedropombeiro , I believe @georgeboot is referring to 3.0.19, which was just made available in EA; https://community.ui.com/releases/UniFi-OS-Dream-Machines-3-0-19/aae685bb-4b96-4016-9125-29e57d7f2844 |
Yeah did the update right now ...
Seems the ssh-proxy is also removed now... running the manuall install script runs nice :)
|
@mabunixda does /data persists throughout the update? And does one need to run the installer again, or does it remain intact just like with the upgrade from 2.4 to 2.5? |
Yes all data is still available - all my scripts and data is still available, but i had to reinstall udm package by script ... |
The |
Heads up: podman doesn't work on 3.x! See #510 |
Yeah i try to find some solution, but i cannot use the @fabianishere kernels on the udm, because the |
Shall we create a 3.x thread? Unless it's similar enough to 2.x to keep it in here Did the 3.x upgrade again wipe everything? |
My scripts are still in /mnt/data after the 2.5 and 3.0 upgrades.
|
Created #523 to track 3.x issues and leave this one for 2.x. |
Ubiquiti recently annouced in the latest update notes for the UniFi OS - Dream Machines, they will migrate to 2.x soon.
https://community.ui.com/releases/UniFi-OS-Dream-Machines-1-12-30/a4f85653-7bc6-461a-8715-94298cb69164
If I am not mistaken, that means they will align the firmware with the firmware of the UDM SE.
Do you know what are the effects of that and how the work of this awesome project will be affected?
I am only aware that this will drop Podman?
The text was updated successfully, but these errors were encountered: