| | 1 | = Mininet - Setup and usage = |
| | 2 | == I. setup == |
| | 3 | 1. Make sure your machine is kvm enabled - e.g. `cpu-checker`'s `kvm-ok` command should return a response like this: |
| | 4 | {{{ |
| | 5 | # kvm-ok |
| | 6 | INFO: /dev/kvm exists |
| | 7 | KVM acceleration can be used |
| | 8 | }}} |
| | 9 | 2. Install kvm/qemu packages. |
| | 10 | {{{ |
| | 11 | # apt-get update |
| | 12 | # apt-get install qemu-kvm unzip |
| | 13 | }}} |
| | 14 | 3. 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. |
| | 15 | 4. Launch qemu: |
| | 16 | {{{ |
| | 17 | # qemu -m 512 -hda OpenFlowTutorial-disk1.vdi -net nic,model=virtio -net user,net=192.168.101.0/24,hostfwd=tcp::8022-:22 |
| | 18 | }}} |
| | 19 | Given that you have X11 forwarding enabled for your SSH session, a window should pop up and you should see the image boot. [[BR]] |
| | 20 | At this point you have the choice of logging in on that window, or via SSH as follows: |
| | 21 | {{{ |
| | 22 | # ssh -Y -p 8022 openflow@localhost |
| | 23 | }}} |
| | 24 | In either case, both user and password are ''openflow''. |