Thursday, February 12, 2015

Enabling ethernet port in Ubuntu Server 14.04


  • ifconfig
The above command displays the network interface.


  • lspci | grep eth
  • sudo ifconfig eth0 up
The above commands enables the Ethernet port.

Wednesday, February 11, 2015

Install Floodlight on Ubuntu Server 14.04 LTS



  • sudo apt-get install build-essential default-jdk ant python-dev eclipse
  • tar xzf floodlight-source-0.90.tar.gz -C /opt --no-same-owner --no-same-permissions
  • cd /opt/floodlight-0.90/

  1. ant
    
    ...
    dist:
    [jar] Building jar: /opt/floodlight/target/floodlight.jar
    [jar] Building jar: /opt/floodlight/target/floodlight-test.jar
    BUILD SUCCESSFUL
    Total time: 25 seconds
  • java -jar target/floodlight.jar
    19:53:53.434 INFO [n.f.c.m.FloodlightModuleLoader:main] Loading default modules
    19:53:53.827 INFO [n.f.c.i.Controller:main] Controller role set to MASTER
    19:53:53.834 INFO [n.f.c.i.Controller:main] Flush switches on reconnect -- Disabled
    19:54:03.558 INFO [n.f.l.i.LinkDiscoveryManager:main] Setting autoportfast feature to OFF
    19:54:03.779 INFO [o.s.s.i.c.FallbackCCProvider:main] Cluster not yet configured; using fallback local configuration
    19:54:03.779 INFO [o.s.s.i.SyncManager:main] [32767] Updating sync configuration ClusterConfig [allNodes={32767=Node [hostname=localhost, port=6642, nodeId=32767, domainId=32767]}, authScheme=CHALLENGE_RESPONSE, keyStorePath=/etc/floodlight/auth_credentials.jceks, keyStorePassword is unset]
    19:54:03.853 INFO [o.s.s.i.r.RPCService:main] Listening for internal floodlight RPC on localhost/127.0.0.1:6642
    19:54:04.066 INFO [n.f.c.i.Controller:main] Listening for switch connections on 0.0.0.0/0.0.0.0:6633
    19:54:09.047 INFO [n.f.j.JythonServer:debugserver-main] Starting DebugServer on :6655

Proxy for apt-get in Ubuntu Server 14.04


  1. Download and Install NTLMAPS manually from https://packages.debian.org/sid/all/ntlmaps/download 
  2. Then, follows the steps

Configure it: domain, username, password, proxyserver.net, port
  1. Files: /etc/bash.bashrc
    export http_proxy=http://127.0.0.1:5865
    export https_proxy=http://127.0.0.1:5865
    export ftp_proxy=http://127.0.0.1:5865
    
    /etc/environment
    http_proxy=http://127.0.0.1:5865
    https_proxy=http://127.0.0.1:5865
    ftp_proxy=http://127.0.0.1:5865
    
    /etc/apt/apt.conf (create the file if it does not exist)
    Acquire::http::Proxy "http://127.0.0.1:5865";
    Acquire::https::Proxy "http://127.0.0.1:5865";
    Acquire::ftp::Proxy "http://127.0.0.1:5865";

Tuesday, February 10, 2015

Accessing file in VM (ubuntu) from ESXi Datastore


  1. Select the files to be moved from local device to ESXi server datastore.

  2. Make sure that the files are .iso format
  3. Upload to ESX. data-store

  4. Then, goto VM (Ubuntu)
  5. Select the CD/DVD and ESXi datastore, where .iso file is located

  6. In the datastore, select on .iso file
  7. Now, goto terminal in Ubuntu 
                                               sudo mkdir -p /mnt/cdrom
                                               mount /dev/cdrom /mnt/cdrom

Now files located in .iso file will be available to Ubuntu.

Saturday, January 10, 2015

Collecting SDN forwarder port status at SDN Controller

This is to gather the port status of every switch or forwarder at SDN controller.

Register the port_stats_in function:

def install(self):
# Handler
        ...
self.register_for_port_stats_in(self.handle_portstats_in)
        ...


def handle_portstats_in(self, dpid, stats):
    """
    Parameters in stats: port_no, rx_packets, tx_packets, rx_bytes, tx_bytes, rx_dropped, tx_dropped,       rx_errors, tx_errors, rx_frame_err, rx_over_err, rx_crc_err, collisions
    """
    print "Port Stats received...."
    print "Port stats in from datapath", longlong_to_octstr(dpid)[6:]
    for item in stats:
print '\t',item['port_no'],':',item['tx_packets'],':',item['rx_packets']
   
   ...

Friday, January 9, 2015

Activating vSphere



Courtesy: http://www.vmwarearena.com/2013/10/vsphere-55-download-free-esxi-55.html

Register or Login with your VMware account credentials
Once you have logged in ,  You will have been provided with the option to download the  ESXi 5.5 Installation ISO and VMware vSphere client along with the Free license key for ESXi 5.5 Hypervisor.
Once the installers are download. Complete the ESXi 5.5 installation or Upgrade and Connect to your ESXi host using vSphere Client.
Click on Configuration tab and select Licensed Features. Click on Edit
Enter the license key and Click on Ok.
You are done with the  ESXi 5.5 free license key assignment and it is never Expires now. I believe this is informative for you. Thanks for Reading !!!

Adding Hard Disk to ESXi 5.1 Server

The ESXi 5.1 doesn't support RAID configuration, there for better to use RAID 0 for minimum number of hard disk and add the remaining hard disk through vSphere Client.

The steps is as follows:

host > storage > add storage > Disk/LUN > next

....