HCL - HP EliteBook 840 G6

This error that you saw in the Initial Setup:

Exception: Qubes initial configuration failed. Login to the system and check /var/log/salt/minion for details. You can retry configuration by calling ‘sudo qubesctl --all state.highstate’ in dom0 (you will get detailed state there).

Was related to these errors:

Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]: ----------
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:           ID: qvm-appmenus --get-default-whitelist debian-12-xfce | grep -i 'firefox\|term' | qvm-appmenus --set-whitelist=- --update default-dvm
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:     Function: cmd.run
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:       Result: False
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:      Comment: Command "qvm-appmenus --get-default-whitelist debian-12-xfce | grep -i 'firefox\|term' | qvm-appmenus --set-whitelist=- --update default-dvm" run
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:      Started: 00:21:04.355834
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:     Duration: 464.03 ms
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:      Changes:
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:               ----------
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:               pid:
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                   11238
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:               retcode:
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                   2
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:               stderr:
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                   usage: qvm-appmenus [--verbose] [--quiet] [--force-root] [--help] [--init]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [--create] [--remove] [--update] [--get-available]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [--get-whitelist]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [--set-whitelist PATH | --set-default-whitelist PATH]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [--get-default-whitelist] [--source SOURCE] [--force]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [--i-understand-format-is-unstable] [--file-field FIELDS]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [--template TEMPLATE] [--all]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [VMNAME ...]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                   qvm-appmenus: error: refusing to run as root; add --force-root to override
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                   usage: qvm-appmenus [--verbose] [--quiet] [--force-root] [--help] [--init]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [--create] [--remove] [--update] [--get-available]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [--get-whitelist]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [--set-whitelist PATH | --set-default-whitelist PATH]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [--get-default-whitelist] [--source SOURCE] [--force]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [--i-understand-format-is-unstable] [--file-field FIELDS]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [--template TEMPLATE] [--all]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [VMNAME ...]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                   qvm-appmenus: error: refusing to run as root; add --force-root to override
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:               stdout:
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]: ----------
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:           ID: qvm-appmenus --update whonix-workstation-17-dvm
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:     Function: cmd.run
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:       Result: False
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:      Comment: Command "qvm-appmenus --update whonix-workstation-17-dvm" run
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:      Started: 00:21:12.986649
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:     Duration: 410.16 ms
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:      Changes:
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:               ----------
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:               pid:
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                   12919
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:               retcode:
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                   2
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:               stderr:
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                   usage: qvm-appmenus [--verbose] [--quiet] [--force-root] [--help] [--init]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [--create] [--remove] [--update] [--get-available]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [--get-whitelist]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [--set-whitelist PATH | --set-default-whitelist PATH]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [--get-default-whitelist] [--source SOURCE] [--force]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [--i-understand-format-is-unstable] [--file-field FIELDS]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [--template TEMPLATE] [--all]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                                       [VMNAME ...]
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:                   qvm-appmenus: error: refusing to run as root; add --force-root to override
Sep 26 00:21:32 dom0 org.fedoraproject.Anaconda.Addons.QubesInitialSetup[3343]:               stdout:

It failed to update the appmenus for you disposable templates using qvm-appmenus --update command.
It failed because it couldn’t start these disposable templates, because sys-net failed to start.
You can try to manually run the failed commands in dom0 terminal to fix it after you fix your sys-net problem:

qvm-appmenus --get-default-whitelist debian-12-xfce | grep -i 'firefox\|term' | qvm-appmenus --set-whitelist=- --update default-dvm
qvm-appmenus --update whonix-workstation-17-dvm

These are the actual errors that prevent from using Qubes OS, but they are not caused by the error during Initial Setup.
You can fix it like this:
PCI troubleshooting — Qubes OS Documentation

2 Likes

Yeah, I saw that in the troubleshooting section. I was going to ask if I could just ignore the other problems, try to sort out the sys-net issue and once that’s sorted, then just make the disposable and appVMs myself. But I typed alot and didn’t wanna overwhelm haha :grimacing:

Thanks as always Mellow

I’ll test it a bit later and report back

Edit 1: Phew! Okay, I got it working. You were right Mellow. I used the method you mentioned and it got my sys-net working.

I was all able to run the other commands that you mentioned and have no issues.

I only had to use the following instructions to get it working:

On my machine, the chipset USB controller (00:14.0) was somehow assigned to both sys-net and sys-usb. Of course that’s a big no-no. I don’t know how or why this happened, but I’m posting about how I fixed it in-case anyone else has a similar problem.I fixed it by detaching it from sys-net and re-attaching it to sys-usb only:

qvm-pci detach sys-net dom0:00_14.0 qvm-pci attach --persistent --option no-strict-reset=true sys-usb dom0:00_14.0

1 Like