Posts tagged vCloud Director

How-To: Purge old Ubuntu kernels

Long ago, far away, and right next door, Nick and I discussed Ubuntu and its kernel management.

It all started with my comment that it is wasteful to have all these kernels lying around and never booted into again.

I went searching and did not find much on how to remove those old kernels in an efficient way but eventually I figured it out.

Then Nick wrote it into a script to automate this functionality so I decided to share it with the world. We use this in our vmForge auto-install ISO images after the install has finished and the system updated.

Disclaimer: no warranties, blah blah, you’re on  your own, don’t blame the messenger, always eat your vegetables.

#!/bin/sh

echo Removing old kernels

a=`uname -a | awk '{print $3}' | cut -f "1 2" -d -`
for i in `ls /boot | grep vmlinuz | cut -f "2 3" -d -`; do
  if [ "$i" != "$a" ]; then
    dpkg -l | awk '{print $2}' | grep $i | xargs apt-get -y remove
    dpkg -l | awk '{print $2}' | grep $i | xargs dpkg --purge
    rm -fr /lib/modules/$i-server
  fi
done

And there ya have it.

Happy Valentines Day!

It’s 1.0 to you but you’re beta to me: vCloud Director Client for iPad

VMware released vCloud Director Client for iPad today.

And in the grand tradition of VMware releasing version 1.0 applications we come away with something that has potential but leaving me wanting.

Wanting an application that can do something.

Perhaps they should have left this in the oven to bake a little longer. I think the vSphere Client for iPad had some of the same issues upon first release.

My suggestion: wait until it receives updates before installing on your iPad.

More >

vCloud Director 1.5 cannot upload files error

Let’s say you have your vCloud Director cells behind a load balancer.

You try to upload your files (.iso and .ovf images for either a vApp or media and receive an error message like:

Error: Transferring files

On page 98 of the vdc_15_admin_guide.pdf you will find a paragraph pointing out that you need to fill in the API field for uploads to work.

During the initial configuration of each cloud cell, you specified an HTTP service IP address. By default, vCloud Director uses that address in the XML responses from the REST API and as the upload target for the transfer service (for uploading vApp templates and media). To use a different address, specify a public REST API base URL.

I had missed that in my new setup of vCloud Director 1.5 and a helpful VMware employee answered my questions in the Communities.

Install of vCloud Director 1.5 fails to set up ESXi 4.1U1 hosts

According to the install documentation, VMware vSphere 4 ESX and ESXi 4.1 update 1 are supported.

Install or upgrade to vCloud Director 1.5 will fail with the following error when trying to add the provider vDC:

Could not retrieve state for sequence: seq_os

This is easily fixed by editing the database table [os_id] and inserting the relevant information.

More >

vCloud Director Cluster got you down?

vCloud Director – the VMware solution to building on-demand infrastructure for the enterprise and cloud computing…works.

But there are some trials you must encounter and complete before things work smoothly.

TL;DR: I failed at first but found the problem with the issue being firewall services blocking inter-cell communications. This post is about the log entry and how it isn’t very clear that there is an error to resolve.

More >