Closed samuelkneppel closed 4 years ago
So, I am revisiting trying to get this sandbox up and running.
Would anyone be able to point me in the right direction as to what my issue could be?
FWIW, a user on the Slack channel helped me figure out how to get this to work.
After taking a look at his vsphere.py file, I replaced this code:
try:
from pyVim.connect import SmartConnection
HAVE_PYVMOMI = True
except ImportError:
HAVE_PYVMOMI = False
log = logging.getLogger(__name__)
logging.getLogger("requests").setLevel(logging.WARNING)
with the following code:
try:
from pyVim.connect import SmartConnection as SC, SmartConnectNoSSL
HAVE_PYVMOMI = True
except ImportError:
HAVE_PYVMOMI = False
log = logging.getLogger(__name__)
logging.getLogger("requests").setLevel(logging.WARNING)
try:
class SmartConnection(SC):
def __enter__(self, *args, **kwargs):
self.si = SmartConnectNoSSL(*self.args, **self.kwargs)
return self.si
except:
HAVE_PYVMOMI = False
Once I changed this, I did not receive the error again.
Thanks for creating an issue! But first: did you read our community guidelines? https://cuckoo.sh/docs/introduction/community.html
My issue is:
Whenever I try to run Cuckoo in my environment, I receive the following error: [cuckoo] CRITICAL: CuckooCriticalError: Couldn't connect to vSphere host: 'NoneType' object has no attribute 'rootSnapshotList'.
Any help would be much appreciated.
My Cuckoo version and operating system are:
I am running Cuckoo version 2.0.7 on Ubuntu 18.04.3 LTS running within my vSphere environment. My Windows 7 sandbox VM is located elsewhere in vSphere. Each of my servers is running ESXi 6.7U3 and my vSphere Server Appliance is on version 6.7.0.41000.
This can be reproduced by:
Running
cuckoo
from myvenv
I have created. When I first created it, I also ran the following commands to get libvirt installed:The log, error, files etc can be found at:
Here is a log of the error: