Changes between Version 2 and Version 3 of Internal/OpenFlow/MiniNet
- Timestamp:
- Jun 11, 2012, 5:01:49 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internal/OpenFlow/MiniNet
v2 v3 1 1 = 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 2 4 == I. setup == 3 5 1. Make sure your machine is kvm enabled - e.g. `cpu-checker`'s `kvm-ok` command should return a response like this: … … 12 14 # apt-get install qemu-kvm unzip 13 15 }}} 16 Install `kvm-pxe` if you get the following error: 17 {{{ 18 qemu: pci_add_option_rom: failed to find romfile "pxe-virtio.bin" 19 }}} 14 20 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 21 4. Launch qemu: 16 22 {{{ 17 #qemu -m 512 -hda OpenFlowTutorial-disk1.vdi -net nic,model=virtio -net user,net=192.168.101.0/24,hostfwd=tcp::8022-:2223 qemu -m 512 -hda OpenFlowTutorial-disk1.vdi -net nic,model=virtio -net user,net=192.168.101.0/24,hostfwd=tcp::8022-:22 18 24 }}} 19 25 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 26 At this point you have the choice of logging in on that window, or via SSH as follows: 21 27 {{{ 22 # ssh -Y -p 8022 openflow@localhost 23 }}} 24 In either case, both user and password are ''openflow''. 28 ssh -Y -p 8022 openflow@localhost 29 }}} 25 30 26 [[BR]] 27 Install `kvm-pxe` if you get the following error: 31 Alternatively, you can convert the image into a qcow2 before running it via kvm: 28 32 {{{ 29 qemu: pci_add_option_rom: failed to find romfile "pxe-virtio.bin" 33 kvm-img convert -O qcow2 Mininet-VM.vmdk mininet.qcow2 30 34 }}} 35 36 In either case, both user and password are ''openflow''. The link above does provide a fairly good primer on its usage.