VCSA

From Athenaeum
Jump to: navigation, search


General

Migrate a VM from one vCenter server/host to another:

  1. Download and install the ovftool on a client that can reach both servers
  2. ovftool --compress vi://vcsa-nexus.mgmt.nexus.systems/LabvCenter01/vm/Templates/Ubuntu_18.04_x64 /mnt/storage/Ubuntu_18.04_x64.ova
  3. ovftool -nw="MGMT" -ds="sea_san_01B_esx1" --name=Ubuntu_18.04_x64 --diskMode=thin /mnt/storage/Ubuntu_18.04_x64.ova vi://vcsa-nexus.mgmt.nexus.systems/Colo03/host/SEA-CLUSTER-01/colo-vmhost02.mgmt.tsafe.systems

AD and SSO

Set Up

vApps

Explained

Memory Footprint

More recent memory adjustmentpost.

The VMware VCenter Virtual Appliance comes preconfigured with an absurd amount of ram. If you are running an environment with less than 100 hosts (haha like anyone that knows how to tune VMs has that many hosts) you can reduce its memory footprint from 8gb to 4gb, or lower, using the following java memory tweaks.

For vCenter Server Appliance version 5.5.0.20000-2063318 (deployed October, 2014), I only had to adjust the vCenter Inventory Service and Profile-Drive Storage Service as described here. Other settings all looked sane/similar to what's described here.

  • Startup script for vCenter Service.
/usr/lib/vmware-vsphere-client/server/bin/dmk.sh
Default: JAVA_OPTS=”$JAVA_OPTS -Xmx1024m -Xms512m -XX:PermSize-128m”. Xmx=max heap; Xms=starting heap.
Tweaked: JAVA_OPTS=”$JAVA_OPTS -Xmx512m -Xms512m -XX:PermSize-128m”.
  • vCenter Server.
/etc/vmware-vpx/tomcat-java-opts.cfg
Default: -Xmx1024m -XX:MaxPermSize=256m -Dvim.logdir=/var/log/vmware/vpx
Tweaked: -Xmx512m -XX:MaxPermSize=256m -Dvim.logdir=/var/log/vmware/vpx
/usr/lib/vmware-vpx/tomcat/bin/setenv.sh
Default: JVM_OPTS=”-Xss1024K -Xincgc -XX:+ForceTimeHighResolution -XX:PermSize=64M”
Tweaked: JVM_OPTS=”-Xss512M -Xincgc -XX:+ForceTimeHighResolution -XX:PermSize=64M”
  • vCenter Single Sing On.
/usr/lib/vmware-sso/bin/setenv.sh
Default: JVM_OPTS=”$JVM_OPTS -XX:MaxPermSize=256M –Xms2048m –Xmx2048m”
Tweaked: JVM_OPTS=”$JVM_OPTS -XX:MaxPermSize=256M -Xms512m -Xmx512m”
  • vCenter Inventory Service.
/usr/lib/vmware-vpx/inventoryservice/wrapper/conf/wrapper.conf
Default: wrapper.java.maxmemory=3072
Tweaked: wrapper.java.maxmemory=1024
  • Profile-Drive Storage Service.
/usr/lib/vmware-vpx/sps/wrapper/conf/wrapper.conf
Default: wrapper.java.maxmemory=1024
Tweaked: wrapper.java.maxmemory=512

Bacula Client

  • There are no binaries for SUSE so in order to build the bacula client from source you need to add the following repo:
http://download.opensuse.org/repositories/devel:/gcc/openSUSE_11.4/

PostgreSQL Backups

  • The binaries are all located at /opt/vmware/vpostgres/1.0/bin
  • The root account is postgresql