Fixes TAP connection when using VPCS.

This commit is contained in:
grossmj 2015-05-25 19:07:12 -06:00
parent 221a35baae
commit 08f82e02a0

View File

@ -390,6 +390,9 @@ class VPCSVM(BaseVM):
command = [self.vpcs_path]
command.extend(["-p", str(self._console)]) # listen to console port
command.extend(["-m", str(self._manager.get_mac_id(self.id))]) # the unique ID is used to set the MAC address offset
command.extend(["-i", "1"]) # option to start only one VPC instance
command.extend(["-F"]) # option to avoid the daemonization of VPCS
nio = self._ethernet_adapter.get_nio(0)
if nio:
@ -404,10 +407,6 @@ class VPCSVM(BaseVM):
command.extend(["-e"])
command.extend(["-d", nio.tap_device])
command.extend(["-m", str(self._manager.get_mac_id(self.id))]) # the unique ID is used to set the MAC address offset
command.extend(["-i", "1"]) # option to start only one VPC instance
command.extend(["-F"]) # option to avoid the daemonization of VPCS
if self.script_file:
command.extend([os.path.basename(self.script_file)])
return command