[libvirt-users] ruby-libvirt equiv of virsh list --all

Mick Pollard lists at lunix.com.au
Tue Apr 27 07:36:45 UTC 2010


Hi all,

I have a working KVM system managed with virsh and virt-install.  
I am currently playing with ruby-libvirt-0.1.0.  
I am wanting to build a simple sinatra/ruby app to show the VE's on a node and their state.  
I have ruby 1.8.5 on CentOS 5.4.  

I have the basics of it worked out but am a little stuck.  
Is there a way of retrieving a list of all VM's on a host using ruby-libvirt. ie: virsh list --all ?  

    @conn.list_defined_domains only shows VE's not started (lists VE names)
    @conn.list_domains only shows VE's running (lists VE id's)

What I ultimately would like is to retrieve a full list of the uuid's of all defined VE's(running or not).  




-- 
Regards
Mick Pollard ( lunix )
------------------------------------------------
BOFH Excuse of the day:
Extraneous Configuration Invalidation





More information about the libvirt-users mailing list