def register_on_machine_registered(self, callback):
        """Set the callback function to consume on machine registered events.

        Callback receives a IMachineRegisteredEvent object.

        Returns the callback_id
        """
        event_type = library.VBoxEventType.on_machine_registered
        return self.event_source.register_callback(callback, event_type)