[HOME] [DOWNLOAD] [DOCS] [NEWS] [SUPPORT] [TIPS] [ISSUES] [CONTRIBUTE] [DONATE]

I get an error when creating qvm.anon-whonix

After command sudo qubesctl state.sls qvm.anon-whonix I get this error:

[ERROR   ] ====== ['present'] ======
qvm.create: error: the following arguments are required: vmname

====== ['prefs'] ======
[SKIP] Skipping due to previous failure!

====== ['features'] ======
[SKIP] Skipping due to previous failure!
[ERROR   ] Command 'echo' failed with return code: 2
[ERROR   ] stderr: usage: qvm-appmenus [--verbose] [--quiet] [--force-root] [--help] [--init]
                    [--create] [--remove] [--update] [--get-available]
                    [--get-whitelist]
                    [--set-whitelist PATH | --set-default-whitelist PATH]
                    [--source SOURCE] [--force]
                    [--i-understand-format-is-unstable] [--file-field FIELDS]
                    [--template TEMPLATE] [--all]
                    [VMNAME [VMNAME ...]]
qvm-appmenus: error: unrecognized arguments: -dvm
[ERROR   ] retcode: 2
[ERROR   ] {'pid': 35746, 'retcode': 2, 'stdout': '', 'stderr': 'usage: qvm-appmenus [--verbose] [--quiet] [--force-root] [--help] [--init]\n                    [--create] [--remove] [--update] [--get-available]\n                    [--get-whitelist]\n                    [--set-whitelist PATH | --set-default-whitelist PATH]\n                    [--source SOURCE] [--force]\n                    [--i-understand-format-is-unstable] [--file-field FIELDS]\n                    [--template TEMPLATE] [--all]\n                    [VMNAME [VMNAME ...]]\nqvm-appmenus: error: unrecognized arguments: -dvm'}

Full log:

$ sudo qubesctl state.sls qvm.anon-whonix
[ERROR   ] ====== ['present'] ======
qvm.create: error: the following arguments are required: vmname

====== ['prefs'] ======
[SKIP] Skipping due to previous failure!

====== ['features'] ======
[SKIP] Skipping due to previous failure!
[ERROR   ] Command 'echo' failed with return code: 2
[ERROR   ] stderr: usage: qvm-appmenus [--verbose] [--quiet] [--force-root] [--help] [--init]
                    [--create] [--remove] [--update] [--get-available]
                    [--get-whitelist]
                    [--set-whitelist PATH | --set-default-whitelist PATH]
                    [--source SOURCE] [--force]
                    [--i-understand-format-is-unstable] [--file-field FIELDS]
                    [--template TEMPLATE] [--all]
                    [VMNAME [VMNAME ...]]
qvm-appmenus: error: unrecognized arguments: -dvm
[ERROR   ] retcode: 2
[ERROR   ] {'pid': 35746, 'retcode': 2, 'stdout': '', 'stderr': 'usage: qvm-appmenus [--verbose] [--quiet] [--force-root] [--help] [--init]\n                    [--create] [--remove] [--update] [--get-available]\n                    [--get-whitelist]\n                    [--set-whitelist PATH | --set-default-whitelist PATH]\n                    [--source SOURCE] [--force]\n                    [--i-understand-format-is-unstable] [--file-field FIELDS]\n                    [--template TEMPLATE] [--all]\n                    [VMNAME [VMNAME ...]]\nqvm-appmenus: error: unrecognized arguments: -dvm'}
local:
----------
          ID: template-whonix-ws-16
    Function: qvm.template_installed
        Name: whonix-ws-16
      Result: True
     Comment: Template whonix-ws-16 version 4.0.6 already installed
     Started: 21:43:05.363456
    Duration: 212.197 ms
     Changes:   
----------
          ID: whonix-ws-tag
    Function: qvm.vm
        Name: whonix-ws-16
      Result: True
     Comment: ====== ['features'] ======
              [SKIP] Feature already in desired state: ENABLE 'whonix-ws' = Enabled
              
              ====== ['tags'] ======
              [SKIP] All requested tags already set: audiovm-dom0,created-by-dom0,guivm-dom0,whonix-updatevm
     Started: 21:43:05.576047
    Duration: 136.046 ms
     Changes:   
----------
          ID: whonix-ws-update-policy
    Function: file.prepend
        Name: /etc/qubes-rpc/policy/qubes.UpdatesProxy
      Result: True
     Comment: Prepended 2 lines
     Started: 21:43:05.716662
    Duration: 13.888 ms
     Changes:   
              ----------
              diff:
                  --- 
                  +++ 
                  @@ -0,0 +1,2 @@
                  +$tag:whonix-updatevm $default allow,target=sys-whonix
                  +$tag:whonix-updatevm $anyvm deny
----------
          ID: whonix-get-date-policy
    Function: file.prepend
        Name: /etc/qubes-rpc/policy/qubes.GetDate
      Result: True
     Comment: Prepended 1 lines
     Started: 21:43:05.730672
    Duration: 2.468 ms
     Changes:   
              ----------
              diff:
                  --- 
                  +++ 
                  @@ -0,0 +1 @@
                  +$tag:anon-vm $anyvm deny
----------
          ID: template-whonix-gw-16
    Function: qvm.template_installed
        Name: whonix-gw-16
      Result: True
     Comment: Template whonix-gw-16 version 4.0.6 already installed
     Started: 21:43:05.733249
    Duration: 131.456 ms
     Changes:   
----------
          ID: whonix-gw-tag
    Function: qvm.vm
        Name: whonix-gw-16
      Result: True
     Comment: ====== ['features'] ======
              [SKIP] Feature already in desired state: ENABLE 'whonix-gw' = Enabled
              
              ====== ['tags'] ======
              [SKIP] All requested tags already set: audiovm-dom0,created-by-dom0,guivm-dom0,whonix-updatevm
     Started: 21:43:05.865095
    Duration: 135.02 ms
     Changes:   
----------
          ID: whonix-gw-update-policy
    Function: file.prepend
        Name: /etc/qubes-rpc/policy/qubes.UpdatesProxy
      Result: True
     Comment: File /etc/qubes-rpc/policy/qubes.UpdatesProxy is in correct state
     Started: 21:43:06.000231
    Duration: 2.114 ms
     Changes:   
----------
          ID: -dvm
    Function: qvm.vm
      Result: False
     Comment: ====== ['present'] ======
              qvm.create: error: the following arguments are required: vmname
              
              ====== ['prefs'] ======
              [SKIP] Skipping due to previous failure!
              
              ====== ['features'] ======
              [SKIP] Skipping due to previous failure!
     Started: 21:43:06.002426
    Duration: 14.097 ms
     Changes:   
----------
          ID: echo -e 'firefox.desktop\nxterm.desktop' | qvm-appmenus --set-whitelist=- --update -dvm
    Function: cmd.run
      Result: False
     Comment: Command "echo -e 'firefox.desktop\nxterm.desktop' | qvm-appmenus --set-whitelist=- --update -dvm" run
     Started: 21:43:06.018371
    Duration: 298.468 ms
     Changes:   
              ----------
              pid:
                  35746
              retcode:
                  2
              stderr:
                  usage: qvm-appmenus [--verbose] [--quiet] [--force-root] [--help] [--init]
                                      [--create] [--remove] [--update] [--get-available]
                                      [--get-whitelist]
                                      [--set-whitelist PATH | --set-default-whitelist PATH]
                                      [--source SOURCE] [--force]
                                      [--i-understand-format-is-unstable] [--file-field FIELDS]
                                      [--template TEMPLATE] [--all]
                                      [VMNAME [VMNAME ...]]
                  qvm-appmenus: error: unrecognized arguments: -dvm
              stdout:
----------
          ID: sys-net
    Function: qvm.exists
      Result: True
     Comment: /usr/bin/qvm-check sys-net None
     Started: 21:43:06.317223
    Duration: 150.434 ms
     Changes:   
----------
          ID: sys-firewall
    Function: qvm.exists
      Result: True
     Comment: /usr/bin/qvm-check sys-firewall None
     Started: 21:43:06.468026
    Duration: 142.219 ms
     Changes:   
----------
          ID: sys-whonix
    Function: qvm.vm
      Result: True
     Comment: ====== ['present'] ======
              /usr/bin/qvm-create sys-whonix --class=AppVM --template=whonix-gw-16 --label=black --property=memory=500 
              
              ====== ['prefs'] ======
     Started: 21:43:06.611285
    Duration: 2263.113 ms
     Changes:   
              ----------
              qvm.prefs:
                  ----------
                  qvm.create:
                      ----------
                      autostart:
                          ----------
                          new:
                              True
                          old:
                              *default*
                      netvm:
                          ----------
                          new:
                              sys-firewall
                          old:
                              *default*
                      provides_network:
                          ----------
                          new:
                              True
                          old:
                              *default*
----------
          ID: whonix-ws-16-dvm
    Function: qvm.vm
      Result: True
     Comment: ====== ['present'] ======
              /usr/bin/qvm-create whonix-ws-16-dvm --class=AppVM --template=whonix-ws-16 --label=red 
              
              ====== ['prefs'] ======
              [SKIP] default_dispvm     : whonix-ws-16-dvm
              [SKIP] netvm              : sys-whonix
              
              ====== ['features'] ======
              
              
              ====== ['tags'] ======
              [SKIP] All requested tags already set: anon-vm,audiovm-dom0,created-by-dom0,guivm-dom0
     Started: 21:43:08.875419
    Duration: 1708.815 ms
     Changes:   
              ----------
              qvm.features:
                  ----------
                  qvm.features:
                      ----------
                      appmenus-dispvm:
                          ----------
                          new:
                              1
                          old:
                              None
              qvm.prefs:
                  ----------
                  qvm.create:
                      ----------
                      template_for_dispvms:
                          ----------
                          new:
                              True
                          old:
                              *default*
----------
          ID: qvm-appmenus --update whonix-ws-16-dvm
    Function: cmd.run
      Result: True
     Comment: Command "qvm-appmenus --update whonix-ws-16-dvm" run
     Started: 21:43:10.584545
    Duration: 579.586 ms
     Changes:   
              ----------
              pid:
                  36622
              retcode:
                  0
              stderr:
                  whonix-ws-16-dvm: Creating appmenus
              stdout:
----------
          ID: anon-whonix
    Function: qvm.vm
      Result: True
     Comment: ====== ['present'] ======
              /usr/bin/qvm-create anon-whonix --class=AppVM --template=whonix-ws-16 --label=red 
              
              ====== ['prefs'] ======
              [SKIP] default_dispvm     : whonix-ws-16-dvm
              [SKIP] netvm              : sys-whonix
              
              ====== ['tags'] ======
              [SKIP] All requested tags already set: anon-vm,audiovm-dom0,created-by-dom0,guivm-dom0
     Started: 21:43:11.164843
    Duration: 1554.394 ms
     Changes:   

Summary for local
-------------
Succeeded: 13 (changed=6)
Failed:     2
-------------
Total states run:     15
Total run time:    7.344 s
DOM0 configuration failed, not continuing

At a cursory check, everything seems to be working, the templates have been created and are working.
Qubes OS version 4.1.1
What is the reason for this error? What are my next steps to fix?

This is a Qubes issue. Needs to be reported against Qubes. As per:

[Imprint] [Privacy Policy] [Cookie Policy] [Terms of Use] [E-Sign Consent] [DMCA] [Contributors] [Investors] [Priority Support] [Professional Support]