1.1 --- a/OpenSecurity/bin/vmmanager.pyw Thu Apr 03 13:18:00 2014 +0200
1.2 +++ b/OpenSecurity/bin/vmmanager.pyw Wed Apr 23 14:55:02 2014 +0200
1.3 @@ -298,6 +298,7 @@
1.4 result = checkResult(Cygwin.vboxExecute('startvm ' + vm_name + ' --type headless' ))
1.5 while 'successfully started' not in result[1]:
1.6 logger.error("Failed to start SDVM: " + vm_name + " retrying")
1.7 + logger.error("Command returned:\n" + result[2])
1.8 time.sleep(1)
1.9 result = checkResult(Cygwin.vboxExecute('startvm ' + vm_name + ' --type headless'))
1.10 return result[0]
1.11 @@ -336,10 +337,10 @@
1.12 @staticmethod
1.13 def getHostOnlyIP(vm_name):
1.14 if vm_name == None:
1.15 - logger.info('Gettting hostOnly IP address for Host')
1.16 + logger.info('Getting hostOnly IP address for Host')
1.17 return VMManager.getHostOnlyIFs()['IPAddress']
1.18 else:
1.19 - logger.info('Gettting hostOnly IP address ' + vm_name)
1.20 + logger.info('Getting hostOnly IP address ' + vm_name)
1.21 result = checkResult(Cygwin.vboxExecute('guestproperty get ' + vm_name + ' /VirtualBox/GuestInfo/Net/0/V4/IP'))
1.22 if result=='':
1.23 return None
1.24 @@ -523,7 +524,7 @@
1.25
1.26 def checkResult(result):
1.27 if result[0] != 0:
1.28 - logger.error('Command failed:' + ''.join(result[2]))
1.29 + logger.error('Command failed:\n' + result[2])
1.30 raise OpenSecurityException('Command failed:' + ''.join(result[2]))
1.31 return result
1.32