Feeds:
Posts
Comments

Unlike Linux which has lots of GNU utilities like ‘maxdepth’, ‘depth’ etc… Solaris(and perhaps other flavors of Unix) doesnt have a similar utility to specify the depth of the ‘find’ command. After some Googling I found a way to do this on Solaris.

Find below -

To find all in a directory(to just list you can use the ‘ls’ command of course)

find . \( ! -name . -prune \) -type f 

I wanted to find the all the zero KB files in the current directory, so it is:

find . \( ! -name . -prune \) -type f -size 0

Then, I wanted to delete them:

find . \( ! -name . -prune \) -type f -size 0 | xargs rm -f

Thanks,

Arun.P.C

Re-posting this from my Citrix blog -

http://blogs.citrix.com/2011/06/10/labmanager-3-9-troubleshooting-%E2%80%93-what-to-do-when-there-is-a-python-traceback/

Folks who have been using LabManager for a long time might have come across Python traceback on the LabManager Web UI which looks like this.

Then you wonder what it is and what details to collect before contacting support. So here are the three things that you need to gather before contacting Citrix Support.

1) HTML source of the error page – Many at times customers send us the HTML source of the homepage or the job ui page. But these pages do not carry the python traceback information. What you will need to do is go to the ‘Role Operations’ tab of the job page and view the HTML source on the browser. The video demonstrates this.

2) VMAgent logs – Typically this may be several megabytes but we usually only the latest logs. The logs are located in C:\Documents and Settings\All Users\Application Data\Citrix\LabManagerVMAgent\logs  if you have installed your VMAgent on Windows 2003 Server and the corresponding User Data folder in Windows 2008 Server.

3) LabManager Server logs – Just like the VMagent logs, this could also be several megabytes and we usually need only the latest one. The logs are located in logs C:\Documents and Settings\All Users\Application Data\Citrix\LabManager\logs for Window 2003 Server and the corresponding User Data folder in Windows Server 2008.

4) Optional – PostgreSQL .backup file – If the issue happened to be related to the LabManager Server, in that case the support engineers might want to reproduce the issue inhouse using the your very own database. In such a case, you may need to send the .backup file of your PostgreSQL db also. The video demonstrates how to do this.

http://www.citrix.com/tv/#videos/352

That’s all folks. Please let me know if you have any queries.

Thanks,

Arun.P.C

Contact me at: Citrix, Gmail, Skype: arun.pc

Giving up

I am sad today when I realize how many things I have given up in my life. I am not talking about the great opportunities or the big lotteries that were to be won.

I am talking about those brief moments in which I gave up those seemingly small things in a seemingly reasonable way.

Like not spending the Onam of 2009 with my grandfather in the middle of green paddy fields in Palakkad. Of course I have my reasons. Tickets from Bangalore to Palakkad for Onam is sold out 4 months in advance and even if I manage to get a ticket, I ll have to pay twice the price. Oh yeah, one more reason, Onam in Bangalore isn’t bad at all and after all I ve spend about 25 Onams in Palakkad, so change is always good!

Like not being able look into the eyes of Mona Lisa and stay put for a minute. Of course I have a reason. Mona Lisa’s room in Louvre looks like this.

So I tell my wife “I don’t think it is worthwhile to wait for 30 minutes to have a closer look at Mona Lisa. Let’s take distant photograph and file it in our travel diary. After all, we are not people who are into art and as if we understand what Renaissance art really mean!”

Or like not attending the wedding of my close friend. After all, we have not been in regular touch for the last 10 yrs and both of us have taken different routes in life.

I understand that reasons are always valid, true and obvious.

But whenever I think of the happiest and the most fulfilling times of my life, I brushed these reasons aside.

I powered On my XenServer VM and was shocked to find that the VMs couldn’t be powered On. This was the error message that I received.

This could be because of numerous reasons but in my case it was because an ISO file was attached to the VM. Removing it had my XenServer VM powered up and running.

Thanks,

Arun.P.C

I introduced XenServer Web Self Serve Portal on my Citrix blog. The video shows installing and configuring the whole appliance in less than 5 mins.

Check it out here.

http://community.citrix.com/display/ocb/2010/10/06/XenServer+Self+Service+Portal+up+and+running+in+5+mins!

Thanks,

Arun.P.C

One of my best friends who work for IBM Rational wanted to ‘try’ a start-up. After months of study and seeking different opinions he had his ideas which he shared with me. I realized that despite all the time and effort he spent, he had no clue about how it is to work for a startup. I gave him some honest suggestions and I thought I ll share it here so that many others like him will also benefit from it.

First and foremost, this post is NOT about starting a startup. You can read about starting a startup here, here and here.

This is about working in a startup or planning to work for one.

Before I get into the reasons why you should work for a startup, let me distinguish certain pitfalls about working in a startup.

Pitfall 1: I want to have some startup experience

Not a good enough reason to join one. There is no one thing called a ‘start-up’. When I think of working for a big organization, what comes to my mind are the common practices that everybody need to follow, weekly status meetings with management, yearly review for promotion and bonus, crafting personal strategies for growth in the company, internal politics and etcetera. While big organizations may be very different from one another in many ways, the manner in which you work in these may generally be the same. This is the reason why many times, a successful manager at HP when he moves to IBM hits the ground running and continues to produce similar results.

Welcome to the startup. People who have not worked in a startup or have worked in only ONE startup will not grasp this. From my experience of working in 2 startups and being associated closely with another 3 of them, I can’t think of any major similarity between any of them. I experienced the work culture in my current startup is radically different and diametrically opposite to my previous startup even though both of them are in the same industry (virtualization), similar team sizes (about 20 people) and the similar type of customers (enterprise software consumers).

So if you catch yourself generalizing on why you should work for ‘a startup’, please don’t do that. Every startup is different. Totally different. Please take your time and attention to understand the culture from outside by speaking to the employees (not the founders or some pundits). What you hear will be different from what you perceived.

Pitfall 2: I ve been advised to try a startup

These days, one of the most popular career advices that I come across (atleast in India where I live) is ‘Try a startup’. Even though there is nothing wrong with that and it may actually be right thing to do, the very person who had advised may not be eligible to do it at all.

Let me create a short list of people who are not the right people to advice about ‘working for a startup’.

  • Start-up founders – Disqualified. Starting a startup is like giving birth to a child. After bearing a child for 9 months and going through all the labor pain, no startup founder is ever going to remember what it is like to work for a startup. Because working for a startup and founding a startup are two different things. Eventhough a startup founder may have worked for several startups before, the moment he starts a company, his relationship to a startup will alter forever.

I ve always known what founders bring to the table to be much more and very different from what the employees bring forth. So looking through their lenses, you will never get the correct picture about working for a startup.

  • People who have worked for just ONE startup – I was one and when I was in my first startup, I had encouraged a lot of my friends to join startups. I found the hard way that their experiences were totally different from my mine. When you have just associated with one startup, you tend to generalize what a startup is and every other startup looks in many ways like yours. Always talk to people who have worked in multiple startups.
  • Big company boss – When I was working for Accenture, one of my bosses and some of my teammates who never worked for startups used to have an illusion that you get to learn much more in a startup and they highly recommend ‘young’ people to join a startup if they were tech savvy. Maybe there is some truth to it but that fact is that their advice is just from a reflection of the inadequacies of working for a big company. More like ‘The grass looks greener on the other side’.

So the real people who you should seek advice are employees (not founders) of startups who has worked in more than one startup.

Pitfall 3: Interesting people.

Valid reason. But this is not going to carry the day. When I joined my first startup, I was so impressed by the team and want to be the part of a team, who used only Gentoo Linux, ride only Royal Enfield, was part of real rock band, masters of interactive Ruby and were graduates of Landmark Education. I couldn’t possibly think of another group of more interesting people. I enjoyed and cherished every single second I worked there and learned so many things (outside work also) and made many friends for a lifetime. However, I just couldn’t adapt to the work culture at that point in time. Nightouts and coffee were great for the first 6 months but I just couldn’t cope up with the intensity and work patterns of the team because of which my work, family, health and the company suffered. So I had to quit.

Also, please be aware that it is highly likely that some of the key people (those same interesting people) may leave in the middle of the journey. It may be that key developer, that Board member, the only investor or may even be the co-founder. So if you get attached to people, be prepared for a heart break.

So if you want to meet interesting people, I suggest you do that outside work. Look for interesting place to work than interesting people to work with. Working in a startup may sometimes turn out be like getting married. It may be really interesting to have a Hollywood wife but will that really forward your wedding?

Pitfall 4: Startups are about new ideas.

This is a mere myth. 99% startups work on solving problems (with existing solutions) in a new way and there is very little novelty around it. Those1% of startups that may bank on entirely new idea may end up in a niche that can hardly be monetized or may fail to convince customers, investors or users about their solution.

Also, startups change directions very often. You may start with an entirely new interesting idea but it is likely that you may change course and do something which may not be entirely new.

Bottom line, don’t get attached to ideas.

Pitfall 5: Freedom to work on MY ideas.

Startups are not the place for ideas leave alone ‘your’ idea. Startups are about executing ONE idea very well and it may not be yours. Most likely your great feature suggestions and company strategies will not be worked on. This is the very nature of startups. The resources are scarce and focus is everything. So at any given time the entire company will be only committed to execute ONE thing and it may not be your thing.

If you want to work on your idea, I suggest Google, Adobe or Sun Microsystems which encourage employee projects and the company is willing to fund your project if you establish the feasibility of your idea. Don’t go to a startup to do that. If you are so passionate, I suggest you start on your own but not work in one and expect your idea to be worked on.

Pitfall 6: Lot of fun

Sure, startups are lot of fun but not just fun. It can graphically represented by spikes of nirvana and extreme stress and frustration. When one of my friends came to see me at my startup 3 yrs ago, he was pleasantly surprised to see me working sipping my Gatorade with Mayank’s St.Bernard besides me. He thought it was such a cool thing. What he overlooked was why the dog was there in the office in the first place(it was much better for the entire team to have Mayank focus on shipping the product than worrying about how his dog is doing at home, so it absolutely made sense for the team to have the dog in the office). When my Mom used to ring me on my cell phone, very often she could see hear sounds of loud laughter and she was glad I was having fun. But what she overlooked was the fact that it was 11 PM at night and we were still at work.

Startups can be a mix of extreme fun and extreme pain. This is because in a startup you are always dealing with ‘uncertainty’. Uncertainity about the market, your investor, customer acquisition, your next month’s salary etc… Sometimes you don’t see any light at the end of the tunnel and you begin to question why you made that choice and endured so much. Sometimes, you pride to have the 6th sense to identify this opportunity and convinced that have the magic touch. I am addicted to emotional roller coaster. Please prepare for this before you join a startup.

The above are some of the common pitfalls around working for a startup. In my opinion there are just two reasons that you should ever work for a startup.

Reason 1 – I want to start a start-up in the future; hence this will be a great training ground.

This is my favorite reason. If you are person who is aspiring to startup some day, this is the next best thing to actually bootstrapping. No amount of work experience in a big company or a Ivy league MBA or book knowledge will be anywhere close to actually going through the ups and down of a real startup. This is no brainer advice to a person who is serious about starting up.

Reason 2 –Have a specific reason to work for a specific company.

My ideal start-up friends when asked what keeps them going say things in the following lines.

“Out of college the only thing I wanted was to write lots of code. I didn’t quite care about anything else and that is when I heard about ABC startup and I ve been here for the last 3 yrs”.

“I want to be system administrator and I figured about that virtualization and cloud computing is the next big. So I better be with XYZ startup because they are building a product which is in the cutting edge and I get so much exposure”.

“I wanted to be a marketer and found this startup which gave the responsibility to market the product online and allow me to understand all the nuances of web marketing using free tools like WordPress, Facebook, Twitter”.

If notice all the above statements, you can find two common things:

1-    Each person is very clear on what they wanted to do.

2-    Once they knew what they wanted to do, they saw a startup as a pathway to fulfill on what they truly wanted and cared for.

I believe the above are the only two real reasons why a person should work for a startup. All the other reasons are great to have and certainly tempting but they are NOT going to carry the day.

Needless to say all the above are my opinions and my views. Feel free to let me know what you think.

Thanks/Arun.

I wasted about half an hour trying to figure out an annoying feature of Outlook 2007 which prevents emails getting cleared from Inbox. So, when I delete emails from Inbox, it gets striked off(marked for deletion) but just sits there. 

But If you think that you don’t need to delete the emails from the Exchange Server or IMAP but doesn’t want these emails to be visible in your Inbox, you might just need to change the View of the mailbox to hide all the ‘marked for delete’ emails.

In the Outlook UI, go to View-> Toolbars->Advanced.

Just change the view settings and select the option shown in the screenshot below -

 

Reason

Outlook has something called ‘Purge’ settings which will determine when the actual email gets deleted from your Inbox. In case you are deperate to clean your Inbox, this is what you have to do.

 Step-1 

In the Outlook menu, go to Edit->Purge-> Purge Marked items in “Inbox”.

 

Step-2

Once all the emails are deleted from your Inbox, configure Purge settings.

Thanks,

Arun.P.C

This could happen when you use VMware Server with SMB storage or otherwise. The error message is pretty self explanatory but here is how it can happen with VMware Server. 

Consider that VMware Server is installed on a machine which mounts SMB storage location with an administrator account.  Windows doesnt allow two sessions access the shared storage from the same machine. So if you are logged in VMware Server machine and is viewing the files of the shared folder(which is mounted on it), it means that you are causing issues for the other connection(maybe a program that uses it). So as indicated by the message, you need to kill all the sessions and allow restart the program.

1) Look at the sessions that are simultaneously running. On a Windows machine, Run -> ‘net use’. This will list all the connections.

2) Delete all the connections to the storage. Better still, do a ‘net use * /delete’

3) Ensure that you dont access the shared drive when the program is running.(to avoid starting a new connection)

It should work now.

Thanks,

Arun.PC

This applies to Citrix XenServer 4.1, 4.01 and other Xen variants. Consider we have 3 images in the storage namely Redhat, Win2k3 and Win2k and you want to know the name of the VHD files in the storage.

Xen has a convoluted way of relating to operating system files. This is how the naming goes – Every VM has name and unique VM-UUID. Then there is another data structure called VBD (virtual block device). VBD links the VM-UUID and VDI (virtual disk image). VDI is another data structure which contains all the physical characteristics. VDI is linked to VHD files which reside in the respective storage repository. So the way to get to the individual VHD file from an OS image name can be to link VM-UUID with the corresponding VDI-UUID and then to the VHD.

VM-name -> VM-UUID-> VBD -> VDI-UUID-> VHD

Procedure

  1. Note the name of the operating system image.
  2. on the Xen console, type xe vm-list.
  3. Note the VM-UUID of the machine template.
  4. on the Xen console, type xe vbd-list.
  5. Note the VDI-UUID of the machine template.
  6. on the Xen console, type xe sr-list.
  7. Note the name of the storage and SR-UUID
  8. move /var/run/sr-mount/ on the Xen console.
  9. You will find all the mounted drives. Change the directory to the required storage by referring to the SR-UUID.
  10. you will find all the VHD files.
  11. Match the VDI-UUID got from step-5 to the VHD file names there.

You may now, identify the VHD image.

Surely, there should be some other way to do this(maybe through the XenCenter UI?). If so, let me know about it.

Thanks,

Arun.P.C

Problem
————
You have VMware Server intalled on Linux and you are not able to view console of the VM. You know that your VM is running as you can ping it, ssh it and you know that your resources are consumed. Sometimes, it could be that you can view the console with your account but when accessed remotely or via an application which uses VMware Server, you are not able to view the console.

This is typically a permission issue. Most likely, you would have installed VMware Server as root and the other application might be accessing with another account which doesnt have enough permissions to view the console.

Fix
—-
Try doing a chmod -r 777 on all the virtual machine folders having this problem before launching it. You can give the appropriate permissions afterwards.

Thanks,
Arun.PC

Older Posts »

Follow

Get every new post delivered to your Inbox.