def vb_create_machine(name=None):
 vbox = vb_get_box()
 log.info('Create virtualbox machine %s ', name)
 groups = None
 os_type_id = 'Other'
 new_machine = vbox.createMachine(None, name, groups, os_type_id, None)
 vbox.registerMachine(new_machine)
 log.info('Finished creating %s', name)
 return vb_xpcom_to_attribute_dict(new_machine, 'IMachine')

def vb_create_machine ( name = None ) : vbox = vb_get_box ( ) log . info ( 'Create virtualbox machine %s ' , name ) groups = None os_type_id = 'Other' new_machine = vbox . createMachine ( None , name , groups , os_type_id , None ) vbox . registerMachine ( new_machine ) log . info ( 'Finished creating %s' , name ) return vb_xpcom_to_attribute_dict ( new_machine , 'IMachine' )
creates a machine on the virtualbox hypervisor todo pass more params to customize machine creation .