Replies: 3 comments 2 replies
-
Second one is easy: you didn't install Ansible. As for the first one, I'm guessing it's coming from containerlab (here's the matching code: https://github.com/srl-labs/containerlab/blob/91b1fc394f1fea78db9d31cedcac9fc34ba084bd/runtime/docker/docker.go#L353), and digging deeper into the code, it looks like iptables is not installed. Did you use the netlab install installation scripts (see https://netlab.tools/install/ubuntu/ and https://netlab.tools/netlab/install/)? If you did, which ones did you start? |
Beta Was this translation helpful? Give feedback.
-
I still encounter ansible error even I have ansible installed under my python venv. This is copy paste from containerlab notes Windows Subsystem Linux (WSL)# If you are running Ubuntu/Debian as your WSL2 machine, you can use the quick setup this script to install docker-ce. PS: I still have iptables error when running containerlab but seems it is not having issues in the lab |
Beta Was this translation helpful? Give feedback.
-
The whole toolchain (netlab, Docker, containerlab, Ansible) has to be installed and run on the Ubuntu virtual machine. No idea how to get that done on WSL :( If you figure it out, please post detailed instructions and I'll add them to the documentation. Also, the netlab installation script should work on the WSL Ubuntu VM. |
Beta Was this translation helpful? Give feedback.
-
Hi,
First time running netlab, I encounter 2 errors when executing "netlab up"
Any insight how to solve this
WARN[0000] errors during iptables rules install: not available
Error executing ansible-playbook /home/myUnixID/venv-netlab/lib/python3.10/site-packages/netsim/ansible/initial-config.ansible:
[Errno 2] No such file or directory: 'ansible-playbook'
[FATAL] Executing Ansible playbook /home/myUnixID/venv-netlab/lib/python3.10/site-packages/netsim/ansible/initial-config.ansible failed
Error executing netlab initial --no-message:
Command '['netlab', 'initial', '--no-message']' returned non-zero exit status 1.
[FATAL] netlab up: netlab initial failed, aborting...
(venv-netlab) @HKG-X8031922:~/testlab$
I installed python under venv in my home directory
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions