Quick vMotion lab setup instructions for home lab using VMWare Fusion and ESXi 5.

This is short recipe guide to test VMWare vMotion at home lab with not too costly equipment. I used a Macbook Pro 2012 with 512GB SSD and 16GB RAM, 2.7GHz Core i7 processor and VMWare Fusion but similar setup will run on VMWare Workstation in Linux and Windows with some adaptations.

This lab basically has an NSF exported folder as a shared datastore for two VMWare ESXi hosts, which is a requirement for vMotion, plus two ESXi 5.0.0 virtual machines inside VMWare Fusion which in turn can migrate a Linux or Cisco UCS emulator between them. The OS X server component servers as DNS service to the environment. The Macbook needs to keep a fixed IP address and it supports Airport wireless interface without issues. The ESXi virtual hosts would be physical hosts, blade servers, instances in some platforms, that would generally connected into a SAN (Storage Area Network) sharing their data stores so vMotion could occur.

This requires some previous experience with standalone VMWare ESXi, VMWare Fusion, Windows Server 2003 and licenses for vCenter as well. This will not describe whole Windows Server and vCenter installation process. Scott Lowe excellent book shows all about ESXi and vCenter installation, plus full vMotion explanation as well whole ESXi features > http://amzn.com/1118661141

Here what you will need:

– VMWare Fusion 7 and OS X Yosemite with Server App ($30 in app store).
– A share created in /Users/Volume for NFS sharing.
– Two ESXi standard licenses, one per virtual ESXi hosts and vCenter.
– VMWare vCenter and a Windows Server 2003 R2 64-bit installation disk.
– VMware ESXi 5.0.0 ISO files. Minor versions like 5.1 and 5.5 should work as well.
– A Linux distribution or any other light operation system to test.
– Core i7 with 512SSD and 16GB RAM machine running OS X 10.8 and VMWare 5 and above. In this setup I am running latest versions OS X 10.10 and Fusion 7 Professional but it does not seem required.

So, how is this setup?

VMWare vCenter will control an entity Data Center named Macbook and inside it, a cluster (cluster 1) that has the two virtual ESXi servers as members. By having both ESXi virtual hosts sharing a local NFS exported folder, and a secondary network adapter in a vSwitch for vMotion, vCenter will enable a live migration with little interruption.
This is not the only way to set up a vMotion and variations can be tried for real data center application simulation.

vMotion requires: Both hosts (ESXi) be on compatible versions, compatible hardware at some conditions (for example, moving a virtual machine from AMD processor to Intel might not be possible if virtual machine was allowed to use processor specific functions). Also, the hosts must belong to a cluster and have share storage known as data store in VMWare, plus a dedicated network interface reachable between the hosts (those usually are on a vMotion vlan).

Once all is set up and running, you can right initiate a live migration from one host to another. With this setup, you should lose one echo packet before the machine is reachable and responding again. In large virtual machines and environments, this can be slower, but usually a data center would be designed to minimize this to no loss at all.


Setup of VMWare Fusion, DNS server, Share and ESXi hosts.

Quick recipe:

  • Set the IP address of the Mac interface to with gateway
  • Install VMWare Fusion > http://www.vmware.com/products/fusion/features.html
  • Install the Server App
  • Open the Server app, enable DNS and create a domain lab.inc, with hosts macbook.lab.inc as Create hosts ESXi-Host1.lab.inc and ESXi-Host2.lab.inc with IP addresses and Create a vCenter server host as vcenter.lab.inc with IP address


  • Open the Terminal command prompt using <Command-Space> and type terminal followed by <Return>
  • Move into the /Users/Shared/ folder by typing ‘cd /Users/Shared
  • Create the shared folder as NFS using command ‘sudo mkdir nfs’ and type OS X administrator account password.

Macbook:~ Rodrigo$ cd /Users/Shared
Macbook:Shared Rodrigo$ sudo mkdir NSFNEW
Macbook:Shared Rodrigo$ ls -la
total 1459104
drwxrwxrwt@ 20 root wheel 680 26 Jan 15:35 .
drwxr-xr-x 7 root admin 238 22 Jan 12:07 ..
-rw-r–r–@ 1 Rodrigo wheel 10244 24 Jan 14:42 .DS_Store
-rw-r–r– 1 root wheel 0 9 Set 19:16 .localized
drwxrwxr-x+ 2 root wheel 68 23 Jan 10:49 nfs

Would should have a new nfs folder. Now, let’s export it so it can be accessed by NFS clients. Go to folder /private/etc/ using command ‘cd /private/etc’ and edit the exports file to add the folder nfs to be exported in NFS server.

Type ‘sudo pico exports’ to edit and create the file if it does not exist. Would should have the text editor like this.

  • Start a new line if needed, add the /Users/Shared/nfs -maproot=root:wheel line to enable sharing of nfs folder with root rights. A warning here. This is not the most secure way to do this and in fact would should have a non-privileged account for a non-lab environment for this (where a Mac server or any other Unix or NFS server could be a server to a specific deployment but I won’t get into details on how to do it, but keep in mind you should have quote and access control for it, possible auditing). Type <Control-X> and <Y> to save it.
  • Make sure you test NFS export is working.

Macbook:etc Rodrigo$ nfsstat -e
Exported Directory Info:
Requests Read Bytes Write Bytes
0 0 0 /Users/Shared/nfs
Macbook:etc Rodrigo$

If not, you might want to restart the nfsd (daemon) with command ‘sudo nsfd restart’.

Now you should have a proper server to host the 3 virtual machines and a shared data store.

Create two ESXi Hosts on Fusion

This time we are going to create two very similar virtual machines for ESXi host. So, open the VMWare Fusion virtual machine library, click on the Plus signal to create a new virtual machine choosing:

  1. Virtual machine type as VMWare ESXi v5.
  2. Two network adapters set as auto detect
  3. Two core processor cores and 2048MB of RAM (2GB) and Enable hypervisor applications in this virtual machine check box.
  4. Make a virtual disk of 40GB, and uncheck Split into multiple files and Pre-Allocate disk space checkboxes. We are not going to use anything like that disk space.
  5. Set up CD/DVD to the ESXi v5 ISO image.

Save the virtual machine and start it up with ISO mounted to start ESXi installation. In a regular process, you should end up with new ESXi host and name it ESXi-Host1.lab.inc using IPv4 address of and a root administration end user and password written down. Please, repeat the virtual machine creating process for the second host ESXi-Host2 using IPv4 address Overtime you power up those virtual machines, OS X will ask you for the password of an administrator end user to enable the network interfaces to monitor the system, for each interface, so twice per virtual machine, even if your end user is an administrator one.

Create the vCenter server on Fusion

This is a part where it takes some time and Windows knowledge to deploy vCenter server. Again, a new virtual machine needs to be created with 2 processors, 2GB of RAM, Windows Server 2003 64 Enterprise Edition and 400GB of disk. Again, the disk is thin provisioned so the space used will be much less than that. Remember to point the server to use as DNS server and have a secondary public address to reach updates for it.

Install Windows Server 2003, service packs and updates (assuming they won’t brake vCenter later here). Once stable, have the vCenter ISO and install it using a internal SQL database. Remember, for larger deployments it could and should probably be external server to handle data center size. Here, vCenter installation is not complicated but some previous knowledge helps on issues, which are rare by the way.

Create data center and cluster on vCenter.

Once vCenter is running, connect to it using the vSphere client directly on Windows Server you installed vCenter and create a data center by going on the Inventory > Hosts and Clusters menu. Named it Macbook and inside this data center, create a cluster named Cluster1 with not HA option enabled.

By now you can add both virtual ESXi hosts to this cluster. Select cluster1 before adding the hosts and you should be able to add them by their FQDN ‘esxi-host1.lab.inc’. At this time you will be asked to confirm or enter VMWare license for this vCenter server.


Now, we can add a new shared data store to them. Click on the first host, followed by the Configuration tab and select Storage on the left panel. You should see the first datastore in the 40GB disk we created for this ESXi host. Click o Add Storage command on the right upper side of the screen.

  1. Select Network File System Type.
  2. On the server enter macbook.lab.inc and on the folder line enter /Users/Shared/nfs/ which is the folder we share before.
  3. Name the data store as NFS (capital letters).
  4. Click on Finish and make sure you have a new data store listed for this virtual machine. If any errors occur is because nfs export is not working or there is some access right issues. You might want to grant your OS X end user rights to the NFS folder using the Finder and retry.
  5. Repeat this process to the second virtual machine hosting ESXi-Host2.


It is normal a warning about Store I/O Control for this lab, but you should be able to see free space and use it.

It is time to add a vMotion interface to both ESXi hosts. This is a requirement for vMotion to work, so click on Networking option on the left panel to bring up the network interfaces and virtual switches.

  1. Click on Add Networking and on VMKernel type and on <Next>
  2. Select a new virtual switch that will be used with this vMotion network interface.
  3. On the next screen, name the network label as vMotion and click on Enable this port group for vMotion.
  4. Enter the IP address of another network and by now choose only to use IPv4 (by the way. Mac runs natively with IPv6 very well, so vCenter under Windows Server 2003 and ESXi v5 and you enhance this lab later to us IPv6 only on vMotion if you want to try it with address auto configuration and local link addresses).
  5. Before clicking on Finish, make sure you had the second network interface attached to the new vSwitch. And you should have similar to this:


I used IP for this which is unusual but fits the lab. Please, repeat the process on the second ESXi host using address.

We should be all set to test a live VM migration.

Well, go ahead and create a small VM in ESXi-Host1 using the shared data store to hold the virtual machine and disk(s) and power it on. In a previous version of this lab I have used a Slackware 14 64-bit version with 16GB of disk (1 for swap partition and rest for the root file system and volume). This video shows a live migration and you should have similar results.


I know this setup can go wrong a few times and being far from VMWare experienced, there are still unknowns here. Be aware of shared datastore creation might not work and you might end up with two of them. Also, remember to have both ESXi hosts in a single cluster in a data center for the migration to list the server to where you want to move the virtual machine.

Fire up the virtual machine inside the virtual hypervisors (how’s cool that?) and once it is started up and quiet, proceed with right clicking it and choosing Migrate. Select the Change Host option and under cluster1 view, the second host (you should have a validation succeed message as well before going on). Click on <Next> , select High Priority, <Next>, check the summary screen and click on <Finish>. You should see the migration going on live like screen below. (using Cisco UCS Platform Emulator at this time). Hope this is useful to get you started on vMotion. There is much more to explore on > https://www.youtube.com/watch?v=iQfTuAdLfYw



Fiverr – Nova estrela no mercado de ofertas de trabalho on-line.

Mercado de freelancers online já tem boa visibilidade e tem dado uma boa amadurecida, mas gostei bastante do Fiverr que tem um modelo onde se cobram US$5 por trabalho ou gig (ou freela!), e que permite criar gigs múltiplas, estimar tempo para atendimento e cobrar extra para apressar um pedido. Teste comprar uma caricatura e foi bem tranquilo, mas gostaria de testar fazer trabalhos online por um tempo. Quem sabe numa das férias… 😉

How does mobile technology help me with daily workflow – part 1

It is well known that we use phones (we don’t even need to name them celular, smartphone or mobile anymore) for different kind of tasks, past time in queues, and mostly whastapping (there is no texting or SMS anymore) and selfing. Come on, every one does some of this one and while, no biggie.
Apart of that I have tried some app sets that let me build some workflows to accomplish very interesting results working together. I’ll show some iOS ones that might have similar Android and Windows apps.
IMG_9731-2014-07-1-19-41.PNG IMG_9734-2014-07-1-19-41.PNG IMG_9738-2014-07-1-19-41.PNG

Take for example some health apps and there are a huge amount of them to be able to list them all. It all started when I got Withings Health Mate blood pressure monitor (BP) device in 2012 which connects via old 30-pin Apple connector (current model is Bluetooth now, way better). It will manage not only you BP history thru the device and manual entrees but allows height, height and sleep measuring with 3rd party apps and devices. For example, it gets calories taken of Runkeeper app and minutes of exercise per period and account for. Runkeeper can have your exercises data pulled from Withings Healthmate and you have a consolidate Cal intake against outtake.

IMG_9741-2014-07-1-19-41.PNG IMG_9742-2014-07-1-19-41.PNG IMG_9743-2014-07-1-19-41.PNG

The third app I use integrated with Healthmate is My Fitness Pal where I register meal’s data like serving size, Cals, vitamins and Proteins. It is a little work to get regular food intake added to the app but when you repeat meal usage in the next few days, you will get suggestions or similar meal.

IMG_9721-2014-07-1-19-41.PNG IMG_9729-2014-07-1-19-41.PNG IMG_9727-2014-07-1-19-41.PNG

So, once you get all added regularly, you can have a good picture of health habits, meal history and some data present to your physician. Does app will not replace their full diagnostics but help provide BP, colesterol intake rate, Cal burn rate and other information. Well, what is next? Apple iOS 8 will have a new set of features these apps can better integrate inside the phone without requiring you to create external accounts to sync data, at the same time it gets standard set of data providers and type. There is huge amount of them to try free and paid with premium services for all. If you have used something similar, other experience, I’d love to hear it.

Vantagem competitiva e benchmarking?

Por que falamos sempre nisso em trabalhos de graduação, pós, reuniões? Parece modismo as vezes. “Faremos benchmarking para melhorar nossas técnicas de construção e engenharia…” mas, isto é catching up com o que fazem os outros, ou o termo horrível “correr atrás do prejuízo”.

Não há como alcançar objetivos desafiadores ou maiores sendo muito conversador ou preocupado com riscos a ponto de empacar iniciativas. Em TI vejo muito dogmas do tipo, “nunca instale uma versão maior .0 de um software, espere a correção”, em alimentação, repete-se o que os outros fazem.

Novamente, vantagem competitiva é logo perdida com as imitações mas dá saída na frente organizações grandes ou empreendedores menores que começam a buscar formas de causar disrupção de mercado ou indústria.

Enquanto a NASA busca contractos lobbistas tradicionais em armamentos, para foguetes que não precisam ir muito longe, Elon Musk da PayPal melhora a cada dia seu projeto na Space X de levar payloads ao espaço usando querosene em motores modernos (sonho do Werner von Braum). Sua companhia garantiu em 2012 contrato de US$1.6bi com NASA para levar 12 voos para a ISS e tirar a dependência dos russos para isso, verdadeiro empreendedor do espírito americano original! Tesla Motors é outro exemplo para carros elétricos de longo alcance e mercado premium por enquanto. mas com planos para espalhar o mercado com modelos menores. Boa briga.

O que me parece certo é arriscar e inovar, em maior grau com um pouco mais de frequência pois cada negócio tem uma dinâmica diferente. Entretanto não espere muito empresas de celulares fizeram para entender que outro tipo concorrente inesperado apareça. Outro exemplo, a Cisco anunciou entrada em mercados de servidores em 2009 e analisando o que montaram até 2013 com computação unificada, virtualização completa de servidores, rede, software, orquestração de processamento e máquinas virtuais e SDN (software defines network), a fez tomar segundo lugar nos EUA. Brasil ainda é mais tímida a participação porque o preço de entrada nesta infra é maior e muitos gestores tem medo de mudança, além do momento econômico mais delicado. Lembro que em 2002 eu já insistia para iniciarmos experiência com virtualização (se podia fazer em casa) e logo após telefonia IP com equipamentos de rede mais capaz. Chegamos tarde demais nos dois e compramos tecnologia no final do ciclo de vida… Apesar de mais barata, não usaremos tanto tempo quanto o que usaríamos se tivéssemos entrado antes, principalmente telefonia IP tradicional.


Olivia Lum fundadora da Hyflux em Cingapura em 1989 foi a primeira mulher a receber o prêmio Empreendedor do Ano da EY em 2011 após passar por algumas crises econômicas, levando a cia de 1600 funcionários a atuar em ambientes complicados na Ásia com sucesso. Conheça mais sobre sua importante contribuição à manutenção da vida através da Hyflux e métodos de de-salinização da água em seu site e mais sobre o tema em http://www.siww.com.sg/founding-sponsors/hyflux

10 livros de tecnocultura para praia? Pode ser mas veja alguns para ler em casa também.

Vi esta lista uns 7 anos atrás no The Register e comprei os 3 primeiros que me pareceram mais interessantes na época. Recomendo bastante o primeiro do editor sênior da Wired, Bruce Sterling, Shaping Things que trata de como evoluímos de uma sociedade agricultora para industrial e apresenta idéia da linha de sem volta (no return em inglês). Simplificando, imagine que um fazendeiro pode evoluir para um marinheiro, mas um marinheiro não pode voltar a ser agricultor e aplique isto em escala global. Isto é a linha de sem volta e o assunto e expande para era da informação e o que temos adiante. Interessante, foi a primeira vez que li sobre a Internet Das Coisas ou IoE em ingles e da rastreabilidade das coisas, ou Gizmos e sua evolução Spimes.

The Sigularity is Near livro do Ray Kurzweil trata da evolução da computação até o ponto onde podemos emular uma pessoa, ou alma se quiserem chamar assim e partir para novo passo na evolução e vida sintética. Enquanto parece muito simples o tema dizendo assim, vale a pena ler resumo sobre o tema, o processo que ele usa para justificar quando isto acontecerá e como. Ray tem como credencial ser um dos pioneiros na síntese de voz e reconhecimento de voz por computadores, fundador da Kurzweil Music Systems e da Kurzweil Applied Intelligence. Foi o criador da idéia da Lei do Retorno Acelerado que diz que cada interação de pesquisa e evolução em poder computacional, podemos investir mais em pesquisa e construção de método mais rápido e repetir o ciclo crescendo ciclo de forma exponencional (até quando não se sabe).

Terceiro livro que li Future Hype trata de contradizer previsões para o futuro, incluindo o livro acima, o que dá uma idéia do que é atingível ou não, pelo menos para os leitores pensarem a respeito. Bob Seidensticker é o autor e experiente em argumentos de realidade.