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/cloudstack-usage.pid: 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
java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
java-1.7.0-openjdk-1.7.0.55-2.4.7.1.el6_5.x86_64
java_cup-0.10k-5.el6.x86_64

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

Continue reading “CloudStack Usage Server Fails To Start”

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.

Continue reading “CloudStack SSVM Network Topology with 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

Continue reading “Running Ubuntu 14.04 “Trusty Tahir” on XenServer CloudStack”