Support different libvirt types

Change-Id: I86b0b4a8b4f1e3b4d7babed3394ce79e32bd7549