Saw your explain. But this still makes a problem in wait_for_get_adress(). So I suggest make this libvirt only. Please see comments blow.