From 062e5a5986591e85995584d3a3b1fe862fc46aff Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 10 Mar 2015 11:05:52 -0600 Subject: [PATCH] Fixes bug when starting a packet capture in VirtualBox with the project path containing spaces. --- gns3server/modules/virtualbox/virtualbox_vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/modules/virtualbox/virtualbox_vm.py b/gns3server/modules/virtualbox/virtualbox_vm.py index 7eea8d12..c6151f2a 100644 --- a/gns3server/modules/virtualbox/virtualbox_vm.py +++ b/gns3server/modules/virtualbox/virtualbox_vm.py @@ -650,7 +650,7 @@ class VirtualBoxVM(BaseVM): if nio.capturing: yield from self._modify_vm("--nictrace{} on".format(adapter_number + 1)) - yield from self._modify_vm("--nictracefile{} {}".format(adapter_number + 1, nio.pcap_output_file)) + yield from self._modify_vm('--nictracefile{} "{}"'.format(adapter_number + 1, nio.pcap_output_file)) for adapter_number in range(len(self._ethernet_adapters), self._maximum_adapters): log.debug("disabling remaining adapter {}".format(adapter_number))