Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upNetwork manager/applet on fedora-24 templates now has issues when saving connections #2584
Comments
andrewdavidwong
added
bug
C: Fedora
labels
Jan 15, 2017
andrewdavidwong
added this to the Release 3.2 updates milestone
Jan 15, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
tasket
Feb 6, 2017
After it undergoes a significant upgrade, NM sometimes has issues with config schemas produced by older versions. A different issue I had with NM not seeing config changes was resolved by wiping the config to start anew; I did this by creating a new netvm.
tasket
commented
Feb 6, 2017
|
After it undergoes a significant upgrade, NM sometimes has issues with config schemas produced by older versions. A different issue I had with NM not seeing config changes was resolved by wiping the config to start anew; I did this by creating a new netvm. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Do you have old and new configs for comparing? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
tonsimple
commented
Feb 6, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
tonsimple
commented
Feb 7, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
tasket
Feb 7, 2017
@tonsimple
FWIW, I have been using NM 1.4 for a while now and it works fine. This is the version in Debian 9 and Fedora 25, so I'm thinking upgrading your template to fedora 25 might be a workaround.
tasket
commented
Feb 7, 2017
|
@tonsimple |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dmoerner
Feb 15, 2017
Hm, I am also hitting this bug on a fresh install of Qubes with Fedora 24 templates. One of my wifi passwords (wpa-psk) has been stored, another (WPA2 Enterprise with PEAP) has not.
I see a number of people claiming on the internet (https://wiki.archlinux.org/index.php/NetworkManager#Using_Gnome-Keyring) that network-manager stores passwords in gnome-keyring if they are only made available to one user, and in /etc/NetworkManager/system-connections (symlink to /rw/config/NM-system-connections on Qubes) if they are made available to all users.
That workaround doesn't work for me: The password that is stored, and saved in system-connections, is only available for this user. And if I change the settings for the other network that is not stored such that it is made available for all users, it still isn't stored.
Still, even if that workaround isn't correct, it does seem like the problem is most likely that gnome-keyring is sometimes being used to store passwords, and this is not being saved anywhere to persist through VM restarts.
dmoerner
commented
Feb 15, 2017
|
Hm, I am also hitting this bug on a fresh install of Qubes with Fedora 24 templates. One of my wifi passwords (wpa-psk) has been stored, another (WPA2 Enterprise with PEAP) has not. I see a number of people claiming on the internet (https://wiki.archlinux.org/index.php/NetworkManager#Using_Gnome-Keyring) that network-manager stores passwords in gnome-keyring if they are only made available to one user, and in /etc/NetworkManager/system-connections (symlink to /rw/config/NM-system-connections on Qubes) if they are made available to all users. That workaround doesn't work for me: The password that is stored, and saved in system-connections, is only available for this user. And if I change the settings for the other network that is not stored such that it is made available for all users, it still isn't stored. Still, even if that workaround isn't correct, it does seem like the problem is most likely that gnome-keyring is sometimes being used to store passwords, and this is not being saved anywhere to persist through VM restarts. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
thargoid0815
Feb 21, 2017
It's a glitch in the NetworkManager configuration.
In the TemplateVMs (fedora-24, fedora-25) change
/etc/NetworkManager/NetworkManager.conf and add the 'keyfile' plugin, e.g.:
[main]
plugins=ifbt,keyfile
The changes have to be made to the TemplateVM on which sys-net is based on.
thargoid0815
commented
Feb 21, 2017
|
It's a glitch in the NetworkManager configuration. In the TemplateVMs (fedora-24, fedora-25) change The changes have to be made to the TemplateVM on which sys-net is based on. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dmoerner
commented
Feb 21, 2017
|
Thank you, @thargoid0815. That fixed the problem for me. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Feb 21, 2017
Member
Thanks @thargoid0815 for debugging this. I guess it works on fedora-23 template upgraded to fedora-24 (or later). There is already a script to make this change in /etc/NetworkManager/NetworkManager.conf, but it assume that plugins option is there, while in fedora-24, it is commented out by default... Also, last time I've checked, it wasn't possible to specify plugins in /etc/NetworkManager/conf.d/*.conf - the setting was silently ignored.
|
Thanks @thargoid0815 for debugging this. I guess it works on fedora-23 template upgraded to fedora-24 (or later). There is already a script to make this change in |
andrewdavidwong
referenced this issue
Mar 21, 2017
Closed
NetworkManager forgets connections upon reboot of NetVM #2719
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dmoerner
commented
Mar 28, 2017
|
PR with proposed fix: QubesOS/qubes-core-agent-linux#45 |
tonsimple commentedJan 15, 2017
•
edited
Edited 1 time
-
tonsimple
edited Jan 15, 2017 (most recent)
Qubes OS version (e.g.,
R3.2):R 3.2
Affected TemplateVMs (e.g.,
fedora-23, if applicable):Fedora-24 after all updates are applied (does not happen if reinstalled and NOT updated)
Expected behavior:
When a Wi Fi connection is added, it is saved across VM reboots
Actual behavior:
VM reboot wipes out wifi connections
No files are added in /rw/config/NM-system-connections
Steps to reproduce the behavior:
Install a fresh fedora-24 template, and apply all updates.
Shut down the template.
Use it with a netvm (I'm bound to using fedora because building driver module for debian-8 right now is too much pain)
Connect to a wifi network or add it manually via edit connection interface
Try editing the newly created connection.
Save all changes.
Reboot Net-VM
At this point I observe loss of saved connection (network manager can't save connections for some reason)
ADDITIONAL INFORMATION: if the file for the connection was already present in /rw/config/NM-system-connections (I've created some wifi connections on this machine before issue arose) then changes done DO get saved in it.
General notes:
So far I'm working around by manually creating wifi connections in /rw/config/NM-system-connections (fortunately I had a couple connections there before this issue arose, so I can use those files as "templates") via "sudo gedit", copy-paste from existing connection files, and manual tweaking.
P.S.: I have tried restoring netvm from backup (delete netvm manually, then restore from backup) and the issue persists as long as "fully updated" fedora-24 template is used.
Related issues: