NetworkManager (and Applet) not showing in sys-net

Hi,

I have a wird behaviour on my r42. Sys-net is starting and working fine, but I cannot start any X based applications in sys-net, including and most annoying NetworkManager and NetworkManager Applet. I could live without the xfce terminal by using the console, but without NetworkManager it’s complicated. Any ideal?

Kind regards

Jan

Hi

This sounds like something is broken either in the qube rc.local or in the template.

What if you make a qube using the same template used by sys-net, does it work correctly?

Is sys-net a disposable qube?

Can you check whether the GUI apps are running or if they just aren’t showing?

In sys-net, run:

$ nm-applet & disown
$ ps -aux | grep nm-applet

and share the output of the last command?

It’s based on fedora-39-xfce like many other qubes, that work well.

I’m new to qubes, but as far as I can see its not based on a disposable template, so I assume its not disposable.

In dom0 I dont have nm-applet.

In sys-net I get after the disown: (nm-applet:#####) GTK-Warning: cannot open display :0

You could try to change its Template to Debian or recreate the sys-net manually.

I would try recreating sys-net manually like @fsflover said. It’s a problem with the display which could very well be more complicated to fix than just recreating and manually reconfiguring.

Can you check if you modified /home/user/.profile or /home/user/.bashrc with something special?

No, I did’nt change anything there

Rebuilding sys-net helped. It didn’t solve the problem, but uncovered it’s root.

My sys-net has to run in hvm as the network cars are PCI and PCI passthrough requires hvm. But when I switch the qube to hvm it cannot connect to.the X Server anymore.

So I have the Option of having a working sys-net where I cannot access NetworkManager or when I can access NetworkManager I cannot use my PCI network cards :see_no_evil:

Any ideal how to solve the issue?

Kind regards Jan

It is not right that you don’t have GUI and even applet. You should have them HVM or not as long as qubes integration is working correctly. How did you rebuild your sys-net?

I just crated a new qube from the template and Set “provides network”. Inhalt gui in pvr and network with the PCI attached in hvm :man_shrugging:t4:

I’m pretty sure it’s not intended this way, but what can I do to change the behavior.

Kind regards Jan

In dom0

sudo qubesctl state.sls qvm.sys-net

Sounds to me like the template got seriously messed up. I would try a different template, the best options being a brand new Fedora 40 or Debian 12 template, freshly installed (If you are using both and their XFCE counterparts, then try renaming one if you can and then reinstalling it from the template manager).

If a fresh template doesn’t work, there’s something missing from the picture. The simplest solution then would be to reinstall, or ask someone who knows more than me :slight_smile:

You can try to troubleshoot GUI.

If it turns out that something is wrong with qubes-gui-agent, making sys-net from a fresh template (with working GUI) may just solve the issue.

1 Like

Looks fine to me:
local:

      ID: sys-net
Function: qvm.exists
  Result: True
 Comment: /usr/bin/qvm-check sys-net None
 Started: 15:25:06.096370
Duration: 247.827 ms
 Changes:   

Summary for local

Succeeded: 1
Failed: 0

Total states run: 1
Total run time: 247.827 ms

The machine is a new NV41, where I did not really change a lot so far. I already contacted their support. I still hope there is a solotion, that does not require a reinstall.