Unable to run simulations as root.
Thecave3 opened this issue · 1 comments
To run the simulations campaign as root with the new toolchain a flag (--enable-sudo
) should be included in the command and at the moment there is no way to do it in sem.
I propose to add this flag in the CampaignManager or to check this at runtime before launching the ./ns3 configure command
.
What do you think @pagmatt and others interested?
In my opinion the best approach is to modify the SimulationRunner
init function:
Line 26 in da63bc5
to take yet another parameter (
enable_sudo
, which defaults to False
), and reflect these changes in the configure_and_build
function by including the same parameter:Line 135 in da63bc5
and, finally, conditionally append the corresponding configuration flag
(--enable-sudo
) to the configuration command.
By the way, in the meantime you should be able to run simulations using SEM by manually configuring ns-3 with the --enable-sudo
command, and then by setting SEM's skip_configuration
flag to True
to prevent SEM from overwriting the manual configuration.