Skip to content
Discussion options

You must be logged in to vote

@robert-patrick-texas So I ran created a fresh Ubuntu VM from bento/ubuntu-24.04 Vagrant box (https://portal.cloud.hashicorp.com/vagrant/discover/bento/ubuntu-24.04), then ran

$ sudo apt-get update
$ sudo apt-get install -y python3-pip python3-venv

Followed by:

$ python3 -m venv --system-site-packages nlenv
$ . nlenv/bin/activate
$ pip3 install networklab
$ netlab install ubuntu containerlab ansible

Please note the --system-site-packages parameter used at virtual environment creation (based on reply by @a-v-popov)

Netlab correctly identified it's running in a virtual environment and installed Ansible and other Python packages into that environment.

Next, I logged out and logged back in …

Replies: 6 comments 10 replies

Comment options

You must be logged in to vote
8 replies
@ipspace
Comment options

@a-v-popov
Comment options

@ipspace
Comment options

@a-v-popov
Comment options

@ipspace
Comment options

Comment options

You must be logged in to vote
1 reply
@robert-patrick-texas
Comment options

Answer selected by robert-patrick-texas
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ipspace
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants