If the guest domain is something like "#" then the usual command: virt-ls # fails because the shell thinks that # is a comment. The documentation for all libguestfs tools should describe how to quote parameters to defend them from the shell (this comes from a customer request).
Patch posted upstream: https://www.redhat.com/archives/libguestfs/2010-October/msg00030.html