I have installed mullvad-vpn from a rpm package in the Fedora template vm.
The application works fine in the appvm associated with the template but its settings are not persistent between the appvm reboots. Is there a solution?
Store the settings in /rw, (which includes /home and /usr/local) which is not reset on reboot.
Or use bind-dirs
to make files from / which would normally be reset,
persistent.
https://www.qubes-os.org/doc/bind/dirs
- Open Terminal in the appVM where you have installed Mullvad VPN.
- Type the following command to create a new Mullvad VPN configuration file:
sudo touch /rw/config/mullvad-vpn.conf
- Open the Mullvad VPN configuration file using your preferred text editor:
sudo nano /rw/config/mullvad-vpn.conf
- Copy and paste the Mullvad VPN settings from the original configuration file, which is located in the Fedora template VM at the following path:
/etc/mullvad-vpn/mullvad-vpn.conf
- Save and close the configuration file.
- Type the following command to make the configuration file persistent:
sudo qvm-service --add mullvad-vpn --opts config=/rw/config/mullvad-vpn.conf
- Reboot the appVM to ensure that the changes take effect.
After following these steps, your Mullvad VPN settings should be persistent between appVM reboots.
At point 1. you said that you should be working in the appVM where you
had installed Mullvad VPN, but now you refer to a “Fedora template VM”.
That’s quite confusing.
This looks like nonsense.
qvm-service
is a dom0 application, not available in an appVM.
It doesn’t have an --add
option, and it doesn’t support use of --opts
like that. I don’t know what you were thinking of.
No one will be able to follow these steps, and they certainly wont result in
VPN settings becoming persistent.
They are simply confused.