VirshPersistent is a higher-level class than VirshSession, and we should use it in test script as possible. There is a PR for enhancement for readonly. https://github.com/autotest/virt-test/pull/1391

```
vp = virsh.VirshPersistent(readonly=True)
vp.command("cd /")
vp.command("pwd")
...
```