The xm command and manaully editing the /etc/xen configuration files should never be done. This practice is difficult and much harder than using virsh or virt-manager. Update all usages of xm with virsh replacements.