Should VMs be manually updated via their package manager? #3480
-
Currently I have a VM using the It is not clear to me if I should be manually running I ask namely because I haven't seen any mention of this in any documentation. Also, when I ran Snippet of running
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
A: Yes you should, they should be updated like any other virtual machine. Either manually with something like There is also a flag to update the instance automatically, before taking it online. # Upgrade the instance on boot
# Reboot after upgrade if required
# 🟢 Builtin default: false
upgradePackages: null https://docs.fedoraproject.org/en-US/quick-docs/autoupdates/
WSL is using system containers, not virtual machines, so that is why they all share a kernel (with the actual Linux VM...) However, Lima containers (nerdctl/docker/podman) are typically not updated "inside" but "outside"*. See also: https://it20.info/2012/12/vcloud-openstack-pets-and-cattle/ for another analogy, you can choose "mode" * But if you were to run Normally you would start from another snapshot of your base image, with the packages already updated in it. PS. Normally "update" refers to refreshing the package list, while "upgrade" actually installs them. But |
Beta Was this translation helpful? Give feedback.
-
I started with some "toolbox" experiments, in order to try out WSL-style "distribution" containers. You might find it interesting (or not): It builds a custom container for you, which you can then use more like a pet (to carry your tools). |
Beta Was this translation helpful? Give feedback.
A: Yes you should, they should be updated like any other virtual machine.
Either manually with something like
dnf update
or automatically by a service...The commands vary between the distributions, so that is part of the reason why.
There is also a flag to update the instance automatically, before taking it online.
https://docs.fedoraproject.org/en-US/quick-docs/autoupdates/