Same with preprocess(), we can init libvirt_inst once and use.