ESXi 5 boot options, how to force the BIOS boot option

Posted on Thursday, March 29, 2012




So you are having issues with your virtual machine running in VMware ESXi 5 and you need to get the VMware bios settings.  

Here is how you can set the boot options.

After logging into vSphere select the server you want to have the bios come up on the next reboot and select the getting Started tab then select “Edit virtual machine settings”



VMware Ubuntu image lost eth0 after moving it

Posted on Monday, March 26, 2012



So you just cloned or moved an Ubuntu machine using the VMware Converter or some other tools, and now it lost its access to the internet and you are wondering why?  After all it’s a clone it should be the same right?

According to this post http://communities.vmware.com/thread/46069 [1] answered by nick.couchman

Some of the newer Linux distributions have a tendency to tie ethernet devices to MAC addresses.  When you generate a new UUID, the MAC address changes, and the distribution doesn't know where to find the interface because the eth0 device that is loaded by the driver differs in MAC address from the device listed in the configuration.  You can try going to /etc/sysconfig/network or /etc/sysconfig/network-scripts and editing the eth0 configuration file.  If a MAC address is listed, compare the MAC address listed in the configuration with the one listed in the ifconfig output.  If they differ, try changing the one in the configuration to match the ifconfig output and reboot.


So now that you find yourself in this situation how do you fix it?


Confirming the problem


First let’s run some commands to confirm the problem


       > ifconfig


My result is


This is missing the eth0 link.

Lazy Loading Singletons in Java (Initialization on Demand Holder (IODH) idiom)

Posted on Wednesday, March 14, 2012



Lazy Loading Singletons in Java

The other day I was reading a coding book and I saw an example of a lazy loaded singleton written in Java.  To my embarrassment I starred at it for far too long until I understood it.

In the past I have written out a lazy loading singleton in Java like this


    
public class MySingletonObject {

    private static MySingletonObject instance = null;

    private MySingletonObject {
    }

    public static MySingletonObject getInstance() {
        if(instance == null) {
            instance = new MySingletonObject();
        }
        return instance;
    }
}