dgquintas / BoincVM
No description has been added.
Clone this repository (size: 1.2 MB): HTTPS / SSH
$ hg clone http://bitbucket.org/dgquintas/boincvm/
| commit 139: | d5d19e525c85 |
| parent 138: | 0cf1d242ee7f |
| branch: | default |
we should consider eth1's mac address (the host-only iface)
Changed (Δ9 bytes):
raw changeset »
BoincVMController/controllers/VirtualBoxController.py (10 lines added, 10 lines removed)
Up to file-list BoincVMController/controllers/VirtualBoxController.py:
| … | … | @@ -456,7 +456,7 @@ class VirtualBoxController(object): |
456 |
456 |
g = ( nums[i:i+2] for i in xrange(0, len(nums), 2) ) |
457 |
457 |
return ':'.join(g) |
458 |
458 |
ms = cls._vbox.getMachines() |
459 |
entriesGen = ( ( numsToColonNotation(m.getNetworkAdapter( |
|
459 |
entriesGen = ( ( numsToColonNotation(m.getNetworkAdapter(1).MACAddress), str(m.name) ) |
|
460 |
460 |
for m in cls._vbox.getMachines() ) |
461 |
461 |
mapping = dict(entriesGen) |
462 |
462 |
return mapping |
| … | … | @@ -537,15 +537,15 @@ def startVBWebservice(config, controller |
537 |
537 |
webSrvBin = webSrvBinCmd + " -t 0" |
538 |
538 |
|
539 |
539 |
#check it isn't already running |
540 |
# pid = support.pidof(webSrvBinCmd) |
|
541 |
# if pid: |
|
542 |
# logger.warn('VBox webservice server already running! (with pid %d)' % pid) |
|
543 |
# logger.info('Trying to kill runaway vboxwebsrv (with pid %d)' % pid) |
|
544 |
# os.kill(pid, 9) |
|
545 |
# #check it really is gone for good |
|
546 |
# pidBis = support.pidof(webSrvBinCmd) |
|
547 |
# if pidBis: |
|
548 |
|
|
540 |
pid = support.pidof(webSrvBinCmd) |
|
541 |
if pid: |
|
542 |
logger.warn('VBox webservice server already running! (with pid %d)' % pid) |
|
543 |
logger.info('Trying to kill runaway vboxwebsrv (with pid %d)' % pid) |
|
544 |
os.kill(pid, 9) |
|
545 |
#check it really is gone for good |
|
546 |
pidBis = support.pidof(webSrvBinCmd) |
|
547 |
if pidBis: |
|
548 |
raise SystemError("Can't kill vboxwebsrv proc (pid %d)" % pid) |
|
549 |
549 |
|
550 |
550 |
hvHelperCmd = os.path.join(config.get('Host', 'hypervisor_helpers_path'), webSrvBin ) |
551 |
551 |
cmdWithArgs = os.path.basename(hvHelperCmd) |
