After reboot wifi password forgotten

You can do that much easier. All you have to do is to train the AppVM that serves as a template for your sys-net. So let’s say your disposable sys-net is based on fedora-34-dvm which in turn is based on fedora-34.

  1. shutdown all qubes
  2. change virt_mode of fedora-dvm to hvm temporarily
  3. make sure the provides_network of fedora-dvm is true
  4. add the WiFi PCI device to fedora-dvm
  5. run fedora-dvm with qvm-start fedora-dvm
  6. once it started you’ll see the network manager icon in the tray; now train it the passwords you like it to know by connecting to those networks (e.g. home and phone hotspot)
  7. shutdown fedora-dvm
  8. remove the PCI device and undo the provides_network and virt_mode changes

Next time you start your sys-net, it will know the passwords for those networks because they are now stored in the AppVM/disposable template that is the template for it.

2 Likes