# Issue with Containers not restarting after a reboot

**URL:** <https://forum.virtualmin.com/t/issue-with-containers-not-restarting-after-a-reboot/138114>\
**Category:** General Discussion\
**Created:** [October 2, 2026, 3:04pm UTC](https://forum.virtualmin.com/t/issue-with-containers-not-restarting-after-a-reboot/138114 "2026-10-02T15:04:58Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![rudy.hinojosa](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/rudy.hinojosa/32/24756_2.png) [@rudy.hinojosa](https://forum.virtualmin.com/u/rudy.hinojosa)\
**Post date:** [October 2, 2026, 3:04pm UTC](https://forum.virtualmin.com/t/issue-with-containers-not-restarting-after-a-reboot/138114/1 "2026-10-02T15:04:58Z")

</div>

I noticed after rebooting my Virtualmin server that containers installed through Virtualmin Container Manager did not automatically restart.

I did some troubleshooting and found the following:

- Podman version: 3.4.4

- Containers are running rootless under the Virtual Server owner.

- The containers have `RestartPolicy=always`.

- The Virtual Server owner has `Linger=yes`.

- The system `podman-restart.service` is enabled and runs successfully at boot.

- The system service executes:

`/usr/bin/podman start --all --filter restart-policy=always`

However, that service runs as root and therefore only sees root’s Podman storage.

For example, a Virtualmin-managed container owned by `maxclean` is stored under:

`/home/maxclean/.local/share/containers/storage`

Running `podman ps -a` as root and as `maxclean` produces different container lists, as expected for rootless Podman.

I also checked the user’s systemd configuration and there does not appear to be a user-level `podman-restart.service` or generated systemd unit for the Virtualmin-managed pod/containers.

Is Virtualmin Container Manager supposed to create/enable a user-level systemd service for rootless containers so that containers with `RestartPolicy=always` are started following a host reboot?

If not, what is the recommended Virtualmin method for ensuring catalog/recipe containers automatically restart after a server reboot?

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [October 2, 2026, 9:00pm UTC](https://forum.virtualmin.com/t/issue-with-containers-not-restarting-after-a-reboot/138114/2 "2026-10-02T21:00:48Z")

</div>

I’ve been running rustdesk on a domain I made for it, `rustdesk.mydomain.com` and I’ve done a few reboots since and it comes back up fine.  
Maybe raise a ticket (pro option) if you get no response as that’s not normal behavior.

---

<div class="post-metadata">

**Author:** ![rudy.hinojosa](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/rudy.hinojosa/32/24756_2.png) [@rudy.hinojosa](https://forum.virtualmin.com/u/rudy.hinojosa)\
**Post date:** [October 3, 2026, 1:01am UTC](https://forum.virtualmin.com/t/issue-with-containers-not-restarting-after-a-reboot/138114/3 "2026-10-03T01:01:28Z")

</div>

is this a rootless installation? I think it affects rootless. possibly.

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [October 3, 2026, 2:58am UTC](https://forum.virtualmin.com/t/issue-with-containers-not-restarting-after-a-reboot/138114/4 "2026-10-03T02:58:02Z")

</div>

Not sure what you mean, your doing it as a virtual server admin user?

---

<div class="post-metadata">

**Author:** ![DrCarsonBeckett](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/drcarsonbeckett/32/650_2.png) [@DrCarsonBeckett](https://forum.virtualmin.com/u/DrCarsonBeckett)\
**Post date:** [October 3, 2026, 9:15am UTC](https://forum.virtualmin.com/t/issue-with-containers-not-restarting-after-a-reboot/138114/5 "2026-10-03T09:15:55Z")

</div>

I think that he meant if you are using a rootless enviroment for yourself or not, inclining that he does that.  
Thats my guess.

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [October 3, 2026, 1:17pm UTC](https://forum.virtualmin.com/t/issue-with-containers-not-restarting-after-a-reboot/138114/6 "2026-10-03T13:17:30Z")

</div>

Hi Rudy!

This is expected and is caused by the old Podman 3.4.4 package, not by the container configuration.

Ubuntu 22.04 ships the system-level `podman-restart.service`, but not the corresponding user-level service needed for rootless containers. The system service runs as root and cannot see containers owned by virtual server users.

Virtualmin uses Podman’s native restart service, and it does not generate separate systemd units for every container. The recommended solution is to upgrade to Ubuntu 24.04 or another supported OS with a newer Podman package.

Ubuntu 24.04’s Podman 4.9.3 package includes the rootless restart service, so containers with `RestartPolicy=always` should start after reboot when linger is enabled.

Yet, for complete native `unless-stopped` behavior, Podman 5.8.2 or newer is preferred.

---

<div class="post-metadata">

**Author:** ![rudy.hinojosa](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/rudy.hinojosa/32/24756_2.png) [@rudy.hinojosa](https://forum.virtualmin.com/u/rudy.hinojosa)\
**Post date:** [October 3, 2026, 1:47pm UTC](https://forum.virtualmin.com/t/issue-with-containers-not-restarting-after-a-reboot/138114/7 "2026-10-03T13:47:35Z")

</div>

> [@Ilia](#):
>
> Hi Rudy!
> 
> This is expected and is caused by the old Podman 3.4.4 package, not by the container configuration.
> 
> Ubuntu 22.04 ships the system-level `podman-restart.service`, but not the corresponding user-level service needed for rootless containers. The system service runs as root and cannot see containers owned by virtual server users.
> 
> Virtualmin uses Podman’s native restart service, and it does not generate separate systemd units for every container. The recommended solution is to upgrade to Ubuntu 24.04 or another supported OS with a newer Podman package.
> 
> Ubuntu 24.04’s Podman 4.9.3 package includes the rootless restart service, so containers with `RestartPolicy=always` should start after reboot when linger is enabled.
> 
> Yet, for complete native `unless-stopped` behavior, Podman 5.8.2 or newer is preferred.

Thanks, that clears it up and also explains some behavior I’ve seen with rootless containers after a reboot.

Since this is a fresh server and I’m planning to use Virtualmin’s Container Manager fairly extensively, would you recommend staying with Ubuntu 24.04’s stock Podman 4.9.3, or is there a Virtualmin-supported/recommended way to install Podman 5.8.2+ on Ubuntu 24.04?

I’d rather build the server around the preferred Podman version now than migrate everything to 4.9.3 and discover later that I need to change the Podman installation to get reliable native `unless-stopped` behavior.

Also, am I correct that Virtualmin expects `loginctl enable-linger <virtual-server-user>` to be enabled for each virtual server user that owns rootless containers, or does Container Manager handle enabling linger automatically?

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [October 3, 2026, 4:03pm UTC](https://forum.virtualmin.com/t/issue-with-containers-not-restarting-after-a-reboot/138114/8 "2026-10-03T16:03:20Z")

</div>

> [@rudy.hinojosa](#):
>
> Ubuntu 24.04’s stock Podman 4.9.3, or is there a Virtualmin-supported/recommended way to install Podman 5.8.2+ on Ubuntu 24.04?

I’d go with Ubuntu 26.04 if I had to choose Ubuntu and build a new server today.

> [@rudy.hinojosa](#):
>
> Also, am I correct that Virtualmin expects `loginctl enable-linger <virtual-server-user>` to be enabled for each virtual server user that owns rootless containers, or does Container Manager handle enabling linger automatically?

We handle it internally, you don’t need to do anything else manually.

---

<div class="post-metadata">

**Author:** ![rudy.hinojosa](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/rudy.hinojosa/32/24756_2.png) [@rudy.hinojosa](https://forum.virtualmin.com/u/rudy.hinojosa)\
**Post date:** [October 10, 2026, 2:19pm UTC](https://forum.virtualmin.com/t/issue-with-containers-not-restarting-after-a-reboot/138114/9 "2026-10-10T14:19:15Z")

</div>

Can I just upgrade to the latest Ubuntu? Is there any documentation for post upgrades?

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [October 10, 2026, 3:53pm UTC](https://forum.virtualmin.com/t/issue-with-containers-not-restarting-after-a-reboot/138114/10 "2026-10-10T15:53:56Z")

</div>

This question is best addressed by your Linux distribution’s support team or official Ubuntu upgrade documentation.

---

<div class="post-metadata">

**Author:** ![rudy.hinojosa](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/rudy.hinojosa/32/24756_2.png) [@rudy.hinojosa](https://forum.virtualmin.com/u/rudy.hinojosa)\
**Post date:** [October 10, 2026, 4:01pm UTC](https://forum.virtualmin.com/t/issue-with-containers-not-restarting-after-a-reboot/138114/11 "2026-10-10T16:01:40Z")

</div>

Loosely translated, it’s a PITA. lol all good. thanks.
