[qubes-users] Disposable sys-net >> wifi login

Hello,

I switches my setup and I am using static disposable VMs for sys-usb and sys-firewall (Based on an own template which has been cloned from a fedora-33-minimal template + the bare minimal packages).

I also would like to make my sys-net a disposable VM but without the hazzle to enter my wifi credentials each time when I am connecting to the wifi network.

Is there a way to initiate a wifi connection via dom0 and passing the credentials for the wifi network?
qvm-run --pass-io --auto sys-net ‘command1 && commands && […] command n’ with passing credentials via piping from Dom0 ?
Basically I am looking how I can initiate a new wifi connection from the CLI.
If I know this, I can combine a script myself which will pass the relevant information from Dom0 to the sys-net.

And one more question:
Wouldn’t it be much better if we always use disposable.sys-Vms when this is possible?

Kind regards

one7two99

799:

I also would like to make my sys-net a disposable VM but without the hazzle
to enter my wifi credentials each time when I am connecting to the wifi
network.

There's this from a recent thread: [qubes-users] Re: disposable sys-net and wifi password management.

Is there a way to initiate a wifi connection via dom0 and passing the
credentials for the wifi network?
qvm-run --pass-io --auto sys-net 'command1 && commands && [...] command n'
with passing credentials via piping from Dom0 ?
Basically I am looking how I can initiate a new wifi connection from the
CLI.

Possibly an nmcli command run in the disposable template could do that?

'awokd' via qubes-users:

Possibly an nmcli command run in the disposable template could do that?

Disposable sys-net, I mean.

Hi one7two99,

there is another way.

Your sys-net is a named disposable VM, which is based on an AppVM that has the "template_for_dispvm" property set true. This AppVM is in turn based on your fedora-33-minimal clone.

The reason you have an AppVM as template for disposable VMs is the ability to do customization. So here is what I do:

AppVM:

1) set virt_mode to 'hvm'
2) attach wifi via qvm-pci
3) launch
4) connect to wifi (this will safe the password)
5) shutdown
6) detach wifi
7) set virt_mode to 'pvh'

sys-net:

1) attach the wifi again
2) start

... from now on your sys-net will automatically connect to your Wifi. I do this for my home wifi and my hotspot.

/Sven

Hello,


nmcli device wifi list # scanning wifi

nmcli device wifi connect <SSID> password <WIFI PASSWORD> # example nmcli device wifi connect 51lieal password one7two99

super helpful, exactly what I was looking for.

One7two99

1 Like

Hello one7two99

It’s possible currently i’m using fedora-34 DispVMs on sys-net, what you have to do :


nmcli device wifi list # scanning wifi

nmcli device wifi connect <SSID> password <WIFI PASSWORD> # example nmcli device wifi connect 51lieal password one7two99

i dont like many icon on my panel so i did hide nmcli-applet.

– You received this message because you are subscribed to the Google Groups “qubes-users” group. To unsubscribe from this group and stop receiving emails from it, send an email to . To view this discussion on the web visit .