As you can look in Ocsinventory > Agent > Backend > Virtualisation, you have Perl scripts for Docker, Jails, libvirt, Lxc, ..., VmWareESX, Xen to discover, on a virtualization host with OCS agent, the list of VM defined on this host.
You can see the list of VM of the hardware using the Administrative Console, and a (very) short list of infos (processors, memory).
But, only if a VM had OCS agent, you could retrieve lots of infos as any device with agent.
In this case, you can see an blue/grey ribbon on Administrative Data with 'Machines Virtuelles
Machine hébergée par: lnx039012' (in english : 'virtual machines - hosted by xxxxx').
Depending on virtualization tools, you can look to hardware :
- processor : QEMU Virtual CPU (for Kvm/Qemu)
- disk drives : Canonica Virtio SCSI Disk Device (for Kvm/Qemu)
and so ...