Good idea on FAQ! I just stole the answer from this thread and put it on 
https://github.com/mininet/mininet/wiki/FAQ#wiki-vm-gui-mininethost with 
minimal editing. Let me know if it does not look ok. :) 

Eric


On Apr 20, 2013, at 2:33 AM, Murphy McCauley <murphy.mccau...@gmail.com> wrote:

> Using a graphical browser requires that you get X11 traffic out of your 
> Mininet host namespace and into the environment where you actually have an X 
> display.  There are any number of ways you might do this.  The way I do it is 
> ugly but relatively easy for me.  It's something like the following.
> 
> My X display is generally my actual Mac OS host environment.  My host 
> environment has 192.168.56.1.  The Mininet VM has 192.168.56.101.
> 
> In short, I run sshd inside Mininet's h1.  I then SSH from my host 
> environment to the Mininet VM with X forwarding, and then SSH from the 
> Mininet VM into h1 with X forwarding.  I do this with the dillo web browser 
> sometimes.  In theory it should work with Firefox too.
> 
> Open three terminals in the host environment (Term1, Term2, Term3)
> 
> On Term1:
> 1a) ./pox.py forwarding.l2_learning # Run an OpenFlow controller
> 
> On Term2:
> 2a) ssh -Y mininet@192.168.56.101 # SSH into the Mininet VM with X forwarding
> 2b) sudo mn --topo=linear,2 --mac --controller=remote,ip=192.168.56.1:6633
> 2c) h1 /usr/sbin/sshd # From the mininet> prompt, run sshd inside the h1 
> namespace
> 
> On Term3:
> 3a) ssh -Y mininet@192.168.56.101 # SSH into the Mininet VM with X forwarding
> 3b) sudo ifconfig s1 10.12.12.12 # Give the internal adapter for s1 an address
> 3c) ssh -Y mininet@10.0.0.1 # SSH into the Mininet h1 namespace with X 
> forwarding
> 3d) xeyes # Run X app
> 
> 
> Hope that helps.
> 
> -- Murphy
> 
> On Apr 19, 2013, at 6:25 PM, Eric Chou wrote:
> 
>> You can install Firefox and use 'sudo firefox &' to launch Firefox, assuming 
>> you have set up X forwarding. For mininet, so far I just installed and use 
>> Lynx. A quick check is to use Python simple web server: 
>> 
>> mininet> h1 python -m SimpleHTTPServer 80 &
>> mininet> xterm h2
>> 
>> Then in h2 use 'lynx http://10.0.0.1'. 
>> 
>> Anybody knows how to use a graphical web browser from hosts in Mininet? 
>> 
>> Eric
>> 
>> On Apr 19, 2013, at 4:27 PM, Chandana Pathapatti <chandana....@gmail.com> 
>> wrote:
>> 
>>> Hello, 
>>> 
>>> Is it possible to open a browser inside Virtual box and mininet topology?
>>> 
>>> -- 
>>> Regards, 
>>> Chandana
>>> http://www.sahajmarg.org/sm/why-meditate
>>> _______________________________________________
>>> openflow-discuss mailing list
>>> openflow-discuss@lists.stanford.edu
>>> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
>> 
>> _______________________________________________
>> openflow-discuss mailing list
>> openflow-discuss@lists.stanford.edu
>> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
> 

_______________________________________________
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss

Reply via email to