Does installing things with sudo affect my template and therefore all VMs that use this template?

21 views
Skip to first unread message

Guerlan

unread,
Oct 11, 2019, 2:16:49 PM10/11/19
to qubes-users
The root folder is shared, only the /home is unique for each VM. Does that mean that is I instal anything with sudo in one VM, it will affect the template and therefore all other VMs?

Steve Coleman

unread,
Oct 11, 2019, 5:04:15 PM10/11/19
to Guerlan, qubes-users
When you install software in /usr or /opt in the template VM it will be
visible in all the user VM's that use that template. The settings to
automatically launch daemon processes may need to be enabled for each
AppVM depending on both yours and the particular software package
requirements. You may not necessarily need a cron job or a daemon to run
in every AppVM instance, for example.

If you instead install software in the AppVM's /home/user/* or
/usr/local/* (basically any directory automatically remapped from the
private volume /rw/* ), then the software will be available only within
that single AppVM.

Where it makes sense to install a particular third-party software
package depends highly on what that specific software needs in order to
function properly. If the software is installed locally in /usr/local
but then still wants its configuration files to be in /etc, or needs
cron, then you may need to work around that specific problem with either
copying the configuration file separately into the template VM /etc, or
else using some magic scripting during the AppVM startup to copy the
config file into the right location before the software that needs it is
actually started. There is usually a workaround that will get the job
done, but you may need to learn a bit more about how each software
package works than you normally would on some other less secure system.

Guerlan

unread,
Oct 11, 2019, 5:47:14 PM10/11/19
to qubes-users
I installed some drivers on a sys-net-2 VM. Does that men they are installed on the template then?

Claudia

unread,
Oct 11, 2019, 6:37:44 PM10/11/19
to qubes...@googlegroups.com
Guerlan:
> I installed some drivers on a sys-net-2 VM. Does that men they are
> installed on the template then?

No. Probably not. The root directory is shared, but only for reading.
Any changes are visible only within that VM, and are lost on reboot.
Exceptions are anything mapped to /rw (e.g. /home/user and /usr/local).

If you want to install something permanently, without affecting other
VMs, the simplest way is to create a StandaloneVM. Alternatively, you
can clone the TemplateVM and install your package in it, then create an
AppVM using the new TemplateVM.

https://www.qubes-os.org/doc/software-update-domu/

-------------------------------------------------
This free account was provided by VFEmail.net - report spam to ab...@vfemail.net

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!

Guerlan

unread,
Oct 11, 2019, 9:58:09 PM10/11/19
to qubes-users
thanks, that explains why I needed to install gnome-disks every time I plugged a disk. I wondered why it didn t stay
Reply all
Reply to author
Forward
0 new messages