On different servers I'm using virsh to manage openvz containers or KVM guests.

No I have a server with both, KVM and openvz installed and would like to controll both with virsh.

I can't figure out how to 'switch' between openvz and KVM. Currently (maybe because I first installed openvz)

# virsh list

only displays my vz containers.

Any hints?

1 Answer 1


Choose which hypervisor to connect to with the -c option.

For instance for KVM:

virsh -c qemu:///system list

And for openvz:

virsh -c opencz:///system list
  • Thank you very much! I added the second option just to be complete :)
    – Jens
    Sep 5, 2012 at 20:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.