Version 2 (modified by 13 years ago) ( diff ) | ,
---|
Mininet - Setup and usage
I. setup
- Make sure your machine is kvm enabled - e.g.
cpu-checker
'skvm-ok
command should return a response like this:# kvm-ok INFO: /dev/kvm exists KVM acceleration can be used
- Install kvm/qemu packages.
# apt-get update # apt-get install qemu-kvm unzip
- fetch the mininet image. The current one can be downloaded from here. Unzipping the package should produce one file, OpenFlowTutorial-disk1.vdi.
- Launch qemu:
# qemu -m 512 -hda OpenFlowTutorial-disk1.vdi -net nic,model=virtio -net user,net=192.168.101.0/24,hostfwd=tcp::8022-:22
Given that you have X11 forwarding enabled for your SSH session, a window should pop up and you should see the image boot.
At this point you have the choice of logging in on that window, or via SSH as follows:
# ssh -Y -p 8022 openflow@localhost
In either case, both user and password are openflow.
Install kvm-pxe
if you get the following error:
qemu: pci_add_option_rom: failed to find romfile "pxe-virtio.bin"
Note:
See TracWiki
for help on using the wiki.