Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run simulations as root. #71

Open
Thecave3 opened this issue Feb 7, 2024 · 1 comment
Open

Unable to run simulations as root. #71

Thecave3 opened this issue Feb 7, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Thecave3
Copy link
Collaborator

Thecave3 commented Feb 7, 2024

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?

@Thecave3 Thecave3 self-assigned this Feb 7, 2024
@pagmatt pagmatt added the enhancement New feature or request label Feb 7, 2024
@pagmatt pagmatt self-assigned this Feb 7, 2024
@pagmatt
Copy link
Member

pagmatt commented Feb 8, 2024

In my opinion the best approach is to modify the SimulationRunner init function:

def __init__(self, path, script, optimized=True, skip_configuration=False,

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:
def configure_and_build(self, show_progress=True, optimized=True,

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants