Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 2 down vote accepted

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
share|improve this answer
Thank you very much! I added the second option just to be complete :) – Jens Sep 5 '12 at 20:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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