Fix the default url of get_xml function.

Related to issue #6764, this a minor patch on `virt` module. This enables a user to configure uri in get_xml function.