Could not find wild VM in opennebula

Hi guys,

I am trying to import some qemu VMs created from packer, however, failed to do it, could not find the wild VMs while using command onehost show host_id.

The command I used is qemu-system-x86_64 -machine accel=kvm,usb=off -nographic -m 2014 vm_img_name. Any insight will be appreciated.

Thanks,
William

Hi,

AFAIK OpenNebula uses libvirt to manage the VMs. So it is seeing what libvirtd can see. Manually started VM could not be imported currently because there is no XML configuration file to parse, no socket for libvirt to communicate too.

IMO to import such VM a special handler should be implemented to parse the qemu-kvm cmd line and build libvirt compatible configuration XML. Then this VM must be stopped(killed) and started via libvirt with added all configuration needed to work with libvirt.

Kind Regards,
Anton Todorov