I use the virsh list to display a list of vms running on the computer. I want the information to be printed in this process as a 2d array.
One way to do this is to get the output, use a tokenizer and save it in an array. But is there any other way when I can directly pass this as an array or something else so that the code is much more scalable. (Something I could think of was using libvirt api in python)
w2lame
source share