def _initialize(self):
        """Initializes libvirt resources."""
        disk_path = self.configuration['disk']['image']
        url = 'hypervisor' in self.configuration and self.configuration['hypervisor'] or 'vbox:///session'

        self._hypervisor = libvirt.open(url)
        self._domain = domain_create(self._hypervisor, self.identifier, self.configuration['domain'],
                                     disk_path)
dataset/ETHPy150Open F-Secure/see/see/context/resources/vbox.py/VBoxResources._initialize/original