BasRaayman's Technical Diatribehttp://basraayman.com
My personal thoughts on technology and its obfuscationSun, 02 Aug 2015 11:37:48 +0000enhourly1http://wordpress.com/http://0.gravatar.com/blavatar/054de69800694e5637991817d2775b80?s=96&d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.pngBasRaayman's Technical Diatribehttp://basraayman.com
Getting started with CoreOS on Nutanix Community Editionhttp://basraayman.com/2015/07/24/getting-started-with-coreos-on-nutanix-community-edition/
http://basraayman.com/2015/07/24/getting-started-with-coreos-on-nutanix-community-edition/#commentsFri, 24 Jul 2015 09:54:50 +0000http://basraayman.com/?p=1133]]>Containers seem to be the hot trend right now. I needed to get some more experience in this area, and instead of working with a single container machine, I actually wanted to get a “quick” distributed setup going. It wasn’t all that quick to start with, but I now have a working setup that can actually be rolled out and scaled in a pretty quick fashion.

Now, I’m assuming you already know what a container is, and have heard about CoreOS. Here are some quick steps to get you started. I’ll start off with the prerequisites:

You will have your Nutanix CE cluster up and running

You have a VLAN set up with IP address management and a DHCP server on Nutanix CE

Your further steps are relatively simple. First off, we will create an etcd master, the most important thing we need is a fixed IP, so define which IP you want to give it. Obviously we could use the CoreOS cluster discovery mechanism and rely on an internet connection, but I decided to just use my own instance instead.

Note that I’ve copied in the public ssh key from my laptop to get easier access to the VM. Now, save this file as a text file called user_data, and create an iso image using the ways described here. Copy that over to your container on CE using sftp to a controller VM on port 2222. You can use Prism credentials to authenticate.

Next step, create a new VM in Acropolis, attach the CoreOS ISO image as your primary CD drive, and the ISO you just created as the second CD drive, and power on the VM

Now, to create the actual CoreOS cluster, you create a second user_data file, that only contains the following:

]]>http://basraayman.com/2015/07/24/getting-started-with-coreos-on-nutanix-community-edition/feed/1BasRaayman[Shorts] Fusion 7.1 cannot perform a P2V with iCloud Password on OS X Maverickshttp://basraayman.com/2014/12/29/shorts-fusion-7-1-cannot-perform-a-p2v-with-icloud-password-on-os-x-mavericks/
http://basraayman.com/2014/12/29/shorts-fusion-7-1-cannot-perform-a-p2v-with-icloud-password-on-os-x-mavericks/#commentsMon, 29 Dec 2014 09:20:44 +0000http://basraayman.com/?p=1119]]>Recently my parents switched to a Mac from a PC, and I helped set things up for them. The machine was quite nice, a new iMac Retina, and I helped my dad migrate their old PC to a VM on the new Mac. Now, this entire process is pretty straightforward. You put the Mac and the PC on the same network, input a four digit token (or input an IP and port), then authenticate with a user and password, and things should work.

Unfortunately, that wasn’t quite the case for me. The Windows system wanted to have UAC disable on the Windows 8 Machine, which isn’t a problem, but the error message wouldn’t go away. Problem was, that it was a pretty generic error message “A failure occurred”, without even so much as an error code that made any sense. The log files also didn’t work.

While I was guessing it might be related to a username problem (spaces in the username), I tried several things on the Windows side, and checked the user on the Mac as well. It was then I found out that under OSX Mavericks, you can now enable using an iCloud password, which was already set up (using a screenshot here of my MacBook Pro as an example):

iCloud Password

Long story short, as soon as I used a separate local password for the user, the P2V migration worked like a charm. I enabled the iCloud password again, and the migration wouldn’t go through. Since I wasn’t able to find this in the VMware KB, I figured I might as well share this here.

]]>http://basraayman.com/2014/12/29/shorts-fusion-7-1-cannot-perform-a-p2v-with-icloud-password-on-os-x-mavericks/feed/0BasRaaymaniCloud PasswordNutanix OS 4.0 – Prism Centralhttp://basraayman.com/2014/04/17/nutanix-os-4-0-prism-central/
http://basraayman.com/2014/04/17/nutanix-os-4-0-prism-central/#commentsThu, 17 Apr 2014 13:20:00 +0000http://basraayman.com/?p=1022]]>One of the features that has been announced for Nutanix OS 4.0 (also called NOS), is something called Prism Central.

So what does Prism Central do? Well, perhaps things are more obvious if we speak about the internal name we once used. It was referenced as our Multi-Cluster UI, and that is exactly what it is. Instead of having to open multiple tabs in your browser and switching between tabs to actually manage your Nutanix clusters, you can now open one tab, register multiple clusters, and manage them all from one interface, or get a basic overview of what is going on across all clusters.

First things first: Disclaimer – Keep in mind this is based on an early code version, and things will most likely change before you can download the software.

I spoke to our developers, and received a version to play with, so I’ll walk you through the process. Prism Central comes as an OVF, and you simply deploy this VM in your infrastructure. The requirements for the VM are the following (again, this might change):

8GB RAM
2 vCPUs
260GB disk space
With that configuration, you can monitor 100 nodes while we assume that you can go up to 100 VMs per node.

With that said, the installation itself is quite easy. We deploy the OVF from vCenter:

Prism Central – OVF Deployment

We give the VM a name:

Prism Central – OVF Deployment – Naming

And follow the normal steps for any OVF. Things like selecting a resource pool, datastore, and then selecting the disk format and network mapping. You will only need one interface, but I’d recommend deploying the Prism Central VM in the same network as your controller VMs. Once that is done, you click on “Finish” and wait for the VM to deploy:

Prism Central – OVF Deployment – Finished

Now, my assumption is that we will be changing to the OVA format to make deployment a bit easier. In this version, I still had to configure the IP addresses manually (no DHCP in my network), and deploying from an OVA should make that a breeze, but I will outline the steps I used here anyway.

After connecting to the vSphere console of the VM, we log on to the console using “nutanix” as the user and “nutanix/4u” as the password. Then, you simply edit the file /etc/sysconfig/network-scripts/ifcfg-eth0 and input the IP-address you would like to use. In my case it looks like this:

Simply save the file and restart your network services, and you should now be able to access the machine using your favorite ssh client. Now there is one thing left to do (and again, I’m assuming this should no longer be there in a final release, just trying to be complete):

As you can see, it looks quite the same as the regular 4.0 version, except that if you click on the top left “Prism Central” text, a menu will fold out on the left hand side. But, since we want to monitor a cluster, let’s go ahead and register a cluster.

To do so, just connect to your NOS 4.0 cluster, and click on the small gear symbol on the top right corner, and select “Prism Central Registration”. There, fill out the Prism Central IP, the username and password for Prism Central, and click on “Save”

Prism Central – Registration

If all goes well, the cluster registers, and you will see an event in your Prism Central stating that a user has been added (we support single sign on in Prism Central), and that a cluster has been added to Multicluster. And, you should now be able to see the new cluster that was registered in Prism Central:

Prism Central – Cluster registered

To now manage that cluster, simply click on Prism Central on the top left, and then select the cluster from the list on the left hand side:

Prism Central – Cluster selection

From there on, you can manage the cluster just like you would in your regular interface. My colleague Suda Srinivasan was kind enough to create a video that walks you through the interface:

So, that’s it for now. If you have any questions, feel free to let me know.

]]>http://basraayman.com/2014/04/17/nutanix-os-4-0-prism-central/feed/2BasRaaymanPrism Central - OVF DeploymentPrism Central - OVF Deployment - NamingPrism Central - OVF Deployment - FinishedPrism CentralPrism Central - RegistrationPrism Central - Cluster registeredPrism Central - Cluster selectionInstalling VMs under KVM on Nutanixhttp://basraayman.com/2014/02/27/installing-vms-under-kvm-on-nutanix/
http://basraayman.com/2014/02/27/installing-vms-under-kvm-on-nutanix/#commentsThu, 27 Feb 2014 14:36:28 +0000http://basraayman.com/?p=1000]]>I’m getting more and more customer requests that are looking at alternatives for VMware, and are considering a different hypervisor. Since I’m more of a VMware guy, but I am always willing to learn new stuff, I figured I might as well share some info on how to set up the Nutanix cluster on KVM, and create an initial virtual machine.

I’m assuming you have at least some Linux knowledge, and that you were able to get the hosts and the controller VMs configured with an IP address. After that, the basic setup is pretty much the same. Visit the cluser_init page using the IPv6 link local address, which is in the format:

What we are doing, is actually configuring the cluster with all the IP addresses, writing the cluster configuration to the underlying services, and starting the cluster for you. Give it a couple of minutes (usually 2 or 3 minutes will suffice), and you can now log on to the IP address of a controller VM, or the “Cluster External IP” that you put in, using the default username and password:

Nutanix – Cluster logon

By the way, I disabled the background video by simply adding “?novideo=true” to the logon URL. This disables the video, and makes logon a bit faster, especially when working via a link that might not have the bandwidth that you would prefer.

I then created a storage pool by the name of “default”, and created a container with the same name. Once that is done, your cluster is ready for its first VMs.

Nutanix – Cluster ready

Now, Nutanix relies on the management tools that a Hypervisor offers. In the case of vSphere, this would be vCenter. With KVM, or in our case KVM on CentOS, the selection is a bit more limited. Especially, since we make use of the Open Virtual Switch. That means, right now, we use libvirt as the management API, and wrote some extensions of our own. After all, your VMs will be located on storage that is being provided by Nutanix, so it would be good if we gave you some commands to make use of that storage, right? ;)

If we want to start the installation of a VM, we are first going to need an installation medium that we can use. So, I’m going to whitelist the default container I just created, and copy over a Ubuntu iso image:

Nutanix – Filesystem whitelist

Since you want to be able to see what was uploaded to the container, you can check from any of the controller VMs what is on there:nutanix@NTNX-13SM15400003-A-CVM:10.0.0.30:~$ nfs_ls
ubuntu-13.04-server-amd64.iso

Now, just pick the host that you want to use for your VM, and create the VM using the virt_install command. For example:virt_install --name bas_ubuntu_test --disk 32 --cdrom /default/ubuntu-13.04-server-amd64.iso --nic VM-Network --vcpus 2 --ram 4096

Or, alternatively, you could open up the VNC port that the VM is running on (or disable iptables alltogether), and use your favorite VNC client to manage the newly created VM:

Nutanix – VNC

Most of the commands that Nutanix implemented come with a syntax that is very similar to the native libvirt syntax, but the commands will be named with an underscore instead of a dash. For example live migration of a VM can be performed using:virt_migrate --vm bas_ubuntu_test --destination 10.0.0.20 --live

That’s it for a rough overview. If you have any questions, feel free to contact your local SE, or leave a note in the comments. :)

]]>http://basraayman.com/2014/02/27/installing-vms-under-kvm-on-nutanix/feed/4BasRaaymanNutanix - Cluster InitNutanix - Cluster logonNutanix - Cluster readyNutanix - Filesystem whitelistNutanix - virt-managerNutanix - VNCShorts: discount codes for VMware certificationshttp://basraayman.com/2013/08/28/shorts-discount-codes-for-vmware-certifications/
http://basraayman.com/2013/08/28/shorts-discount-codes-for-vmware-certifications/#commentsWed, 28 Aug 2013 19:35:25 +0000http://basraayman.com/?p=994]]>I just received word that because of VMworld, there are some discount codes for the VCP and VCAP certifications. To use the discount, you need to register for the exam at the Pearson VUE website. Don’t forget that the VCAP certifications requires you to register for the exam on the VMware website before scheduling the test on the Pearson VUE website. Just click this link here, go to the certification you want to take, and click the “Register for the exam” button at the top.

Once you receive the clearance, there will be an option at the top of the Pearson Website (where you input your payment details), where you can apply the discount code.

The discount code “VWSF50″ will work for the following exams:

VCP-DCV

VCP-DT

VCP-Cloud

VMware IAAS

VMware View

The discount code “VWSFADV50″ will work for the following exams:

VCAP-DCD

VCAP-DCA

VCAP-CID

VCAP-CIA

VCAP-DTD

To be eligible for the discount, your test must be scheduled by August 29th 2013, and taken by October 31st 2013.

Good luck on the tests if you decide to schedule one! :)

]]>http://basraayman.com/2013/08/28/shorts-discount-codes-for-vmware-certifications/feed/0BasRaaymanVMworld 2013 – Link collectionhttp://basraayman.com/2013/08/26/vmworld-2013-link-collection/
http://basraayman.com/2013/08/26/vmworld-2013-link-collection/#commentsMon, 26 Aug 2013 17:45:59 +0000http://basraayman.com/?p=986]]>As most of you will know, VMworld is going on right now, and they kicked off this morning with the general Keynote. There were some new announcements, like for example the introduction of NSX, the public beta of VSAN, and the vCloud Suite 5.5.

As always, you’ll be flooded with blog posts and articles, so like the last couple of years, I’ll be trying to give you an overview with links. If you feel like something is missing, please leave a note in the comments, or send me a direct message on Twitter and I’ll try to get it added pronto.

]]>http://basraayman.com/2013/08/26/vmworld-2013-link-collection/feed/6BasRaaymanNutanix – What do you mean: “You are not a storage company”…?http://basraayman.com/2013/08/09/nutanix-what-do-you-mean-you-are-not-a-storage-company/
http://basraayman.com/2013/08/09/nutanix-what-do-you-mean-you-are-not-a-storage-company/#commentsFri, 09 Aug 2013 14:30:48 +0000http://basraayman.com/?p=970]]>

Image copyright of the Davis Museum

“You are a black guy, you must be great at dancing and basketball”. “You’re a blonde? Let me explain that joke to you once more”.

Stereotypes. We all know them, we all apply them in some form or the other. We put things in boxes after a quick look, and every drawer has a different label and content to separate the stereotypes. But what if it doesn’t work that way?

Since I joined Nutanix, I’ve been in several customer and partner meetings. Some of the people I’ve get got the idea right away. We are doing something new. Others put us in to a respective box or drawer. “You are a storage company” is one of the classic pieces of feedback. Or, “So you do virtual desktop infrastructure?”.

But there’s more to it. We offer a combination of commodity hardware, combined with a piece of software, and sell that as a solution. And while the use case of virtual desktops is a great one, we can also run things like Splunk, Hadoop and classic server virtualization workloads.

And while we combine the benefits of a shared storage approach to run workloads, we’re not a storage company. We utilize features offered by shared storage to make your life easier. Each node performs its operations on the local storage, but I can use the “Nutanix Distributed File System” or NDFS to create an abstracted layer that offers many of the shared storage benefits. An example would be a shared container for my virtual machines, that are accessible to all of the hosts, enabling features like live migration between hosts.

While that works out really well with our customers, and it gives you the idea you have a SAN or NAS underneath the hoods, Nutanix’s main point is not to replace your SAN or NAS. We want to offer you a “Virtual Computing Platform”, a way to make your life easier when installing, configuring and deploying virtualized workloads and solutions.

That works great, and we’ve received great feedback. There seems to be a slight disconnect though. That begins when people start asking questions like:

What do you mean: “You are not a storage company”…?

A fair question by all means, but the simple answer is: No, we are not.

A simple example that seems to come up as of late is the following. How do I share disk space from your file system directly in to a virtual machine? While there is a way to export the storage directly in to a VM (for example via NFS), this bypasses some of the concepts we utilize. By default, we mount a datastore using an NFS IP address of 192.168.5.1, which runs over a virtual switch that has no uplinks. Since we are talking about traffic that stays within the same vSwitch, we can work at blazing speeds that are not limited by the speed of the physical NIC.

If I were to mount the NFS share from a virtual machine (or a different host), we could use the external IP of the Controller VM. The problem here, is that since the external IPs are different between controller VMs, if you were to migrate your NFS client VM to a different host, everything would go over the regular network. Also, if the controller VM that you connect to as an NFS Server would be offline, your NFS share is not accessible.

The thing is, the Nutanix block is designed to work this way. It offers great flexibility when it comes to running virtualized workloads, but it is not a 100% distributed storage system. We didn’t intend on being a storage system.

It then boils down to design. Is there a way around this? Certainly.

If you want to create a distributed CIFS file share, take a look at solutions like DFS from Microsoft. You can run multiple VMs inside of a container/datastore, and just pass the disk space of the VM through. If you need more space, just add more VMs on a different node, and add capacity, and off you go. And if you run out of space on your cluster? Just add another Nutanix node, get a VM up and running, and follow the same procedure.

That way, you are actually utilizing the distributed nature of our virtual compute platform, and running your storage services in a distributed manner. Gluster FS could be a possible solution to achieve the same thing with NFS on Linux.

And like I said, if this sounds like we are not a storage company? You are absolutely right, we are not. So you might want to categorize us under a different label, put us in a different box, or create an entirely new stereotype. ;)

]]>http://basraayman.com/2013/08/09/nutanix-what-do-you-mean-you-are-not-a-storage-company/feed/9BasRaaymanImage copyright of the Davis MuseumUpgrading your Nutanix NX-2400 block from ESXi 5.0 to ESXi 5.1 using a USB thumb drive.http://basraayman.com/2013/07/16/upgrading-your-nutanix-nx-2400-block-from-esxi-5-0-to-esxi-5-1-using-a-usb-thumb-drive/
http://basraayman.com/2013/07/16/upgrading-your-nutanix-nx-2400-block-from-esxi-5-0-to-esxi-5-1-using-a-usb-thumb-drive/#commentsTue, 16 Jul 2013 11:58:20 +0000http://basraayman.com/?p=950]]>At the moment, I’m lucky enough to have a Nutanix block at home that I use for demos (it’s coming along to Switzerland with me tomorrow). It’s not the model with the highest specs, but it helps in giving customers a chance to actually see the kit, and give partners some hands-on time. In case you are wondering, I’m actually working with a NX-2400, or a 4-node NX-2000 cluster, hence 2400.

Thing is though, that it was running an older version of the Nutanix Operating System (NOS), which I upgraded to the latest version (NOS 3.1) without a hitch, and it was running ESXi 5.0. And to play with some of the latest features, I actually decided to upgrade to ESXi 5.1, and I figured I might as well share how that worked out for me.

The steps are relatively simple, but I figured I’ll document them here anyway. One word of caution though:

This was done with the latest info from the Nutanix knowledge base. Be sure to check if there are updated instructions available prior to upgrading your own block.

So, step one is to actually get the installation media for ESXi 5.1. In case of the NX-3000, you can use the standard ESXi 5.1 image. For the NX-2000 systems, you need to use an image that is customized by Nutanix. Contact myself or your local systems engineer to get the download location.

Next, create a bootable USB stick using the image. Easiest way I found is to actually format the stick with FAT32 as the filesystem. I recommend using a Windows system, or a Windows VM, since no matter what I tried, I couldn’t get it to boot using a Mac. Once the drive is formatted, I used UNetbootin:

Click on “Disc Image” and select the ISO file. Make sure “USB Drive” is selected, and point it to the correct drive. Then click on “OK”, and watch it go to work. If it gives you a message stating that menu.c32 is already present, click on the “Yes” button.

We’ll also need to edit the NFS heartbeat timeout settings. To do that, log on to vCenter, select the node and go to “Software” -> “Advanced settings”. There go to the NFS entries, and modify the “NFS.HeartbeatTimeout” setting to 30 seconds. Do that for each host.

Next, we need to make sure the multiextent module is loaded. Add the following lines to /etc/rc.local.d/local.sh on each host (if not already there):#added to support multiextent
localcli system module load -m multiextent
#end of adding
Then restart the host.

Once you are done, it is time to start the upgrade. Go in to the BIOS (using the Delete key) on the node you want to upgrade, and change the boot order so that you actually start off of your USB stick. Once you save the config and restart, you will be given a menu where you select the second option:

After that you should be able to see the trusted ESXi boot sequence:

At the installation screen, just hit the “Enter” key to continue with the installation. Read the license agreement, and continue with F11. Next, you are asked where the installation should reside. Normally you should see the Intel SSD already have a VMFS partition, indicated by the small asterisk in front of the disk. Select that disk and press “Enter” to continue:

Next, a prompt should show up asking if you want to upgrade. Select that option, and press “enter” once more:

The final step is to confirm your upgrade by pressing the “F11″ key. Once the upgrade is done, remove the USB thumb drive, and reboot the server by again hitting the “Enter” key. Let the node reboot, change the boot order to the original sequence, and, tadaaaaaa:

Now, obviously this would be easier using the vSphere Update Manager, but this was the solution I used, since I only installed the vCenter virtual appliance. Not pretty but it works.

One key thing left to do, is to re-register the controller VMs on your ESXi host. You can do this via the vSphere client going directly to the ESXi host. Just right-click the VM and select “remove from inventory”. Then browse the datastore, go to the folder saying “ServiceVM-1.24_Ubuntu” and add the VM to the inventory using the VMX file. You can now start your VM after you confirmed that you moved it. :)

The other alternative to re-register your VM using vim-cmd via an SSH session on to your ESXi host. Just check which VMs you have running:vim-cmd vmsvc/getallvms

While there are a lot of new features in there, as well as an upgrade of some features to bring the OS up to par when compared to for example Windows 8, one of the best additions in my opinion is the “multiple displays” feature. You can get the Apple overview here. Basically, you can hook up monitors to your mac, and they are now able to work just like your main display. That’s great if you have a dual or multi monitor setup (which I don’t have), but for me what is really cool, is that this also works with an Apple TV.

I was playing with this feature today, and I created a quick video that I wanted to share for anyone that might not be familiar with what you can do, and show a very simple demo:

I’ll admit that the clip isn’t that spectacular, but after playing a bit more, I figured that this scenario could make my life on the road a lot easier. I present at a fair share of conventions and events, and while there usually is a TV or monitor hanging around, usually your controls would be far far away, and you’d have to dig out your laptop to get to anything to do with the system settings or the likes. You would have to run cables from your laptop to the display, and if you forgot a display adapter for you MacBook, usually you were just plain and simply screwed.

Someone else wanted to present from their Mac? Sure, copy the presentation over via AirDrop, USB stick, or you would have to switch the cable to a different laptop.

I’ve decided that I’ll try something different in the future. I’ll just bring along an Apple TV and hook that up to the TV or display. One HDMI and power cable, and I’m set. I’ll be able to just monitor my screen, and if one of my colleagues wants to present, he can just as easily use it without copying presentations or swapping cables. And since this also works with iPads, anyone that has their presentation in Keynote format on their iPad should also be good.

I’ll admit this isn’t a solution for a mixed environment (PC and Mac, not to mention monitors or TVs that only have VGA or DVI), but I’m seriously considering just giving this a try to see how far it takes me. I’m fully aware that the video dongles are lighter than the Apple TV, but hey, I’m a geek and I want to play with technology. ;)

]]>http://basraayman.com/2013/06/22/idea-to-make-your-presenter-life-easier-on-the-road/feed/14BasRaaymanNutanix – 2013 vExpert gifthttp://basraayman.com/2013/06/05/nutanix-2013-vexpert-gift/
http://basraayman.com/2013/06/05/nutanix-2013-vexpert-gift/#commentsWed, 05 Jun 2013 09:22:47 +0000http://basraayman.com/?p=939]]>So, this is something I found out just after my first day at Nutanix. There is a Facebook post by Nutanix, stating the following:

Nutanix would like to congratulate all #vExpert winners with a personalized pint glass at #VMWorld! Winners- reach out to us if interested.

I sent out a tweet, and got back a couple of replies. Some folks don’t use Facebook, some won’t be visiting VMworld in the US (or Europe for that matter), and it wasn’t quite clear what info was needed.

In an effort to consolidate this a bit more, I set up a Google spreadsheet, that just has some basic info. Your first name, last name, Twitter handle, and if you will be visiting VMworld in the US or Europe. You don’t have to sign in, editing is possible when accessing the document using the direct link.

Should you not visit, I think we can arrange that the personalized pint glass will be shipped to you, and we will follow up with you regarding details on shipping. Just make sure that you either follow the Nutanix Twitter account, or my Twitter account so that we can send you a direct message should we need your shipping information.