Can't replace default-mgmt-dvm

I am trying to replace the “default-mgmt-dvm” VM with a fedora 38 based minimal VM without success.

When I try to run on the dom0 terminal the command:
qubes-prefs management_dispvm new-mgmt-dvm
I get the error:
qvm-prefs: error: no such domain: 'management_dispvm’”

I found the command both on the forum and on the documentation of Qubes OS.

To create the VM I performed these steps:
qvm-run --pass-io -u root fed-38-mgmt “dnf update && dnf upgrade --y”
qvm-shutdown --wait fed-38-mgmt
qvm-prefs fed-38-mgmt memory 400
qvm-prefs fed-38-mgmt maxmem 0
qvm-shutdown --wait fed-38-mgmt
qvm-run --pass-io -u root fed-38-mgmt “sudo dnf install qubes-core-agent-passwordless-root qubes-mgmt-salt-vm-connector -y”
qvm-shutdown --wait fed-38-mgmt
qvm-create new-mgmt-dvm --template fed-38-mgmt --label black
qvm-prefs new-mgmt-dvm netvm None
qvm-prefs new-mgmt-dvm template_for_dispvms True
qubes-prefs management_dispvm new-mgmt-dvm

What am I doing wrong?

Looks like you ran " qvm-prefs management_dispvm new-mgmt-dvm " instead of " qubes-prefs management_dispvm new-mgmt-dvm " on the last line. :smile: At least the error you posted says so…

1 Like

And btw, there are minor inconsistencies in the commands you ran, nothing important but still:

  • second occurrence of “qvm-shutdown --wait fed-38-mgmt” is not needed
  • don’t need to run " sudo dnf… " when you’re already root (6th command)

But I’m pedantic.

1 Like