lost and found ( for me ? )

How to deploy Mininet VMDK image within KVM

- about Mininet

Miniet is a software to evaluate openflow , controllers , switches and hosts.

You can use Mininet by using VM images which is provided by mininet gitgub or installing Mininet manually on Ubuntu distribution.

Here’s an example of how to deploy Mininet VMDK image within KVM.

KVM host

# kvm –version
QEMU emulator version 1.2.0 (qemu-kvm-1.2.0+noroms-0ubuntu2, Debian), Copyright (c) 2003-2008 Fabrice Bellard

# uname -ri
3.5.0-21-generic x86_64

download the VM image from http://mininet.github.com/download/

unzip the file.
$ unzip mininet-vm-ubuntu11.10-052312.vmware.zip
Archive:  mininet-vm-ubuntu11.10-052312.vmware.zip
  creating: Mininet-VM/
 inflating: Mininet-VM/Mininet-VM.nvram
 inflating: Mininet-VM/Mininet-VM.vmdk
extracting: Mininet-VM/Mininet-VM.vmsd
 inflating: Mininet-VM/Mininet-VM.vmx
 inflating: Mininet-VM/Mininet-VM.vmxf
 inflating: Mininet-VM/vmware.log
 inflating: Mininet-VM/vprintproxy.log

convert the VM format to qcow2 from vmdk.
# qemu-img convert Mininet-VM.vmdk -O qcow2 Mininet-VM.qcow2

# qemu-img info Mininet-VM.qcow2
image: Mininet-VM.qcow2
file format: qcow2
virtual size: 20G (21474836480 bytes)
disk size: 2.5G
cluster_size: 65536

import the VM within KVM.
# virt-install --connect=qemu:///session --name mininet --ram=
512 --graphics vnc,port=5911 --disk path=./Mininet-VM.qcow2,format=qcow2 --netwo
rk=bridge:br0 –import

the VM named “mininet” has been deployed within KVM.
virsh # list
Id    Name                           State
3     mininet                        running

user : openflow
password : openflow

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.