Changes between Version 2 and Version 3 of Internal/OpenFlow/MiniNet


Ignore:
Timestamp:
Jun 11, 2012, 5:01:49 PM (12 years ago)
Author:
akoshibe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/OpenFlow/MiniNet

    v2 v3  
    11= Mininet - Setup and usage =
     2[http://yuba.stanford.edu/foswiki/bin/view/OpenFlow/Mininet Mininet], a SDN prototyping platform, is a great tool for proof-of-concept SDN experiments where you don't have physical SDN networks to experiment with, or when setup of actual hardware is too cumbersome. The following setup was built with two VMs on external3:
     3 
    24== I. setup ==
    351. Make sure your machine is kvm enabled - e.g. `cpu-checker`'s `kvm-ok` command should return a response like this:
     
    1214# apt-get install qemu-kvm unzip
    1315}}}
     16Install `kvm-pxe` if you get the following error:
     17{{{
     18qemu: pci_add_option_rom: failed to find romfile "pxe-virtio.bin"
     19}}}
    14203. fetch the mininet image. The current one can be downloaded from [http://www.openflow.org/downloads/OpenFlowTutorial-101311.zip here]. Unzipping the package should produce one file, !OpenFlowTutorial-disk1.vdi.
    15214. Launch qemu:
    1622{{{
    17 # qemu -m 512 -hda OpenFlowTutorial-disk1.vdi -net nic,model=virtio -net user,net=192.168.101.0/24,hostfwd=tcp::8022-:22
     23qemu -m 512 -hda OpenFlowTutorial-disk1.vdi -net nic,model=virtio -net user,net=192.168.101.0/24,hostfwd=tcp::8022-:22
    1824}}}
    1925Given that you have X11 forwarding enabled for your SSH session, a window should pop up and you should see the image boot. [[BR]]
    2026At this point you have the choice of logging in on that window, or via SSH as follows:
    2127{{{
    22 # ssh -Y -p 8022 openflow@localhost
    23 }}}
    24 In either case, both user and password are ''openflow''.
     28ssh -Y -p 8022 openflow@localhost
     29}}}
    2530
    26 [[BR]]
    27 Install `kvm-pxe` if you get the following error:
     31Alternatively, you can convert the image into a qcow2 before running it via kvm:
    2832{{{
    29 qemu: pci_add_option_rom: failed to find romfile "pxe-virtio.bin"
     33kvm-img convert -O qcow2 Mininet-VM.vmdk mininet.qcow2
    3034}}}
     35 
     36In either case, both user and password are ''openflow''. The link above does provide a fairly good primer on its usage.