Syed Jahanzaib Personal Blog to Share Knowledge !

September 23, 2013

Vmware High Availability (VMHA)

Filed under: Uncategorized — Syed Jahanzaib / Pinochio~:) @ 1:59 PM

VMware High Availability .com/watch?v=5AkctSdG82I

Demo Video: com/watch?v=5AkctSdG82I

Vmware high availability is a great feature of vmware. If you have shared storage like SAN / NAS  you can create high availability by using two ESXI servers , so when any physical server goes down or its network connectivity looses, VM High Availability auto takes over and migrates the virtual guest machines off that server to another server.

[Please note that In case of any ESXi host failure, the vm files never copied/moved, only the ownership of those virtual machines is transferred from the failed host to the new host. This way, the virtual machines can be up and running again in just few seconds or the time required to boot that specific guest VM(s)]


  • You must have VMware Infrastructure Suite (FREE or FOUNDATION version not supported).
  • At least 2 ESX host systems for high availability.
  • A shared NAS or SAN between the ESXi Servers where the virtual machines will be stored. In case of any ESXi host failure, the vm files never copied/moved, only the ownership of those virtual machines is transferred from the failed host to the new host.
  • Try using same hardware for both ESXI servers to avoid compatibilities issues.

sorry, 😦 Due-to time shortage, I will write it more about it later. for info , email.

Howto power on Vmware Workstation guest machine

Filed under: VMware Related — Tags: , , — Syed Jahanzaib / Pinochio~:) @ 1:20 PM


Some one asked me howto power on Vmware Workstation guest machine via CLI.  you can use vmrun tool to power on the machine by using target vm guest .vmx file. I decided to write the simple method for my reference too, because I also use it heavily in my virtual lab.

To achieve it, You can create a shortcut on your desktop so that you can quickly start your required workstation base virtual machine by clicking a single icon on your desktop. OR if you want to power it automatically after windows starts, you can create a simple shortcut or batch file and add it windows STARTUP.


You have install vmware workstation in H:\vmware_workstation and your guest vm is in H:\temp_images_ubuntu-proxy , then simply use the following shortcut.

D:\vmware_workstation\vmrun start  D:\vmware_images\ubuntu-proxy\ubuntu.vmx

Tip: vmrun is available in workstation folder.

Also read following for more references.



Syed Jahanzaib

September 17, 2013

Multiple NIC bonding to achieve higher data transfer & redundancy

Filed under: Linux Related — Syed Jahanzaib / Pinochio~:) @ 4:38 PM

2- ha with load balancing

Recently at a local, I deployed NIC teaming in a File Sharing server for high availability and to provide better data transfer to users with failover. Lets discuss some dry theory first.

NIC bonding or NIC teaming is used to achieve high throughput and link redundancy by combining or aggregating multiple network connections in parallel. This is done to increase throughput, and to provide redundancy in case one of the links fails or Ethernet card fails.  This is a short guide on howto combine multiple Ethernet devices into a single link, to achieve higher data rates and link failover. NIC teaming increases network availability by removing single point of failure.

In this example I have used UBUNTU Server 12.4 64bit edition.

Its useful in scenarios like Media / File server, important application server where data transfer is high and link redundancy is also required to avoid cable/nic/switch failure.



We have two interfaces in our Linux / Ubuntu box and we want to do NIC bonding to achieve higher data and redundancy.

Here are the step by step method.

I assume that you have installed the ubuntu and updated it already.
Now Install the ifenslave package which allows you to create Master/Slave bindings:

sudo apt-get install ifenslave
Now enable bonding support in your kernel. Edit /etc/modules file and add bonding as shown below:
nano /etc/modules
and add following line in the end


As showed in the image below . . .

1- modules

Save & Exit.

now reload this module, before doing so, then stop networking services by

/etc/init.d/networking stop

modprobe bonding


Now configure the interfaces files in /etc/networking/interfaces file. We will use eth0 and eth1 for bonding.

Edit the file

nano /etc/network/interfaces


and paste the following

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual
bond-master bond0

auto eth1
iface eth1 inet manual
bond-master bond0

auto bond0
iface bond0 inet static
address  # Change it as per your requirements, zaib
#    gateway
bond-slaves none
bond-miimon 100
bond-mode balance-rr

 As showed in the image below . . .

2- interfaces files.

Now start networking services by

/etc/init.d/networking start

now issue ifconfig command to view the changes in itnerfaces.


3- ifconfig.


Syed Jahanzaib

September 13, 2013

Anonymous browsing with in Ubuntu

Filed under: Linux Related — Syed Jahanzaib / Pinochio~:) @ 9:30 AM


If you are using Ubuntu as your desktop client or if you are using ubuntu as a proxy server and you want to provide un restricted internet access to users (I assume for learning purposes like youtube) , You can use vpnbook vpn connection to provide access.b You can use this service in number of ways, either via mikrotik, proxy, single pc or for any other pruposes. Following is a short method to do the task.

mkdir /temp

cd /temp


Now Unzip the package you download, but first intall UNZIP tool and then unzip it.

apt-get install unzip


Now install OPENVPN client tool. It will be used later to dial the vpn connection for vpnbook,

apt-get install openvpn


Now to connect to vpnbook server, use following command

openvpn --config vpnbook-uk1-tcp443.ovpn
OR you can also try following
openvpn --config vpnbook-euro1-tcp80.ovpn

It will ask user name and password, use following

Username:  vpnbook

Password:   stU2EFez

After successful connection, goto or to verify the ip connectivity.

Make sure to use Google DNS as your primary dns for resolving addresses.


September 12, 2013

RouterOS by Example – By – Stephen Discher

Filed under: Mikrotik Related — Tags: , , — Syed Jahanzaib / Pinochio~:) @ 12:03 PM

RouterOS by Example - Stephen Discher[jz]]

A comprehensive and practical guide to MikroTik RouterOS. Useful literature with examples and other reference materials. Recommended for beginners and administrators ☺

The cost is $49.95 (+ tax if shipped to a Texas address) plus shipping anywhere in the world (international shipping by US Postal Service Priority Mail for only $16.95!).


Download Link:



Syed Jahanzaib

%d bloggers like this: