Skip to main content
2 of 2
Minor formatting
AdminBee
  • 23.6k
  • 25
  • 56
  • 77

Remove the file ~/.selected_editor, and virsh will prompt you for the editor to use. Probably, that's the one in /root, since one needs admin privilege to use virsh.