Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.