Comments (21)
Thanks for the extended notes! I have linked to them from the main documentation so that others can benefit from them.
from fopnp.
Can this be set up to run on ESXi?
from fopnp.
I don't know — alas, I don't have any experience with ESXi.
from fopnp.
How can I run the Playground on Ubuntu 16.04 (No Virtualmachine/VirtualBox)
from fopnp.
@Modagiri — If you have Docker installed, it's possible you could skip down to the "Building the Playground" section of the README and follow the instructions for ./build.sh
and ./launch.sh
.
from fopnp.
What's error???
vagrant@vagrant-ubuntu-trusty-64:~$ ./launch.sh
++ dirname ./launch.sh
- cd .
- grep -q docker
++ groups - echo vagrant
- sudo adduser vagrant docker
adduser: The group `docker' does not exist.
from fopnp.
I changed "from 14.04" to "from 16.04" and added the needed libffi-dev and libssl-dev. I also changed the Vagrant file to xenial64. I was able to get started, I got build.sh and launch.sh up and running. I was able to do "ssh h[1-4]" but I have to manually copied ssh-config. But ssh www and their like failed. I noticed that they were no more included in the ssh-config file. But traceroute www.example.com also failed.
I have done a quick check and I have noticed that you changed a couple of areas in previous commits.
I noticed that "ip -a" ( works for hosts h[1-4])
My question is this, what can I do to get traceroute www.example.com to really work and "route n"
NB
vagrant@ubuntu-xenial:~/fopnp/playground$ brctl show
bridge name bridge id STP enabled interfaces
docker0 8000.02421e9d94df no veth0ce2759
veth7cc2652
vetha20a496
vetha6ca388
exampleCOM 8000.1ec262496bc4 no example-eth1
ftp-eth0
www-eth0
homeA 8000.460183d56d1a no h1-eth1
h2-eth1
h3-eth1
modemA-eth1
homeB 8000.36edb6133c8e no h4-eth1
modemB-eth1
from fopnp.
@Q10Viking
cd to playground and run ./build.sh there?
BTW what is the issue you faced?
from fopnp.
Brendon, thanks so much for your Playground - its on another level.
Please any one know how to install the playground box on a Windows 10 system running either VMware or VirtualBox. Much appreciated.
from fopnp.
For folks following this thread — someone pointed out to me recently that a few instructions were out of date in the various README files, so I've gone through and have made sure that none of the files still talks about the "play.sh" script, since it's been replaced with plain SSH as the way to connect to one of the playground hosts h1 through h4.
from fopnp.
Let me start by saying thanks for all the effort you have put into this. i am enjoying the book.
I Tried to set this up on Ubuntu 16.04 and had issues. Using vagrant I get up to vagrant up but it times out and I am never able to get further. The VM seems to be running and the 2222 port is there but it does not seem to be talking to anything on the VirtualBox side. unsure how to trouble shoot this.
Tried to do the stand alone docker version and again had some issues. Followed the advice above, had to use wzurowski/vivid64.
in DockerFile
Had to add 'RUN pip install -U pip' before the requirements2.txt ADD line.
Had to add 'RUN pip3 install -U pip' before the requirements.txt ADD line.
in build.sh and launch.sh had to comment out the adding vagrant to docker group
seems vagrant install via apt-get did not create the vagrant user and bootstrap.sh was not used.
Also had to add the h1 h2 h3 h4 to the /etc/hosts file. This caused ssh h1 to ssh into the localhost so had to ssh -p 2201 [email protected] but finally got to the Ubuntu 14 hosts. Seems I have to put the password each time so I may have to manually add the the key to my trusted_keys file.
Last problem I am having is that h1 has eth0 172.17.0.x and eth1 192.168.1.11. I can ping to a couple of the 172 addresses but the 192's all fail as does traceroute and nslookup do I cannot tell if the other hosts are alive.
Any help would be greatly appreciated on getting either or both working. Thanks again.
from fopnp.
@rlefever Your problems remind me of the symptoms that I have seen when the IP addresses of part of a machine’s network are overlapping with the range of IP addresses that Docker is trying to use — only, of course, you are using raw VirtualBox and Vagrant. But a problem with connectivity would explain why Vagrant is timing out, if the packets were going to the wrong network interface?
from fopnp.
from fopnp.
Alas, I have never tried running with a vagrant host separate from the docker host. Without a couple of hours to sit down with your computer and explore which network connections and pings do and don’t work between the different hosts, I doubt if I could make any headway in figuring out how to get the different hosts talking successfully.
from fopnp.
from fopnp.
from fopnp.
from fopnp.
from fopnp.
I’ve just gone into the requirements.txt
files and added the exact
version numbers of each package that are installed in the official
playground image. This means that folks building the playground
themselves (a) should no longer have errors because newer versions of
some packages require a more recent version of pip, and (b) that the
home-made playground they come out with should work the same inside as
the official playground image.
@zseusz — Apologies that I didn’t answer your question last year, I must
have missed it. Alas, I don’t use Windows, and so I’m not sure if
Windows machines require any extra steps beyond the usual vagrant init
, vagrant up
, and vagrant ssh
steps.
@rlefever — First, I have edited the README instructions for folks
building the playground themselves, so it correctly specifies the SSH
configuration file that will allow login to h1
through h4
without
running into any problems with hostnames or port numbers or needing a
password. (In the official playground image that file gets installed as
the ~/.ssh/config
file itself, so no extra argument is needed for
folks running the official image.)
Second, I spent today launching the playground myself on a modern Ubuntu
box — your hope that “you have this running” is, alas, mistaken; I have
been using the official image for years and only today had time to try
out the old “build.sh” and “launch.sh” scripts on a modern machine. I
found that modern Linux + Ubuntu + Docker no longer allows packets to
flow between across the virtual bridges that the script sets up between
the virtual hosts, so I have added “iptables” commands to “launch.sh”
that make the packets start flowing for me. Try them out yourself, and
see if they make “ping” and other commands start working successfully!
Third, you typically can’t run iptables from inside the containers,
because the main host retains the right to impose iptables rules; always
run iptables from outside the various virtual hosts.
Good luck! Let me know what happens.
from fopnp.
from fopnp.
I'm glad the fix got things working for you again, and that you're able to learn more about networking thanks to the example network!
from fopnp.
Related Issues (20)
- Code Correction HOT 1
- p.23 The "FAKE" Message Didn't Go Through HOT 1
- OSError with big_sender HOT 2
- The box 'ubuntu/vivid64' could not be found HOT 3
- Unused argument in tcp_deadlock.py HOT 4
- SocketServer request_queue_size HOT 1
- docker: Error image fopnp/base:latest not found HOT 4
- Can't generate localhost.pem HOT 2
- chapter06/safe_tls.py does not work with Python 3.6 HOT 4
- opnp / py3 / chapter07 / client.py not work with python3.6
- IN means? HOT 3
- Vagrant stuck on 'SSH auth method: private key' HOT 3
- how to install it on windows? HOT 1
- Chapter 06: lib.SSL_get_version segfaults on python3.6.6 darwin 16.7.0 HOT 3
- Chapter 1 examples no longer work HOT 3
- To recieve data contiuously from tcp barcode scanners HOT 2
- Chapter 6 Certificate no longer accepted in Python 3.7 HOT 7
- chapter 08 memcache not working HOT 5
- Capture 11 app_insecure doesn't start with flask version >2.0.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fopnp.