Pages

Monday, August 29, 2011

ESX/ESXi Bookmarks


Sunday, August 28, 2011

Clone VM in ESX without vCenter



Login to the ESX/ESXi console to clone vm1 datastore to vm2. 


$ cd /vmfs/volumes/datastore/
$ mkdir vm2
$ vmkfstools -i vm1/vm1.vmdk vm2/vm2.vmdk


Next, create vm2 from the client GUI and choose existing disk option pointing to the newly created vm2.vmdk. 


More details available in the excellent article here.


To read how to access the hidden ESXi console, refer to this article.



Thursday, August 25, 2011

Could not power on VM : No space left on device - Failed to power on VM

With VMWare's ESX or ESXi, "Could not power on VM : No space left on device - Failed to power on VM" is a common sight when trying to start a VM.

This error seems bizarre especially when you are actually trying to increase the guest RAM and the error is about disk space. The cause could be the following:
  1. By default, ESX will configure a swap on the VM's datastore equal to the RAM. So, when RAM is increased, more disk space is required. The fix is to reserve memory in resource allocation settings for the VM.
  2. There really isn't enough disk space on the datastore. Reduce Hard Disk size for the VM.

Enable/Disable Optional Oracle 11g Options


In Oracle database 11g, after installation, if you ever want to enable/disable the optional features, just shutdown your database and use the chopt utility as described below. Once done, restart the database and you are all set!

$ORACLE_HOME/chopt

Usage:

chopt <enable|disable> <option>

options:
                  dm = Oracle Data Mining RDBMS Files
                  dv = Oracle Database Vault option
                lbac = Oracle Label Security
                olap = Oracle OLAP
        partitioning = Oracle Partitioning
                 rat = Oracle Real Application Testing

e.g. chopt enable rat

Tuesday, August 9, 2011

Disable NIS in RHEL / Oracle Linux

Related configuration files:
/etc/host.conf - lists the lookup order. No change necessary.
/etc/nsswitch.conf - remove nis from hosts list
/etc/sysconfig/network - remove NISDOMAIN entry

Reboot.