Background: I want to restart a VM from a dom0 command line instead of via the Qubes Manager GUI. I was surprised to find that qvm-restart doesn’t exist. But since qvm-shutdown and qvm-start exist, I figured I could just chain those together. But if VM I want to restart is connected to other VMs (e.g. sys-firewall), qvm-shutdown gives an error. I could use qvm-kill or qvm-shutdown --force but those options seem excessive… Since I can restart any VM via the Qubes Manager GUI, I suspect there is a more elegant way.
What is the chain of commands that the Qubes Manager GUI uses to restart a VM?