CentOS CloudStack

CloudStack Usage Server Fails To Start

On a freshly installed Apache CloudStack 4.3.0 installation, the cloudstack-usage server fails to start as below:

[root@csman11 ~]# /etc/init.d/cloudstack-usage start
Starting CloudStack Usage Monitor cloudstack-usage19/06/2014 15:37:20 27499 jsvc error: Cannot locate Java Home
cat: /var/run/ No such file or directory [FAILED]

This is probably a side effect of newer version of OpenJDK being released for CentOS via EPEL which /etc/init.d/cloudstack-usage start script does not know about.

[root@csman11 ~]# rpm -qa|grep ^java

The right location for java-1.7.0-openjdk JAVA_HOME is /usr/lib/jvm/java-1.7.0-openjdk- and and is easily fixed with the below patch:

CloudStack XenServer

CloudStack SSVM Network Topology with XenServer

For those trying to debug SSVM networking, the following screenshots should help narrow down the issue. These screenshots are from a Apache CloudStack 4.3.0 environment with XenServer hypervisor hosts. Each XenServer hosts has 4 physical network interfaces labeled as below:

  1. NIC0 – MGMT
  2. NIC1 – STORAGE (NOTE: Storage is unused in my setup)
  3. NIC2 – GUEST
  4. NIC3 – PUBLIC

This can be verified using XenCenter.

CloudStack Ubuntu XenServer

Running Ubuntu 14.04 “Trusty Tahir” on XenServer CloudStack

The recently released Ubuntu 14.04 “Trusty Tahir” LTS release comes with Xen HVM (Hardware-assisted virtualization) support. Previous LTS releases supported the older Xen PV (para-virtualization) mode only.

Phoronix has recently published a comparison between Ubuntu 14.04 Xen PV with Xen HVM virtualisation which seems to suggest that Ubuntu 14.04 with Xen HVM performs better than Xen PV on EC2 cloud. You can read the full article at Ubuntu 14.04 On Amazon EC2: Xen PV vs. HVM