-
Notifications
You must be signed in to change notification settings - Fork 57
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
Experiment > Execute not working in Ubuntu 20.04.5 LTS (WSL 2) #111
Comments
You need to enable NETEM features in your WSL kernel, it is not enabled by default. # Clone
git clone https://github.com/microsoft/WSL2-Linux-Kernel.git
# Dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install -y build-essential flex bison libgtk2.0-dev libelf-dev libncurses-dev autoconf libudev-dev libtool zip unzip v4l-utils libssl-dev python3-pip cmake git iputils-ping net-tools
# Configure
cd WSL2-Linux-Kernel
sudo cp /proc/config.gz config
sudo mv config .config
sudo make menuconfig
# Inside the menuconfig screen, head to Networking Support -> Networking Options -> QoS/Fair options -> NETEM
# Prepare Kernel
sudo make -j$(nproc)
sudo make modules_install -j$(nproc)
sudo make install -j$(nproc)
sudo cp vmlinux /mnt/c You may need other QoS features enabled, I am unsure and have not tested it myself yet. Once you've copied your compiled kernel to disk, you will have to update your WSL2 config (C:\Users\MyUser.wslconfig), if you do not have a config create one, you just need to tell WSL2 to load a different kernel! :) [wsl2]
kernel=C:\\vmlinux Once that's done, use I'm having to install this into WSL2 soon and I'll let you know how it goes. This is no guarantee, and keep in mind that this could be destructive. |
I tried this method many times, but it didn't work |
For anyone else with this problem, I have also tried this (with similar steps), and successfully installed the NETEM module:
From Windows, I then created the file
Then cmd:
And |
Thank you so much, after compiling the linux kernel dozens of times this is the one solution that worked for me. |
I can successfully run an experiment on WSL2 using these steps, but switches are not listed using ovs-vsctl |
Hi, glad to hear that the experiment now runs! IMUNES does not use Open vSwitch since version 2.4.0. Can I ask you, why exactly do you need those switches? Denis |
Sorry, I missed this major update earlier this year.
I use openwswitch for teaching STP and VLANs. Potentially I wanted to add
some SDN labs.
Il sab 11 mag 2024, 11:28 Denis Salopek ***@***.***> ha
scritto:
… You need to enable NETEM features in your WSL kernel, it is not enabled by
default.
...
I tried this method many times, but it didn't work
For anyone else with this problem, I have also tried this (with similar
steps), and successfully installed the NETEM module:
# Clone
git clone https://github.com/microsoft/WSL2-Linux-Kernel.git
# Dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install -y build-essential flex bison libgtk2.0-dev libelf-dev \
libncurses-dev autoconf libudev-dev libtool zip unzip v4l-utils libssl-dev \
python3-pip cmake git iputils-ping net-tools dwarves
# Configure
cd WSL2-Linux-Kernel
sudo cp Microsoft/config-wsl .config
sudo make menuconfig
# Inside the menuconfig screen, head to:
# Networking Support -> Networking Options -> QoS/Fair options -> NETEM
# and mark it as * (spacebar two times, if I remember correctly)
# Prepare Kernel
sudo make -j$(nproc)
sudo make headers_install -j$(nproc)
sudo make modules_install -j$(nproc)
sudo make install -j$(nproc)
sudo cp vmlinux /mnt/c
From Windows, I then created the file C:\Users\<username>\.wslconfig with
the contents of:
[wsl2]
kernel=C:\\vmlinux
Then cmd:
> wsl --shutdown
> wsl
And sudo tc qdisc add dev eth0 root netem inside WSL now does not return
any errors, so IMUNES experiment works.
I can successfully run an experiment on WSL2 using these steps, but
switches are not listed using ovs-vsctl
Hi, glad to hear that the experiment now runs!
IMUNES does not use Open vSwitch since version 2.4.0. Can I ask you, why
exactly do you need those switches?
Denis
—
Reply to this email directly, view it on GitHub
<#111 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJADWGBNTPFJMXX7WAJSFTZBXQEJAVCNFSM6AAAAAAVLFOL2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBVGY2TEMJSHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
When doing Experiment > Execute, I get the error popup:
To run IMUNES I do
I am running Ubuntu 20.04.5 LTS in windows subsystem linux 2
My versions are
I believe this may be related, but I don't understand any of it:
microsoft/WSL#8584
The text was updated successfully, but these errors were encountered: